change comment
This commit is contained in:
parent
e37efe7e65
commit
bc19e5e783
|
@ -43,11 +43,12 @@ void Map::draw(const Rect& rect)
|
||||||
int walkOffsetX = localPlayer->getWalkOffsetX();
|
int walkOffsetX = localPlayer->getWalkOffsetX();
|
||||||
int walkOffsetY = localPlayer->getWalkOffsetY();
|
int walkOffsetY = localPlayer->getWalkOffsetY();
|
||||||
|
|
||||||
|
//TODO: cache first/last visible floor
|
||||||
// draw from bottom floors to top floors
|
// draw from bottom floors to top floors
|
||||||
int firstFloor = getFirstVisibleFloor();
|
int firstFloor = getFirstVisibleFloor();
|
||||||
const int lastFloor = MAX_Z-1;
|
const int lastFloor = MAX_Z-1;
|
||||||
for(int iz = lastFloor; iz >= firstFloor; --iz) {
|
for(int iz = lastFloor; iz >= firstFloor; --iz) {
|
||||||
// draw tiles in linus pauling's rule order
|
// draw tiles like linus pauling's rule order
|
||||||
const int numDiagonals = MAP_SIZE_X + MAP_SIZE_Y - 1;
|
const int numDiagonals = MAP_SIZE_X + MAP_SIZE_Y - 1;
|
||||||
for(int diagonal = 0; diagonal < numDiagonals; ++diagonal) {
|
for(int diagonal = 0; diagonal < numDiagonals; ++diagonal) {
|
||||||
// loop through / diagonal tiles
|
// loop through / diagonal tiles
|
||||||
|
|
Loading…
Reference in New Issue