File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ func initEqNameToWeapon() {
194194 eqNameToWeapon ["sg550" ] = EqUnknown
195195 eqNameToWeapon ["sg552" ] = EqUnknown // This one still crashes the game :)
196196 eqNameToWeapon ["tmp" ] = EqUnknown
197- eqNameToWeapon ["worldspawn" ] = EqUnknown
197+ eqNameToWeapon ["worldspawn" ] = EqWorld
198198}
199199
200200func initEqElementToName () {
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ type PlayerJump struct {
140140type Kill struct {
141141 Weapon * common.Equipment
142142 Victim * common.Player
143- Killer * common.Player
143+ Killer * common.Player // May be nil for world damage (EqWorld) or if the demo is partially corrupt (see #156)
144144 Assister * common.Player
145145 PenetratedObjects int
146146 IsHeadshot bool
@@ -153,7 +153,7 @@ type BotTakenOver struct {
153153
154154// WeaponFire signals that a weapon has been fired.
155155type WeaponFire struct {
156- Shooter * common.Player
156+ Shooter * common.Player // May be nil if the demo is partially corrupt (see #156)
157157 Weapon * common.Equipment
158158}
159159
You can’t perform that action at this time.
0 commit comments