1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// clientgame.cpp: core game related stuff
#include "cube.h"
#import "Command.h"
#import "DynamicEntity.h"
#import "Entity.h"
#import "Monster.h"
#import "OFString+Cube.h"
#import "Player.h"
int nextmode = 0; // nextmode becomes gamemode after next map load
VAR(gamemode, 1, 0, 0);
COMMAND(mode, ARG_1INT, ^(int n) {
addmsg(1, 2, SV_GAMEMODE, nextmode = n);
})
|
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// clientgame.cpp: core game related stuff
#include "cube.h"
#import "Command.h"
#import "DynamicEntity.h"
#import "Entity.h"
#import "Monster.h"
#import "OFString+Cube.h"
#import "Player.h"
#import "Variable.h"
int nextmode = 0; // nextmode becomes gamemode after next map load
VAR(gamemode, 1, 0, 0);
COMMAND(mode, ARG_1INT, ^(int n) {
addmsg(1, 2, SV_GAMEMODE, nextmode = n);
})
|