|
From: <cn...@us...> - 2022-11-29 23:58:40
|
Revision: 1306
http://sourceforge.net/p/seq/svn/1306
Author: cn187
Date: 2022-11-29 23:58:39 +0000 (Tue, 29 Nov 2022)
Log Message:
-----------
Adjust fillSpawnStruct to handle variable-length auras
Modified Paths:
--------------
showeq/trunk/src/spawnshell.cpp
Modified: showeq/trunk/src/spawnshell.cpp
===================================================================
--- showeq/trunk/src/spawnshell.cpp 2022-11-29 23:34:33 UTC (rev 1305)
+++ showeq/trunk/src/spawnshell.cpp 2022-11-29 23:58:39 UTC (rev 1306)
@@ -689,7 +689,14 @@
netStream.readText(); // skip 3 variable len strings
netStream.readText();
netStream.readText();
- netStream.skipBytes(54); // and 54 static bytes
+ netStream.skipBytes(50); // and 50 static bytes
+
+ //the next byte indicates how many DWORDs to skip, and
+ //includes the DWORD that the byte is part of
+ uint8_t skip = netStream.readUInt8();
+ netStream.skipBytes(3); //to complete DWORD
+ --skip; //we just skipped the first dword
+ netStream.skipBytes(skip * sizeof(uint32_t));
}
spawn->charProperties = netStream.readUInt8();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|