mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Merged revision(s) 7251 from branches/ja2_source_official_2014:
code cleanup & removed some warnings git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7252 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+14
-17
@@ -4076,26 +4076,23 @@ static int l_FadeOutGameScreen(lua_State *L)
|
||||
int l_InitMapProfil (lua_State *L)
|
||||
{
|
||||
if ( lua_gettop(L) >= 1 )
|
||||
{
|
||||
|
||||
UINT8 prof = lua_tointeger(L,1);
|
||||
INT16 x = lua_tointeger(L,2);
|
||||
INT16 y = lua_tointeger(L,3);
|
||||
INT16 z = lua_tointeger(L,4);
|
||||
UINT32 gridno = lua_tointeger(L,5);
|
||||
|
||||
gMercProfiles[ prof ].sSectorX = x;
|
||||
gMercProfiles[ prof ].sSectorY = y;
|
||||
gMercProfiles[ prof ].bSectorZ = z;
|
||||
gMercProfiles[ prof ].sGridNo = gridno;
|
||||
gMercProfiles[ prof ].fUseProfileInsertionInfo = TRUE;
|
||||
gMercProfiles[ prof ].ubStrategicInsertionCode = INSERTION_CODE_GRIDNO;
|
||||
gMercProfiles[ prof ].usStrategicInsertionData = gridno;
|
||||
{
|
||||
UINT8 prof = lua_tointeger(L,1);
|
||||
INT16 x = lua_tointeger(L,2);
|
||||
INT16 y = lua_tointeger(L,3);
|
||||
INT8 z = lua_tointeger(L,4);
|
||||
UINT32 gridno = lua_tointeger(L,5);
|
||||
|
||||
gMercProfiles[ prof ].sSectorX = x;
|
||||
gMercProfiles[ prof ].sSectorY = y;
|
||||
gMercProfiles[ prof ].bSectorZ = z;
|
||||
gMercProfiles[ prof ].sGridNo = gridno;
|
||||
gMercProfiles[ prof ].fUseProfileInsertionInfo = TRUE;
|
||||
gMercProfiles[ prof ].ubStrategicInsertionCode = INSERTION_CODE_GRIDNO;
|
||||
gMercProfiles[ prof ].usStrategicInsertionData = gridno;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int l_ProfilesStrategicInsertionData (lua_State *L)
|
||||
|
||||
Reference in New Issue
Block a user