(svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command.

This commit is contained in:
rubidium
2009-02-04 16:09:16 +00:00
parent 496b541cb1
commit 09fca459a7
5 changed files with 15 additions and 32 deletions

View File

@@ -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;