mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
game: code cleanup
This commit is contained in:
parent
dcf411bb11
commit
7509200287
2 changed files with 6 additions and 4 deletions
|
@ -66,7 +66,7 @@ G_ProjectSource2(vec3_t point, vec3_t distance, vec3_t forward,
|
||||||
* if the end of the list is reached.
|
* if the end of the list is reached.
|
||||||
*/
|
*/
|
||||||
edict_t *
|
edict_t *
|
||||||
G_Find(edict_t *from, int fieldofs, char *match)
|
G_Find(edict_t *from, int fieldofs, const char *match)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
|
@ -409,7 +409,7 @@ G_UseTargets(edict_t *ent, edict_t *activator)
|
||||||
|
|
||||||
if (t == ent)
|
if (t == ent)
|
||||||
{
|
{
|
||||||
gi.dprintf("WARNING: Entity used itself.\n");
|
gi.dprintf ("WARNING: %s used itself.\n", t->classname);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -771,7 +771,9 @@ G_Spawn(void)
|
||||||
edict_t *e = G_SpawnOptional();
|
edict_t *e = G_SpawnOptional();
|
||||||
|
|
||||||
if (!e)
|
if (!e)
|
||||||
gi.error ("ED_Alloc: no free edicts");
|
{
|
||||||
|
gi.error("%s: no free edicts", __func__);
|
||||||
|
}
|
||||||
|
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
|
@ -765,7 +765,7 @@ void Touch_Item(edict_t *ent, edict_t *other, cplane_t *plane,
|
||||||
qboolean KillBox(edict_t *ent);
|
qboolean KillBox(edict_t *ent);
|
||||||
void G_ProjectSource(vec3_t point, vec3_t distance, vec3_t forward,
|
void G_ProjectSource(vec3_t point, vec3_t distance, vec3_t forward,
|
||||||
vec3_t right, vec3_t result);
|
vec3_t right, vec3_t result);
|
||||||
edict_t *G_Find(edict_t *from, int fieldofs, char *match);
|
edict_t *G_Find(edict_t *from, int fieldofs, const char *match);
|
||||||
edict_t *findradius(edict_t *from, vec3_t org, float rad);
|
edict_t *findradius(edict_t *from, vec3_t org, float rad);
|
||||||
edict_t *G_PickTarget(char *targetname);
|
edict_t *G_PickTarget(char *targetname);
|
||||||
void G_UseTargets(edict_t *ent, edict_t *activator);
|
void G_UseTargets(edict_t *ent, edict_t *activator);
|
||||||
|
|
Loading…
Reference in a new issue