mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-27 06:54:33 +02:00
fix unused
This commit is contained in:
@@ -299,7 +299,6 @@ struct TrapLavaEmitter : Controller {
|
|||||||
Controller::applyGravity(velocity.y);
|
Controller::applyGravity(velocity.y);
|
||||||
pos += velocity * (30.0f * Core::deltaTime);
|
pos += velocity * (30.0f * Core::deltaTime);
|
||||||
|
|
||||||
bool hit = false;
|
|
||||||
if (!bounces && lara->collide(Sphere(pos, 0.0f))) {
|
if (!bounces && lara->collide(Sphere(pos, 0.0f))) {
|
||||||
lara->hit(LAVA_PARTICLE_DAMAGE);
|
lara->hit(LAVA_PARTICLE_DAMAGE);
|
||||||
bounces = LAVA_PARTICLE_BOUNCES + 1;
|
bounces = LAVA_PARTICLE_BOUNCES + 1;
|
||||||
|
3
src/ui.h
3
src/ui.h
@@ -609,6 +609,7 @@ namespace UI {
|
|||||||
textOut(vec2(16, 32), hintStr, aLeft, width - 32, 255, UI::SHADE_GRAY);
|
textOut(vec2(16, 32), hintStr, aLeft, width - 32, 255, UI::SHADE_GRAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_OS_WEB) || defined(_OS_WIN) || defined(_OS_LINUX) || defined(_OS_MAC) || defined(_OS_RPI)
|
||||||
if (showHelp) {
|
if (showHelp) {
|
||||||
textOut(vec2(32, 32), STR_HELP_TEXT, aLeft, width - 32, 255, UI::SHADE_GRAY);
|
textOut(vec2(32, 32), STR_HELP_TEXT, aLeft, width - 32, 255, UI::SHADE_GRAY);
|
||||||
} else {
|
} else {
|
||||||
@@ -616,6 +617,8 @@ namespace UI {
|
|||||||
textOut(vec2(0, height - 32), STR_HELP_PRESS, aCenter, width, 255, UI::SHADE_ORANGE);
|
textOut(vec2(0, height - 32), STR_HELP_PRESS, aCenter, width, 255, UI::SHADE_ORANGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef UI_SHOW_FPS
|
#ifdef UI_SHOW_FPS
|
||||||
char buf[256];
|
char buf[256];
|
||||||
sprintf(buf, "%d", Core::stats.fps);
|
sprintf(buf, "%d", Core::stats.fps);
|
||||||
|
Reference in New Issue
Block a user