(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.

This commit is contained in:
rubidium
2007-06-18 19:53:50 +00:00
parent 3771d666c0
commit 49220cc6f1
37 changed files with 502 additions and 406 deletions

View File

@@ -272,7 +272,7 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3
YapfNotifyTrackLayoutChange(tile, AxisToTrack(axis));
}
return _price.build_train_depot;
return CommandCost(_price.build_train_depot);
}
/**
@@ -324,7 +324,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove)
YapfNotifyTrackLayoutChange(tile, track);
}
return _price.remove_train_depot;
return CommandCost(_price.remove_train_depot);
}
/**
@@ -382,7 +382,7 @@ CommandCost CmdRenameWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
MarkWholeScreenDirty();
}
}
return 0;
return CommandCost();
}
/**