From 7829441397260f1ec2dc98d47d4f2c5b45be8337 Mon Sep 17 00:00:00 2001 From: Wanne Date: Tue, 10 Feb 2009 19:10:37 +0000 Subject: [PATCH] Bugfix: No we have the working "AI Viewer". The needed files are already in SVN GameDir. To use the AI Viewer build a Debug Version, go to the Strategy Screen and press F12 (thx to Heinz for support) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2589 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/AI Viewer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Strategic/AI Viewer.cpp b/Strategic/AI Viewer.cpp index 95a1c0e9d..c5b4bcf78 100644 --- a/Strategic/AI Viewer.cpp +++ b/Strategic/AI Viewer.cpp @@ -398,8 +398,9 @@ BOOLEAN CreateAIViewer() AddTextInputField( 10, VIEWER_BOTTOM + 90, 25, 15, MSYS_PRIORITY_NORMAL, str, 2, INPUTTYPE_NUMERICSTRICT ); //Press buttons in based on current settings - Assert( gGameOptions.ubDifficultyLevel >= DIF_LEVEL_EASY && gGameOptions.ubDifficultyLevel <= DIF_LEVEL_HARD ); - ButtonList[ iViewerButton[ RESET_EASY + gGameOptions.ubDifficultyLevel - DIF_LEVEL_EASY ] ]->uiFlags |= BUTTON_CLICKED_ON; + if (gGameOptions.ubDifficultyLevel >= DIF_LEVEL_EASY && gGameOptions.ubDifficultyLevel <= DIF_LEVEL_HARD) + ButtonList[ iViewerButton[ RESET_EASY + gGameOptions.ubDifficultyLevel - DIF_LEVEL_EASY ] ]->uiFlags |= BUTTON_CLICKED_ON; + ButtonList[ iViewerButton[ COMPRESSION0 ] ]->uiFlags |= BUTTON_CLICKED_ON; if( !GamePaused() ) SetGameMinutesPerSecond( 0 );