]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
CLVM: set mapname global correctly (matching SVVM)
[xonotic/darkplaces.git] / csprogs.c
index c060ee14f4544729ea7434db7141acba4cbde7e3..14946c82a3540233050f249e12a8106d3de6bf28 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -1090,7 +1090,7 @@ void CL_VM_Init (void)
        PRVM_clientglobalfloat(time) = cl.time;
        PRVM_clientglobaledict(self) = 0;
 
-       PRVM_clientglobalstring(mapname) = PRVM_SetEngineString(prog, cl.worldname);
+       PRVM_clientglobalstring(mapname) = PRVM_SetEngineString(prog, cl.worldbasename);
        PRVM_clientglobalfloat(player_localnum) = cl.realplayerentity - 1;
        PRVM_clientglobalfloat(player_localentnum) = cl.viewentity;