mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Removed compile warnings
This commit is contained in:
parent
d5b1c93598
commit
9b0b0eb98d
|
@ -337,9 +337,9 @@ function build(settings)
|
||||||
masterserver_exe = Link(server_settings, "mastersrv", masterserver,
|
masterserver_exe = Link(server_settings, "mastersrv", masterserver,
|
||||||
engine, zlib)
|
engine, zlib)
|
||||||
|
|
||||||
if platform == "macosx" then
|
--if platform == "macosx" then
|
||||||
osxlaunch_exe = Link(client_settings, "TeeLaunch", osxlaunch)
|
-- osxlaunch_exe = Link(client_settings, "TeeLaunch", osxlaunch)
|
||||||
end
|
--end
|
||||||
|
|
||||||
-- make targets
|
-- make targets
|
||||||
c = PseudoTarget("client".."_"..settings.config_name, client_exe)
|
c = PseudoTarget("client".."_"..settings.config_name, client_exe)
|
||||||
|
|
|
@ -10,7 +10,7 @@ class COMPONENT
|
||||||
protected:
|
protected:
|
||||||
GAMECLIENT *client;
|
GAMECLIENT *client;
|
||||||
public:
|
public:
|
||||||
~COMPONENT() {}
|
virtual ~COMPONENT() {}
|
||||||
|
|
||||||
virtual void on_statechange(int new_state, int old_state) {};
|
virtual void on_statechange(int new_state, int old_state) {};
|
||||||
virtual void on_console_init() {};
|
virtual void on_console_init() {};
|
||||||
|
|
|
@ -34,6 +34,10 @@ GAMECONTROLLER::GAMECONTROLLER()
|
||||||
num_spawn_points[2] = 0;
|
num_spawn_points[2] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GAMECONTROLLER::~GAMECONTROLLER()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
float GAMECONTROLLER::evaluate_spawn_pos(SPAWNEVAL *eval, vec2 pos)
|
float GAMECONTROLLER::evaluate_spawn_pos(SPAWNEVAL *eval, vec2 pos)
|
||||||
{
|
{
|
||||||
float score = 0.0f;
|
float score = 0.0f;
|
||||||
|
|
|
@ -54,6 +54,7 @@ public:
|
||||||
bool is_teamplay() const;
|
bool is_teamplay() const;
|
||||||
|
|
||||||
GAMECONTROLLER();
|
GAMECONTROLLER();
|
||||||
|
virtual ~GAMECONTROLLER();
|
||||||
|
|
||||||
void do_team_score_wincheck();
|
void do_team_score_wincheck();
|
||||||
void do_player_score_wincheck();
|
void do_player_score_wincheck();
|
||||||
|
|
Loading…
Reference in a new issue