engine.c
changeset 205 49e96fd94d63
parent 193 0a7025304867
child 220 dc1710f96b39
equal deleted inserted replaced
204:1646d7049950 205:49e96fd94d63
     5 #include "player.h"
     5 #include "player.h"
     6 #include "command.h"
     6 #include "command.h"
     7 #include "vehicle.h"
     7 #include "vehicle.h"
     8 #include "news.h"
     8 #include "news.h"
     9 #include "saveload.h"
     9 #include "saveload.h"
       
    10 #include "console.h"
    10 
    11 
    11 #define UPDATE_PLAYER_RAILTYPE(e,p) if ((byte)(e->railtype + 1) > p->max_railtype) p->max_railtype = e->railtype + 1;
    12 #define UPDATE_PLAYER_RAILTYPE(e,p) if ((byte)(e->railtype + 1) > p->max_railtype) p->max_railtype = e->railtype + 1;
    12 
    13 
    13 enum {
    14 enum {
    14 	ENGINE_AVAILABLE = 1,
    15 	ENGINE_AVAILABLE = 1,
   162 	}
   163 	}
   163 
   164 
   164 	AdjustAvailAircraft();
   165 	AdjustAvailAircraft();
   165 }
   166 }
   166 
   167 
       
   168 _iconsole_var * IConsoleResetEngines(byte argc, byte* argv[], byte argt[]) {StartupEngines(); return 0;}
   167 
   169 
   168 uint32 _engine_refit_masks[256];
   170 uint32 _engine_refit_masks[256];
   169 
   171 
   170 
   172 
   171 // TODO: We don't support cargo-specific wagon overrides. Pretty exotic... ;-) --pasky
   173 // TODO: We don't support cargo-specific wagon overrides. Pretty exotic... ;-) --pasky