| 1752 | } |
| 1753 | |
| 1754 | static int gui_pauseRecenter(lua_State *state) |
| 1755 | { |
| 1756 | bool rv; |
| 1757 | df::coord p; |
| 1758 | |
| 1759 | switch (lua_gettop(state)) |
| 1760 | { |
| 1761 | default: |
| 1762 | case 4: |
| 1763 | rv = Gui::pauseRecenter(CheckCoordXYZ(state, 1, false), lua_toboolean(state, 4)); |
| 1764 | break; |
| 1765 | case 3: |
| 1766 | rv = Gui::pauseRecenter(CheckCoordXYZ(state, 1, false)); |
| 1767 | break; |
| 1768 | case 2: |
| 1769 | Lua::CheckDFAssign(state, &p, 1); |
| 1770 | rv = Gui::pauseRecenter(p, lua_toboolean(state, 2)); |
| 1771 | break; |
| 1772 | case 1: |
| 1773 | Lua::CheckDFAssign(state, &p, 1); |
| 1774 | rv = Gui::pauseRecenter(p); |
| 1775 | } |
| 1776 | |
| 1777 | lua_pushboolean(state, rv); |
| 1778 | return 1; |
| 1779 | } |
| 1780 | |
| 1781 | static int gui_revealInDwarfmodeMap(lua_State *state) |
| 1782 | { |
nothing calls this directly
no test coverage detected