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/scene.cpp

    r138 r141  
    7373        data->tiles = (Tile *)realloc(data->tiles,
    7474                                      (data->ntiles + 1024) * sizeof(Tile));
    75     data->tiles[data->ntiles].prio = y - 2 * 32 * z + (o ? 0 : 32);
     75    data->tiles[data->ntiles].prio = -y - 2 * 32 * z + (o ? 0 : 32);
    7676    data->tiles[data->ntiles].code = code;
    7777    data->tiles[data->ntiles].x = x;
Note: See TracChangeset for help on using the changeset viewer.