Skip to content

Commit

Permalink
AlternativeDialogueBoxes only for DlgChoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Franisz committed Jul 22, 2022
1 parent 921f66c commit b5b828c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zUtilities/Dialogue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace GOTHIC_ENGINE {

HOOK Hook_zCViewPrint_Blit PATCH( &zCViewPrint::Blit, &zCViewPrint::Blit_Union );
void zCViewPrint::Blit_Union() {
if ( !Options::AlternativeDialogueBoxes || !playerHelper.IsInInfo() ) {
if ( !Options::AlternativeDialogueBoxes || this != oCInformationManager::GetInformationManager().DlgChoice ) {
THISCALL( Hook_zCViewPrint_Blit )();
return;
}
Expand All @@ -28,7 +28,7 @@ namespace GOTHIC_ENGINE {

HOOK Hook_zCViewPrint_BlitTextCharacters PATCH( &zCViewPrint::BlitTextCharacters, &zCViewPrint::BlitTextCharacters_Union );
void zCViewPrint::BlitTextCharacters_Union( zCViewText2* a1, zCFont* a2, zCOLOR& a3 ) {
if ( !Options::AlternativeDialogueBoxes || !playerHelper.IsInInfo() ) {
if ( !Options::AlternativeDialogueBoxes || this != oCInformationManager::GetInformationManager().DlgChoice ) {
THISCALL( Hook_zCViewPrint_BlitTextCharacters )(a1, a2, a3);
return;
}
Expand Down

0 comments on commit b5b828c

Please sign in to comment.