mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-24 14:36:02 +00:00
improved SDL_GetTicks without SDL, and getticks() replaced with it
This commit is contained in:
4
init.cpp
4
init.cpp
@@ -223,8 +223,6 @@ void handleclick(MOBPAR_FORMAL) {
|
||||
|
||||
int touchedAt;
|
||||
|
||||
int getticks();
|
||||
|
||||
#if CAP_ANDROIDSHARE
|
||||
void shareScore(MOBPAR_FORMAL);
|
||||
#endif
|
||||
@@ -233,7 +231,7 @@ void mobile_draw(MOBPAR_FORMAL) {
|
||||
|
||||
optimizeview();
|
||||
|
||||
int lastt = ticks; ticks = getticks();
|
||||
int lastt = ticks; ticks = SDL_GetTicks();
|
||||
if(lastt > ticks) lastt = ticks;
|
||||
int tdiff = ticks - lastt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user