File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -181,29 +181,32 @@ public partial class HeaderChunk03093000 : IVersionable
181
181
{
182
182
public byte U01 ;
183
183
184
- public int Version { get ; set ; }
184
+ private uint version ;
185
+ public int Version { get => ( int ) version ; set => version = ( uint ) value ; }
185
186
186
187
public override void Read ( CGameCtnReplayRecord n , GbxReader r )
187
188
{
188
- Version = r . ReadInt32 ( ) ;
189
+ version = r . ReadUInt32 ( ) ;
189
190
190
- if ( Version >= 2 ) // Versionings may not be exact, don't forget to adjust attributes
191
+ // This is some decompiled scuffness IDK
192
+ if ( version >= 4 && version != 9999 )
191
193
{
192
194
n . MapInfo = r . ReadIdent ( ) ;
193
195
n . Time = r . ReadTimeInt32Nullable ( ) ;
194
196
n . PlayerNickname = r . ReadString ( ) ;
195
197
196
- if ( Version >= 6 )
198
+ if ( version >= 6 )
197
199
{
198
200
n . PlayerLogin = r . ReadString ( ) ;
199
-
200
- if ( Version >= 8 )
201
- {
202
- U01 = r . ReadByte ( ) ;
203
- n . TitleId = r . ReadId ( ) ;
204
- }
205
201
}
206
202
}
203
+
204
+ // capital Version here is important
205
+ if ( Version > 7 )
206
+ {
207
+ U01 = r . ReadByte ( ) ;
208
+ n . TitleId = r . ReadId ( ) ;
209
+ }
207
210
}
208
211
}
209
212
You can’t perform that action at this time.
0 commit comments