add cause_plr to OnShockWaveHit callback

This can be used to damage and kill tracing for objects which die, receive damage or are destroyed on shockwaves.
stable-6.1
Maikel de Vries 2015-05-16 21:16:01 +02:00
parent b17d0bccb6
commit 097ddd9ae1
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ global func BlastObjects(int x, int y, int level, object container, int cause_pl
if (obj) // Test obj, cause OnShockwaveHit could have removed objects.
{
// Object has special reaction on shockwave?
if (obj->~OnShockwaveHit(level, x, y))
if (obj->~OnShockwaveHit(level, x, y, cause_plr))
continue;
// Living beings are hurt more.
var cat = obj->GetCategory();