mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Headrock found a bug in the CTH calculation with regards to autofire penalties.
Think I've fixed a glich where mercs who were already in a sector (but not active) could not be placed on the tactical placement screen (either because of an assertion error or simply being told the placement wasn't valid). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2385 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "types.h"
|
||||
#include "Fileman.h"
|
||||
#include "strategic.h"
|
||||
|
||||
typedef struct MAPEDGEPOINTINFO
|
||||
{
|
||||
@@ -11,7 +12,7 @@ typedef struct MAPEDGEPOINTINFO
|
||||
INT16 sGridNo[ 32 ];
|
||||
}MAPEDGEPOINTINFO;
|
||||
|
||||
UINT16 ChooseMapEdgepoint( UINT8 ubStrategicInsertionCode );
|
||||
UINT16 ChooseMapEdgepoint( UINT8 *ubStrategicInsertionCode, UINT8 lastValidICode );
|
||||
void ChooseMapEdgepoints( MAPEDGEPOINTINFO *pMapEdgepointInfo, UINT8 ubStrategicInsertionCode, UINT8 ubNumDesiredPoints );
|
||||
void GenerateMapEdgepoints();
|
||||
void SaveMapEdgepoints( HWFILE fp );
|
||||
@@ -62,7 +63,7 @@ extern UINT16 gus2ndWestEdgepointMiddleIndex;
|
||||
//code shouldn't be used for enemies or anybody else.
|
||||
void BeginMapEdgepointSearch();
|
||||
void EndMapEdgepointSearch();
|
||||
INT16 SearchForClosestPrimaryMapEdgepoint( INT16 sGridNo, UINT8 ubInsertionCode );
|
||||
INT16 SearchForClosestPrimaryMapEdgepoint( INT16 sGridNo, UINT8 ubInsertionCode, UINT8 defaultICode = INSERTION_CODE_GRIDNO, UINT8 *storedICode = NULL );
|
||||
INT16 SearchForClosestSecondaryMapEdgepoint( INT16 sGridNo, UINT8 ubInsertionCode );
|
||||
|
||||
//There are two classes of edgepoints.
|
||||
|
||||
Reference in New Issue
Block a user