(svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local

player, resulting in an empty vehicle purchase list. Specify the player 
as an argument to IsEngineBuildable()
This commit is contained in:
2006-12-03 15:48:21 +00:00
parent 3f3a14d24b
commit e205c58ddc
8 changed files with 11 additions and 10 deletions

View File

@@ -137,7 +137,7 @@ void DrawAircraftEngine(int x, int y, EngineID engine, uint32 image_ormod);
void LoadCustomEngineNames(void);
void DeleteCustomEngineNames(void);
bool IsEngineBuildable(uint engine, byte type);
bool IsEngineBuildable(EngineID engine, byte type, PlayerID player);
enum {
NUM_NORMAL_RAIL_ENGINES = 54,