1 | /* |
1 | /* |
2 | * static char *rcsid_time_c = |
2 | * static char *rcsid_time_c = |
3 | * "$Id: time.c,v 1.3 2006/02/22 18:53:56 elmex Exp $"; |
3 | * "$Id: time.c,v 1.4 2006/03/06 22:59:26 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 | |
… | |
… | |
1246 | } |
1246 | } |
1247 | /* Lauwenmark: Handle for plugin time event */ |
1247 | /* Lauwenmark: Handle for plugin time event */ |
1248 | execute_event(op, EVENT_TIME,NULL,NULL,NULL,SCRIPT_FIX_NOTHING); |
1248 | execute_event(op, EVENT_TIME,NULL,NULL,NULL,SCRIPT_FIX_NOTHING); |
1249 | switch(op->type) { |
1249 | switch(op->type) { |
1250 | case TRANSPORT: |
1250 | case TRANSPORT: |
1251 | /* Transports are directed by players - thus, there |
1251 | /* Transports are directed by players - thus, their |
1252 | * speed is reduced when the player moves them about. |
1252 | * speed is reduced when the player moves them about. |
1253 | * So give them back there speed here, since process_objects() |
1253 | * So give them back there speed here, since process_objects() |
1254 | * has decremented it. |
1254 | * has decremented it. |
1255 | */ |
1255 | */ |
1256 | if (op->speed_left < 0.0) op->speed_left += 1.0; |
1256 | if (op->speed_left < 0.0) op->speed_left += 1.0; |