mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
some sanity check commenting
This commit is contained in:
parent
8869b0542d
commit
392c04bc1d
2 changed files with 6 additions and 6 deletions
|
@ -379,7 +379,7 @@ blaster_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
|
|||
{
|
||||
int mod;
|
||||
|
||||
if (!self || !other)
|
||||
if (!self || !other) /* plane and surf can be NULL */
|
||||
{
|
||||
G_FreeEdict(self);
|
||||
return;
|
||||
|
@ -598,7 +598,7 @@ Grenade_Explode(edict_t *ent)
|
|||
void
|
||||
Grenade_Touch(edict_t *ent, edict_t *other, cplane_t *plane /* unused */, csurface_t *surf)
|
||||
{
|
||||
if (!ent || !other)
|
||||
if (!ent || !other) /* plane is unused, surf can be NULL */
|
||||
{
|
||||
G_FreeEdict(ent);
|
||||
return;
|
||||
|
@ -749,7 +749,7 @@ rocket_touch(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
|
|||
vec3_t origin;
|
||||
int n;
|
||||
|
||||
if (!ent || !other)
|
||||
if (!ent || !other) /* plane and surf can be NULL */
|
||||
{
|
||||
G_FreeEdict(ent);
|
||||
return;
|
||||
|
@ -1017,7 +1017,7 @@ bfg_explode(edict_t *self)
|
|||
void
|
||||
bfg_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
|
||||
{
|
||||
if (!self || !other)
|
||||
if (!self || !other) /* plane and surf can be NULL */
|
||||
{
|
||||
G_FreeEdict(self);
|
||||
return;
|
||||
|
|
|
@ -203,7 +203,7 @@ BeginIntermission(edict_t *targ)
|
|||
}
|
||||
|
||||
void
|
||||
DeathmatchScoreboardMessage(edict_t *ent, edict_t *killer /* can be NULL */)
|
||||
DeathmatchScoreboardMessage(edict_t *ent, edict_t *killer)
|
||||
{
|
||||
char entry[1024];
|
||||
char string[1400];
|
||||
|
@ -217,7 +217,7 @@ DeathmatchScoreboardMessage(edict_t *ent, edict_t *killer /* can be NULL */)
|
|||
edict_t *cl_ent;
|
||||
char *tag;
|
||||
|
||||
if (!ent)
|
||||
if (!ent) /* killer can be NULL */
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue