]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Ah, it seems tag counting should start from 1
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 29 Oct 2011 11:14:07 +0000 (14:14 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 29 Oct 2011 11:14:07 +0000 (14:14 +0300)
qcsrc/server/mutators/sandbox.qc

index 64bb6aca0d39e5bd0f82442c1838225eea606117..7de8f4cb053cbee05b02deef4eb03984d5d20db3 100644 (file)
@@ -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;