http://gilgamesh.hamsterrepublic.com/cgi-bin/bugzilla/show_bug.cgi?id=308





------- Comment #4 from [EMAIL PROTECTED]  2007-02-15 10:48 -------
I have figured out more about this bug.

The code in mapmaker that redims the map() array makes the incorrect assumption
that the array is just the right size for the map data, and that it contains no
cruft.

The map() array (aka the scroll() array) is dimed for 16002 elements, to hold
the maximum possible size of a single-layer map.

the .T lump (whatever size it is) get xbloaded into the map() array, but there
may be cruft beyond the end of the data.

in the map editor, the code that resizes the array to allow for layers uses
REDIM PRESERVE which faithfully preserves the extra jung in-between the end of
the actual layer0 data and element 16002

I suggest we abandon the use of xsave/xbload for the .t lump, and write nice
clean LoadTilemap and SaveTilemap functions in loading.bas


-- 
Configure bugmail: 
http://gilgamesh.hamsterrepublic.com/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to