aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-23 16:37:47 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-23 16:37:47 +0000
commitc77468a0306b63cef0f5dc8293fb8142479df9c1 (patch)
tree8b7562c6b8d151523cd16eab6750c32d11191f0a /src/main.c
parent5893f7a7f453b4c59d448370b3d8fd009fb82b3d (diff)
Game debug information
General fussiness git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@158 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 7b022fd..3f97c64 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,6 +57,7 @@ int main(int argc, char *argv[]) {
gameopts.disable_fbos = 0;
gameopts.disable_shaders = 0;
gameopts.audio_debug = 0;
+ gameopts.game_debug = 0;
gameopts.no_music = 0;
const struct option longopts[] = { {"fullscreen", 0, NULL, 'f'},
@@ -67,6 +68,7 @@ int main(int argc, char *argv[]) {
{"disable-fbos", 0, &gameopts.disable_fbos, 1},
{"disable-shaders", 0, &gameopts.disable_shaders, 1},
{"audio-debug", 0, &gameopts.audio_debug, 1},
+ {"game-debug", 0, &gameopts.game_debug, 1},
{"no-music", 0, NULL, 'n'},
{0, 0, NULL, 0} };
@@ -114,14 +116,17 @@ int main(int argc, char *argv[]) {
printf("Post-apocalyptic Jet Set Willy, set in a 3D nuclear power station.\n\n");
printf(" -h, --help Display this help message and exit.\n");
printf(" -v, --version Display version number and exit.\n");
- printf(" -r, --resolution <res> Set display resolution. See below for possible values for <res>.\n");
+ printf(" -r, --resolution <res> Set display resolution. "
+ "See below for possible values for <res>.\n");
printf(" -f, --fullscreen Use the full screen.\n");
printf(" -n, --no-music Don't play any background music.\n");
printf("\nAdvanced options:\n\n");
printf(" --disable-vbos Disable the use of vertex buffer objects.\n");
printf(" --disable-fbos Disable the use of framebuffer objects.\n");
printf(" --disable-shaders Disable the use of shaders.\n");
- printf(" --audio-debug Print audio debugging messages to stdout.\n\n");
+ printf(" --audio-debug Print audio debugging messages to stdout.\n");
+ printf(" --game-debug Print game control debugging messages to stdout.\n");
+ printf("\n");
printf("Allowable values for <res> are as follows:\n\n");
printf("<res> Width Height\n");
printf(" 640 - 640 x 480\n");
@@ -229,9 +234,9 @@ int main(int argc, char *argv[]) {
}
//printf("%+7.4f %+7.4f %+7.4f %+5.1f deg %+7.5f %+7.5f %+7.5f %2i %2i %2i %3i fps\r",
- // game->lander->x, game->lander->y, game->lander->z,
- // rad2deg(game->lander->yaw), game->lander->vx, game->lander->vy, game->lander->vz,
- // game->cur_room_x, game->cur_room_y, game->cur_room_z, game->fps);
+ // game->lander->x, game->lander->y, game->lander->z,
+ // rad2deg(game->lander->yaw), game->lander->vx, game->lander->vy, game->lander->vz,
+ // game->cur_room_x, game->cur_room_y, game->cur_room_z, game->fps);
//fflush(stdout);
/* Calculate FPS every half a second */