From: TimePath Date: Sun, 8 Oct 2017 00:18:04 +0000 (+1100) Subject: Force classnames globally X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2737cb4a7f211e871f2b6c0fd041bc7be8f57600;p=xonotic%2Fxonotic-data.pk3dir.git Force classnames globally --- diff --git a/qcsrc/lib/spawnfunc.qh b/qcsrc/lib/spawnfunc.qh index f1eb477a0..c350d6d05 100644 --- a/qcsrc/lib/spawnfunc.qh +++ b/qcsrc/lib/spawnfunc.qh @@ -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); \