Jonathan G Rennison
af85ccbbc3
Fix crash when opening object picker window.
...
SELGW = ScenarioEditorLandscapeGenerationWindow
Crash is triggered by the following:
1. SELGW has a OnPlaceObject active (e.g. raise/lower land).
2. SELGW button is clicked to open BuildObjectWindow
3. BuildObjectWindow constructor calls ResetObjectToPlace
4: SELGW::OnPlaceObjectAbort is called
5: DeleteWindowById(WC_BUILD_OBJECT, 0) is called
6: BuildObjectWindow is freed whilst its constructor is executing
7: Crash occurs either through access to this->vscroll
or during the dynamic_cast to get widget: WID_BO_SELECT_MATRIX.
The use-after-free was caught by AddressSanitizer.
2015-09-09 19:24:13 +01:00
Jonathan G Rennison
ce34225b0e
Merge branch 'house_placing' into jgrpp
2015-08-03 21:29:22 +01:00
patch-import
19dcbb1cb9
Import Picking and placing single houses in scenario editor patch
...
Minor whitespace fixes
http://www.tt-forums.net/viewtopic.php?f=33&t=68894&view=unread#p1099696
2015-08-03 21:29:13 +01:00
patch-import
9dfdd8bce8
Import measurement patch
...
http://www.tt-forums.net/viewtopic.php?p=1086160#p1086160
2015-08-02 21:04:46 +01:00
alberth
67366cf03d
(svn r27346) -Feature: Make the object placement gui an independent window.
2015-07-28 18:20:54 +00:00
alberth
4f49d636c1
(svn r27346) -Feature: Make the object placement gui an independent window.
2015-07-28 18:20:54 +00:00
frosch
8767a11d60
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
2015-02-01 20:54:24 +00:00
frosch
a8080b6256
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
2015-02-01 20:54:24 +00:00
alberth
b67d483b46
(svn r27084) -Doc: Improve documentation of AllocateWindowDescFront.
2014-12-18 16:50:11 +00:00
alberth
edea2ce96d
(svn r27084) -Doc: Improve documentation of AllocateWindowDescFront.
2014-12-18 16:50:11 +00:00
peter1138
b46e61be63
(svn r26961) -Codechange: GUI-scale for landscape editor terraform window.
2014-10-05 14:01:44 +00:00
peter1138
a573b94867
(svn r26961) -Codechange: GUI-scale for landscape editor terraform window.
2014-10-05 14:01:44 +00:00
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
frosch
5c3b3f84d6
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
2014-03-23 13:28:32 +00:00
frosch
5370613924
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
2014-03-23 13:28:32 +00:00
frosch
173aed1687
(svn r25414) -Codechange: Move handling of global hotkeys to HotkeyList.
2013-06-15 15:31:22 +00:00
frosch
fef30983e6
(svn r25414) -Codechange: Move handling of global hotkeys to HotkeyList.
2013-06-15 15:31:22 +00:00
frosch
303aa2f473
(svn r25412) -Codechange: Make use of Window::OnHotkey
2013-06-15 15:30:44 +00:00
frosch
5cb174c6b8
(svn r25412) -Codechange: Make use of Window::OnHotkey
2013-06-15 15:30:44 +00:00
frosch
1565bb32a0
(svn r25410) -Codechange: Put all hotkeys of a window into a static HotkeyList member.
2013-06-15 15:28:09 +00:00
frosch
1b8b1f3f6c
(svn r25410) -Codechange: Put all hotkeys of a window into a static HotkeyList member.
2013-06-15 15:28:09 +00:00
frosch
55154f91b6
(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.
2013-06-15 15:27:33 +00:00
frosch
d9e9710cb3
(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.
2013-06-15 15:27:33 +00:00
frosch
fdd94f7601
(svn r25401) -Fix-ish: Add missing includes with prototypes to functions declared in the cpp file.
2013-06-15 15:05:54 +00:00
frosch
bb308c5e30
(svn r25401) -Fix-ish: Add missing includes with prototypes to functions declared in the cpp file.
2013-06-15 15:05:54 +00:00
frosch
16feb5c4e9
(svn r25290) -Add: Assign string names to notable windows.
2013-05-26 19:25:01 +00:00
frosch
8157a8afd8
(svn r25290) -Add: Assign string names to notable windows.
2013-05-26 19:25:01 +00:00
frosch
25adefca23
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
2013-05-26 19:23:42 +00:00
frosch
56e4a8c4d6
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
2013-05-26 19:23:42 +00:00
frosch
336a93a9d8
(svn r24846) -Add: Advanced settings to disable certain sound effects.
2012-12-23 21:09:09 +00:00
frosch
3ce8d2ce70
(svn r24846) -Add: Advanced settings to disable certain sound effects.
2012-12-23 21:09:09 +00:00
frosch
3b06409153
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
2012-11-11 16:10:43 +00:00
frosch
03736af2ae
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
2012-11-11 16:10:43 +00:00
frosch
88b8e43090
(svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the same functionality.
2012-11-11 16:07:46 +00:00
frosch
b998cbdff1
(svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the same functionality.
2012-11-11 16:07:46 +00:00
frosch
6e471388e4
(svn r24171) -Fix [FS#4967, FS#5120]: Hide object specs/classes from the GUI, if they will never be available to the user.
2012-04-22 16:28:37 +00:00
frosch
971b3b5fa5
(svn r24171) -Fix [FS#4967, FS#5120]: Hide object specs/classes from the GUI, if they will never be available to the user.
2012-04-22 16:28:37 +00:00
frosch
97608f0814
(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount()
2012-04-22 16:28:19 +00:00
frosch
c841a78f69
(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount()
2012-04-22 16:28:19 +00:00
truebrain
e054cd36b9
(svn r23547) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 18:21:13 +00:00
truebrain
e2726ca3f1
(svn r23547) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 18:21:13 +00:00
truebrain
49e88dcbf0
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
2011-12-15 22:22:55 +00:00
truebrain
2aa774e831
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
2011-12-15 22:22:55 +00:00
rubidium
87272273b5
(svn r22405) -Document: some more "random-ish" tidbits
2011-05-01 19:14:12 +00:00
rubidium
1a515e6344
(svn r22405) -Document: some more "random-ish" tidbits
2011-05-01 19:14:12 +00:00
rubidium
cb2c7f871f
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
2011-02-07 22:37:22 +00:00
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
2011-02-07 22:37:22 +00:00
frosch
447f3dbe2c
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
2011-02-05 16:07:23 +00:00
frosch
915e339d0f
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
2011-02-05 16:07:23 +00:00