Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rheit/zdoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Oelckers committed Jan 15, 2016
2 parents 90e2dc5 + 91d56aa commit f9ae304
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/p_conversation.cpp
Expand Up @@ -1345,12 +1345,14 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply
if (reply->NextNode != 0)
{
int rootnode = npc->ConversationRoot;
if (reply->NextNode < 0)
unsigned next = (unsigned)(rootnode + (reply->NextNode < 0 ? -1 : 1) * reply->NextNode - 1);

if (next < StrifeDialogues.Size())
{
unsigned next = (unsigned)(rootnode - reply->NextNode - 1);
if (gameaction != ga_slideshow && next < StrifeDialogues.Size())
npc->Conversation = StrifeDialogues[next];

if (gameaction != ga_slideshow)
{
npc->Conversation = StrifeDialogues[next];
P_StartConversation (npc, player->mo, player->ConversationFaceTalker, false);
return;
}
Expand All @@ -1359,10 +1361,6 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply
S_StopSound (npc, CHAN_VOICE);
}
}
else
{
npc->Conversation = StrifeDialogues[rootnode + reply->NextNode - 1];
}
}

npc->angle = player->ConversationNPCAngle;
Expand Down
8 changes: 8 additions & 0 deletions src/p_map.cpp
Expand Up @@ -4297,6 +4297,14 @@ void P_RailAttack(AActor *source, int damage, int offset_xy, fixed_t offset_z, i
SpawnShootDecal(source, trace);

}
if (trace.HitType == TRACE_HitFloor || trace.HitType == TRACE_HitCeiling)
{
AActor* puff = NULL;
if (puffclass != NULL && puffDefaults->flags3 & MF3_ALWAYSPUFF)
{
puff = P_SpawnPuff(source, puffclass, trace.X, trace.Y, trace.Z, (source->angle + angleoffset) - ANG90, 1, 0);
}
}
if (thepuff != NULL)
{
if (trace.HitType == TRACE_HitFloor &&
Expand Down
1 change: 1 addition & 0 deletions wadsrc/static/compatibility.txt
Expand Up @@ -403,6 +403,7 @@ D0139194F7817BF06F3988DFC47DB38D // Whispers of Satan map29
}

D7F6E9F08C39A17026349A04F8C0B0BE // Return to Hadron, e1m9
19D03FFC875589E21EDBB7AB74EF4AEF // Return to Hadron, e1m9, 2016.01.03 update
{
pointonline
}

0 comments on commit f9ae304

Please sign in to comment.