From e014246d82c580b47ca5570d9703dc9e6732b872 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 19 Aug 2012 12:50:42 +0000 Subject: [PATCH] player.c: fix a check of md_tilehasmodel return value against >0 (should be >=0) git-svn-id: https://svn.eduke32.com/eduke32@2920 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index aacf7a5f2..10d4da2c2 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -2066,7 +2066,7 @@ static void G_DrawTileScaled(int32_t x, int32_t y, int32_t tilenum, int32_t shad } #ifdef USE_OPENGL - if (getrendermode() >= 3 && usemodels && md_tilehasmodel(tilenum,p) > 0) + if (getrendermode() >= 3 && usemodels && md_tilehasmodel(tilenum,p) >= 0) y += (224-weapsc(224)); #endif rotatesprite(xadd+weapsc((orientation&1024)?x:(x<<16))+((xoff-weapsc(xoff))<<16),