Skip to content

Commit

Permalink
Update stats.sma (#998)
Browse files Browse the repository at this point in the history
Fix runtime error when a player "killed self with teledeath". Happens when a map hasn't enough spawn points.
  • Loading branch information
pizzahut2 committed Sep 28, 2021
1 parent 8817f3e commit f442b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/tfc/stats.sma
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public client_putinserver(id)

public client_damage(attacker,victim,damage,wpnindex,hitplace,TA){
if ( BulletDamage ) {
if ( attacker==victim || xmod_is_melee_wpn(wpnindex) ) return PLUGIN_CONTINUE
if ( attacker==victim || !wpnindex || xmod_is_melee_wpn(wpnindex) ) return PLUGIN_CONTINUE
set_hudmessage(0, 100, 200, 0.45, 0.85, 2, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(attacker,g_damage_sync,"%i",damage)
set_hudmessage(200, 0, 0, 0.55, 0.85, 2, 0.1, 4.0, 0.02, 0.02, -1)
Expand Down

0 comments on commit f442b3d

Please sign in to comment.