]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/models/model.qh
Merge branch 'master' into Mirio/balance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / models / model.qh
index b4005b77775f421a5dec31469f2797dbfbf5c64f..1c34a2547ee07117b1f52d5707bbebd3b1c80eae 100644 (file)
@@ -11,13 +11,15 @@ CLASS(Model, Object)
         CONSTRUCT(Model);
         this.model_str = path;
     }
-    METHOD(Model, model_precache, void(entity this)) {
+    METHOD(Model, model_precache, void(Model this))
+    {
+        TC(Model, this);
         string s = this.model_str();
         if (s != "" && s != "null" && !fexists(s)) {
             LOG_WARNINGF("Missing model: \"%s\"\n", s);
             return;
         }
-        LOG_TRACEF("precache_model(\"%s\")\n", s);
+        LOG_DEBUGF("precache_model(\"%s\")\n", s);
         precache_model(s);
     }
 ENDCLASS(Model)