Robert, you need to be committing to gitorious, not sourceforge. Check
out the git-quickstart guide, it has been updated with instructions
how to work with gitorious instead of sourceforge.

--Eino

2011/3/16 Robert Burnham <rpburn...@users.sourceforge.net>:
>       via  928664955e143425ca68963676c25ff2d63d90e5 (commit)
>      from  0fc178be1e78cdd1f7011a21b6c2ae2218db43f9 (commit)
>
> -----------------------------------------------------------------------
> commit 928664955e143425ca68963676c25ff2d63d90e5
> Author: Robert Burnham <burnhamrobe...@gmail.com>
> Date:   Wed Mar 16 15:59:39 2011 -0500
>
>    Code cleanup
>
>    Cleanup some actor -> monster casting that was being done in spiny 
> unnecessarily.
>
> -----------------------------------------------------------------------
>
> Summary of changes:
>  crawl-ref/source/fight.cc |    9 +++------
>  1 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
> index 865219f..d9b3133 100644
> --- a/crawl-ref/source/fight.cc
> +++ b/crawl-ref/source/fight.cc
> @@ -5345,9 +5345,7 @@ void melee_attack::mons_do_spines()
>     if (body)
>         evp = -property(*body, PARM_EVASION);
>
> -    if (you.mutation[MUT_SPINY]
> -        && attacker->alive()
> -        && one_chance_in(evp + 1))
> +    if (you.mutation[MUT_SPINY] && attacker->alive() && one_chance_in(evp + 
> 1))
>     {
>         if (test_melee_hit(2 + 4 * mut, attacker->melee_evasion(defender), r)
>             < 0)
> @@ -5358,8 +5356,7 @@ void melee_attack::mons_do_spines()
>         }
>
>         int dmg = roll_dice(mut, 6);
> -        int ac = random2(1+attacker->as_monster()->armour_class());
> -
> +        int ac = random2(1 + attacker->armour_class());
>         int hurt = dmg - ac - evp;
>
>         dprf("Spiny: dmg = %d ac = %d hurt = %d", dmg, ac, hurt);
> @@ -5373,7 +5370,7 @@ void melee_attack::mons_do_spines()
>                                    " is struck by your spines.");
>         }
>
> -        attacker->as_monster()->hurt(&you, hurt);
> +        attacker->hurt(&you, hurt);
>     }
>  }
>
>
> --
> Dungeon Crawl Stone Soup
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Crawl-ref-commits mailing list
> crawl-ref-comm...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/crawl-ref-commits
>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Crawl-ref-discuss mailing list
Crawl-ref-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss

Reply via email to