mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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 );
|
pSector->bBloodCatPlacements, gWorldSectorY + 'A' - 1, gWorldSectorX, bBloodCatPlacements );
|
||||||
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
DoScreenIndependantMessageBox( str, MSG_BOX_FLAG_OK, NULL );
|
||||||
#endif
|
#endif
|
||||||
pSector->bBloodCatPlacements = bBloodCatPlacements;
|
// WANNE: Fix by Headrock
|
||||||
pSector->bBloodCats = -1;
|
//pSector->bBloodCatPlacements = bBloodCatPlacements;
|
||||||
|
//pSector->bBloodCats = -1;
|
||||||
|
|
||||||
|
pSector->bBloodCatPlacements = __min(bBloodCatPlacements, pSector->bBloodCatPlacements);
|
||||||
|
pSector->bBloodCats = __min(pSector->bBloodCats, pSector->bBloodCatPlacements);
|
||||||
|
|
||||||
if( !bBloodCatPlacements )
|
if( !bBloodCatPlacements )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user