(svn r12759) -Fix(r12358): There is no need to mask callback result for pre-version7 since CBID_INDTILE_SHAPE_CHECK (cb2F) is really 15 bits.
This commit is contained in:
		@@ -279,7 +279,7 @@ bool PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile,
 | 
				
			|||||||
		return !IsSlopeRefused(GetTileSlope(ind_tile, NULL), its->slopes_refused);
 | 
							return !IsSlopeRefused(GetTileSlope(ind_tile, NULL), its->slopes_refused);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (its->grf_prop.grffile->grf_version < 7) {
 | 
						if (its->grf_prop.grffile->grf_version < 7) {
 | 
				
			||||||
		return (callback_res & 0xFF) != 0; // mask to 8 bit callback result
 | 
							return callback_res != 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Copy some parameters from the registers to the error message text ref. stack */
 | 
						/* Copy some parameters from the registers to the error message text ref. stack */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user