diff options
author | Samuel Villareal | 2010-09-18 04:55:20 +0000 |
---|---|---|
committer | Samuel Villareal | 2010-09-18 04:55:20 +0000 |
commit | 687ff30bcc7ae07e8dcc7928598aa0ea268201bd (patch) | |
tree | 85e965020539d4deb723637e23c139eb9255cba5 /src | |
parent | 0d531f6108e585d6ea718d8ea4aef9a7aa5b9c72 (diff) | |
download | chocolate-doom-687ff30bcc7ae07e8dcc7928598aa0ea268201bd.tar.gz chocolate-doom-687ff30bcc7ae07e8dcc7928598aa0ea268201bd.tar.bz2 chocolate-doom-687ff30bcc7ae07e8dcc7928598aa0ea268201bd.zip |
+ Fixed a fluke in A_TeleportBeacon
Subversion-branch: /branches/strife-branch
Subversion-revision: 2104
Diffstat (limited to 'src')
-rw-r--r-- | src/strife/p_enemy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c index ac7c57ea..c5bae2ac 100644 --- a/src/strife/p_enemy.c +++ b/src/strife/p_enemy.c @@ -3004,8 +3004,8 @@ void A_TeleportBeacon(mobj_t* actor) P_SetMobjState(mobj, mobj->info->seestate); mobj->angle = actor->angle; - fog_x = FixedMul(20*FRACUNIT, finecosine[actor->angle>>ANGLETOFINESHIFT] + mobj->x); - fog_y = FixedMul(20*FRACUNIT, finesine[actor->angle>>ANGLETOFINESHIFT] + mobj->y); + fog_x = mobj->x + FixedMul(20*FRACUNIT, finecosine[actor->angle>>ANGLETOFINESHIFT]); + fog_y = mobj->y + FixedMul(20*FRACUNIT, finesine[actor->angle>>ANGLETOFINESHIFT]); fog = P_SpawnMobj(fog_x, fog_y, mobj->z, MT_TFOG); S_StartSound(fog, sfx_telept); |