]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove mr_precache (now unused)
authorMario <mario@smbclan.net>
Tue, 20 Jun 2017 11:12:04 +0000 (21:12 +1000)
committerMario <mario@smbclan.net>
Tue, 20 Jun 2017 11:12:04 +0000 (21:12 +1000)
qcsrc/common/monsters/monster.qh
qcsrc/common/monsters/monster/mage.qc
qcsrc/common/monsters/monster/mage.qh
qcsrc/common/monsters/monster/shambler.qc
qcsrc/common/monsters/monster/shambler.qh
qcsrc/common/monsters/monster/spider.qc
qcsrc/common/monsters/monster/spider.qh
qcsrc/common/monsters/monster/wyvern.qc
qcsrc/common/monsters/monster/wyvern.qh
qcsrc/common/monsters/monster/zombie.qc
qcsrc/common/monsters/monster/zombie.qh

index 841e7ef4026f49e6443d6d0d1973a5a3f4a4f663..aba9c9aa9b66713607aa3f2c4d02412744b82e51 100644 (file)
@@ -48,8 +48,6 @@ CLASS(Monster, Object)
     METHOD(Monster, mr_think, bool(Monster this, entity actor)) { TC(Monster, this); return false; }
     /** (SERVER) called when monster dies */
     METHOD(Monster, mr_death, bool(Monster this, entity actor)) { TC(Monster, this); return false; }
-    /** (BOTH) precaches models/sounds used by this monster */
-    METHOD(Monster, mr_precache, bool(Monster this)) { TC(Monster, this); return false; }
     /** (SERVER) called when monster is damaged */
     METHOD(Monster, mr_pain, float(Monster this, entity actor, float damage_take, entity attacker, float deathtype)) { TC(Monster, this); return damage_take; }
     /** (BOTH?) sets animations for monster */
index 5b95b2c9f8d34728abd6d4efced44f5198731972..f6f8b803ba69276f5d4bd0964285137b218b6348 100644 (file)
@@ -464,10 +464,4 @@ METHOD(Mage, mr_setup, bool(Mage this, entity actor))
 
     return true;
 }
-
-METHOD(Mage, mr_precache, bool(Mage this))
-{
-    TC(Mage, this);
-    return true;
-}
 #endif
index 194b6b2b2d2da88ccff35d24151e8537ec6a8d8b..98fb7667341dc6e13a5cfc168e2d43e76258de6e 100644 (file)
@@ -17,11 +17,7 @@ CLASS(Mage, Monster)
     ATTRIB(Mage, monster_name, string, _("Mage"));
 ENDCLASS(Mage)
 
-REGISTER_MONSTER(MAGE, NEW(Mage)) {
-#ifdef GAMEQC
-    this.mr_precache(this);
-#endif
-}
+REGISTER_MONSTER(MAGE, NEW(Mage));
 
 #include <common/weapons/_all.qh>
 #include <common/items/_mod.qh>
index d234e2604984f27e0e3a71c68708df6ab9ce6f86..b03766bcf234b55d4753b5c65a1c2dddb1b91922 100644 (file)
@@ -263,10 +263,4 @@ METHOD(Shambler, mr_setup, bool(Shambler this, entity actor))
 
     return true;
 }
-
-METHOD(Shambler, mr_precache, bool(Shambler this))
-{
-    TC(Shambler, this);
-    return true;
-}
 #endif
index fde28e9f46e7a87fe7d8756cc1943a9f252ef866..554fe5fe62a1d9dcbd7d41cfb8edc29bff185fdd 100644 (file)
@@ -17,8 +17,4 @@ CLASS(Shambler, Monster)
     ATTRIB(Shambler, monster_name, string, _("Shambler"));
 ENDCLASS(Shambler)
 
-REGISTER_MONSTER(SHAMBLER, NEW(Shambler)) {
-#ifdef GAMEQC
-    this.mr_precache(this);
-#endif
-}
+REGISTER_MONSTER(SHAMBLER, NEW(Shambler));
index 3a22b360d3ff89ba71d207b2c02b01f88fa1a4f1..a6551392075891911a85a9893a8e8c2cdf0dc62c 100644 (file)
@@ -238,10 +238,4 @@ METHOD(Spider, mr_setup, bool(Spider this, entity actor))
 
     return true;
 }
-
-METHOD(Spider, mr_precache, bool(Spider this))
-{
-    TC(Spider, this);
-    return true;
-}
 #endif
index cd7fa9e6becb8c72c195bea86cfe256cf8fcf69d..3a688de32efce0e1282543bd3e85a55d4563c26b 100644 (file)
@@ -17,11 +17,7 @@ CLASS(Spider, Monster)
     ATTRIB(Spider, monster_name, string, _("Spider"));
 ENDCLASS(Spider)
 
-REGISTER_MONSTER(SPIDER, NEW(Spider)) {
-#ifdef GAMEQC
-    this.mr_precache(this);
-#endif
-}
+REGISTER_MONSTER(SPIDER, NEW(Spider));
 
 #include <common/weapons/_all.qh>
 
index b4a76c99f1fb73e6d4011f65bf0b44a9001dff43..38df673dd1c161d267a4ceeee9b5c63edbf43ae5 100644 (file)
@@ -162,10 +162,4 @@ METHOD(Wyvern, mr_setup, bool(Wyvern this, entity actor))
 
     return true;
 }
-
-METHOD(Wyvern, mr_precache, bool(Wyvern this))
-{
-    TC(Wyvern, this);
-    return true;
-}
 #endif
index 012c9c2a5e8817913ae557781fae0ac9787f8ba9..2326b0dd1157c27a8cb39e0ee5610dad9e0eb25d 100644 (file)
@@ -17,11 +17,7 @@ CLASS(Wyvern, Monster)
     ATTRIB(Wyvern, monster_name, string, _("Wyvern"));
 ENDCLASS(Wyvern)
 
-REGISTER_MONSTER(WYVERN, NEW(Wyvern)) {
-#ifdef GAMEQC
-    this.mr_precache(this);
-#endif
-}
+REGISTER_MONSTER(WYVERN, NEW(Wyvern));
 
 #include <common/weapons/_all.qh>
 
index 6893d31b67c46baf8990eed25a60460743bad978..d5011c7f35ca726b0e074244d871b985a881caa0 100644 (file)
@@ -203,10 +203,4 @@ METHOD(Zombie, mr_setup, bool(Zombie this, entity actor))
 
     return true;
 }
-
-METHOD(Zombie, mr_precache, bool(Zombie this))
-{
-    TC(Zombie, this);
-    return true;
-}
 #endif
index dfa37556d46503667464f3a002de2b10d40399d3..1572a95ea0d34bd346cd0988604dc0fb029b682e 100644 (file)
@@ -17,8 +17,4 @@ CLASS(Zombie, Monster)
     ATTRIB(Zombie, monster_name, string, _("Zombie"));
 ENDCLASS(Zombie)
 
-REGISTER_MONSTER(ZOMBIE, NEW(Zombie)) {
-#ifdef GAMEQC
-    this.mr_precache(this);
-#endif
-}
+REGISTER_MONSTER(ZOMBIE, NEW(Zombie));