1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 01:47:39 +00:00

moved more includes to sysconfig.h

This commit is contained in:
Zeno Rogue
2018-06-12 23:10:20 +02:00
parent 50eaba3efd
commit 56baba800b
10 changed files with 45 additions and 52 deletions

14
rug.cpp
View File

@@ -1007,20 +1007,6 @@ void addNewPoints() {
if(qvalid != oqvalid) { Xprintf("adding new points %4d %4d %4d %.9lf %9d %9d\n", oqvalid, qvalid, size(points), dist, dt, queueiter); }
}
#if !CAP_SDL
#include <stdlib.h>
#include <sys/time.h>
long long getVa() {
struct timeval tval;
gettimeofday(&tval, NULL);
return tval.tv_sec * 1000000 + tval.tv_usec;
}
int SDL_GetTicks() {
return getVa() / 1000;
}
#endif
void physics() {
if(good_shape) return;