URL:
<http://gna.org/patch/?939>
Summary: send/recv droids (gifts) fix
Project: Warzone Resurrection Project
Submitted by: buginator
Submitted on: Sunday 01/13/2008 at 04:12
Category: Fix
Priority: 9 - Immediate
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Quite a bit has changed in the droid gifts.
Due to how we handle net code now, we can't overlap packets,
and that is exactly what we were doing while sending droid gifts.
For starters, I have changed the way recvGift() finishes the decoding.
We do NOT want to do NETend() on all the case statements. Only most of them.
recvGiftDroids() has another call (as does sendGiftDroids()) that call
other net routines, so we end up with half way decoding, then we try to
start
encoding before the other one was finished decoding.
I believe this was the same issue we had in multistruct.c
Tested with 1, 10, & 20 units, and they all switched team color as expected
now.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sunday 01/13/2008 at 04:12 Name: sendgiftFIX.patch Size: 4kB By:
buginator
<http://gna.org/patch/download.php?file_id=3598>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?939>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev