void ARX_SPEECH_Check() { bool bClear = false; long exist = 0; for(size_t i = 0; i < MAX_SPEECH; i++) { if(speech[i].timecreation == 0) continue; if(float(arxtime) > speech[i].timecreation + speech[i].duration) { ARX_SPEECH_MoveUp(); i--; } else { exist++; } bClear = true; } if(bClear && pTextManage) { pTextManage->Clear(); } if(exist) ARX_SPEECH_Render(); }
void ARX_SPEECH_Check() { bool bClear = false; long exist = 0; for(size_t i = 0; i < MAX_SPEECH; i++) { if(speech[i].timecreation == ArxInstant_ZERO) continue; ArxDuration elapsed = arxtime.now() - speech[i].timecreation; if(elapsed > speech[i].duration) { ARX_SPEECH_MoveUp(); i--; } else { exist++; } bClear = true; } if(bClear && pTextManage) { pTextManage->Clear(); } if(exist) ARX_SPEECH_Render(); }