19506jk / Nirvana

Written from Louis & Danny's code
Apache License 2.0
2 stars 1 forks source link

Map is not displaying properly when a new game is started #3

Closed 19506jk closed 10 years ago

rainybreeze777 commented 10 years ago

This bug has been fixed. The bug occurred as a consequence of different ways Microsoft and Linux OS representing an endline character in text files; MS uses both CR and LF to represent nextline, whereas Linux only uses LF; therefore, since the code read in the chars one by one, when it reads in the extra char under MS, it is being interpreted as a VERTIW, thus causing offsets in map reading.

Solution: I have manually set the code to be the way when it read in a CR or LF char, it will swallow two chars, thus ignoring the CR&LF, and reads in the next valid char.

P.S. to view the extra char difference, use Notepad++, and check view->show symbol->show end of line

samsnowy commented 10 years ago

"aint working on develop branch, however fix is applied on buggy branch" False, the file was altered when uploading, so it no longer has two characters. However, the project is updated so that map is no longer read from files, thus this issue is now deprecated