26-08-2007, 12:44 PM
Dragoons Master Wrote:Just one thing for performance, replace thewithCode:For y = 0 To MAX_MAPY
For x = 0 To MAX_MAPX
If frmMapEditor.optLayers.Value = True ThenThis way it will not check the if max_mapy*max_mapx times... It's the same thing, but little faster(unnoticeable)...Code:If frmMapEditor.optLayers.Value = True Then
For y = 0 To MAX_MAPY
For x = 0 To MAX_MAPX
Does it only loop now if the option is selected? Whereas Will's method, had it looping before it checked..?