From: Mario Date: Fri, 25 Dec 2015 07:08:03 +0000 (+1000) Subject: Loopify find command X-Git-Tag: xonotic-v0.8.2~1383 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ce88d4b5570c9994c98be6418a82a920e4c2773d;p=xonotic%2Fxonotic-data.pk3dir.git Loopify find command --- diff --git a/qcsrc/client/commands/cl_cmd.qc b/qcsrc/client/commands/cl_cmd.qc index be3ac5645..11ee469ef 100644 --- a/qcsrc/client/commands/cl_cmd.qc +++ b/qcsrc/client/commands/cl_cmd.qc @@ -407,11 +407,7 @@ void LocalCommand_find(int request, int argc) { case CMD_REQUEST_COMMAND: { - entity client; - - for (client = world; (client = find(client, classname, argv(1))); ) - LOG_INFO(etos(client), "\n"); - + FOREACH_ENTITY_CLASS(argv(1), true, LAMBDA(LOG_INFO(etos(it), "\n"))); return; }