Show combos when a new record is reached.
[supertux.git] / src / tile_manager.cpp
index 47b4cc2..0c87f4e 100644 (file)
@@ -80,7 +80,7 @@ void TileManager::load_tileset(std::string filename)
                 continue;
               }*/
 
-              tiles.insert(std::make_pair(tile_id, tile));
+              tiles[tile_id] = tile;
             }
           else if (strcmp(lisp_symbol(lisp_car(element)), "tileset") == 0)
             {
@@ -152,16 +152,8 @@ Tile*
 TileManager::get(unsigned int id)
 {
 Tiles::iterator i = tiles.find(id);
-
 if(i == tiles.end())
-  {
-  std::cerr << "Warning: Asked for a non-existing tile id. Ignoring.\n";
-  // Never return 0, but return the first tile instead so that
-  // user code doesn't have to check for NULL pointers all over
-  // the place
-  i = tiles.begin();
-  return i->second;
-  }
+  return 0;
 return i->second;
 }