mirror of
https://github.com/celisej567/LibBSP.git
synced 2026-09-23 20:08:40 +03:00
Fix CSProj file.
Fix bug in game lump info reading giving nonsense data for game lump offset and length. Fix bug in Static Prop lump reading causing prop model dictionary to always be null.
This commit is contained in:
@@ -87,8 +87,8 @@ namespace LibBSP {
|
||||
GameLumpInfo info = new GameLumpInfo {
|
||||
flags = BitConverter.ToUInt16(data, (i * structLength) + 8),
|
||||
version = BitConverter.ToUInt16(data, (i * structLength) + 10),
|
||||
offset = BitConverter.ToInt32(data, (i * structLength) + 14),
|
||||
length = BitConverter.ToInt32(data, (i * structLength) + 18),
|
||||
offset = BitConverter.ToInt32(data, (i * structLength) + 12),
|
||||
length = BitConverter.ToInt32(data, (i * structLength) + 16),
|
||||
};
|
||||
this[(GameLumpType)BitConverter.ToInt32(data, (i * structLength) + 4)] = info;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace LibBSP {
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
int structLength = 0;
|
||||
string[] dictionary = new string[0];
|
||||
dictionary = new string[0];
|
||||
if (data.Length > 0) {
|
||||
int offset = 0;
|
||||
dictionary = new string[BitConverter.ToInt32(data, 0)];
|
||||
|
||||
Reference in New Issue
Block a user