forked from rosebudai/OpenRCT2-Web
Swap Duktape for quickjs-ng
Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com> Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
1 parent
69518538fd
commit
16cd1c07ff
143 files changed
+97493
-120975
No files matched your search
@@ -164,17 +164,22 @@ static constexpr float kWindowScrollLocations[][2] = {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006E77A1
|
||||
*/
|
||||
void WindowUpdateAll()
|
||||
void WindowCullDead()
|
||||
{
|
||||
// Remove all windows in gWindowList that have the WindowFlag::dead flag
|
||||
gWindowList.erase(
|
||||
std::remove_if(
|
||||
gWindowList.begin(), gWindowList.end(), [](auto&& w) -> bool { return w->flags.has(WindowFlag::dead); }),
|
||||
gWindowList.end());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006E77A1
|
||||
*/
|
||||
void WindowUpdateAll()
|
||||
{
|
||||
WindowCullDead();
|
||||
|
||||
// Periodic update happens every second so 40 ticks.
|
||||
if (gCurrentRealTimeTicks >= gWindowUpdateTicks)
|
||||
|
||||
Reference in new issue
Block a user