]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
set world.absmin and world.absmax in csqc
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 15 Sep 2013 18:54:47 +0000 (18:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 15 Sep 2013 18:54:47 +0000 (18:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12003 d7cf8633-e32d-0410-b094-e92efae38249

csprogs.c

index fa5e690b1ecf6ef064667325237e7a6ab0bd207e..909a82ccaf3c7a573b25dd81ca1f55d4b1d08c0b 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -1138,6 +1138,8 @@ void CL_VM_Init (void)
        PRVM_clientedictstring(prog->edicts, message) = PRVM_SetEngineString(prog, cl.worldmessage);
        VectorCopy(cl.world.mins, PRVM_clientedictvector(prog->edicts, mins));
        VectorCopy(cl.world.maxs, PRVM_clientedictvector(prog->edicts, maxs));
+       VectorCopy(cl.world.mins, PRVM_clientedictvector(prog->edicts, absmin));
+       VectorCopy(cl.world.maxs, PRVM_clientedictvector(prog->edicts, absmax));
 
        // call the prog init
        prog->ExecuteProgram(prog, PRVM_clientfunction(CSQC_Init), "QC function CSQC_Init is missing");