From 48ceea04ee386bf8ed664ce49ae9594fb2c4a0b1 Mon Sep 17 00:00:00 2001 From: silversurfer Date: Sun, 6 Oct 2013 14:53:43 +0000 Subject: [PATCH] Fix for JaggZilla Bug #591 Mercs that were set to student with a trainer that was not good enough could practice without breath loss. They will still practice with this fix but they will lose breath as normal. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6473 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/Assignments.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Strategic/Assignments.cpp b/Strategic/Assignments.cpp index 933e6703..aa7e63b9 100644 --- a/Strategic/Assignments.cpp +++ b/Strategic/Assignments.cpp @@ -14161,6 +14161,11 @@ BOOLEAN CharacterIsTakingItEasy( SOLDIERTYPE *pSoldier ) { return( TRUE ); } + // silversurfer: Fix for JaggZilla bug #591. This guy is set as student and there is a trainer available that is awake. + // Even if the trainer is not good enough this guy will still practice and therefore letting him fall through to + // pSoldier->flags.fDoneAssignmentAndNothingToDoFlag will allow him to practice without breath loss. Lame exploit... + else + return( FALSE ); } // HEADROCK HAM 3.6: Added new resting assignment for facilities only.