mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 19:32:11 +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() {
|
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);
|
g_hdb->_drawMan->getTile(_gratings[i]->tile)->drawMasked(_gratings[i]->x, _gratings[i]->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -706,7 +706,7 @@ void Map::drawGratings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Map::drawForegrounds() {
|
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);
|
g_hdb->_drawMan->getTile(_foregrounds[i]->tile)->drawMasked(_foregrounds[i]->x, _foregrounds[i]->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user