TBTR: Fix spelling issues in comment and a method name.

This commit is contained in:
Jonathan G Rennison
2017-01-21 01:28:32 +00:00
parent 4800e47270
commit 285ba41699
4 changed files with 5 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ CommandCallback CcStartStopVehicle;
/* tbtr_template_gui_create.cpp */ /* tbtr_template_gui_create.cpp */
CommandCallback CcSetVirtualTrain; CommandCallback CcSetVirtualTrain;
CommandCallback CcVirtualTrainWaggonsMoved; CommandCallback CcVirtualTrainWagonsMoved;
CommandCallback CcDeleteVirtualTrain; CommandCallback CcDeleteVirtualTrain;
/* build_vehicle_gui.cpp */ /* build_vehicle_gui.cpp */

View File

@@ -52,7 +52,7 @@ static CommandCallback * const _callback_table[] = {
/* 0x1A */ CcGame, /* 0x1A */ CcGame,
/* 0x1B */ CcAddVehicleNewGroup, /* 0x1B */ CcAddVehicleNewGroup,
/* 0x1C */ CcSetVirtualTrain, /* 0x1C */ CcSetVirtualTrain,
/* 0x1D */ CcVirtualTrainWaggonsMoved, /* 0x1D */ CcVirtualTrainWagonsMoved,
/* 0x1E */ CcDeleteVirtualTrain, /* 0x1E */ CcDeleteVirtualTrain,
/* 0x1F */ CcAddVirtualEngine, /* 0x1F */ CcAddVirtualEngine,
}; };

View File

@@ -122,7 +122,7 @@ static void TrainDepotMoveVehicle(const Vehicle *wagon, VehicleID sel, const Veh
if (wagon == v) return; if (wagon == v) return;
DoCommandP(v->tile, v->index | ((_ctrl_pressed ? 1 : 0) << 20) | (1 << 21) , wagon == NULL ? INVALID_VEHICLE : wagon->index, DoCommandP(v->tile, v->index | ((_ctrl_pressed ? 1 : 0) << 20) | (1 << 21) , wagon == NULL ? INVALID_VEHICLE : wagon->index,
CMD_MOVE_RAIL_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_MOVE_VEHICLE), CcVirtualTrainWaggonsMoved); CMD_MOVE_RAIL_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_MOVE_VEHICLE), CcVirtualTrainWagonsMoved);
} }
class TemplateCreateWindow : public Window { class TemplateCreateWindow : public Window {
@@ -569,7 +569,7 @@ void CcSetVirtualTrain(const CommandCost &result, TileIndex tile, uint32 p1, uin
} }
} }
void CcVirtualTrainWaggonsMoved(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2) void CcVirtualTrainWagonsMoved(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2)
{ {
if (result.Failed()) return; if (result.Failed()) return;

View File

@@ -211,7 +211,7 @@ Train* DeleteVirtualTrain(Train *chain, Train *to_del) {
} }
} }
// retrieve template vehicle from templatereplacement that belongs to the given group // retrieve template vehicle from template replacement that belongs to the given group
TemplateVehicle* GetTemplateVehicleByGroupID(GroupID gid) { TemplateVehicle* GetTemplateVehicleByGroupID(GroupID gid) {
if (gid >= NEW_GROUP) return NULL; if (gid >= NEW_GROUP) return NULL;
TemplateReplacement *tr; TemplateReplacement *tr;