Fix stuff, help narnar

(The time to sleep for x ticks, is x * tick_lag not x / tick_lag)
This commit is contained in:
clusterfack
2015-12-14 03:02:42 -06:00
parent 9fdaeed0dd
commit a9c7b6bb7c

View File

@@ -145,7 +145,7 @@
#define CLAMP01(x) (Clamp(x, 0, 1))
//CPU lag shit
#define calculateticks(x) x / world.tick_lag // Converts your ticks to proper tenths.
#define calculateticks(x) x * world.tick_lag // Converts your ticks to proper tenths.
#define tcheck(CPU,TOSLEEP) if(world.cpu > CPU) sleep(calculateticks(TOSLEEP)) //Shorthand of checking and then sleeping a process based on world CPU
#define FOR_DVIEW(type, range, center, invis_flags) \