Skip to content

Commit fdfaa87

Browse files
author
y2g.de
committed
bugfix (wrong gamemode loaded)
1 parent befb852 commit fdfaa87

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ link_libraries(${PYTHON_LIBRARIES})
2626

2727
add_samp_plugin(pySAMP
2828
amxplugin.cpp
29+
main.h
2930
main.cpp
3031
main.def
3132
sampgdk.c

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#define PY_TEST (0)
21

32
#include <stdio.h>
43
#include <string.h>
4+
#include "main.h"
55
#include "sampgdk.h"
66
#include "pysamp/pysamp.h"
77
#include "bindings/callbacks.h"

src/main.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#ifndef MAIN_H
2+
#define PY_TEST (0)
3+
#endif //MAIN_H

src/pysamp/pysamp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef PYSAMP_H
22
#define PYSAMP_H
33

4-
#if PY_TEST
4+
#if PY_TEST == 0
55
#ifdef WIN32
66
#define PYTHON_PATH "\\python"
77
#else

0 commit comments

Comments
 (0)