mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
Fixed a bug where fx_phaser would not work anymore.
This commit is contained in:
parent
2efe66b968
commit
f2ea43430c
1 changed files with 4 additions and 4 deletions
|
@ -1071,10 +1071,10 @@ void SP_fx_phaser(gentity_t *ent) {
|
|||
|
||||
G_Logger(LL_DEBUG, "soundindex=%d\n", ent->s.time);
|
||||
|
||||
if(ent->wait <= 0.0f) { // FIXME does not work°°
|
||||
ent->s.time2 = (int)(ent->wait * 1000.0f);
|
||||
} else {
|
||||
if(ent->wait <= 0.0f) {
|
||||
ent->s.time2 = 3000;
|
||||
} else {
|
||||
ent->s.time2 = (int)(ent->wait * 1000.0f);
|
||||
}
|
||||
|
||||
G_Logger(LL_DEBUG, "firetime=%d\n", ent->s.time2);
|
||||
|
@ -1176,7 +1176,7 @@ static void fx_torpedo_link(gentity_t *ent) {
|
|||
VectorCopy(dir, ent->s.angles);
|
||||
trap_LinkEntity(ent);
|
||||
|
||||
ent->wait = (ent->wait <= 0.0f) ? (ent->wait * 1000.0f) : 0.0f;
|
||||
ent->wait = (ent->wait <= 0.0f) ? 0.0f : (ent->wait * 1000.0f);
|
||||
|
||||
if(ent->count == 0) {
|
||||
ent->count = -1;
|
||||
|
|
Loading…
Reference in a new issue