Properly handle cleanup of the Eta Vulpeculae II stringtable (Bug 1028)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2915 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
Changes towards version 0.7:
|
Changes towards version 0.7:
|
||||||
|
- Androsynth ruins freeing condition now uses cycles (Bug #1028) - Michael
|
||||||
- .rmp files now carry the types of the targets - Michael
|
- .rmp files now carry the types of the targets - Michael
|
||||||
- Joystick threshold defaults to 10,000, not 0 (Bug #1046) - Michael
|
- Joystick threshold defaults to 10,000, not 0 (Bug #1046) - Michael
|
||||||
- Remove MEM_HANDLEs from everywhere outside of memlib - Michael
|
- Remove MEM_HANDLEs from everywhere outside of memlib - Michael
|
||||||
|
|||||||
@@ -62,10 +62,6 @@ GenerateAndrosynth (BYTE control)
|
|||||||
{
|
{
|
||||||
pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[ENERGY_SCAN]
|
pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[ENERGY_SCAN]
|
||||||
&= ~(1L << i);
|
&= ~(1L << i);
|
||||||
/* so won't get freed in lander.c */
|
|
||||||
CaptureStringTable (GetStringTable (
|
|
||||||
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString
|
|
||||||
));
|
|
||||||
if (!(pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[ENERGY_SCAN]
|
if (!(pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[ENERGY_SCAN]
|
||||||
& (1L << (i + 16))))
|
& (1L << (i + 16))))
|
||||||
{
|
{
|
||||||
@@ -86,13 +82,6 @@ GenerateAndrosynth (BYTE control)
|
|||||||
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString,
|
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
if (GetStringTableIndex (
|
|
||||||
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString
|
|
||||||
) == 0)
|
|
||||||
/* so will get freed in lander.c */
|
|
||||||
ReleaseStringTable (
|
|
||||||
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -850,10 +850,15 @@ CheckObjectCollision (COUNT index)
|
|||||||
if (!(pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[scan] &
|
if (!(pSolarSysState->SysInfo.PlanetInfo.ScanRetrieveMask[scan] &
|
||||||
(1L << which_node)))
|
(1L << which_node)))
|
||||||
{
|
{
|
||||||
if (DestroyStringTable (ReleaseStringTable (
|
/* If our discovery strings have cycled, we're done */
|
||||||
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString
|
if (GetStringTableIndex (
|
||||||
)))
|
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString) == 0)
|
||||||
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString = 0;
|
{
|
||||||
|
if (DestroyStringTable (ReleaseStringTable (
|
||||||
|
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString
|
||||||
|
)))
|
||||||
|
pSolarSysState->SysInfo.PlanetInfo.DiscoveryString = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user