[Fix] stricmp was not declared. Changed to srtcmp and included <string.h>

This commit is contained in:
Rtch90 2012-04-17 18:47:14 +01:00
parent 2c50be6573
commit 6b52c5ef96

View File

@ -1,5 +1,6 @@
#include <map> #include <map>
#include <algorithm> #include <algorithm>
#include <string.h>
#include "Level.h" #include "Level.h"
#include "Layer.h" #include "Layer.h"
#include "Tileset.h" #include "Tileset.h"
@ -73,7 +74,7 @@ bool Level::Load(const std::string& filename) {
for(int i = 0; i < map.GetNumLayers(); i++) { for(int i = 0; i < map.GetNumLayers(); i++) {
const Tmx::Layer* tmxLayer = map.GetLayer(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 x = 0; x < _width; x++) {
for(int y = 0; y < _height; y++) { for(int y = 0; y < _height; y++) {
Tmx::MapTile tile = tmxLayer->GetTile(x, y); Tmx::MapTile tile = tmxLayer->GetTile(x, y);