mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-10 06:31:40 +00:00
Match pr_cmds with 3DS
This commit is contained in:
parent
8597118512
commit
38679fde18
3 changed files with 22 additions and 5 deletions
|
@ -59,7 +59,7 @@ void Cvar_List_f (void)
|
|||
count = 0;
|
||||
for (cvar = cvar_vars ; cvar ; cvar = cvar->next)
|
||||
{
|
||||
if (partial && Q_strncmp(partial, cvar->name, len))
|
||||
if (partial && strncmp(partial, cvar->name, len))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -360,7 +360,7 @@ const char *Cvar_CompleteVariable (const char *partial)
|
|||
// check functions
|
||||
for (cvar = cvar_vars ; cvar ; cvar = cvar->next)
|
||||
{
|
||||
if (!Q_strncmp(partial, cvar->name, len))
|
||||
if (!strncmp(partial, cvar->name, len))
|
||||
return cvar->name;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "quakedef.h"
|
||||
|
||||
#ifdef _3DS
|
||||
extern bool new3ds_flag;
|
||||
#endif // _3DS
|
||||
|
||||
#define PR_MAX_TEMPSTRING 2048 // 2001-10-25 Enhanced temp string handling by Maddes
|
||||
#define RETURN_EDICT(e) (((int *)pr_globals)[OFS_RETURN] = EDICT_TO_PROG(e))
|
||||
|
||||
|
@ -961,7 +965,12 @@ int PF_newcheckclient (int check)
|
|||
VectorAdd (ent->v.origin, ent->v.view_ofs, org);
|
||||
leaf = Mod_PointInLeaf (org, sv.worldmodel);
|
||||
pvs = Mod_LeafPVS (leaf, sv.worldmodel);
|
||||
|
||||
#ifdef __PSP__
|
||||
memcpy_vfpu(checkpvs, pvs, (sv.worldmodel->numleafs+7)>>3 );
|
||||
#else
|
||||
memcpy(checkpvs, pvs, (sv.worldmodel->numleafs+7)>>3 );
|
||||
#endif // __PSP__
|
||||
|
||||
return i;
|
||||
}
|
||||
|
@ -1487,8 +1496,11 @@ This is where the magic happens
|
|||
=================
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __PSP__
|
||||
#define MaxZombies 12
|
||||
#else
|
||||
#define MaxZombies 18
|
||||
#endif
|
||||
|
||||
|
||||
#define WAYPOINT_SET_NONE 0
|
||||
|
@ -3601,7 +3613,14 @@ nzp_maxai()
|
|||
*/
|
||||
void PF_MaxZombies(void)
|
||||
{
|
||||
#ifdef __PSP__
|
||||
G_FLOAT(OFS_RETURN) = MaxZombies;
|
||||
#else
|
||||
if (new3ds_flag)
|
||||
G_FLOAT(OFS_RETURN) = MaxZombies;
|
||||
else
|
||||
G_FLOAT(OFS_RETURN) = 12;
|
||||
#endif // __PSP__
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -19,8 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
*/
|
||||
|
||||
#include "quakedef.h"
|
||||
#include "thread.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
|
Loading…
Reference in a new issue