Difference for server/spell_util.c from version 1.95 to 1.96


version 1.95 version 1.96
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_util_c =   * static char *rcsid_spell_util_c =
  *   "$Id: spell_util.c,v 1.95 2005/09/09 21:09:41 akirschbaum Exp $";   *   "$Id: spell_util.c,v 1.96 2005/09/24 09:49:49 ryo_saeba Exp $";
  */   */
   
   
Line 923
 
Line 923
     /* Always cast spell on caster */      /* Always cast spell on caster */
     success = cast_spell( op, caster, dir, spell, stringarg );      success = cast_spell( op, caster, dir, spell, stringarg );
   
     if ( caster->contr->party_number == -1 )      if ( caster->contr->party == NULL )
         {          {
         remove_ob( spell );          remove_ob( spell );
         return success;          return success;
         }          }
     for( pl=first_player; pl!=NULL; pl=pl->next )      for( pl=first_player; pl!=NULL; pl=pl->next )
         if( ( pl->ob->contr->party_number == caster->contr->party_number ) && ( on_same_map( pl->ob, caster ) ) )          if( ( pl->ob->contr->party == caster->contr->party ) && ( on_same_map( pl->ob, caster ) ) )
             {              {
             cast_spell( pl->ob, caster, pl->ob->facing, spell, stringarg );              cast_spell( pl->ob, caster, pl->ob->facing, spell, stringarg );
             }              }


Legend:
line(s) removed in v.1.95 
line(s) changed
 line(s) added in v.1.96

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:49