Esempio n. 1
0
void CKey::mf_CKey_0050(time_t arg_0)
{
	double local_00;
	double local_01;
	double local_02;
	local_00=(double)(GetRefs())/10000000.0;
	if (local_00<0.0) {
		local_00=0.0;
	}
	local_01=(double)(int)((unsigned int)m_time_-((unsigned int)arg_0-0x000D2F00))/864000.0;
	if ((unsigned int)arg_0+0x00015180<(unsigned int)m_time_) {
		local_01=0.0;
	}
	local_02=(double)mf_CKey_0150()/(double)mf_CKey_0170();
	if (! (!(m_char_keyType_>=KEYTYPE02)&&!m_bln_unk308) ) {
		local_02=0.0;
	}
	double tmp=(double)m_uint_unk13/1000000000.0;
	m_float_unk15=
		local_00*g_pCMainControl->m_double_optDownParamRef_
		+local_01*g_pCMainControl->m_double_optDownParamTime_
		+local_02*g_pCMainControl->m_double_optDownParamBlock_
		+tmp*g_pCMainControl->m_double_optDownParamSize_;
	return;
}
Esempio n. 2
0
void TGgSchBs::SaveXml(const TStr& FNm){
  TFOut FOut(FNm); FILE* fOut=FOut.GetFileId();
  fprintf(fOut, "<GgSchBs>\n");
  for (int RefN=0; RefN<GetRefs(); RefN++){
    PGgSchRef Ref=GetRef(RefN);
    Ref->SaveXml(fOut, 1+RefN);
  }
  fprintf(fOut, "</GgSchBs>");
}