예제 #1
0
파일: Script.c 프로젝트: 772/openclonk
func ControlStop(object clonk, int control)
{
	if (GetEffect("ElevatorControl", this))
		if (control == CON_Up || control == CON_Down)
		{
			var effect = GetEffect("ElevatorControl", this);
			effect.controlled = nil;
			return effect.case->ControlStop(clonk, control);
		}
예제 #2
0
파일: tm.cpp 프로젝트: mpusz/FreeTTCN
void freettcn::TM::CTestManagement::Abort()
{
    try {
        if (_status != NOT_RUNNING) {
            if (_tc)
                TestCaseStop();
            else
                ControlStop();
        }
    } catch(EOperationFailed &) {
        std::cout << "ERROR: " << __FUNCTION__ << " problem!!!" << std::endl;
    }
}