summaryrefslogtreecommitdiff
path: root/src/newgrf_debug_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-08 17:23:30 +0000
committerfrosch <frosch@openttd.org>2011-11-08 17:23:30 +0000
commit1ad7239247e1bc3c7f018c98830ee59cdb9acaaa (patch)
tree2e102af21539df1315d17e79145b90c91638d932 /src/newgrf_debug_gui.cpp
parentf97fa89f1a649ae3dc8f6d0c5d9b70d69b0840d9 (diff)
downloadopenttd-1ad7239247e1bc3c7f018c98830ee59cdb9acaaa.tar.xz
(svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60.
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r--src/newgrf_debug_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp
index 4bd32f337..f1d628712 100644
--- a/src/newgrf_debug_gui.cpp
+++ b/src/newgrf_debug_gui.cpp
@@ -291,7 +291,7 @@ struct NewGRFInspectWindow : Window {
static const int BOTTOM_OFFSET = 5; ///< Position of bottom edge
/** The value for the variable 60 parameters. */
- static byte var60params[GSF_FAKE_END][0x20];
+ static uint32 var60params[GSF_FAKE_END][0x20];
/** GRFID of the caller of this window, 0 if it has no caller. */
uint32 caller_grfid;
@@ -497,7 +497,7 @@ struct NewGRFInspectWindow : Window {
if (!HasVariableParameter(niv->var)) break;
this->current_edit_param = niv->var;
- ShowQueryString(STR_EMPTY, STR_NEWGRF_INSPECT_QUERY_CAPTION, 3, this, CS_HEXADECIMAL, QSF_NONE);
+ ShowQueryString(STR_EMPTY, STR_NEWGRF_INSPECT_QUERY_CAPTION, 9, this, CS_HEXADECIMAL, QSF_NONE);
}
}
}
@@ -517,7 +517,7 @@ struct NewGRFInspectWindow : Window {
}
};
-/* static */ byte NewGRFInspectWindow::var60params[GSF_FAKE_END][0x20] = { {0} }; // Use spec to have 0s in whole array
+/* static */ uint32 NewGRFInspectWindow::var60params[GSF_FAKE_END][0x20] = { {0} }; // Use spec to have 0s in whole array
static const NWidgetPart _nested_newgrf_inspect_widgets[] = {
NWidget(NWID_HORIZONTAL),