From d888067d817790ec8c56a99ed620cc9914c5ca51 Mon Sep 17 00:00:00 2001 From: Flugente Date: Fri, 21 Feb 2014 18:21:20 +0000 Subject: [PATCH] Merged revision(s) 6957 from branches/ja2_source_official_2014: reverted length of loadscreenhints back to 190. Longer texts cause crashes when a hint is displayed in a log, as VIDEO_OVERLAY_DESC can only handle up to length 200, just like the description in LOADSCREENHINT_STRUCT says. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6958 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Utils/Animated ProgressBar.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Utils/Animated ProgressBar.h b/Utils/Animated ProgressBar.h index c6dac9af4..0596ceaed 100644 --- a/Utils/Animated ProgressBar.h +++ b/Utils/Animated ProgressBar.h @@ -35,8 +35,7 @@ extern PROGRESSBAR *pBar[ MAX_PROGRESSBARS ]; typedef struct { UINT16 uiIndex; - // WANNE: I changed them from 190 to 256 because otherwise it is too short for the loadscreen hints. I works just fine even if it is > 200. - CHAR16 szName[256]; // text of the hint. Note that this size + any text it is used in msut be < than CHAR16 pzText[ 200 ]; of VIDEO_OVERLAY_DESC if you display this in any logs + CHAR16 szName[190]; // text of the hint. Note that this size + any text it is used in must be < than CHAR16 pzText[ 200 ]; of VIDEO_OVERLAY_DESC if you display this in any logs UINT32 usFlags; // flags that can be used to determine wether a hint is currently appropriate BOOLEAN fAlreadyShown; // to remember if this hint has already been shown in this game (reset on starting exe)