]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/casings.qc
Draw: purge SELFPARAM
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / casings.qc
index 7a05c85ea3b05071fdeb4fe14d8d2c443bd51cc3..9ed5fefa7ac5b85b6eaeea351324e44acc7648a2 100644 (file)
@@ -40,8 +40,8 @@ void Casing_Delete()
     remove(self);
 }
 
-void Casing_Draw()
-{SELFPARAM();
+void Casing_Draw(entity this)
+{
     if (self.move_flags & FL_ONGROUND)
     {
         self.move_angles_x = 0;
@@ -67,13 +67,13 @@ SOUND(BRASS1, W_Sound("brass1"));
 SOUND(BRASS2, W_Sound("brass2"));
 SOUND(BRASS3, W_Sound("brass3"));
 Sound SND_BRASS_RANDOM() {
-    return SOUNDS[SND_BRASS1.m_id + floor(prandom() * 3)];
+    return Sounds[SND_BRASS1.m_id + floor(prandom() * 3)];
 }
 SOUND(CASINGS1, W_Sound("casings1"));
 SOUND(CASINGS2, W_Sound("casings2"));
 SOUND(CASINGS3, W_Sound("casings3"));
 Sound SND_CASINGS_RANDOM() {
-    return SOUNDS[SND_CASINGS1.m_id + floor(prandom() * 3)];
+    return Sounds[SND_CASINGS1.m_id + floor(prandom() * 3)];
 }
 
 void Casing_Touch()