| 1238 | extern bool RotateObject(int objnum, angle p, angle h, angle b); |
| 1239 | |
| 1240 | void 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 | |
| 1265 | void CObjectDialog::OnObjectPushthroughwalls() { |
| 1266 | if (f_allow_objects_to_be_pushed_through_walls) |
nothing calls this directly
no test coverage detected