]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/spawnfunc.qh
Force classnames globally
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / spawnfunc.qh
index f1eb477a00195188c942ca3f7d5ce6b889343d1a..c350d6d05bf018bd9d1c73170697829d18ee380e 100644 (file)
@@ -104,6 +104,7 @@ noref bool require_spawnfunc_prefix;
                        if (!this.sourceLoc) { \
                                this.sourceLoc = __FILE__ ":" STR(__LINE__); \
                        } \
+                       this.classname = #id; \
                        if (!this.spawnfunc_checked) { \
                                for (int i = 0, n = numentityfields(); i < n; ++i) { \
                                        string value = getentityfieldstring(i, this); \