[ChatCommandHandler] '/time add <value>' now allows negative values.

This commit is contained in:
Quentin Bazin 2020-07-20 21:30:00 +02:00
parent f4be71c731
commit 55d2bdab72

View File

@ -157,7 +157,7 @@ void ChatCommandHandler::timeCommand(const std::vector<std::string> &command, Cl
}
else if (command.at(1) == "add") {
try {
u64 ticks = std::stoull(command.at(2));
s64 ticks = std::stoll(command.at(2));
GameTime::setTicks(GameTime::getTicks() + ticks);