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.
9 years ago
Jonathan G Rennison
ce34225b0e
Merge branch 'house_placing' into jgrpp
9 years ago
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
9 years ago
patch-import
9dfdd8bce8
Import measurement patch
...
http://www.tt-forums.net/viewtopic.php?p=1086160#p1086160
9 years ago
alberth
67366cf03d
(svn r27346) -Feature: Make the object placement gui an independent window.
9 years ago
alberth
4f49d636c1
(svn r27346) -Feature: Make the object placement gui an independent window.
9 years ago
frosch
8767a11d60
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
10 years ago
frosch
a8080b6256
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
10 years ago
alberth
b67d483b46
(svn r27084) -Doc: Improve documentation of AllocateWindowDescFront.
10 years ago
alberth
edea2ce96d
(svn r27084) -Doc: Improve documentation of AllocateWindowDescFront.
10 years ago
peter1138
b46e61be63
(svn r26961) -Codechange: GUI-scale for landscape editor terraform window.
10 years ago
peter1138
a573b94867
(svn r26961) -Codechange: GUI-scale for landscape editor terraform window.
10 years ago
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
10 years ago
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
10 years ago
frosch
5c3b3f84d6
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
11 years ago
frosch
5370613924
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
11 years ago
frosch
173aed1687
(svn r25414) -Codechange: Move handling of global hotkeys to HotkeyList.
11 years ago
frosch
fef30983e6
(svn r25414) -Codechange: Move handling of global hotkeys to HotkeyList.
11 years ago
frosch
303aa2f473
(svn r25412) -Codechange: Make use of Window::OnHotkey
11 years ago
frosch
5cb174c6b8
(svn r25412) -Codechange: Make use of Window::OnHotkey
11 years ago
frosch
1565bb32a0
(svn r25410) -Codechange: Put all hotkeys of a window into a static HotkeyList member.
11 years ago
frosch
1b8b1f3f6c
(svn r25410) -Codechange: Put all hotkeys of a window into a static HotkeyList member.
11 years ago
frosch
55154f91b6
(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.
11 years ago
frosch
d9e9710cb3
(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.
11 years ago
frosch
fdd94f7601
(svn r25401) -Fix-ish: Add missing includes with prototypes to functions declared in the cpp file.
11 years ago
frosch
bb308c5e30
(svn r25401) -Fix-ish: Add missing includes with prototypes to functions declared in the cpp file.
11 years ago
frosch
16feb5c4e9
(svn r25290) -Add: Assign string names to notable windows.
11 years ago
frosch
8157a8afd8
(svn r25290) -Add: Assign string names to notable windows.
11 years ago
frosch
25adefca23
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
11 years ago
frosch
56e4a8c4d6
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
11 years ago
frosch
336a93a9d8
(svn r24846) -Add: Advanced settings to disable certain sound effects.
12 years ago
frosch
3ce8d2ce70
(svn r24846) -Add: Advanced settings to disable certain sound effects.
12 years ago
frosch
3b06409153
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
12 years ago
frosch
03736af2ae
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
12 years ago
frosch
88b8e43090
(svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the same functionality.
12 years ago
frosch
b998cbdff1
(svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the same functionality.
12 years ago
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.
12 years ago
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.
12 years ago
frosch
97608f0814
(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount()
12 years ago
frosch
c841a78f69
(svn r24167) -Codechange: Rename NewGRFClass::GetCount() to NewGRFClass::GetClassCount()
12 years ago
truebrain
e054cd36b9
(svn r23547) -Codechange: document and rename widgets to be consistent and understandable
13 years ago
truebrain
e2726ca3f1
(svn r23547) -Codechange: document and rename widgets to be consistent and understandable
13 years ago
truebrain
49e88dcbf0
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
13 years ago
truebrain
2aa774e831
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
13 years ago
rubidium
87272273b5
(svn r22405) -Document: some more "random-ish" tidbits
13 years ago
rubidium
1a515e6344
(svn r22405) -Document: some more "random-ish" tidbits
13 years ago
rubidium
cb2c7f871f
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
14 years ago
rubidium
bc3ce1e53b
(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.h
14 years ago
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.
14 years ago
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.
14 years ago
planetmaker
c778568f58
(svn r21929) -Fix [FS#4554]: The town window would not be invalidated in the scenario editor if the ground changed and thus the required cargos for town growth
14 years ago
planetmaker
df8c4bdbfa
(svn r21929) -Fix [FS#4554]: The town window would not be invalidated in the scenario editor if the ground changed and thus the required cargos for town growth
14 years ago
alberth
7d989073d4
(svn r21627) -Codechange: Remove _place_proc global variable.
14 years ago
alberth
852e647bcc
(svn r21627) -Codechange: Remove _place_proc global variable.
14 years ago
alberth
ee189815ec
(svn r21626) -Codechange: Remove more small static functions.
14 years ago
alberth
9a5cce382f
(svn r21626) -Codechange: Remove more small static functions.
14 years ago
alberth
eaf801e174
(svn r21625) -Codechange: Record last started highlight action, and use it in the callback methods.
14 years ago
alberth
62f2771edd
(svn r21625) -Codechange: Record last started highlight action, and use it in the callback methods.
14 years ago
alberth
94fbaf9384
(svn r21624) -Codechange: Remove many small static functions.
14 years ago
alberth
d28d469b7a
(svn r21624) -Codechange: Remove many small static functions.
14 years ago
alberth
8b44c50524
(svn r21623) -Codechange: Remove _terraform_button_proc and _editor_terraform_button_proc arrays.
14 years ago
alberth
d9405a0bcc
(svn r21623) -Codechange: Remove _terraform_button_proc and _editor_terraform_button_proc arrays.
14 years ago
alberth
d5d7a2d88f
(svn r21608) -Codechange: Move diagnonal rectangle dragging detection completely to tile highlighting.
14 years ago
alberth
90780fd25b
(svn r21608) -Codechange: Move diagnonal rectangle dragging detection completely to tile highlighting.
14 years ago
alberth
4caec07b7e
(svn r21539) -Fix [FS#4315]: Show 'plant trees' button lowering of terraform toolbar.
14 years ago
alberth
8626954fc3
(svn r21539) -Fix [FS#4315]: Show 'plant trees' button lowering of terraform toolbar.
14 years ago
rubidium
9128007a51
(svn r21501) -Fix (rnotlongago): guess what was complaining this time?
14 years ago
rubidium
20364bcefa
(svn r21501) -Fix (rnotlongago): guess what was complaining this time?
14 years ago
rubidium
d3bd44a9bc
(svn r21500) -Feature [FS#730]: diagonal tile clearing and terraforming. Based on patch by fonsinchen
14 years ago
rubidium
6892cc8a60
(svn r21500) -Feature [FS#730]: diagonal tile clearing and terraforming. Based on patch by fonsinchen
14 years ago
rubidium
99b0a9538e
(svn r21497) -Codechange: prepare the viewport selection mechanism for selecting diagonally
14 years ago
rubidium
959308a243
(svn r21497) -Codechange: prepare the viewport selection mechanism for selecting diagonally
14 years ago
rubidium
4f6c97ed0b
(svn r21493) -Codechange: don't use the full 32 bits of the level land command to tell whether to raise, lower or keep the level of the first selected tile
14 years ago
rubidium
b448b7c98d
(svn r21493) -Codechange: don't use the full 32 bits of the level land command to tell whether to raise, lower or keep the level of the first selected tile
14 years ago
rubidium
8d36f5a46d
(svn r21484) -Codechange: use TILE_AREA_LOOP in CommonRaiseLowerBigLand
14 years ago
rubidium
02451d8af6
(svn r21484) -Codechange: use TILE_AREA_LOOP in CommonRaiseLowerBigLand
14 years ago
alberth
0722492c1b
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
14 years ago
alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
14 years ago
rubidium
5ec2bcc0d9
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
14 years ago
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
14 years ago
rubidium
03c5a93809
(svn r20671) -Add: feature F (not action F as written mistakenly in the previous message) support for the scenario editor
14 years ago
rubidium
c862ab42c9
(svn r20671) -Add: feature F (not action F as written mistakenly in the previous message) support for the scenario editor
14 years ago
rubidium
0c509c7b48
(svn r20670) -Add: support for action F
...
-Add: a window to select (NewGRF) objects
14 years ago
rubidium
7b16c7650b
(svn r20670) -Add: support for action F
...
-Add: a window to select (NewGRF) objects
14 years ago
rubidium
360d6daf34
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
14 years ago
rubidium
1f2276b785
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
14 years ago
rubidium
3da3d131c6
(svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable.
14 years ago
rubidium
7fe695dc28
(svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command
14 years ago
rubidium
49cee72fa4
(svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command
14 years ago
terkhen
04134c1e51
(svn r20289) -Codechange: Unify fall through coding style.
14 years ago
terkhen
80c43f52e8
(svn r20289) -Codechange: Unify fall through coding style.
14 years ago
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
1c83b21e90
(svn r20282) -Codechange: add some spaces where they should've been
14 years ago
rubidium
4871baf44d
(svn r20282) -Codechange: add some spaces where they should've been
14 years ago
rubidium
8c85b4ce3d
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago