Skip to content

Commit c16e6fc

Browse files
committed
fix: flashbang exploded event not dispatched with csgo demos
1 parent 340a5d5 commit c16e6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/demoinfocs/game_events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (geh gameEventHandler) flashBangDetonate(data map[string]*msg.CSVCMsg_GameE
521521

522522
geh.gameState().lastFlash.player = nadeEvent.Thrower
523523

524-
if geh.parser.isSource2() && !geh.parser.disableMimicSource1GameEvents {
524+
if !geh.parser.isSource2() || geh.parser.isSource2() && !geh.parser.disableMimicSource1GameEvents {
525525
geh.dispatch(events.FlashExplode{
526526
GrenadeEvent: nadeEvent,
527527
})

0 commit comments

Comments
 (0)