]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/monster/spider.qc
Purify PutClientInServer and PlayerSpawn mutator hooks
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / monster / spider.qc
index b9f9bfc21c2992807c513abaf5cd0c7649720138..a3651812b3102bc9b7d68e332f9f13835eaf2216 100644 (file)
@@ -79,8 +79,9 @@ MUTATOR_HOOKFUNCTION(spiderweb, MonsterMove)
 
 MUTATOR_HOOKFUNCTION(spiderweb, PlayerSpawn)
 {
-    SELFPARAM();
-       self.spider_slowness = 0;
+       entity player = M_ARGV(0, entity);
+
+       player.spider_slowness = 0;
        return false;
 }