comparison krapula.c @ 22:af6fad875a28

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 30 Sep 2012 19:12:32 +0300
parents ea93b1d5c894
children c9cd46294786
comparison
equal deleted inserted replaced
21:ea93b1d5c894 22:af6fad875a28
8 8
9 9
10 DMOptArg optList[] = 10 DMOptArg optList[] =
11 { 11 {
12 { 0, '?', "help", "Show this help", OPT_NONE }, 12 { 0, '?', "help", "Show this help", OPT_NONE },
13 { 2, 'v', "verbose", "Be more verbose", OPT_NONE }, 13 { 1, 'v', "verbose", "Be more verbose", OPT_NONE },
14 { 3, 'f', "fs", "Fullscreen", OPT_NONE }, 14 { 2, 'f', "fs", "Fullscreen", OPT_NONE },
15 }; 15 };
16 16
17 const int optListN = sizeof(optList) / sizeof(optList[0]); 17 const int optListN = sizeof(optList) / sizeof(optList[0]);
18 18
19 19
31 case 0: 31 case 0:
32 argShowHelp(); 32 argShowHelp();
33 exit(0); 33 exit(0);
34 break; 34 break;
35 35
36 case 2: 36 case 1:
37 dmVerbosity++; 37 dmVerbosity++;
38 break; 38 break;
39 39
40 case 3: 40 case 2:
41 engine.optVFlags |= SDL_FULLSCREEN; 41 engine.optVFlags |= SDL_FULLSCREEN;
42 break; 42 break;
43 43
44 default: 44 default:
45 dmError("Unknown option '%s'.\n", currArg); 45 dmError("Unknown option '%s'.\n", currArg);