(svn r12358) -Fix: Callback 2F returns 15 bit results starting from grf version 7.

This commit is contained in:
frosch
2008-03-11 12:55:41 +00:00
parent 51bbf0c84f
commit ec59843136
2 changed files with 3 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ bool PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile,
return !IsSlopeRefused(GetTileSlope(ind_tile, NULL), its->slopes_refused);
}
if (its->grf_prop.grffile->grf_version < 7) {
return callback_res != 0;
return (callback_res & 0xFF) != 0; // mask to 8 bit callback result
}
/* Copy some parameters from the registers to the error message text ref. stack */