mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Change UINT8 to UINT16 for soldierInitLists & hostiles in sector
This commit is contained in:
@@ -19,7 +19,7 @@ extern "C" {
|
||||
#include "connect.h"
|
||||
|
||||
// externals
|
||||
UNDERGROUND_SECTORINFO* NewUndergroundNode( UINT8 ubSectorX, UINT8 ubSectorY, UINT8 ubSectorZ );
|
||||
extern UNDERGROUND_SECTORINFO* NewUndergroundNode( UINT8 ubSectorX, UINT8 ubSectorY, UINT8 ubSectorZ );
|
||||
extern BOOLEAN gfGettingNameFromSaveLoadScreen;
|
||||
|
||||
// helper functions
|
||||
@@ -49,6 +49,21 @@ bool LuaTable::getValue<UINT8>(const char * index, UINT8& value)
|
||||
return false;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool LuaTable::getValue<UINT16>(const char* index, UINT16& value)
|
||||
{
|
||||
int dummy;
|
||||
|
||||
bool b = getValue(index, dummy);
|
||||
if (b)
|
||||
{
|
||||
value = static_cast<UINT16>(dummy);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Calls into Lua script to let build underground sector list.
|
||||
BOOLEAN LuaUnderground::InitializeSectorList()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user