Cube  Diff

Differences From Artifact [c71213128a]:

To Artifact [ec0093549c]:


1
2
3
4
5

6
7
8
9
10
11
12
// clientgame.cpp: core game related stuff

#include "cube.h"

#import "DynamicEntity.h"


int nextmode = 0; // nextmode becomes gamemode after next map load
VAR(gamemode, 1, 0, 0);

void
mode(int n)
{





>







1
2
3
4
5
6
7
8
9
10
11
12
13
// clientgame.cpp: core game related stuff

#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);

void
mode(int n)
{
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
}

int sleepwait = 0;
static OFString *sleepcmd = nil;
void
sleepf(OFString *msec, OFString *cmd)
{
	sleepwait = msec.intValue + lastmillis;
	sleepcmd = cmd;
}
COMMANDN(sleep, sleepf, ARG_2STR)

void
updateworld(int millis) // main game update loop
{







|







235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
}

int sleepwait = 0;
static OFString *sleepcmd = nil;
void
sleepf(OFString *msec, OFString *cmd)
{
	sleepwait = msec.cube_intValue + lastmillis;
	sleepcmd = cmd;
}
COMMANDN(sleep, sleepf, ARG_2STR)

void
updateworld(int millis) // main game update loop
{