fix: randoms
This commit is contained in:
@@ -26,7 +26,7 @@ private:
|
||||
glm::vec2 m_CamPos;
|
||||
glm::vec2 m_CursorPos;
|
||||
glm::vec2 m_HoldCursorPos;
|
||||
float m_Zoom = 1;
|
||||
float m_Zoom;
|
||||
float m_CamSensibility = 1;
|
||||
bool m_TowerPlacePopupOpened = false;
|
||||
VertexCache m_TowersCache;
|
||||
|
||||
@@ -18,7 +18,7 @@ void WorldRenderer::loadModels() {
|
||||
std::cout << "Vertex Count : " << m_WorldVao->getVertexCount() << std::endl;
|
||||
}
|
||||
|
||||
WorldRenderer::WorldRenderer(game::World* world, client::ClientGame* client) : m_Client(client), m_Renderer(m_Client->getRenderer()), m_World(world) {
|
||||
WorldRenderer::WorldRenderer(game::World* world, client::ClientGame* client) : m_Client(client), m_Renderer(m_Client->getRenderer()), m_World(world), m_Zoom(1) {
|
||||
m_Renderer->setZoom(m_Zoom);
|
||||
m_Renderer->setCamMovement({});
|
||||
}
|
||||
|
||||
@@ -151,19 +151,6 @@ void pollEvents() {
|
||||
}
|
||||
ImGui_ImplSDL2_ProcessEvent(&event);
|
||||
}
|
||||
|
||||
// activating screen keyboard for Android devices
|
||||
#ifdef __ANDROID__
|
||||
static bool keyboardShown = false;
|
||||
if(ImGui::GetIO().WantTextInput != keyboardShown){
|
||||
if(ImGui::GetIO().WantTextInput){
|
||||
SDL_StartTextInput();
|
||||
}else{
|
||||
SDL_StopTextInput();
|
||||
}
|
||||
keyboardShown = ImGui::GetIO().WantTextInput;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool isCloseRequested() {
|
||||
|
||||
Reference in New Issue
Block a user