Skip to content

Commit

Permalink
Fix time measurement of KeyInputProc (correct value is 10 per second, F…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Dec 5, 2015
1 parent bb1e269 commit 5e9e637
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/game_interpreter_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,8 +1546,10 @@ bool Game_Interpreter_Map::CommandKeyInputProc(RPG::EventCommand const& com) { /
if (result == 0)
return false;

if (time)
Game_Variables[time_id] = button_timer;
if (time) {
// 10 per second
Game_Variables[time_id] = (int)((float)button_timer / Graphics::GetDefaultFps() * 10);
}

button_timer = 0;

Expand Down

0 comments on commit 5e9e637

Please sign in to comment.