1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

'phase' renamed to 'flight mode' everywhere in the code

This commit is contained in:
bsongis 2014-06-17 10:51:32 +02:00
parent 20125474c1
commit 2094e87da5
41 changed files with 483 additions and 483 deletions

View file

@ -856,7 +856,7 @@ static int luaModelGetGlobalVariable(lua_State *L)
int idx = luaL_checkunsigned(L, 1);
int phase = luaL_checkunsigned(L, 2);
if (phase < MAX_FLIGHT_MODES && idx < MAX_GVARS)
lua_pushinteger(L, g_model.phaseData[phase].gvars[idx]);
lua_pushinteger(L, g_model.flightModeData[phase].gvars[idx]);
else
lua_pushnil(L);
return 1;
@ -868,7 +868,7 @@ static int luaModelSetGlobalVariable(lua_State *L)
int phase = luaL_checkunsigned(L, 2);
int value = luaL_checkinteger(L, 3);
if (phase < MAX_FLIGHT_MODES && idx < MAX_GVARS && value >= -GVAR_LIMIT && value <= GVAR_LIMIT) {
g_model.phaseData[phase].gvars[idx] = value;
g_model.flightModeData[phase].gvars[idx] = value;
}
return 0;
}