1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 03:09:59 +00:00

CAP_HOLDKEYS guard added

This commit is contained in:
Zeno Rogue 2023-04-15 01:21:07 +02:00
parent a8b75c317a
commit 6a1601becf

View File

@ -1341,8 +1341,10 @@ EX void actDraw() {
physics(); physics();
drawRugScene(); drawRugScene();
#if CAP_HOLDKEYS
double alpha = (ticks - lastticks) / 1000.0; double alpha = (ticks - lastticks) / 1000.0;
lastticks = ticks; lastticks = ticks;
#endif
#if CAP_HOLDKEYS #if CAP_HOLDKEYS
const Uint8 *keystate = SDL12_GetKeyState(NULL); const Uint8 *keystate = SDL12_GetKeyState(NULL);