- battle, smarter optimization

- messages, bugfix $strlen
This commit is contained in:
Enno Rehling 2007-02-24 22:26:50 +00:00
parent 0e2478bdb9
commit e380670a34
2 changed files with 3 additions and 3 deletions

View File

@ -1274,7 +1274,7 @@ count_enemies(battle * b, const fighter * af, int minrow, int maxrow, int select
return b->fast.enemies[select-SELECT_FIND]; return b->fast.enemies[select-SELECT_FIND];
} }
} }
} else { } else if (select!=SELECT_FIND || b->alive!=b->fast.alive) {
b->fast.side = as; b->fast.side = as;
b->fast.status = sr; b->fast.status = sr;
b->fast.minrow = minrow; b->fast.minrow = minrow;

View File

@ -6439,8 +6439,8 @@
<arg name="spell" type="spell"/> <arg name="spell" type="spell"/>
<arg name="effect" type="string"/> <arg name="effect" type="string"/>
</type> </type>
<text locale="de">"$unit($mage) zaubert $spell($spell)$if(strlen($effect),": $effect","")."</text> <text locale="de">"$unit($mage) zaubert $spell($spell)$if($strlen($effect),": $effect","")."</text>
<text locale="en">"$unit($mage) casts $spell($spell)$if(strlen($effect),": $effect","")."</text> <text locale="en">"$unit($mage) casts $spell($spell)$if($strlen($effect),": $effect","")."</text>
</message> </message>
<message name="battle::killed" section="battle"> <message name="battle::killed" section="battle">
<type> <type>