shithub: rott

Download patch

ref: af8d4e041098a4453c2670cabfc09bd2c3a7df39
parent: f15f51dde871cf519dd3c03941303582fe053c7a
author: Marc-Alexandre Espiaut <[email protected]>
date: Tue Jun 5 08:03:15 EDT 2018

Removing unused but set variables in rt_playr.c

--- a/rott/rt_playr.c
+++ b/rott/rt_playr.c
@@ -555,10 +555,6 @@
 */
 void SpawnPlayerobj (int tilex, int tiley, int dir, int playerindex)
 {
-    playertype *pstate;
-
-    pstate = &PLAYERSTATE[playerindex];
-
     GetNewActor();
     MakeActive(new);
 
@@ -5717,7 +5713,6 @@
 {
     int pitheight;
     int godheight;
-    int dogheight;
     int height;
     int oldz;
     int destheightoffset;
@@ -5725,7 +5720,6 @@
 
     pitheight    = maxheight - 8;
     height = ob->z + pstate->playerheight;
-    dogheight    = ob->z + DOGOFFSET;
     godheight    = ob->z + GODOFFSET;
 
     //SoftError("\nheightoffset: %d, temp2: %d",pstate->heightoffset,ob->temp2);