From 10e4fc327450ec581102b8b6770f7c33b6ef6211 Mon Sep 17 00:00:00 2001 From: zicodxx Date: Sun, 9 Jan 2011 17:09:26 +0100 Subject: [PATCH] Fix for rev959: my_pnum must be defined static --- CHANGELOG.txt | 1 + main/net_udp.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 45bd3c75b..3069ef622 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D1X-Rebirth Changelog 20110109 -------- main/net_udp.h: Set max UDP packet size to 1024 again (seems some configuration DO have problems with larger packets after all) +main/net_udp.c: Fix for rev959: my_pnum must be defined static 20110106 -------- diff --git a/main/net_udp.c b/main/net_udp.c index bfbd75892..5d91d0418 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -1459,8 +1459,8 @@ void net_udp_read_object_packet( ubyte *data ) { // Object from another net player we need to sync with object *obj; - sbyte obj_owner, my_pnum = 0; - static int mode = 0, object_count = 0; + sbyte obj_owner; + static int mode = 0, object_count = 0, my_pnum = 0; int i = 0, segnum = 0, objnum = 0, remote_objnum = 0, nobj = 0, loc = 5; nobj = GET_INTEL_INT(data + 1);