Be more tolerant of invalid arguments
FossilOrigin-Name: d2f07d884a4f4319ff687e085c3233e210ee05b46a2675ecd757a261e6f19e6e
This commit is contained in:
parent
f1968ce5af
commit
38747afbb5
12 changed files with 112 additions and 88 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "cube.h"
|
||||
|
||||
#import "DynamicEntity.h"
|
||||
#import "OFString+Cube.h"
|
||||
|
||||
int nextmode = 0; // nextmode becomes gamemode after next map load
|
||||
VAR(gamemode, 1, 0, 0);
|
||||
|
@ -238,7 +239,7 @@ static OFString *sleepcmd = nil;
|
|||
void
|
||||
sleepf(OFString *msec, OFString *cmd)
|
||||
{
|
||||
sleepwait = msec.intValue + lastmillis;
|
||||
sleepwait = msec.cube_intValue + lastmillis;
|
||||
sleepcmd = cmd;
|
||||
}
|
||||
COMMANDN(sleep, sleepf, ARG_2STR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue