mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
(svn r23123) -Fix [FS#4790] (r22792): variable was initialised at the wrong moment making things with the cursor go wrong
This commit is contained in:
parent
18d1345d1c
commit
1f823f89a1
@ -400,7 +400,6 @@ struct AfterNewGRFScan : NewGRFScanCallback {
|
|||||||
|
|
||||||
/* initialize the ingame console */
|
/* initialize the ingame console */
|
||||||
IConsoleInit();
|
IConsoleInit();
|
||||||
_cursor.in_window = true;
|
|
||||||
InitializeGUI();
|
InitializeGUI();
|
||||||
IConsoleCmdExec("exec scripts/autoexec.scr 0");
|
IConsoleCmdExec("exec scripts/autoexec.scr 0");
|
||||||
|
|
||||||
@ -667,6 +666,12 @@ int ttd_main(int argc, char *argv[])
|
|||||||
_cur_resolution.width = ClampU(_cur_resolution.width, 1, UINT16_MAX / 2);
|
_cur_resolution.width = ClampU(_cur_resolution.width, 1, UINT16_MAX / 2);
|
||||||
_cur_resolution.height = ClampU(_cur_resolution.height, 1, UINT16_MAX / 2);
|
_cur_resolution.height = ClampU(_cur_resolution.height, 1, UINT16_MAX / 2);
|
||||||
|
|
||||||
|
/* Assume the cursor starts within the game as not all video drivers
|
||||||
|
* get an event that the cursor is within the window when it is opened.
|
||||||
|
* Saying the cursor is there makes no visible difference as it would
|
||||||
|
* just be out of the bounds of the window. */
|
||||||
|
_cursor.in_window = true;
|
||||||
|
|
||||||
/* enumerate language files */
|
/* enumerate language files */
|
||||||
InitializeLanguagePacks();
|
InitializeLanguagePacks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user