mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
HDB: Fix bug when drawing gratings
This commit is contained in:
parent
ff25a0f4dd
commit
5b327fb519
@ -698,7 +698,7 @@ void Map::drawEnts() {
|
||||
}
|
||||
|
||||
void Map::drawGratings() {
|
||||
for (int i = 0; i < kMaxGratings; i++) {
|
||||
for (int i = 0; i < _numGratings; i++) {
|
||||
g_hdb->_drawMan->getTile(_gratings[i]->tile)->drawMasked(_gratings[i]->x, _gratings[i]->y);
|
||||
}
|
||||
|
||||
@ -706,7 +706,7 @@ void Map::drawGratings() {
|
||||
}
|
||||
|
||||
void Map::drawForegrounds() {
|
||||
for (int i = 0; i < kMaxForegrounds; i++) {
|
||||
for (int i = 0; i < _numForegrounds; i++) {
|
||||
g_hdb->_drawMan->getTile(_foregrounds[i]->tile)->drawMasked(_foregrounds[i]->x, _foregrounds[i]->y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user