Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gamegfx: Fix tile count and remove redundant code

  • Loading branch information...
commit be4de43cd4106de30b7cafd8c0cdeca3498a76fb 1 parent 0ff00ae
Adam Nielsen authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 examples/gamegfx.cpp
4 examples/gamegfx.cpp
View
@@ -105,7 +105,7 @@ void printTilesetList(std::string prefix, gg::TilesetPtr pTileset,
} else {
std::cout << ", ";
if (tiles.size()) {
- std::cout << (tiles.size() - 1) << " items\n";
+ std::cout << tiles.size() << " items\n";
} else {
std::cout << "no images" << '\n';
}
@@ -361,8 +361,6 @@ void pngToTileset(gg::TilesetPtr tileset, const std::string& srcFile)
if ((*i)->attr & gg::Tileset::SubTileset) continue; // aah! tileset! bad!
gg::ImagePtr img = tileset->openImage(*i);
- gg::StdImageDataPtr data = img->toStandard();
- gg::StdImageDataPtr mask = img->toStandardMask();
unsigned int offX = (t % tilesX) * width;
unsigned int offY = (t / tilesX) * height;
Please sign in to comment.
Something went wrong with that request. Please try again.