Isometric tiles will no longer render on top of each other.

This commit is contained in:
Justin Marshall
2020-07-01 14:13:28 -07:00
parent c7748a616d
commit ede9d518bf
4 changed files with 27 additions and 5 deletions
+3 -2
View File
@@ -267,8 +267,9 @@ void __cdecl Buffer_Draw_Stamp_Clip2(GraphicViewPortClass& viewport, const void
// src += IconWidth;
//}
if (iconImage->HouseImages[0].image[icon_index] == 0)
return;
if (iconImage->HouseImages[0].image[icon_index][0] == 0) {
icon_index = 0;
}
GL_SetClipRect(xstart, ystart, blit_width, blit_height);
GL_RenderImage(iconImage, xstart, ystart, blit_width, blit_height, 0, icon_index);