From f6417f5876ba0fafa2dad79fde5cec197540a565 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 23 Aug 2020 23:02:15 +0200 Subject: [PATCH] - fixed bad texture validation in Duke automap. --- source/games/duke/src/game_misc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/games/duke/src/game_misc.cpp b/source/games/duke/src/game_misc.cpp index 243b48c48..e1e114630 100644 --- a/source/games/duke/src/game_misc.cpp +++ b/source/games/duke/src/game_misc.cpp @@ -591,8 +591,7 @@ void drawoverheadmap(int cposx, int cposy, int czoom, int cang) { if (wal->nextwall >= 0) continue; - if (tilesiz[wal->picnum].x == 0) continue; - if (tilesiz[wal->picnum].y == 0) continue; + if (!tileGetTexture(wal->picnum)->isValid()) continue; if (j == k) {