(svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
This commit is contained in:
@@ -267,7 +267,7 @@ static CommandCost CheckRailSlope(Slope tileh, TrackBits rail_bits, TrackBits ex
|
||||
) return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION);
|
||||
|
||||
Foundation f_old = GetRailFoundation(tileh, existing);
|
||||
return CommandCost(f_new != f_old ? _price.terraform : 0);
|
||||
return CommandCost(f_new != f_old ? _price.terraform : (Money)0);
|
||||
}
|
||||
|
||||
/* Validate functions for rail building */
|
||||
|
Reference in New Issue
Block a user