mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 10:48:04 +00:00
used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable
This commit is contained in:
@@ -281,22 +281,22 @@ void snap_to_center() {
|
||||
|
||||
dialog::addItem("mouse up", 'w');
|
||||
dialog::add_action([] {
|
||||
View = spin(90*degree) * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
View = spin90() * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
});
|
||||
|
||||
dialog::addItem("mouse down", 's');
|
||||
dialog::add_action([] {
|
||||
View = spin(-90*degree) * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
View = spin270() * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
});
|
||||
|
||||
dialog::addItem("mouse left", 'a');
|
||||
dialog::add_action([] {
|
||||
View = spin(180*degree) * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
View = spin180() * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
});
|
||||
|
||||
dialog::addItem("mouse left", 'd');
|
||||
dialog::add_action([] {
|
||||
View = spin(0*degree) * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
View = Id * spintox(unshift(mapeditor::mouse_snap())) * View;
|
||||
});
|
||||
|
||||
dialog::addBack();
|
||||
|
Reference in New Issue
Block a user