shithub: choc

Download patch

ref: c16a0065efd2296533b5f165631be24ac55e2a44
parent: 8de669ac9b3d53144e201abf62982d0e31d56940
author: James Haley <haleyjd@hotmail.com>
date: Sat Feb 26 01:00:37 EST 2011

Fix for problem of not changing to new Sigil type properly when
receiving one via P_KillMobj item drops.

Subversion-branch: /branches/strife-branch
Subversion-revision: 2280

--- a/src/strife/p_inter.c
+++ b/src/strife/p_inter.c
@@ -997,8 +997,10 @@
                     players[i].sigiltype = 4;
             }
 
-            players[i].weaponowned[wp_sigil] = true;
-            players[i].readyweapon = wp_sigil;
+            // haleyjd 20110225: fixed these two assignments which Watcom munged
+            // up in the assembly by pre-incrementing the pointer into players[]
+            players[i].st_update = true;
+            players[i].pendingweapon = wp_sigil;
         }
         return;