1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-19 02:46:35 -05:00

Fixed map rendering bug with randomized tiles.

This commit is contained in:
Tim Sarbin 2018-11-27 21:20:48 -05:00
parent 8ae4a570f9
commit 1b2c7bc526
2 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,6 @@ namespace OpenDiablo2.Common.Interfaces
IMouseCursor LoadCursor(ISprite sprite, int frame, Point hotspot);
void SetCursor(IMouseCursor mouseCursor);
void Draw(ILabel label);
void DrawMapCell(int xCell, int yCell, int xPixel, int yPixel, MPQDS1 mapData, int main_index, int sub_index, Palette palette, int orientation = -1);
void DrawMapCell(int xCell, int yCell, int xPixel, int yPixel, MPQDS1 mapData, int main_index, int sub_index, Palette palette, int orientation);
}
}

View File

@ -151,7 +151,7 @@ namespace OpenDiablo2.Core.Map_Engine
var main_index = (floor.Prop3 >> 4) + ((floor.Prop4 & 0x03) << 4);
renderWindow.DrawMapCell(x, y, cx, cy, gameState.MapData, main_index, sub_index, gameState.CurrentPalette);
renderWindow.DrawMapCell(x, y, cx, cy, gameState.MapData, main_index, sub_index, gameState.CurrentPalette, 0);
}
}