Fixed bugs GCC caught
This commit is contained in:
parent
fe2d28f711
commit
b312da8c63
|
@ -33,6 +33,10 @@
|
||||||
#include "amxmodx.h"
|
#include "amxmodx.h"
|
||||||
#include "CLang.h"
|
#include "CLang.h"
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#define _snprintf snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LITIDX_NONE 0
|
#define LITIDX_NONE 0
|
||||||
#define LITIDX_BRACKET 1
|
#define LITIDX_BRACKET 1
|
||||||
#define LITIDX_DEFINITION 2
|
#define LITIDX_DEFINITION 2
|
||||||
|
|
|
@ -2076,9 +2076,9 @@ static cell AMX_NATIVE_CALL get_distance_f(AMX *amx, cell *params)
|
||||||
(float)amx_ctof(cpVec2[1]),
|
(float)amx_ctof(cpVec2[1]),
|
||||||
(float)amx_ctof(cpVec2[2]));
|
(float)amx_ctof(cpVec2[2]));
|
||||||
|
|
||||||
float fDist = (float) (vec1-vec2).Length();
|
REAL fDist = (REAL) (vec1-vec2).Length();
|
||||||
|
|
||||||
return amx_ftoc((REAL)fDist);
|
return amx_ftoc(fDist);
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL random_float(AMX *amx, cell *params) /* 2 param */
|
static cell AMX_NATIVE_CALL random_float(AMX *amx, cell *params) /* 2 param */
|
||||||
|
@ -2914,7 +2914,7 @@ static cell AMX_NATIVE_CALL find_plugin_byfile(AMX *amx, cell *params)
|
||||||
|
|
||||||
if (params[2])
|
if (params[2])
|
||||||
{
|
{
|
||||||
func = stricmp;
|
func = strcmpi;
|
||||||
} else {
|
} else {
|
||||||
func = strcmp;
|
func = strcmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user