diff --git a/TODO.txt b/TODO.txt index 0c72ee5..601be97 100644 --- a/TODO.txt +++ b/TODO.txt @@ -38,13 +38,13 @@ fuck issue trackers :D =========== BUGS ================= -- sometimes after restart the timer shows not 0:0:0, but something like 0:0:033 - replay loading BUG! somehow map2 replay was saves with hash 05ef0ab1 instead of correct 3c5ba5dd once, WTF, check where hash gets modified =========== HANDLED ============== - should drifting make a sound? NO NEED +- sometimes after restart the timer shows not 0:0:0, but something like 0:0:033 - doxygen documentation - immediately after starting the map countdown seems to be lower (seems to perhaps be caused by nextPhysicsFrameTime, look into it) diff --git a/data b/data index a2b2d46..a347563 100644 --- a/data +++ b/data @@ -132,6 +132,7 @@ details :-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 #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 #RLCtiny3 00'12'342;00LCtiny3;df0bd8ce diff --git a/game.h b/game.h index 6fe3c3e..ba4f436 100644 --- a/game.h +++ b/game.h @@ -1283,9 +1283,9 @@ void LCR_gameDraw3DView(void) LCR_rendererDrawText(str,LCR_EFFECTIVE_RESOLUTION_X - // speed (bot., right) LCR_rendererComputeTextWidth(str,_FONT_SIZE) - LCR_GUI_GAP, LCR_EFFECTIVE_RESOLUTION_Y - LCR_rendererComputeTextHeight(_FONT_SIZE) - - LCR_GUI_GAP,0,_FONT_SIZE); + LCR_GUI_GAP,0,_FONT_SIZE); - LCR_gameTimeToStr(LCR_timeTicksToMS(LCR_game.runTime),str); + LCR_gameTimeToStr(LCR_game.runTime,str); if (LCR_game.state != LCR_GAME_STATE_RUN_FINISHED) LCR_rendererDrawText(str,LCR_GUI_GAP,LCR_EFFECTIVE_RESOLUTION_Y - @@ -1593,8 +1593,6 @@ uint8_t LCR_gameStep(uint32_t time) #endif uint32_t sleep = 0; - int paused = LCR_game.state == LCR_GAME_STATE_MENU || - LCR_game.state == LCR_GAME_STATE_RUN_STARTING; LCR_game.time = time; @@ -1624,12 +1622,14 @@ uint8_t LCR_gameStep(uint32_t time) else { LCR_gameHandleInput(); + + int paused = LCR_game.state == LCR_GAME_STATE_MENU || + LCR_game.state == LCR_GAME_STATE_RUN_STARTING; // handle simulation: while (time >= LCR_game.nextRacingTickTime) { LCR_LOG2("gonna step racing engine"); - unsigned int input = (LCR_game.cameraMode == LCR_CAMERA_MODE_FREE || LCR_game.state == LCR_GAME_STATE_RUN_FINISHED) ? 0 :