Merge branch 'master' of github.com:Allanis/LibD
This commit is contained in:
commit
054e4f0c08
@ -1,5 +1,6 @@
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
#include <string.h>
|
||||
#include "Level.h"
|
||||
#include "Layer.h"
|
||||
#include "Tileset.h"
|
||||
@ -73,7 +74,7 @@ bool Level::Load(const std::string& filename) {
|
||||
for(int i = 0; i < map.GetNumLayers(); i++) {
|
||||
const Tmx::Layer* tmxLayer = map.GetLayer(i);
|
||||
|
||||
if(!stricmp(tmxLayer->GetName().c_str(), "collision")) {
|
||||
if(!strcmp(tmxLayer->GetName().c_str(), "collision")) {
|
||||
for(int x = 0; x < _width; x++) {
|
||||
for(int y = 0; y < _height; y++) {
|
||||
Tmx::MapTile tile = tmxLayer->GetTile(x, y);
|
||||
|
Loading…
Reference in New Issue
Block a user