shithub: rott

Download patch

ref: d46e117f8ab7823ffb1a2fa07dc29622e00ff4fc
parent: f25026ddbe02ed4a03f51ff5bb9dd51caa3dd807
author: LTCHIPS <ltchips994@gmail.com>
date: Thu Apr 26 14:11:19 EDT 2018

random segfaults on linux fix

--- a/rott/rt_game.c
+++ b/rott/rt_game.c
@@ -458,8 +458,14 @@
         if (iGLOBAL_SCREENWIDTH > 320 || iGLOBAL_SCREENHEIGHT > 200)
         {
             shape =  ( pic_t * )W_CacheLumpName( "backtile", PU_CACHE, Cvt_pic_t, 1 );
-                
-            DrawTiledRegion( 0, iGLOBAL_SCREENHEIGHT - 16*hudRescaleFactor, iGLOBAL_SCREENWIDTH, 16*hudRescaleFactor, 34,32, shape );
+            
+            
+            DrawTiledRegion( 0, iGLOBAL_SCREENHEIGHT - 16*hudRescaleFactor, iGLOBAL_SCREENWIDTH, 13, 10,10, shape );
+            DrawTiledRegion( 0, iGLOBAL_SCREENHEIGHT - 29*hudRescaleFactor, iGLOBAL_SCREENWIDTH, 3, 10,10, shape );
+            
+            //apparently the line below was causing segfaults on linux...
+            
+            //DrawTiledRegion( 0, iGLOBAL_SCREENHEIGHT - 16*hudRescaleFactor, iGLOBAL_SCREENWIDTH, 16*hudRescaleFactor, 34,32, shape );
             
             shape = ( pic_t * ) W_CacheLumpName( "bottbar", PU_CACHE, Cvt_pic_t, 1 );