diff --git a/saco/game/common.h b/saco/game/common.h index 2fca1e0..a834de1 100644 --- a/saco/game/common.h +++ b/saco/game/common.h @@ -158,10 +158,10 @@ typedef struct _OBJECT_TYPE //----------------------------------------------------------- -#define TRAIN_PASSENGER_LOCO 537 -#define TRAIN_FREIGHT_LOCO 538 -#define TRAIN_PASSENGER 569 -#define TRAIN_FREIGHT 570 +#define TRAIN_PASSENGER_LOCO 538 +#define TRAIN_FREIGHT_LOCO 537 +#define TRAIN_PASSENGER 570 +#define TRAIN_FREIGHT 569 #define TRAIN_TRAM 449 #define HYDRA 520 diff --git a/saco/game/util.cpp b/saco/game/util.cpp index af6d876..9f15d13 100644 --- a/saco/game/util.cpp +++ b/saco/game/util.cpp @@ -1495,10 +1495,10 @@ BOOL __stdcall IsATrainPart(ENTITY_TYPE *pEntity) if(pEntity) { nModel = pEntity->nModelIndex; dwEntityModelIndex = pEntity->nModelIndex; - if(nModel == TRAIN_FREIGHT_LOCO) return TRUE; - if(nModel == TRAIN_FREIGHT) return TRUE; if(nModel == TRAIN_PASSENGER_LOCO) return TRUE; if(nModel == TRAIN_PASSENGER) return TRUE; + if(nModel == TRAIN_FREIGHT_LOCO) return TRUE; + if(nModel == TRAIN_FREIGHT) return TRUE; if(nModel == TRAIN_TRAM) return TRUE; } return FALSE;