src/engine.h
branchgamebalance
changeset 9913 e79cd19772dd
parent 9912 1ac8aac92385
equal deleted inserted replaced
9912:1ac8aac92385 9913:e79cd19772dd
   326  * @param old_engine The original engine type.
   326  * @param old_engine The original engine type.
   327  * @param new_engine The replacement engine type.
   327  * @param new_engine The replacement engine type.
   328  * @param flags The calling command flags.
   328  * @param flags The calling command flags.
   329  * @return 0 on success, CMD_ERROR on failure.
   329  * @return 0 on success, CMD_ERROR on failure.
   330  */
   330  */
   331 int32 AddEngineReplacement(EngineRenewList* erl, EngineID old_engine, EngineID new_engine, GroupID group, uint32 flags);
   331 CommandCost AddEngineReplacement(EngineRenewList* erl, EngineID old_engine, EngineID new_engine, GroupID group, uint32 flags);
   332 
   332 
   333 /**
   333 /**
   334  * Remove an engine replacement from a given renewlist.
   334  * Remove an engine replacement from a given renewlist.
   335  * @param erl The renewlist from which to remove the replacement
   335  * @param erl The renewlist from which to remove the replacement
   336  * @param engine The original engine type.
   336  * @param engine The original engine type.
   337  * @param flags The calling command flags.
   337  * @param flags The calling command flags.
   338  * @return 0 on success, CMD_ERROR on failure.
   338  * @return 0 on success, CMD_ERROR on failure.
   339  */
   339  */
   340 int32 RemoveEngineReplacement(EngineRenewList* erl, EngineID engine, GroupID group, uint32 flags);
   340 CommandCost RemoveEngineReplacement(EngineRenewList* erl, EngineID engine, GroupID group, uint32 flags);
   341 
   341 
   342 /** When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists
   342 /** When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists
   343  * @param type The type of engine
   343  * @param type The type of engine
   344  */
   344  */
   345 void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type);
   345 void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type);