mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Close #11437: Migrate old platform methods
This commit is contained in:
committed by
GitHub
parent
b424682934
commit
5edc561715
@@ -22,7 +22,7 @@
|
||||
# include "../core/FileScanner.h"
|
||||
# include "../core/Path.hpp"
|
||||
# include "../interface/InteractiveConsole.h"
|
||||
# include "../platform/Platform2.h"
|
||||
# include "../platform/Platform.h"
|
||||
# include "Duktape.hpp"
|
||||
# include "bindings/entity/ScEntity.hpp"
|
||||
# include "bindings/entity/ScGuest.hpp"
|
||||
@@ -1290,7 +1290,7 @@ void ScriptEngine::RemoveInterval(const std::shared_ptr<Plugin>& plugin, Interva
|
||||
|
||||
void ScriptEngine::UpdateIntervals()
|
||||
{
|
||||
uint32_t timestamp = platform_get_ticks();
|
||||
uint32_t timestamp = Platform::GetTicks();
|
||||
if (timestamp < _lastIntervalTimestamp)
|
||||
{
|
||||
// timestamp has wrapped, subtract all intervals by the remaining amount before wrap
|
||||
|
||||
Reference in New Issue
Block a user