move game to c++
This commit is contained in:
@@ -364,7 +364,7 @@ void Client::initialize(Arguments &arg) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
game_setup_explosion_callback(&game, explosion_callback, 0);
|
||||
game.setup_explosion_callback(explosion_callback, 0);
|
||||
setup_opengl();
|
||||
setup_explosion();
|
||||
quadratic = gluNewQuadric();
|
||||
@@ -372,8 +372,8 @@ void Client::initialize(Arguments &arg) {
|
||||
gluQuadricTexture(quadratic, GL_TRUE);
|
||||
|
||||
if (isMaster()) {
|
||||
team_t *team = game_team(&game, 0);
|
||||
game.local_player = game_spawn_player(&game, team);
|
||||
team_t *team = game.getTeam(0);
|
||||
game.local_player = game.spawn_player(team);
|
||||
}
|
||||
|
||||
size_t i;
|
||||
|
@@ -11,7 +11,6 @@
|
||||
#include "Application.h"
|
||||
#include "Schedule.h"
|
||||
#include "oglfont.h"
|
||||
#include "game.h"
|
||||
|
||||
class Client: public Application {
|
||||
public:
|
||||
|
Reference in New Issue
Block a user