GetChar related?

BlitzMax Forums/BlitzMax Beginners Area/GetChar related?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I Fixed it. :)

I Used the variable TFile.TempID.

Basically I added 1 to that variable every time a new file was detected. So I checked if Line$ was less than TempID-1 and if it wasn't then quit the loading process.

				Case (char = 13) 
							If Line$ <= TFile.TempID - 1
								MapIdselected = 1
								Exit
							Else
								MapIdSelected = 0
								TFile.DoLoadMap = 0
								For Local f:TFile = EachIn TFile.FList
									f.Fid = 0
								Next
								TFile.FList = Null
								TFile.TempID = 0
								TFile.TempY = 100
								TFile.DoneLoadingMaps = 0
								Exit
							EndIf



That took 1 hour to figure out. :/ In my defence though it is 2.30 am in the Morning here in London. :)