08-12-2006, 07:35 AM
Not that I know if this works for sure, I don't have my VB installed to test it and I haven't touched coding in a long time >< but stealing Spodi's example for clearing players try this:
I added
to the top and changed
to
Just an idea, don't know if it'll work =) Seems logical enough though =P
Code:
Public Sub SetHighMaxMap()
Dim FilePath As String
Dim f As Long, i As Long
Dim EmptyMap As Maprec
For i = 1 To MAX_MAPS
f = FreeFile
FilePath = App.Path & "\Maps\Map" & i & ".dat"
Open FilePath For Binary As #f
Get #f, , HighMap(i)
If HighMap(i) EmptyMap Then
HIGH_MAX_MAPS = i
End If
Close
Next i
End Sub
Code:
Dim EmptyMap As Maprec
Code:
If HighMap(i).HighTile(0, 0).Ground 0 Then
Code:
If HighMap(i) EmptyMap Then
Just an idea, don't know if it'll work =) Seems logical enough though =P