Browse Source

debug: only print the layer and map errors once.

legacy
Sam Hocevar sam 13 years ago
parent
commit
153425ed14
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      src/layer.cpp
  2. +3
    -1
      src/map.cpp

+ 3
- 1
src/layer.cpp View File

@@ -47,7 +47,9 @@ Layer::~Layer()

void Layer::Render(int x, int y, int z)
{
Log::Error("FIXME: Layer::Render no longer works\n");
static int error = 1;
if (error && !(error = 0))
Log::Error("FIXME: Layer::Render no longer works\n");
#if 0
Scene *scene = Scene::GetDefault();
for (int j = 0; j < height; j++)


+ 3
- 1
src/map.cpp View File

@@ -95,7 +95,9 @@ Map::Map(char const *path)
if (n == data->ntilers - 1
|| id < gids[n + 1])
{
Log::Error("tilesets no longer work this way\n");
static int error = 1;
if (error && !(error = 0))
Log::Error("tilesets no longer work this way\n");
//code = (data->tilesets[n] << 16) | (id - gids[n]);
break;
}


Loading…
Cancel
Save