MCPcopy Create free account
hub / github.com/cuberite/cuberite / CloseWindowIfID

Method CloseWindowIfID

src/Entities/Player.cpp:1054–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052
1053
1054void cPlayer::CloseWindowIfID(char a_WindowID, bool a_CanRefuse)
1055{
1056 if ((m_CurrentWindow == NULL) || (m_CurrentWindow->GetWindowID() != a_WindowID))
1057 {
1058 return;
1059 }
1060 CloseWindow();
1061}
1062
1063
1064

Callers 1

HandleWindowCloseMethod · 0.80

Calls 1

GetWindowIDMethod · 0.80

Tested by

no test coverage detected