Update from KeldorKatarn branch
This approximately corresponds to 971ba4928a5c7c7916fea55d91a3b6dd5bba140c, excluding the different virtual train build GUI, but including the basic changes to the original train build GUI for multiplayer to work. Fixup
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
struct TemplateVehicle;
|
||||
struct TemplateReplacement;
|
||||
|
||||
CommandCost CmdBuildTemplateVehicle(uint i, DoCommandFlag flags, uint p1, uint p2, char const* text);
|
||||
CommandCost CmdTemplateReplaceVehicle(uint i, DoCommandFlag flags, uint p1, uint p2, char const* text);
|
||||
typedef uint16 TemplateID;
|
||||
|
||||
|
||||
@@ -171,11 +169,11 @@ struct TemplateReplacement : TemplateReplacementPool::PoolItem<&_template_replac
|
||||
inline GroupID Group() { return this->group; }
|
||||
inline GroupID Template() { return this->sel_template; }
|
||||
|
||||
inline void SetGroup(GroupID gid) { this->group = gid; }
|
||||
inline void SetTemplate(TemplateID tid) { this->sel_template = tid; }
|
||||
inline void SetGroup(GroupID gid) { this->group = gid; }
|
||||
inline void SetTemplate(TemplateID tid) { this->sel_template = tid; }
|
||||
|
||||
inline TemplateID GetTemplateVehicleID() { return sel_template; }
|
||||
inline const TemplateVehicle* GetTemplateVehicle() {
|
||||
inline TemplateID GetTemplateVehicleID() { return sel_template; }
|
||||
inline const TemplateVehicle* GetTemplateVehicle() {
|
||||
const TemplateVehicle *tv;
|
||||
FOR_ALL_TEMPLATES(tv) {
|
||||
if ( tv->index == this->sel_template )
|
||||
|
||||
Reference in New Issue
Block a user