mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Space Viking's many mercs changes plus numerous generic bug fixes
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2498 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -160,7 +160,8 @@ smctableEndElementHandle(void *userData, const XML_Char *name)
|
||||
// We've read in a complete section. Process the contents of pData into the
|
||||
// SectionInfo array
|
||||
SECTORINFO *pSector;
|
||||
pSector = &SectorInfo[ ((pData->uiRowNumber - 1) * 16) + (pData->uiColNumber - 1) ];
|
||||
int sectorID = ((pData->uiRowNumber - 1) * 16) + (pData->uiColNumber - 1);
|
||||
pSector = &SectorInfo[ sectorID ];
|
||||
pSector->ubTravelRating = pData->travRating;
|
||||
pSector->ubTraversability[ NORTH_STRATEGIC_MOVE ] = pData->travNorth;
|
||||
pSector->ubTraversability[ EAST_STRATEGIC_MOVE ] = pData->travEast;
|
||||
|
||||
Reference in New Issue
Block a user