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

Method OnRoomLinkToNewExternal

editor/editorView.cpp:1343–1361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341#define MARK_TEXTURE 1
1342
1343void CEditorView::OnRoomLinkToNewExternal() {
1344 void LinkToExternalRoom(room * rp, int nfaces, int *facenums);
1345 int n = 0, facelist[MAX_FACES_PER_ROOM];
1346
1347 for (int i = 0; i < Curroomp->num_faces; i++) {
1348 if ((Curroomp->faces[i].portal_num == -1) && (Curroomp->faces[i].tmap == MARK_TEXTURE))
1349 facelist[n++] = i;
1350 }
1351
1352 if (n) {
1353 if (OutrageMessageBox(MBOX_YESNO, "Do you want to create a new room linked to the %d selected faces in room %d?", n,
1354 ROOMNUM(Curroomp)) != IDYES)
1355 return;
1356
1357 LinkToExternalRoom(Curroomp, n, facelist);
1358 } else
1359 OutrageMessageBox("You have no faces selected in room %d.\n\nTo select a face, texture it with Texture %d, \"%s\".",
1360 ROOMNUM(Curroomp), MARK_TEXTURE, GameTextures[MARK_TEXTURE].name);
1361}
1362
1363void CEditorView::OnRoomDeleteVert() {
1364 if (Curroomp->faces[Curface].num_verts <= 3) {

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
LinkToExternalRoomFunction · 0.85

Tested by

no test coverage detected