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

Method OnEditPlace

editor/MainFrm.cpp:2344–2356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2342 EditorStatus("%d rooms copied to Scrap", N_selected_rooms);
2343}
2344
2345void CMainFrame::OnEditPlace() {
2346 if (!Scrap) {
2347 OutrageMessageBox("There is nothing in the scrap buffer.");
2348 return;
2349 }
2350
2351 if (Curroomp->faces[Curface].portal_num != -1) {
2352 OutrageMessageBox("The selected Room/Face must be free for this operation.");
2353 return;
2354 }
2355
2356 PlaceGroup(Curroomp, Curface, Scrap);
2357}
2358
2359void CMainFrame::OnEditPlaceTerrain() {

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
PlaceGroupFunction · 0.85

Tested by

no test coverage detected