(svn r2173) -Fix: [ 1179380 ] Rail now builds on reserved land. Cause by the problem that CMD_ERROR is just the highest bit of the return value, but CMD_CLEAR_LANDSCAPE returns a negative value for owned land. So the highest bit is set as well. Note to self: Finish Command Patch
This commit is contained in:
		@@ -374,7 +374,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags,
 | 
				
			|||||||
			cost += ret;
 | 
								cost += ret;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			ret = DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 | 
								ret = DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 | 
				
			||||||
			if (ret & CMD_ERROR) return ret;
 | 
								if (ret == CMD_ERROR) return ret;
 | 
				
			||||||
			cost += ret;
 | 
								cost += ret;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (flags & DC_EXEC) {
 | 
								if (flags & DC_EXEC) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user