Don't let trains load trains

Doesn't affect the stock game, because its only train is heavy.
This commit is contained in:
Markus Armbruster 2008-04-18 21:26:15 +02:00
parent aab015c641
commit b1a0ff2fbd
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ the unit can fire 'general unit flak' (see "info Flak")
.L spy .L spy
the unit is a spy the unit is a spy
.L train .L train
the unit is a train the unit is a train, and can't be loaded on land units
.L heavy .L heavy
the unit cannot be carried on land units or ships, not even supply ships the unit cannot be carried on land units or ships, not even supply ships
.in .in

View file

@ -985,7 +985,7 @@ load_land_land(struct sctstr *sectp, struct lndstr *lp, int noisy,
pr("%s can't be loaded onto itself!\n", prland(&land)); pr("%s can't be loaded onto itself!\n", prland(&land));
continue; continue;
} }
if (lchr[(int)land.lnd_type].l_flags & L_HEAVY) { if (lchr[(int)land.lnd_type].l_flags & (L_HEAVY | L_TRAIN)) {
if (noisy) if (noisy)
pr("%s is too heavy to load.\n", prland(&land)); pr("%s is too heavy to load.\n", prland(&land));
continue; continue;