There is an ActionConfirm object for Buildings and Ships.
For end_modal, we have 2 occurrences only: Here and in the game options window. There is no quick fix for making them the same, because the game options window needs m_gb.end_modal(0) and the editor needs end_modal(0) - they are different object types. So, the change would need to be bigger than I want to get into right now.
The common code is:
if (get_key_ state(SDL_ SCANCODE_ LCTRL) || get_key_ state(SDL_ SCANCODE_ RCTRL)) { something_ arbitrary( ); _else_arbitrary ();
do_
} else {
do_something
}
There is an ActionConfirm object for Buildings and Ships.
For end_modal, we have 2 occurrences only: Here and in the game options window. There is no quick fix for making them the same, because the game options window needs m_gb.end_modal(0) and the editor needs end_modal(0) - they are different object types. So, the change would need to be bigger than I want to get into right now.