summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-30 00:15:35 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-30 00:15:35 +0100
commita3b83a5d2fe7b614b8b3693305535112f68912bb (patch)
tree03961416d9dd2ee1c16314bafb87f8fdaa17ab43
parentsmall garages revision + small template stuff (diff)
parentadd debug script hotkey (diff)
downloadre3-a3b83a5d2fe7b614b8b3693305535112f68912bb.tar
re3-a3b83a5d2fe7b614b8b3693305535112f68912bb.tar.gz
re3-a3b83a5d2fe7b614b8b3693305535112f68912bb.tar.bz2
re3-a3b83a5d2fe7b614b8b3693305535112f68912bb.tar.lz
re3-a3b83a5d2fe7b614b8b3693305535112f68912bb.tar.xz
re3-a3b83a5d2fe7b614b8b3693305535112f68912bb.tar.zst
re3-a3b83a5d2fe7b614b8b3693305535112f68912bb.zip
-rw-r--r--src/core/Frontend.cpp10
-rw-r--r--src/render/Renderer.cpp1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index b84b691d..318e5903 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -4157,12 +4157,22 @@ CMenuManager::ProcessButtonPresses(void)
DoSettingsBeforeStartingAGame();
return;
}
+ if (glfwGetKey(PSGLOBAL(window), GLFW_KEY_D) == GLFW_PRESS) {
+ scriptToLoad = 2;
+ DoSettingsBeforeStartingAGame();
+ return;
+ }
#elif defined _WIN32
if (GetAsyncKeyState('R') & 0x8000) {
scriptToLoad = 1;
DoSettingsBeforeStartingAGame();
return;
}
+ if (GetAsyncKeyState('D') & 0x8000) {
+ scriptToLoad = 2;
+ DoSettingsBeforeStartingAGame();
+ return;
+ }
#endif
}
#endif
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 83bd0d21..a0f66819 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -216,6 +216,7 @@ CRenderer::RenderOneNonRoad(CEntity *e)
e->Render();
if(e->IsVehicle()){
+ BACKFACE_CULLING_OFF;
e->bImBeingRendered = true;
CVisibilityPlugins::RenderAlphaAtomics();
e->bImBeingRendered = false;