Skip to content

Commit

Permalink
Linux fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IS4Code committed Nov 14, 2020
1 parent 657ed58 commit 793f437
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ BYTE Utility::GetWeaponSlot(BYTE weaponid)
}

// Load an entry from server.cfg - Y_Less
int Utility::CFGLoad(char const * const name, int default, char * const dest, size_t dlen)
int Utility::CFGLoad(char const * const name, int default_val, char * const dest, size_t dlen)
{
FILE * fileConfig = fopen("plugins/YSF.cfg", "r");
//logprintf("2");

int
ret = default,
ret = default_val,
len = strlen(name);
//logprintf("3");

Expand Down
2 changes: 1 addition & 1 deletion src/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Utility
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
const char* GetWeaponName(BYTE weaponid);
BYTE GetWeaponSlot(BYTE weaponid);
int CFGLoad(char const * const name, int default = 1, char * const dest = 0, size_t dlen = 0);
int CFGLoad(char const * const name, int default_val = 1, char * const dest = 0, size_t dlen = 0);
};

float GetDistance3D(CVector *vecPosition, CVector *_vecPosition);
Expand Down

0 comments on commit 793f437

Please sign in to comment.