static */
| 16 | #include "../../safeguards.h" |
| 17 | |
| 18 | /* static */ void ScriptWindow::Close(WindowClass window, SQInteger number) |
| 19 | { |
| 20 | if (ScriptGame::IsMultiplayer()) return; |
| 21 | |
| 22 | if (number == NUMBER_ALL) { |
| 23 | CloseWindowByClass((::WindowClass)window); |
| 24 | return; |
| 25 | } |
| 26 | |
| 27 | number = Clamp<SQInteger>(number, 0, INT32_MAX); |
| 28 | |
| 29 | CloseWindowById((::WindowClass)window, number); |
| 30 | } |
| 31 | |
| 32 | /* static */ bool ScriptWindow::IsOpen(WindowClass window, SQInteger number) |
| 33 | { |
no test coverage detected