Oops, forgot an important line
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 22:04:40 +0000 (01:04 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 24 Oct 2011 22:04:40 +0000 (01:04 +0300)
qcsrc/server/mutators/sandbox.qc

index 91fd4dd79d42b54537bd645a614664e77cf27e76..a97067fc7e308a3f6c24aebb562ee47fbce733b3 100644 (file)
@@ -109,6 +109,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerPreThink)
        if(autocvar_sv_cheats)
                return FALSE; // cheats already allow dragging all objects
 
+       makevectors(self.v_angle);
        WarpZone_TraceLine(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * autocvar_g_sandbox_editor_distance_edit, MOVE_NORMAL, self);
        if(trace_ent.classname == "object")
                if(Drag(trace_ent)) // executes the dragging