mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-26 14:10:55 +00:00
So, nun explodieren auch die Teslas wieder in der Lava. Den
Prixymine-Bug haben wir sogar noch ein wenig eleganter gefixt
This commit is contained in:
parent
57fa438154
commit
8f7debb1e6
1 changed files with 4 additions and 3 deletions
|
@ -311,9 +311,9 @@ void prox_land (edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
|
|||
return;
|
||||
}
|
||||
|
||||
if (plane->normal)
|
||||
if (plane->normal != 0)
|
||||
{
|
||||
VectorMA (ent->s.origin, -11.0, plane->normal, land_point);
|
||||
VectorMA (ent->s.origin, -10.0, plane->normal, land_point);
|
||||
if (gi.pointcontents (land_point) & (CONTENTS_SLIME|CONTENTS_LAVA))
|
||||
{
|
||||
Prox_Explode (ent);
|
||||
|
@ -1555,8 +1555,9 @@ void tesla_lava (edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf
|
|||
{
|
||||
vec3_t land_point;
|
||||
|
||||
if (plane->normal)
|
||||
if (plane->normal != 0)
|
||||
{
|
||||
VectorMA (ent->s.origin, -20.0, plane->normal, land_point);
|
||||
if (gi.pointcontents (land_point) & (CONTENTS_SLIME|CONTENTS_LAVA))
|
||||
{
|
||||
tesla_blow (ent);
|
||||
|
|
Loading…
Reference in a new issue