Ignore:
Timestamp:
Aug 19, 2010, 2:58:31 AM (10 years ago)
Author:
sam
Message:

Fix Z-sorting yet again, and add real level support to map loading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/layer.cpp

    r137 r141  
    88#endif
    99
    10 #include <stdlib.h>
     10#include <cstdlib>
    1111
    1212#include "layer.h"
     
    4141        for (int i = 0; i < width; i++)
    4242            if (data[j * width + i])
    43                 scene->AddTile(data[j * width + i], x + i * 32, y + j * 32,
     43                scene->AddTile(data[j * width + i],
     44                               x + i * 32, y + j * 32 + altitude,
    4445                               altitude + z, orientation);
    4546}
Note: See TracChangeset for help on using the changeset viewer.