Fix small stuff
This commit is contained in:
parent
f7a24f2aa1
commit
0513b32540
4 changed files with 27 additions and 5 deletions
2
TODO.txt
2
TODO.txt
|
@ -2,6 +2,8 @@ fuck issue trackers :D
|
|||
|
||||
=========== GENERAL ==============
|
||||
|
||||
- make helper header for PC frontends that use stdio for data file, parse
|
||||
arguments etc.
|
||||
- frontends:
|
||||
- auto test frontend, with no I/O, that will just internally run a series of
|
||||
inputs and check if the output is as expected
|
||||
|
|
10
data
10
data
|
@ -131,8 +131,12 @@ details
|
|||
:]h0gI :}g0gI :|g1gI :f211 :|g3gI- :f211 :]g4gI- :f211 :;g0fJ :f251
|
||||
:-e5g :f413 :|g0hL
|
||||
:+018 :f213 :!v05 :f311
|
||||
#RLC1 00'15'147;00LC1;8bd6e314 0000459:0011:00c9:0061:01c9:0071:0039:0051:00d9:0061:0049:0031:0119:0071:0025:0041:00e9:0111:00b9:0051:0059:0021:0089:0021:0079:0051:03a5:0051:0253:0181:0103:0031:0103:0011:00c3:0021:0549:0041
|
||||
#RLC2 00'24'948;00LC2;3c5ba5dd 0000756:0001:0143:0021:01a9:0051:00b5:0031:01d9:0041:0069:0031:00c9:0041:0079:0021:01d3:0061:0063:0031:0073:0072:0043:0041:0033:0061:0243:0041:0189:0021:0129:0021:0133:0021:0085:0031:0053:0041:0033:0041:0043:00d1:02f9:0031:00c9:0031:00a3:0051:00f9:0061:00d9:0031:01d3:0101:0043:0041:0059:00a1:0093:0031:00b9:0031:00a3:00e7:0046:0092:0043:00d1:00f9:0031:0033:0031:0033:0051:0093:0051:00a9:0031:00a9:0041
|
||||
#RLC1 00'15'147;00LC1;8bd6e314 0000459:0001:00c9:0041:0039:0041:01c9:0071:0039:0051:0059:0011:0029:0051:0189:0061:0055:0021:0039:0161:0069:0051:0089:0041:0039:0041:0243:0041:02b5:0021:0123:0031:0073:0051:0023:0101:0083:0031:00a3:0031:00a9:0031:0569:0011:0059:0021:00d3:0021
|
||||
#RLC2 00'24'684;00LC2;3c5ba5dd 0000748:0001:00d3:0041:0209:0041:0095:0041:0059:01f1:01b9:0061:0029:0051:0143:0031:00b3:0091:0043:0051:00f3:0071:0053:0031:0033:0031:00a3:0041:01b9:0011:01a9:0011:0109:0041:0035:0031:0059:0031:0033:00f1:00c3:0091:0083:0021:0033:0031:0063:0041:0063:0021:00b9:0091:00a9:00d1:0069:0021:00c9:0041:0143:0101:0139:0021:0233:00a7:0035:0014:00a6:0041:0073:0072:0053:00f1:0079:0081:01b9:0041:0133:0031:00d9:0021:00c3:0011:0099:0031:0073:0031
|
||||
#RLC3 00'16'566;00LC3;cb1b38e6 0000502:0001:00b3:0031:00e9:0031:0104:0125:0031:0153:0071:0063:0031:0053:0021:0043:0051:0023:0031:0053:0071:0083:0041:0053:0031:0143:0071:0033:0061:00d9:01c1:0039:0041:0033:0021:0033:0051:0053:0061:0043:0021:00b3:0061:00c3:0081:0053:0021:00d3:0041:0133:00c1:0039:0091:0119:0031:0133:0031:01b5:0041
|
||||
#RLC4 00'25'773;00LC4;bcf27d79 0000781:0001:00f9:0221:0073:0051:00f9:0031:0099:0041:0059:0031:0353:0051:0099:0041:00a3:0051:00c9:0051:0053:0071:0043:0051:0043:00a1:00a3:0051:00c3:0031:0149:0081:00a3:0111:0049:0151:0083:00e1:0049:0041:0039:0011:0063:0031:00f3:0041:00d3:00a1:0099:0021:00f3:0041:0063:0031:04b5:0031:00c9:0011:00b9:0031:0083:0071:0023:0071:0043:0041:0049:0031:0153:0031:0243:0051:0089:0071:00c3:0031
|
||||
#RLC5 00'25'971;00LC5;90f26004 0000787:0001:0023:0071:0063:0031:0155:0031:0139:0031:01d9:0021:0179:0031:0064:006c:0038:0029:0171:0063:0091:0033:0061:00e9:0041:0029:0031:0093:0081:0079:0091:00a9:0051:0019:0061:0039:0031:0099:0031:0029:0041:0089:0041:0029:0031:0049:0031:0019:0071:0029:0031:0193:0031:00a3:0021:00d3:0051:0063:0021:0139:0068:001c:0070:0028:0059:00b1:0033:00d1:0043:0041:0043:0051:0319:00d1:0043:0051:0189:0061:0029:0031:0099:0031:00b5:0051:00c9:0051:0039:0051:0049:0061:0039:0041:0169:0051:0105:0031:01f3:0031:0053:0012:0076:0062:0043:0101:00b9:0021
|
||||
#RLCtiny2 00'05'181;00LCtiny2;833ee4b2 0000157:0011:0320:0034:00a0:00d4:00f0
|
||||
#RLCtiny1 00'12'276;00LCtiny1;ae1ab677 0000372:0001:02e9:0021:01e9:0051:00c9:0151:0073:0091:0059:0051:0073:0041:00a9:0031:0033:0031:0063:0031:0063:0021:0023:0087:0073:0131:0023:00a1:0069:0091:0103:0031:0205:0021:00b3:0091:0113:0021:00b9:0031:0053:0051:0039
|
||||
#RLCtiny2 00'05'181;00LCtiny2;833ee4b2 0000157:0011:0320:0034:00a0:00d4:00f0
|
||||
#RLCtiny3 00'11'880;00LCtiny3;df0bd8ce 0000360:0001:00c3:0031:00d3:0031:00e9:0031:00e9:0041:0069:0021:0059:0021:00c3:0041:0233:0041:0159:0251:0113:0031:01a3:0031:0143:0021:00a9:0021:00d3:0041:0253:0031:00a3:0041
|
||||
#RLCtiny4 00'05'280;00LCtiny4;f999f0ec 0000160:0003:01d1:0019:01f1:0119:0061:0109:0041:0209:0041
|
||||
|
|
|
@ -87,11 +87,27 @@ void LCR_log(const char *str)
|
|||
printf("LOG: %s\n",str);
|
||||
}
|
||||
|
||||
void printHelp(void)
|
||||
{
|
||||
printf(
|
||||
"Licar, 3D racing game, v. " LCR_VERSION ", X11 frontend, args:\n"
|
||||
" -h print help and quit\n"
|
||||
LCR_ARG_HELP_STR);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int running = 1;
|
||||
struct timeval now;
|
||||
|
||||
for (int i = 0; i < argc; ++i)
|
||||
if (argv[i][0] == '-')
|
||||
switch (argv[i][1])
|
||||
{
|
||||
case 'h': printHelp(); return 0; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
LCR_gameInit(argc,(const char **) argv);
|
||||
|
||||
Display *display = XOpenDisplay(0);
|
||||
|
|
4
game.h
4
game.h
|
@ -1251,7 +1251,7 @@ void LCR_gameDraw3DView(void)
|
|||
|
||||
LCR_rendererSetCarTransform(carTransform,carTransform + 3);
|
||||
|
||||
if (LCR_game.ghost.active)
|
||||
if (LCR_game.ghost.active && LCR_game.state != LCR_GAME_STATE_RUN_STARTING)
|
||||
{
|
||||
LCR_rendererSetGhostVisibility(1);
|
||||
LCR_gameGhostGetTransform(LCR_racing.tick,carTransform,carTransform + 3);
|
||||
|
@ -1312,7 +1312,7 @@ void LCR_gameDraw3DView(void)
|
|||
(LCR_rendererComputeTextHeight(_FONT_SIZE) + LCR_GUI_GAP),0,_FONT_SIZE);
|
||||
#endif
|
||||
|
||||
LCR_gameTimeToStr(LCR_game.runTime,str);
|
||||
LCR_gameTimeToStr(LCR_game.runTime * LCR_RACING_TICK_MS,str);
|
||||
|
||||
if (LCR_game.state != LCR_GAME_STATE_RUN_FINISHED)
|
||||
LCR_rendererDrawText(str,LCR_GUI_GAP,LCR_EFFECTIVE_RESOLUTION_Y -
|
||||
|
|
Loading…
Reference in a new issue