forked from mirror/OpenTTD
(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.
This commit is contained in:
@@ -171,6 +171,8 @@ int32 CmdBuildLock(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||
uint tile = TILE_FROM_XY(x,y);
|
||||
int32 ret;
|
||||
uint th;
|
||||
|
||||
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
|
||||
th = GetTileSlope(tile, NULL);
|
||||
|
||||
if (th==3 || th==6 || th==9 || th==12) {
|
||||
|
Reference in New Issue
Block a user