[saco] Match IsATrainPart(...)

This commit is contained in:
RD42 committed 2024-08-02 22:44:47 +08:00
1 parent c9d437f4ed
commit a7f6b48efb
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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;