version 1.66 | | version 1.67 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.66 2002/09/28 07:19:40 mwedel Exp $"; | | * "$Id: main.c,v 1.67 2002/11/13 00:49:47 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} /* end of for loop for all the players */ | | } /* end of for loop for all the players */ |
} /* for flag */ | | } /* for flag */ |
for(pl=first_player;pl!=NULL;pl=pl->next) { | | for(pl=first_player;pl!=NULL;pl=pl->next) { |
if (map!=NULL && (pl->ob == NULL || pl->ob->map!=map)) continue; | | if (map!=NULL && (pl->ob == NULL || pl->ob->map!=map)) |
#ifdef CASTING_TIME | | continue; |
| | if (settings.casting_time == TRUE) { |
if (pl->ob->casting > 0){ | | if (pl->ob->casting > 0){ |
pl->ob->casting--; | | pl->ob->casting--; |
pl->ob->start_holding = 1; | | pl->ob->start_holding = 1; |
| | |
pl->ob->start_holding = 0; | | pl->ob->start_holding = 0; |
pl->ob->spell_state = 1; | | pl->ob->spell_state = 1; |
} | | } |
#endif | | } |
do_some_living(pl->ob); | | do_some_living(pl->ob); |
/* draw(pl->ob);*/ /* updated in socket code */ | | /* draw(pl->ob);*/ /* updated in socket code */ |
} | | } |
| | |
if (was_destroyed (op, tag)) | | if (was_destroyed (op, tag)) |
continue; | | continue; |
} | | } |
| | if (settings.casting_time == TRUE && op->casting > 0) |
#ifdef CASTING_TIME | | |
if (op->casting > 0) | | |
op->casting--; | | op->casting--; |
#endif | | |
if (op->speed_left <= 0) | | if (op->speed_left <= 0) |
op->speed_left += FABS (op->speed); | | op->speed_left += FABS (op->speed); |
} | | } |