Removed compile warnings

This commit is contained in:
Joel de Vahl 2008-10-02 14:44:35 +00:00
parent d5b1c93598
commit 9b0b0eb98d
4 changed files with 9 additions and 4 deletions

View file

@ -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)

View file

@ -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() {};

View file

@ -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;

View file

@ -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();