diff src/station_cmd.cpp @ 6039:d9b8ee9baa74 draft

(svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code.
author rubidium <rubidium@openttd.org>
date Fri, 16 Feb 2007 22:44:56 +0000
parents 3f513357d37f
children 1342ec694693
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1276,6 +1276,8 @@
 	if (!(flags & DC_NO_TOWN_RATING) && !CheckIfAuthorityAllows(tile))
 		return CMD_ERROR;
 
+	if (build_over_road) flags ^= DC_AUTO;
+
 	if (build_over_road && IsTileOwner(tile, OWNER_TOWN)) _current_player = OWNER_TOWN;
 	ret = CheckFlatLandBelow(tile, 1, 1, flags, is_drive_through ? 5 << p1 : 1 << p1, NULL);
 	_current_player = cur_owner;