Ignore:
Timestamp:
Aug 17, 2010, 1:01:16 AM (10 years ago)
Author:
sam
Message:

Fix z-sorting of tiles. For now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/layer.cpp

    r100 r133  
    1212#include "layer.h"
    1313
    14 Layer::Layer(int w, int h, int z, uint32_t *in_data)
     14Layer::Layer(int w, int h, int z, int o, uint32_t *in_data)
    1515{
    1616    width = w;
    1717    height = h;
    1818    altitude = z;
     19    orientation = o;
    1920    data = in_data;
    2021
     
    4041        for (int i = 0; i < width; i++)
    4142            if (data[j * width + i])
    42                 scene->AddTile(data[j * width + i],
    43                                i * 32 - x, j * 32 - y, altitude + z);
     43                scene->AddTile(data[j * width + i], i * 32 - x, j * 32 - y,
     44                               altitude + z, orientation);
    4445}
    4546
Note: See TracChangeset for help on using the changeset viewer.