Mirage Source
Duplicating maps - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Duplicating maps (/showthread.php?tid=1403)



Duplicating maps - Rezeyu - 19-11-2007

What would be the best way to make an exact copy of a map whenever one is created?

Like, when it saves map1, it duplicates it and saves it to 2 also.

So basically every 2 maps are the same.

1=2
3=4
etc.


Re: Duplicating maps - Spodi - 19-11-2007

Code:
For i = 1 to LastMap Step 2
   Map(i) = Map(i+1)
Next i



Re: Duplicating maps - Matt - 19-11-2007

Spodi Wrote:
Code:
For i = 1 to LastMap Step 2
   Map(i) = Map(i+1)
Next i

Wouldn't it be:

Code:
For i = 1 to LastMap Step 2
   Map(i + 1) = Map(i)
Next i

?


Re: Duplicating maps - Spodi - 20-11-2007

Thats what I originally thought, but realized he wanted the smaller value on the left side of the argument.


Re: Duplicating maps - Matt - 20-11-2007

Spodi Wrote:Thats what I originally thought, but realized he wanted the smaller value on the left side of the argument.

Oh.. Duh. xD