From 09fca459a7acd7c1b1e14712678a977d30a13297 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 4 Feb 2009 16:09:16 +0000 Subject: (svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command. --- src/settings_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/settings_gui.cpp') diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index e3d62622c..9cae1373f 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -275,7 +275,9 @@ struct GameOptionsWindow : Window { case GAMEOPT_ROADSIDE_BTN: // Road side if (this->opt->vehicle.road_side != index) { // only change if setting changed - DoCommandP(0, index, 0, CMD_SET_ROAD_DRIVE_SIDE | CMD_MSG(STR_00B4_CAN_T_DO_THIS)); + uint i; + if (GetPatchFromName("vehicle.road_side", &i) == NULL) NOT_REACHED(); + SetPatchValue(i, index); MarkWholeScreenDirty(); } break; -- cgit v1.2.3-54-g00ecf