Remove no more used functions MakeMatrix
This commit is contained in:
parent
d38ec2893e
commit
75f911dbc9
2 changed files with 0 additions and 13 deletions
src
|
@ -223,8 +223,6 @@ extern void FreePathfinder();
|
|||
|
||||
/// Create a matrix for the old pathfinder
|
||||
extern unsigned char *CreateMatrix();
|
||||
/// Allocate a new matrix and initialize
|
||||
extern unsigned char *MakeMatrix();
|
||||
|
||||
/// Returns the next element of the path
|
||||
extern int NextPathElement(CUnit &unit, short int *xdp, short int *ydp);
|
||||
|
|
|
@ -189,17 +189,6 @@ unsigned char *CreateMatrix()
|
|||
return Matrix;
|
||||
}
|
||||
|
||||
/**
|
||||
** Allocate a new matrix and initialize
|
||||
*/
|
||||
unsigned char *MakeMatrix()
|
||||
{
|
||||
unsigned char *matrix = new unsigned char[(Map.Info.MapWidth + 2) * (Map.Info.MapHeight + 3) + 2];
|
||||
InitMatrix(matrix);
|
||||
|
||||
return matrix;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
-- PATH-FINDER USE
|
||||
----------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Reference in a new issue