shithub: rott

Download patch

ref: b1e927d699b391bffd28c05a181b9ce6742f2269
parent: f66ee83d0938466f66eae07e21107455c13a8d9b
author: LTCHIPS <ltchips994@gmail.com>
date: Mon Jun 4 09:19:06 EDT 2018

fixed image displayed in screen rotate after loading into a new level, dying w/o quickload

--- a/rott/rt_main.c
+++ b/rott/rt_main.c
@@ -1383,6 +1383,8 @@
                         SetupGameLevel ();
                         UpdateTriads(player,0);
                         playstate = ex_stillplaying;
+                        DisableScreenStretch();
+
                     }
                 }
             }
@@ -1401,6 +1403,8 @@
             SetupGameLevel ();
 
             playstate = ex_stillplaying;
+            DisableScreenStretch();//bna++ shut off streech mode
+
             break;
 
         case ex_skiplevel:
@@ -1420,6 +1424,7 @@
 #if (SHAREWARE==0)
             if ((playstate==ex_bossdied) && (gamestate.mapon!=30))
             {
+                
                 int shape;
                 lbm_t * LBM;
                 byte *s;
@@ -1496,6 +1501,8 @@
                 fizzlein = true;
                 SetupGameLevel ();
                 playstate = ex_stillplaying;
+                DisableScreenStretch();//bna++ shut off streech mode
+
             }
             else
             {
@@ -1566,7 +1573,6 @@
 boolean CheckForQuickLoad  (void )
 
 {
-
     EnableScreenStretch();//bna++
     if ( pickquick )
     {
--- a/rott/rt_view.c
+++ b/rott/rt_view.c
@@ -434,12 +434,21 @@
     {
         DrawCPUJape();
     }
-
-    DrawPlayScreen (true);
-    if (flip==true)
-    {
+    if (flip == true){
+        boolean wasStretched = false;
+        
+        if(StretchScreen)
+        {
+            wasStretched = true;
+        }
+        DisableScreenStretch();
+        DrawPlayScreen (true);
         ThreeDRefresh();
         VL_CopyDisplayToHidden();
+        if (wasStretched == true)
+        {
+            EnableScreenStretch();
+        }
     }
 }
 
--