1 | /* |
1 | /* |
2 | * static char *rcsid_time_c = |
2 | * static char *rcsid_time_c = |
3 | * "$Id: time.C,v 1.1 2006/08/13 17:16:05 elmex Exp $"; |
3 | * "$Id: time.C,v 1.2 2006/08/26 23:36:34 root 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 | |
… | |
… | |
1212 | |
1212 | |
1213 | int process_object(object *op) { |
1213 | int process_object(object *op) { |
1214 | if (QUERY_FLAG(op, FLAG_IS_A_TEMPLATE)) |
1214 | if (QUERY_FLAG(op, FLAG_IS_A_TEMPLATE)) |
1215 | return 0; |
1215 | return 0; |
1216 | |
1216 | |
|
|
1217 | if (INVOKE_OBJECT (TICK, op)) |
|
|
1218 | return 0; |
|
|
1219 | |
1217 | if(QUERY_FLAG(op, FLAG_MONSTER)) |
1220 | if(QUERY_FLAG(op, FLAG_MONSTER)) |
1218 | if(move_monster(op) || QUERY_FLAG(op, FLAG_FREED)) |
1221 | if(move_monster(op) || QUERY_FLAG(op, FLAG_FREED)) |
1219 | return 1; |
1222 | return 1; |
1220 | |
1223 | |
1221 | if(QUERY_FLAG(op, FLAG_ANIMATE) && op->anim_speed==0) { |
1224 | if(QUERY_FLAG(op, FLAG_ANIMATE) && op->anim_speed==0) { |
… | |
… | |
1247 | make_sure_not_seen(op); |
1250 | make_sure_not_seen(op); |
1248 | free_object(op); |
1251 | free_object(op); |
1249 | } |
1252 | } |
1250 | return 1; |
1253 | return 1; |
1251 | } |
1254 | } |
1252 | /* Lauwenmark: Handle for plugin time event */ |
|
|
1253 | execute_event(op, EVENT_TIME,NULL,NULL,NULL,SCRIPT_FIX_NOTHING); |
|
|
1254 | switch(op->type) { |
1255 | switch(op->type) { |
1255 | case TRANSPORT: |
1256 | case TRANSPORT: |
1256 | /* Transports are directed by players - thus, their |
1257 | /* Transports are directed by players - thus, their |
1257 | * speed is reduced when the player moves them about. |
1258 | * speed is reduced when the player moves them about. |
1258 | * So give them back there speed here, since process_objects() |
1259 | * So give them back there speed here, since process_objects() |