mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Bugfix: Adding or removing "possible placement locations" for bloodcats, in any of the bloodcat maps, causes the program to create 0 bloodcats as a "defense mechanism" (by Headrock)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3095 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1938,8 +1938,13 @@ void AddSoldierInitListBloodcats()
|
||||
pSector->bBloodCatPlacements, gWorldSectorY + 'A' - 1, gWorldSectorX, bBloodCatPlacements );
|
||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||
#endif
|
||||
pSector->bBloodCatPlacements = bBloodCatPlacements;
|
||||
pSector->bBloodCats = -1;
|
||||
// WANNE: Fix by Headrock
|
||||
//pSector->bBloodCatPlacements = bBloodCatPlacements;
|
||||
//pSector->bBloodCats = -1;
|
||||
|
||||
pSector->bBloodCatPlacements = __min(bBloodCatPlacements, pSector->bBloodCatPlacements);
|
||||
pSector->bBloodCats = __min(pSector->bBloodCats, pSector->bBloodCatPlacements);
|
||||
|
||||
if( !bBloodCatPlacements )
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user