mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
seperate rotation timeout
This commit is contained in:
@@ -49,6 +49,6 @@ int input_getdat(time_t time) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static time_t timeout = 0;
|
static time_t timeout = 0, timeout_roll = 0;
|
||||||
return movdat & (-!!time_poll(time, 64, &timeout));
|
return movdat & (((MOVR | MOVL | MOVD) & -!!time_poll(time, 64, &timeout)) | ((MOVRL | MOVRR) & -!!time_poll(time, 128, &timeout_roll)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user