mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-20 00:17:39 +00:00
added hooks_fixticks
This commit is contained in:
@@ -291,6 +291,8 @@ bool handleTune(int sym, int uni) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
purehookset hooks_fixticks;
|
||||||
|
|
||||||
void handleKeyNormal(int sym, int uni) {
|
void handleKeyNormal(int sym, int uni) {
|
||||||
|
|
||||||
@@ -440,6 +442,7 @@ void mainloopiter() {
|
|||||||
if(conformal::on) conformal::apply();
|
if(conformal::on) conformal::apply();
|
||||||
|
|
||||||
ticks = SDL_GetTicks();
|
ticks = SDL_GetTicks();
|
||||||
|
callhooks(hooks_fixticks);
|
||||||
|
|
||||||
int timetowait = lastt + 1000 / cframelimit - ticks;
|
int timetowait = lastt + 1000 / cframelimit - ticks;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user