shithub: choc

Download patch

ref: 1af09ba2f33e9300420a5ebad01ed15cbfef7835
parent: 8b83bc21e75e7e0d7f21dd2e7830f416a17a3f3f
author: Simon Howard <[email protected]>
date: Mon Oct 17 15:40:10 EDT 2011

Tweak Strife buttons2 field to be differential against previous value,
rather than against zero.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2438

--- a/src/net_structrw.c
+++ b/src/net_structrw.c
@@ -341,7 +341,7 @@
 
     // Strife-specific
 
-    if (tic2->buttons2 != 0 || tic2->inventory != 0)
+    if (tic1->buttons2 != tic2->buttons2 || tic2->inventory != 0)
         diff->diff |= NET_TICDIFF_STRIFE;
 }
 
@@ -388,7 +388,6 @@
     }
     else
     {
-        dest->buttons2 = 0;
         dest->inventory = 0;
     }
 }