mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bugs GCC caught
This commit is contained in:
parent
fe2d28f711
commit
b312da8c63
@ -33,6 +33,10 @@
|
||||
#include "amxmodx.h"
|
||||
#include "CLang.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#define _snprintf snprintf
|
||||
#endif
|
||||
|
||||
#define LITIDX_NONE 0
|
||||
#define LITIDX_BRACKET 1
|
||||
#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[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 */
|
||||
@ -2914,7 +2914,7 @@ static cell AMX_NATIVE_CALL find_plugin_byfile(AMX *amx, cell *params)
|
||||
|
||||
if (params[2])
|
||||
{
|
||||
func = stricmp;
|
||||
func = strcmpi;
|
||||
} else {
|
||||
func = strcmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user