- handled approx. half of all cases where the address of level is taken.
This commit is contained in:
parent
b4acb857ad
commit
648e472744
38 changed files with 122 additions and 128 deletions
|
|
@ -739,7 +739,7 @@ void P_StartConversation (AActor *npc, AActor *pc, bool facetalker, bool saveang
|
|||
|
||||
// Make sure this is actually a player.
|
||||
if (pc == nullptr || pc->player == nullptr || npc == nullptr) return;
|
||||
auto Level = &level;
|
||||
auto Level = pc->Level;
|
||||
|
||||
// [CW] If an NPC is talking to a PC already, then don't let
|
||||
// anyone else talk to the NPC.
|
||||
|
|
@ -887,7 +887,7 @@ static void HandleReply(player_t *player, bool isconsole, int nodenum, int reply
|
|||
AActor *npc;
|
||||
bool takestuff;
|
||||
int i;
|
||||
auto Level = &level;
|
||||
auto Level = player->mo->Level;
|
||||
if (player->ConversationNPC == nullptr || (unsigned)nodenum >= Level->StrifeDialogues.Size())
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue