Skip to content

Commit 3f4e564

Browse files
committed
Fix nade projectiles comment & remove dead code
1 parent 2344dc7 commit 3f4e564

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

datatables.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (p *Parser) bindWeapons() {
308308
}
309309

310310
// bindGrenadeProjectiles keeps track of the location of live grenades (Parser.gameState.grenadeProjectiles), actively thrown by players.
311-
// It does track the location of grenades lying on the ground, i.e. that were dropped by dead players.
311+
// It does NOT track the location of grenades lying on the ground, i.e. that were dropped by dead players.
312312
func (p *Parser) bindGrenadeProjectiles(event st.EntityCreatedEvent) {
313313
p.gameState.grenadeProjectiles[event.Entity.ID] = common.NewGrenadeProjectile()
314314

@@ -330,10 +330,6 @@ func (p *Parser) bindGrenadeProjectiles(event st.EntityCreatedEvent) {
330330

331331
thrower := p.entityIDToPlayers[throwerIndex]
332332
proj.Thrower = thrower
333-
334-
if proj.Thrower == nil && thrower != nil {
335-
proj.Position = thrower.Position
336-
}
337333
})
338334

339335
event.Entity.FindProperty("m_hOwnerEntity").OnUpdate(func(val st.PropValue) {

0 commit comments

Comments
 (0)