|
From: <cn...@us...> - 2022-11-27 06:29:06
|
Revision: 1295
http://sourceforge.net/p/seq/svn/1295
Author: cn187
Date: 2022-11-27 06:29:04 +0000 (Sun, 27 Nov 2022)
Log Message:
-----------
Adjust fillSpawnStruct to handle variable-length aura sections
Modified Paths:
--------------
showeq/branches/cn187_devel/src/spawnshell.cpp
Modified: showeq/branches/cn187_devel/src/spawnshell.cpp
===================================================================
--- showeq/branches/cn187_devel/src/spawnshell.cpp 2022-11-27 06:18:00 UTC (rev 1294)
+++ showeq/branches/cn187_devel/src/spawnshell.cpp 2022-11-27 06:29:04 UTC (rev 1295)
@@ -697,7 +697,14 @@
netStream.readText(); // skip 3 variable len strings
netStream.readText();
netStream.readText();
- netStream.skipBytes(58); // and 58 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.
|