void Opcode80FC::_run() { int amount = _script->dataStack()->popInteger(); Logger::debug("SCRIPT") << "[80FC] [=] void game_time_advance(int amount)" << std::endl << " amount = " << amount << std::endl; auto time = Game::getInstance()->gameTime(); for (auto i = 0; i != amount; ++i) { time->increaseTicks(); } }
void Time::think() { if (SDL_GetTicks() - _timer < 100) return; _timer = SDL_GetTicks(); increaseTicks(); }