All pastes #606026 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-06 16:50 UTC
rendered paste body
                for (int i = 0; i < MapEngine.myMap.mapWidth; i++)
                {
                    for (int j = 0; j < MapEngine.myMap.mapHeight; j++)
                    {
                        // Make the copy
                        tempLayer[0, i, j] = MapEngine.myMap.MapLayers[oldIndex, i, j];
                        MapEngine.myMap.MapLayers[oldIndex, i, j] = null;

                        // Change the new one the old one
                        MapEngine.myMap.MapLayers[newIndex, i, j] = MapEngine.myMap.MapLayers[oldIndex, i, j];

                        // Change the old one to the new one
                        MapEngine.myMap.MapLayers[oldIndex, i, j] = tempLayer[0, i, j];
                    }
                }