Fixed Mmrnmhrm's X-Form transformation without energy use; bug #1004
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3166 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Changes towards version 0.7:
|
||||
- Fixed Mmrnmhrm's X-Form transformation without energy use (bug #1004) - Alex
|
||||
- Added missing sleeps in DoInput() functions (bug #893) - Alex
|
||||
- Starmap unit conversion corrections; fixes bug #970 - Alex
|
||||
- Rounding-error correction in log(x|y)ToUniverse (bug #1046), from Nic
|
||||
|
||||
@@ -369,8 +369,6 @@ mmrnmhrm_postprocess (ELEMENT *ElementPtr)
|
||||
ProcessSound (SetAbsSoundIndex (
|
||||
/* TRANSFORM */
|
||||
StarShipPtr->RaceDescPtr->ship_data.ship_sounds, 1), ElementPtr);
|
||||
DeltaEnergy (ElementPtr,
|
||||
-StarShipPtr->RaceDescPtr->characteristics.special_energy_cost);
|
||||
|
||||
StarShipPtr->weapon_counter = 0;
|
||||
|
||||
@@ -434,11 +432,9 @@ mmrnmhrm_preprocess (ELEMENT *ElementPtr)
|
||||
if ((StarShipPtr->cur_status_flags & SPECIAL)
|
||||
&& StarShipPtr->special_counter == 0)
|
||||
{
|
||||
if (StarShipPtr->RaceDescPtr->ship_info.energy_level <
|
||||
StarShipPtr->RaceDescPtr->characteristics.special_energy_cost)
|
||||
DeltaEnergy (ElementPtr,
|
||||
-StarShipPtr->RaceDescPtr->characteristics.special_energy_cost); /* so text will flash */
|
||||
else
|
||||
/* Either we transform or text will flash */
|
||||
if (DeltaEnergy (ElementPtr,
|
||||
-StarShipPtr->RaceDescPtr->characteristics.special_energy_cost))
|
||||
{
|
||||
if (ElementPtr->next.image.farray == StarShipPtr->RaceDescPtr->ship_data.ship)
|
||||
ElementPtr->next.image.farray =
|
||||
|
||||
Reference in New Issue
Block a user