Page 1 of 1

Room Squares Saved Out of Order

Posted: Tue Jun 10, 2014 1:09 pm
by Vhati
Affected Versions: 1.03.1, 1.5.13.

This is a technical inconsistency that has no visible effect and probably always existed, so there's no real need to fix it... :roll:

Room squares (which hold fire info) are referenced with IDs 0-3, left-to-right, wrapping to the next row below.

Code: Select all

ID
|-|-|
|0|1|
|2|3|
|-|-|
A crew may be moving to the upper-right square at 1, or a room's station may be in the lower-left at 2, etc.


When saving, these squares are unwrapped to write as a linear list (which I'll count here with indeces 0,1,2,3).
But they're getting unwrapped top-to-bottom, left-to-right.

Code: Select all

Index
|-|-|
|0|2|
|1|3|
|-|-|
So a square at the Nth index in that list does not have an ID of N.
When FTL resumes, it apparently reads the list in a similarly inconsistent fashion to populate the room as it was.