mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-13 07:47:45 +00:00
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2476 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4a823c3601
commit
57f2fd6edc
1 changed files with 10 additions and 4 deletions
|
@ -165,13 +165,18 @@ pbool ED_CanFree (edict_t *ed)
|
||||||
{
|
{
|
||||||
if (ed == sv.edicts)
|
if (ed == sv.edicts)
|
||||||
{
|
{
|
||||||
Con_TPrintf(STL_CANTFREEWORLD);
|
if (developer.value)
|
||||||
*svprogfuncs->pr_trace = 1;
|
{
|
||||||
|
Con_TPrintf(STL_CANTFREEWORLD);
|
||||||
|
PR_StackTrace(svprogfuncs);
|
||||||
|
*svprogfuncs->pr_trace = 1;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (NUM_FOR_EDICT(svprogfuncs, ed) <= sv.allocated_client_slots)
|
if (NUM_FOR_EDICT(svprogfuncs, ed) <= sv.allocated_client_slots)
|
||||||
{
|
{
|
||||||
Con_TPrintf(STL_CANTFREEPLAYERS);
|
Con_TPrintf(STL_CANTFREEPLAYERS);
|
||||||
|
PR_StackTrace(svprogfuncs);
|
||||||
*svprogfuncs->pr_trace = 1;
|
*svprogfuncs->pr_trace = 1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -2357,12 +2362,12 @@ void PF_vectoangles (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
yaw = (int) (atan2(value1[1], value1[0]) * 180 / M_PI);
|
yaw = /*(int)*/ (atan2(value1[1], value1[0]) * 180 / M_PI);
|
||||||
if (yaw < 0)
|
if (yaw < 0)
|
||||||
yaw += 360;
|
yaw += 360;
|
||||||
|
|
||||||
forward = sqrt (value1[0]*value1[0] + value1[1]*value1[1]);
|
forward = sqrt (value1[0]*value1[0] + value1[1]*value1[1]);
|
||||||
pitch = (int) (atan2(value1[2], forward) * 180 / M_PI);
|
pitch = /*(int)*/ (atan2(value1[2], forward) * 180 / M_PI);
|
||||||
if (pitch < 0)
|
if (pitch < 0)
|
||||||
pitch += 360;
|
pitch += 360;
|
||||||
}
|
}
|
||||||
|
@ -6269,6 +6274,7 @@ lh_extension_t QSG_Extensions[] = {
|
||||||
{"DP_QC_MULTIPLETEMPSTRINGS"},
|
{"DP_QC_MULTIPLETEMPSTRINGS"},
|
||||||
{"DP_QC_RANDOMVEC", 1, NULL, {"randomvec"}},
|
{"DP_QC_RANDOMVEC", 1, NULL, {"randomvec"}},
|
||||||
{"DP_QC_SINCOSSQRTPOW", 4, NULL, {"sin", "cos", "sqrt", "pow"}},
|
{"DP_QC_SINCOSSQRTPOW", 4, NULL, {"sin", "cos", "sqrt", "pow"}},
|
||||||
|
{"DP_QC_UNLIMITEDTEMPSTRINGS"},
|
||||||
{"DP_QC_TRACEBOX", 1, NULL, {"tracebox"}},
|
{"DP_QC_TRACEBOX", 1, NULL, {"tracebox"}},
|
||||||
{"DP_QC_TRACETOSS"},
|
{"DP_QC_TRACETOSS"},
|
||||||
{"DP_QC_TRACE_MOVETYPE_HITMODEL"},
|
{"DP_QC_TRACE_MOVETYPE_HITMODEL"},
|
||||||
|
|
Loading…
Reference in a new issue