This is an old bug but the code Nexuiz and Xonotic used to work around
it still gives correct results when the prefix and suffix are already
stripped.
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
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;