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
This commit is contained in:
silversurfer
2013-10-06 14:53:43 +00:00
parent 9eedf3d45d
commit 48ceea04ee
+5
View File
@@ -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.