bool SendHotkey(BW::dlgEvent *pEvent) { BW::dialog *dlg = BW::BWDATA::EventDialogs[pEvent->wNo]; if ( dlg && dlg->pfcnInteract(dlg, pEvent) ) return true; dlg = (*BW::BWDATA::DialogList); while ( dlg ) { if ( dlg->pfcnInteract(dlg, pEvent) ) return true; dlg = dlg->next(); } return false; }
bool SendHotkey(BW::dlgEvent *pEvent) { #ifndef SHADOW_BROODWAR BW::dialog *dlg = BW::BWDATA::EventDialogs[pEvent->wNo]; if ( dlg && dlg->pfcnInteract(dlg, pEvent) ) return true; dlg = BW::BWDATA::DialogList; while ( dlg ) { if ( dlg->pfcnInteract(dlg, pEvent) ) return true; dlg = dlg->next(); } #endif return false; }