mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
Fix: [Win32] run InteractiveRandom() once every tick, not once every message
Win32 was the only video driver doing this. It is just a bit too much random.
This commit is contained in:
parent
19fdbac287
commit
08821f82b6
@ -1165,8 +1165,9 @@ void VideoDriver_Win32::MainLoop()
|
|||||||
|
|
||||||
CheckPaletteAnim();
|
CheckPaletteAnim();
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
InteractiveRandom(); // randomness
|
||||||
|
|
||||||
while (PeekMessage(&mesg, nullptr, 0, 0, PM_REMOVE)) {
|
while (PeekMessage(&mesg, nullptr, 0, 0, PM_REMOVE)) {
|
||||||
InteractiveRandom(); // randomness
|
|
||||||
/* Convert key messages to char messages if we want text input. */
|
/* Convert key messages to char messages if we want text input. */
|
||||||
if (EditBoxInGlobalFocus()) TranslateMessage(&mesg);
|
if (EditBoxInGlobalFocus()) TranslateMessage(&mesg);
|
||||||
DispatchMessage(&mesg);
|
DispatchMessage(&mesg);
|
||||||
|
Loading…
Reference in New Issue
Block a user