mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
fixes
This commit is contained in:
parent
b4713b6770
commit
d67d5a2582
1 changed files with 6 additions and 2 deletions
|
@ -60,7 +60,7 @@ void spark_link( gentity_t *ent )
|
|||
|
||||
target = G_Find (target, FOFS(targetname), ent->target);
|
||||
|
||||
if (target != NULL)
|
||||
if (target == NULL)
|
||||
{
|
||||
G_Printf(S_COLOR_RED "spark_link: target specified but not found: %s\n", ent->target );
|
||||
G_FreeEntity(ent);
|
||||
|
@ -563,7 +563,11 @@ void SP_fx_fountain ( gentity_t *ent ) {
|
|||
ent->use = fountain_use;
|
||||
|
||||
//on and/or off state
|
||||
ent->count = !( ent->spawnflags & 1 );
|
||||
if((ent->spawnflags & 1) == 0) {
|
||||
ent->count = 1;
|
||||
} else {
|
||||
ent->count = 0;
|
||||
}
|
||||
|
||||
if ( ent->count ) {
|
||||
ent->think = fountain_think;
|
||||
|
|
Loading…
Reference in a new issue