From: MirceaKitsune Date: Thu, 2 Sep 2010 13:06:38 +0000 (+0300) Subject: Better way of fixing that last bug X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=0551f8173d6b71484c04ccf19963280a6211ee0e Better way of fixing that last bug --- diff --git a/data/qcsrc/server/g_subs.qc b/data/qcsrc/server/g_subs.qc index b1871185..28511b0a 100644 --- a/data/qcsrc/server/g_subs.qc +++ b/data/qcsrc/server/g_subs.qc @@ -16,9 +16,8 @@ void spawnfunc_info_null (void) void setanim(entity e, vector anim, float looping, float override, float restart) { - float n; - n = tokenizebyseparator(self.model, "."); - if(argv(1) == "md3") + // don't attempt to animate the stomach model + if(substring(self.model, strlen(self.model) - 8 - 4, 8) == "_stomach") // - 4 is the extension return; if (anim_x == e.animstate_startframe)