From 6fb868d1965269014189411d7516c584e6c010a5 Mon Sep 17 00:00:00 2001 From: "cedeel@gmail.com" Date: Mon, 4 Jun 2012 13:35:41 +0000 Subject: Fixed Linux compilation. git-svn-id: http://mc-server.googlecode.com/svn/trunk@550 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- makefile_base | 8 +++++++- source/BlockID.cpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/makefile_base b/makefile_base index ff8201191..540d18fe7 100644 --- a/makefile_base +++ b/makefile_base @@ -253,7 +253,8 @@ MCServer : \ build/WSSCompact.o\ build/WSSAnvil.o\ build/FastNBT.o\ - build/StringCompression.o + build/StringCompression.o\ + build/CraftingRecipes.o $(CC) $(LNK_OPTIONS) \ build/json_reader.o\ build/json_value.o\ @@ -476,6 +477,7 @@ MCServer : \ build/WSSAnvil.o\ build/FastNBT.o\ build/StringCompression.o\ + build/CraftingRecipes.o\ -o MCServer clean : @@ -696,6 +698,7 @@ clean : build/StringUtils.o\ build/cIsThread.o\ build/cSocketThreads.o\ + build/CraftingRecipes.o\ MCServer install : MCServer @@ -1604,6 +1607,9 @@ build/StringCompression.o : source/StringCompression.cpp build/cRedstoneSimulator.o : source/cRedstoneSimulator.cpp $(CC) $(CC_OPTIONS) source/cRedstoneSimulator.cpp -c $(INCLUDE) -o build/cRedstoneSimulator.o +build/CraftingRecipes.o : source/CraftingRecipes.cpp + $(CC) $(CC_OPTIONS) source/CraftingRecipes.cpp -c $(INCLUDE) -o build/CraftingRecipes.o + # Template: copy and delete the "# "; insert filenames # build/.o : source/.cpp # $(CC) $(CC_OPTIONS) source/.cpp -c $(INCLUDE) -o build/.o diff --git a/source/BlockID.cpp b/source/BlockID.cpp index 12771513f..c4d6787f0 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -36,7 +36,7 @@ public: return m_Ini.GetValueI("Items", a_ItemName, -1); } - AString ResolveString(AString & a_ItemName) + AString ResolveString(const AString & a_ItemName) { return m_Ini.GetValue("Items", a_ItemName, ""); } -- cgit v1.2.3