Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Typo in Hourly_Update.cc
Typo in Hourly_Update.cc[message #262712] Wed, 15 September 2010 21:38 Go to next message
public1983

 
Messages:127
Registered:February 2006

Larry is supposed to fall off the wagon, if he has access to drugs. This includes the check whether his current sector has a bar. Drassen has got two bars. By a typo one is located at the airport for Larry instead of the mine-sector:
		if ( usTemptation < BAR_TEMPTATION && GetCurrentBalance() >= Item[ ALCOHOL ].usPrice )
		{
			if ( pSoldier->bSectorZ == 0 &&
-						( ( pSoldier->sSectorX == 13 && pSoldier->sSectorY == MAP_ROW_B) ||
+                                               ( ( pSoldier->sSectorX == 13 && pSoldier->sSectorY == MAP_ROW_D) ||
							( pSoldier->sSectorX == 13 && pSoldier->sSectorY == MAP_ROW_C) ||
							( pSoldier->sSectorX == 5 && pSoldier->sSectorY == MAP_ROW_C) ||
							( pSoldier->sSectorX == 6 && pSoldier->sSectorY == MAP_ROW_C) ||
							( pSoldier->sSectorX == 5 && pSoldier->sSectorY == MAP_ROW_D) ||
							( pSoldier->sSectorX == 2 && pSoldier->sSectorY == MAP_ROW_H)
						)
				)
			{
				// in a bar!
				fBar = TRUE;
				usTemptation = BAR_TEMPTATION;
			}
		}

Fix by replacing line - with +.
Re: Typo in Hourly_Update.cc[message #262959] Sat, 18 September 2010 17:16 Go to previous messageGo to next message
bbun

 
Messages:75
Registered:April 2004
Location: Amsterdam
Nicely spotted, thanks.
Not that I ever play Larry Smile
Re: Typo in Hourly_Update.cc[message #262962] Sat, 18 September 2010 18:11 Go to previous messageGo to next message
RoWa21

 
Messages:2046
Registered:October 2005
Location: Austria
Ah thanks, fix is also applied to 1.13 source


Re: Typo in Hourly_Update.cc[message #262989] Sun, 19 September 2010 10:16 Go to previous messageGo to next message
public1983

 
Messages:127
Registered:February 2006

bbun
Not that I ever play Larry Smile


I play him the first time and was curious, how to take care of him. I hope he is a good team with Biff and Flo for defense, just not for Drassen as I must see.
Re: Typo in Hourly_Update.cc[message #316010] Wed, 06 March 2013 18:07 Go to previous message
Gennady

 
Messages:14
Registered:March 2013
Location: Russia
Applied to JA2-Stracciatella Continued
Previous Topic: Typo in Items.cc
Next Topic: [Consistency Fix] Maria quest done
Goto Forum:
  


Current Time: Fri Jul 21 09:34:09 EEST 2017

Total time taken to generate the page: 0.01088 seconds