Mercurial > mm7
comparison UI/UIHouses.cpp @ 1313:ae6c8e1ddef4
fix enter house error
author | Gloval |
---|---|
date | Wed, 26 Jun 2013 21:33:42 +0400 |
parents | 13b7be8b06a0 |
children | 28f87f5234a1 94e4c3ef9b8e |
comparison
equal
deleted
inserted
replaced
1312:ae435824ac4d | 1313:ae6c8e1ddef4 |
---|---|
525 { | 525 { |
526 if (pNPCStats->pNewNPCData[i].Location2D == house ) | 526 if (pNPCStats->pNewNPCData[i].Location2D == house ) |
527 { | 527 { |
528 if (!(pNPCStats->pNewNPCData[i].uFlags & 0x80)) | 528 if (!(pNPCStats->pNewNPCData[i].uFlags & 0x80)) |
529 { | 529 { |
530 | 530 HouseNPCData[uNumDialogueNPCPortraits+1-((dword_591080 != 0) ? 1 : 0) ] = &pNPCStats->pNewNPCData[i]; |
531 HouseNPCData[uNumDialogueNPCPortraits+1- (dword_591080 != 0) ? 1 : 0] = &pNPCStats->pNewNPCData[i]; | |
532 npc_id_arr[uNumDialogueNPCPortraits] = pNPCStats->pNewNPCData[i].uPortraitID; | 531 npc_id_arr[uNumDialogueNPCPortraits] = pNPCStats->pNewNPCData[i].uPortraitID; |
533 ++uNumDialogueNPCPortraits; | 532 ++uNumDialogueNPCPortraits; |
534 if ((pNPCStats->pNewNPCData[i].uFlags & 3) != 2) | 533 if ((pNPCStats->pNewNPCData[i].uFlags & 3) != 2) |
535 ++pNPCStats->pNewNPCData[i].uFlags; | 534 ++pNPCStats->pNewNPCData[i].uFlags; |
536 } | 535 } |