mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Merged from revision: 7217
Bugfixes (by anv) - fix: ambient sounds weren't played after loading game in tactical, - fix: AI with a lot of APs would stop moving around during combat. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7218 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4666,6 +4666,9 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
|
||||
LoadGameFilePosition( FileGetPos( hFile ), "Strategic Events" );
|
||||
#endif
|
||||
|
||||
// anv: we need to rebuild ambient sounds now, as those added when loading tileset are removed
|
||||
// in LoadStrategicEventsFromSavedGame
|
||||
HandleNewSectorAmbience( gTilesets[ giCurrentTilesetID ].ubAmbientID );
|
||||
|
||||
uiRelEndPerc += 0;
|
||||
SetRelativeStartAndEndPercentage( 0, uiRelStartPerc, uiRelEndPerc, L"Laptop Info" );
|
||||
|
||||
@@ -450,7 +450,8 @@ INT32 InternalGoAsFarAsPossibleTowards(SOLDIERTYPE *pSoldier, INT32 sDesGrid, IN
|
||||
INT32 sOrigin;
|
||||
UINT16 usMaxDist;
|
||||
UINT8 ubDirection,ubDirsLeft,ubDirChecked[8],fFound = FALSE;
|
||||
INT8 bAPsLeft, fPathFlags;
|
||||
// anv: changed to INT16 since Soldier->bActionPoints are INT16 too
|
||||
INT16 bAPsLeft, fPathFlags;
|
||||
//DBrot: More Rooms
|
||||
//UINT8 ubRoomRequired = 0, ubTempRoom;
|
||||
UINT16 usRoomRequired = 0, usTempRoom;
|
||||
|
||||
Reference in New Issue
Block a user