diff options
author | Stijn Buys <ingar@osirion.org> | 2008-04-09 19:38:25 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-04-09 19:38:25 +0000 |
commit | 644479214119760394db18ec2488917ffb3a6c54 (patch) | |
tree | 0a485803e2c4f1a989fc1c444192ee3b3b2f3814 /src/client | |
parent | 7a887f128d4da086ca7562779df5cefe53186aeb (diff) |
parse command line arguments
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/camera.cc | 2 | ||||
-rw-r--r-- | src/client/client.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/client/camera.cc b/src/client/camera.cc index c7982f4..754cbad 100644 --- a/src/client/camera.cc +++ b/src/client/camera.cc @@ -54,7 +54,7 @@ float x_offset; float z_offset; // default pitch in mode::Track -const float pitch_track = 15.0f; +const float pitch_track = 0.0f; // 15.0f; // default rotate offset increase/decrease float rotate_offset_inc; // default translate offset increase/decrease diff --git a/src/client/client.cc b/src/client/client.cc index ab27d0f..2079c71 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -31,7 +31,7 @@ class Client : public core::Application { public: /// initialize the client Client - virtual void init(); + virtual void init(int count, char **arguments); /// run the client Client virtual void run(); @@ -68,7 +68,7 @@ void client_main(int count, char **arguments) std::cout << arguments[i] << " "; std::cout << std::endl; - app.init(); + app.init(count, arguments); app.run(); app.shutdown(); } @@ -81,13 +81,13 @@ void Client::quit(int status) core::Application::quit(status); } -void Client::init() +void Client::init(int count, char **arguments) { con_print << "Initializing client..." << std::endl; // initialize core core::Cvar::sv_dedicated = core::Cvar::set("sv_private", "0"); - core::Application::init(); + core::Application::init(count, arguments); // client variables core::Cvar *cvar = 0; |