MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetCurroomFromTrigger

Function SetCurroomFromTrigger

editor/TriggerDialog.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void SetCurroomFromTrigger() {
416 if (ROOMNUM(Curroomp) != Triggers[Current_trigger].roomnum) {
417
418 Curroomp = &Rooms[Triggers[Current_trigger].roomnum];
419
420 Curface = Curedge = Curvert = 0;
421 Curportal = -1;
422 }
423
424 Curface = Triggers[Current_trigger].facenum;
425
426 if (Curroomp->faces[Curface].portal_num != -1)
427 Curportal = Curroomp->faces[Curface].portal_num;
428
429 State_changed = 1;
430}
431
432void CTriggerDialog::OnTrigGoto() {
433 int n;

Callers 6

OnTrigGotoMethod · 0.85
OnTrigAddFloatingMethod · 0.85
OnTrigNextInMineMethod · 0.85
OnTrigNextInRoomMethod · 0.85
OnTrigPrevInMineMethod · 0.85
OnTrigPrevInRoomMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected