SafetySwich function redesigned

This commit is contained in:
bsongis
2012-05-16 17:59:11 +00:00
parent 8e3345c019
commit 14f8d3e968
7 changed files with 25 additions and 14 deletions
+2 -2
View File
@@ -1436,8 +1436,8 @@ void evalFunctions()
swtch += MAX_SWITCH+1;
}
if (getSwitch(swtch, 0)) {
if (sd->func < FUNC_TRAINER && (g_menuStack[g_menuStackPtr] != menuProcFunctionSwitches || m_posVert != (i+1) || m_posHorz > 1)) {
safetyCh[sd->func] = (int8_t)sd->param;
if (sd->func < FUNC_TRAINER && (sd->param & 1)) {
safetyCh[sd->func] = ((int8_t)sd->param >> 1) * 2;
}
if (~active_functions & function_mask) {