Commit b84dfbd4 authored by Evan Ramos's avatar Evan Ramos
Browse files

Duke: Fix two erroneous uses of tileGetMapping in network.cpp

parent 76e85d63
......@@ -907,7 +907,7 @@ static void Net_CopyActorFromNet(const netactor_t* netActor, actor_t *gameActor)
bool isActor = G_TileHasActor(netActor->spr_picnum);
// Fixes ambient sound infinite sound replay glitch (stand in the outdoor area of E1L1, the "airplane noise" will get very loud and loop endlessly.
bool isSoundActor = (tileGetMapping(netActor->picnum) == MUSICANDSFX);
bool isSoundActor = (netActor->picnum == MUSICANDSFX);
if(!isSoundActor)
{
......@@ -921,7 +921,7 @@ static void Net_CopyActorFromNet(const netactor_t* netActor, actor_t *gameActor)
// Prevents:
// - Rotating sector stuttering
// - Trains running backwards
bool isSyncedSE = (tileGetMapping(netActor->picnum) == SECTOREFFECTOR) &&
bool isSyncedSE = (netActor->picnum == SECTOREFFECTOR) &&
(
(netActor->spr_lotag == SE_0_ROTATING_SECTOR)
|| (netActor->spr_lotag == SE_1_PIVOT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment