From: Mircea Kitsune Date: Sat, 29 Oct 2011 11:14:07 +0000 (+0300) Subject: Ah, it seems tag counting should start from 1 X-Git-Tag: xonotic-v0.6.0~35^2~18^2~54 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=39589979989c5c661d1bfc61e1210a1efcd44ac1;p=xonotic%2Fxonotic-data.pk3dir.git Ah, it seems tag counting should start from 1 --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 64bb6aca0..7de8f4cb0 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -604,7 +604,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) { case "mesh": string tags; - for(i = 0; gettaginfo(e, i); i++) + for(i = 1; gettaginfo(e, i); i++) tags = strcat(tags, "^5", gettaginfo_name, "^7, "); print_to(self, strcat("^2SANDBOX - INFO: ^7Object mesh is ^3", e.model, "^7 at animation frame ^3", ftos(e.frame), " ^7containing the following tags: ", tags)); return TRUE;