]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Force classnames globally
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 8 Oct 2017 00:18:04 +0000 (11:18 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 8 Oct 2017 00:18:04 +0000 (11:18 +1100)
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); \