mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 11:29:10 +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:
committed by
Patric Stout
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);
|
||||||
|
Reference in New Issue
Block a user