timer support but there's a bug when saving & loading consecutively (without restart)

This commit is contained in:
Clément Le Bihan
2021-06-19 15:38:22 +02:00
parent 5c3c3555c9
commit 785e38c507
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);