Skip to content

Commit 0e93b72

Browse files
committed
Fixes.
1 parent 761d38a commit 0e93b72

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ find_package(PkgConfig)
155155
pkg_check_modules(YAMLCPP REQUIRED yaml-cpp>=0.5)
156156
include_directories(${YAMLCPP_INCLUDE_DIRS})
157157

158-
add_executable(WolfensteinTest ${SOURCE_FILES_SERVER} test/test.cpp)
159158
add_executable(ServerMain ${SOURCE_FILES_SERVER} serverMain.cpp)
160159

161-
target_link_libraries(WolfensteinTest ${YAMLCPP_LIBRARIES})
162160
target_link_libraries(ServerMain ${YAMLCPP_LIBRARIES})

client/src/Lua/LuaClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int Client::run(std::string& host, std::string& port, uint32_t lobbyID, std::str
6464
return ERROR;
6565
}
6666

67-
std::string mapFile = "../../common/src/YAML/map";
67+
std::string mapFile = "../../common/src/YAML/Maps/map";
6868
mapFile = mapFile + std::to_string(mapID) + ".yaml";
6969

7070
if(!fileExists(mapFile)){

client/src/Lua/lua_main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#include "LuaClient.h"
2+
#include <cstdlib>
23
#include <string>
34

45
#define INVALID_ARGS_ERR "Error, no hostname and/or port given."
56

67
int main(int argc, char* argv[]){
78

8-
if (argc != 4) {
9+
if (argc != 5) {
910
LOG(INVALID_ARGS_ERR);
1011
}
1112

@@ -14,6 +15,7 @@ int main(int argc, char* argv[]){
1415
std::string host = argv[1];
1516
std::string port = argv[2];
1617
std::string scriptName = argv[3];
18+
int matchID = atoi(argv[4]);
1719

18-
return client.run(host, port, 1, scriptName);
20+
return client.run(host, port, matchID, scriptName);
1921
}

0 commit comments

Comments
 (0)