mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 09:45:42 +00:00
timer support but there's a bug when saving & loading consecutively (without restart)
This commit is contained in:
@@ -239,7 +239,7 @@ namespace BBM {
|
||||
Runner::mapHeight = size;
|
||||
long timer = 0;
|
||||
if (!Utils::tryParseLong(node.getProperty("timer"), timer)) {
|
||||
throw ParserError("timer property parsing error (must be a long)");
|
||||
throw ParserError("timer property must be a long");
|
||||
}
|
||||
Runner::timerDelay = std::chrono::nanoseconds(timer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user