mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-20 05:58:33 +00:00
(svn r1812) [1117058] Use CT_WATER instead of CT_STEEL when accounting water which gets delivered to a town (worked because CT_STEEL and CT_WATER share the same enum number)
This commit is contained in:
parent
ccb80ab09d
commit
0b8876e946
@ -1234,7 +1234,7 @@ static int32 DeliverGoods(int num_pieces, byte cargo_type, uint16 source, uint16
|
||||
{
|
||||
Town *t = s_to->town;
|
||||
if (cargo_type == CT_FOOD) t->new_act_food += num_pieces;
|
||||
if (cargo_type == CT_STEEL) t->new_act_water += num_pieces;
|
||||
if (cargo_type == CT_WATER) t->new_act_water += num_pieces;
|
||||
}
|
||||
|
||||
// Give the goods to the industry.
|
||||
|
Loading…
Reference in New Issue
Block a user