1 | /* |
1 | /* |
2 | * static char *rcsid_main_c = |
2 | * static char *rcsid_main_c = |
3 | * "$Id: main.c,v 1.14 2006/07/31 09:49:55 root Exp $"; |
3 | * "$Id: main.c,v 1.15 2006/08/11 12:21:35 elmex Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
1089 | continue; |
1089 | continue; |
1090 | |
1090 | |
1091 | /* Animate the object. Bug of feature that andim_speed |
1091 | /* Animate the object. Bug of feature that andim_speed |
1092 | * is based on ticks, and not the creatures speed? |
1092 | * is based on ticks, and not the creatures speed? |
1093 | */ |
1093 | */ |
1094 | if (op->anim_speed && op->last_anim >= op->anim_speed) { |
1094 | if (op->anim_speed && op->last_anim >= op->anim_speed) |
|
|
1095 | { |
|
|
1096 | if ((op->type==PLAYER)||(op->type==MONSTER)) |
|
|
1097 | animate_object(op, op->facing); |
|
|
1098 | else |
1095 | animate_object (op, op->direction); |
1099 | animate_object (op, op->direction); |
|
|
1100 | |
1096 | op->last_anim = 1; |
1101 | op->last_anim = 1; |
1097 | } else { |
1102 | } |
|
|
1103 | else |
1098 | op->last_anim++; |
1104 | op->last_anim++; |
1099 | } |
|
|
1100 | |
1105 | |
1101 | if (op->speed_left > 0) { |
1106 | if (op->speed_left > 0) { |
1102 | #if 0 |
1107 | #if 0 |
1103 | /* I've seen occasional crashes in move_symptom() with it |
1108 | /* I've seen occasional crashes in move_symptom() with it |
1104 | * crashing because op is removed - add some debugging to |
1109 | * crashing because op is removed - add some debugging to |