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

Method OnObjRot90

editor/ObjectDialog.cpp:1240–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238extern bool RotateObject(int objnum, angle p, angle h, angle b);
1239
1240void CObjectDialog::OnObjRot90() {
1241 angle p = 0, b = 0, h = 0;
1242
1243 switch (D3EditState.object_move_axis) {
1244 case OBJMOVEAXIS_P:
1245 p = 0x4000;
1246 break;
1247 case OBJMOVEAXIS_H:
1248 h = 0x4000;
1249 break;
1250 case OBJMOVEAXIS_B:
1251 b = 0x4000;
1252 break;
1253 case OBJMOVEAXIS_PH:
1254 p = 0x4000;
1255 h = 0x4000;
1256 break;
1257
1258 default:
1259 return;
1260 }
1261
1262 RotateObject(Cur_object_index, p, h, b);
1263}
1264
1265void CObjectDialog::OnObjectPushthroughwalls() {
1266 if (f_allow_objects_to_be_pushed_through_walls)

Callers

nothing calls this directly

Calls 1

RotateObjectFunction · 0.85

Tested by

no test coverage detected