From: terencehill Date: Fri, 24 May 2013 16:17:57 +0000 (+0200) Subject: Fix trace command X-Git-Tag: xonotic-v0.7.0~39^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bebc8b9ba05d1c0b4de5d14e6829411b3a27e727;p=xonotic%2Fxonotic-data.pk3dir.git Fix trace command --- diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 4c0445f1d..9f4ff7c20 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -1588,10 +1588,10 @@ void GameCommand_trace(float request, float argc) case "walk": { - if(argc == 3) + if(argc == 4) { e = nextent(world); - if(tracewalk(e, stov(argv(1)), e.mins, e.maxs, stov(argv(2)), MOVE_NORMAL)) + if(tracewalk(e, stov(argv(2)), e.mins, e.maxs, stov(argv(3)), MOVE_NORMAL)) print("can walk\n"); else print("cannot walk\n"); @@ -1601,10 +1601,10 @@ void GameCommand_trace(float request, float argc) case "showline": { - if(argc == 3) + if(argc == 4) { - vv = stov(argv(1)); - dv = stov(argv(2)); + vv = stov(argv(2)); + dv = stov(argv(3)); traceline(vv, dv, MOVE_NORMAL, world); trailparticles(world, particleeffectnum("TR_NEXUIZPLASMA"), vv, trace_endpos); trailparticles(world, particleeffectnum("TR_CRYLINKPLASMA"), trace_endpos, dv);