]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/tuba.qc
Entity debugger
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / tuba.qc
index 91ccbba5c853e7d1d7367e1da60c0f404cefefca..e0613b57576ccedee239424bfa1093d1acf6a5d3 100644 (file)
@@ -1,8 +1,6 @@
 #include "tuba.qh"
-#include "_all.qh"
 
 #include "../common/constants.qh"
-#include "../common/util.qh"
 
 
 #define TUBA_STARTNOTE(i, n) W_Sound(strcat("tuba", (i ? ftos(i) : ""), "_loopnote", ftos(n)))
@@ -120,11 +118,9 @@ void Ent_TubaNote(bool isNew)
                                Ent_TubaNote_StopSound();
                        }
                } else {
-                       self.enemy = spawn();
-                       self.enemy.classname = "tuba_note";
+                       self.enemy = new(tuba_note);
                        if (Tuba_PitchStep) {
-                               self.enemy.enemy = spawn();
-                               self.enemy.enemy.classname = "tuba_note_2";
+                               self.enemy.enemy = new(tuba_note_2);
                        }
                        isNew = true;
                }