mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
fix for tracelien forward
This commit is contained in:
parent
26465afbf7
commit
569ef4d494
@ -92,6 +92,7 @@ void SetModel_post(edict_t *e, const char *m)
|
||||
|
||||
void TraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr)
|
||||
{
|
||||
TRACE_LINE(v1, v2, fNoMonsters, pentToSkip, ptr); //from fun module - prevents crash? - t(+)rget/freecode
|
||||
cell vec1[3] = {amx_ftoc(v1[0]), amx_ftoc(v1[1]), amx_ftoc(v1[2])};
|
||||
cell vec2[3] = {amx_ftoc(v2[0]), amx_ftoc(v2[1]), amx_ftoc(v2[2])};
|
||||
cell retvec1 = MF_PrepareCellArray(vec1, 3);
|
||||
@ -1043,4 +1044,4 @@ AMX_NATIVE_INFO forward_natives[] = {
|
||||
{ "register_forward", register_forward },
|
||||
{ "forward_return", fm_return },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user