1
0
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:
Zeno Rogue
2018-07-23 05:16:16 +02:00
parent ba92dd4b32
commit ce08ec2a1f
4 changed files with 14 additions and 15 deletions

View File

@@ -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;