diff --git a/Laptop/DynamicDialogueWidget.cpp b/Laptop/DynamicDialogueWidget.cpp index bb15a9b9..0b3e5e2f 100644 --- a/Laptop/DynamicDialogueWidget.cpp +++ b/Laptop/DynamicDialogueWidget.cpp @@ -372,7 +372,7 @@ void DelayBoxDestruction( UINT32 aVal ) } } -void DelayBoxDestructionBy( UINT32 aVal ) +void DelayBoxDestructionBy( INT32 aVal ) { // now find this box in the list for ( UINT8 i = 0; i < MYBOX_NUMBER; ++i ) @@ -497,7 +497,7 @@ IMPDialogueChooseBox::Display( ) if ( !IsDisplayed( ) ) return; - // we draw a line that shwos us how much time we have for the decision + // we draw a line that shows us how much time we have for the decision UINT32 totaltime = max( 0, musEndTime - musCreationTime ); if ( totaltime ) diff --git a/Laptop/DynamicDialogueWidget.h b/Laptop/DynamicDialogueWidget.h index b58a34b2..dcbb05de 100644 --- a/Laptop/DynamicDialogueWidget.h +++ b/Laptop/DynamicDialogueWidget.h @@ -124,7 +124,7 @@ BOOLEAN RemoveDDBox( UINT8 aID ); void RefreshBoxes( ); void DelayBoxDestruction( UINT32 aVal ); -void DelayBoxDestructionBy( UINT32 aVal ); +void DelayBoxDestructionBy( INT32 aVal ); class IMPDialogueChooseBox : public WidgetBase diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index ad89e17c..7e6d9c07 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -120,6 +120,7 @@ #include "DisplayCover.h" // added by Sevenfm #include "InterfaceItemImages.h" // added by Sevenfm +#include "DynamicDialogueWidget.h" // added by Flugente for DelayBoxDestructionBy(...) //forward declarations of common classes to eliminate includes class OBJECTTYPE; @@ -1720,6 +1721,10 @@ void GetKeyboardInput( UINT32 *puiNewEvent ) DeleteTalkingMenu(); EndMeanwhile(); } + + // Flugente: speed up dynamic dialogue boxes + // Note that this will behave oddly on the morning of January 1st 1970 :-) + DelayBoxDestructionBy( - gGameExternalOptions.usDynamicDialogueTimeOffset ); } #endif