hedgewars/uCommandHandlers.pas
changeset 6339 2a3925178178
parent 6313 12567f6f6f02
child 6415 af2047bb4f70
--- a/hedgewars/uCommandHandlers.pas	Sat Nov 12 21:59:10 2011 +0100
+++ b/hedgewars/uCommandHandlers.pas	Sat Nov 12 21:44:26 2011 -0500
@@ -453,8 +453,16 @@
 begin
 if isDeveloperMode then
     begin
-    UserPathz[ptMapCurrent]:= UserPathz[ptMaps] + '/' + s;
-    Pathz[ptMapCurrent]:= Pathz[ptMaps] + '/' + s;
+    if s = '' then
+        begin
+        UserPathz[ptMapCurrent]:= s;
+        Pathz[ptMapCurrent]:= s;
+        end
+    else
+        begin
+        UserPathz[ptMapCurrent]:= UserPathz[ptMaps] + '/' + s;
+        Pathz[ptMapCurrent]:= Pathz[ptMaps] + '/' + s;
+        end;
     InitStepsFlags:= InitStepsFlags or cifMap
     end;