Mirage Source
[Bug Fix-3.79] Download 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: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+------ Forum: Bugs Reports (https://mirage-engine.uk/forums/forumdisplay.php?fid=9)
+------ Thread: [Bug Fix-3.79] Download Maps (/showthread.php?tid=2933)



[Bug Fix-3.79] Download Maps - Jacob - 14-07-2009

Thanks to Genusis for finding this.

If you delete all the maps client side, you would not download the map.

In: HandleCheckForMap
Replace
Code:
If FileExist(MAP_PATH & "map" & X & MAP_EXT, False) Then
         Call LoadMap(X)
    
         ' Check to see if the revisions match
         NeedMap = 1
         If Map.Revision = Y Then
             ' We do so we dont need the map
             'Call SendData(CNeedMap & SEP_CHAR & "n" & END_CHAR)
             NeedMap = 0
         End If
     End If

With
Code:
NeedMap = 1
     If FileExist(MAP_PATH & "map" & X & MAP_EXT, False) Then
         Call LoadMap(X)
    
         ' Check to see if the revisions match
         If Map.Revision = Y Then
             ' We do so we dont need the map
             'Call SendData(CNeedMap & SEP_CHAR & "n" & END_CHAR)
             NeedMap = 0
         End If
     End If

I will update the download shortly.


Re: [Bug Fix-3.79] Download Maps - carpintero - 17-07-2009

Ok thanks..