1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 00:54:05 +02:00
This commit is contained in:
XProger
2018-11-19 02:44:43 +03:00
parent b484b26700
commit 7a8e7ef7a8

View File

@@ -234,9 +234,7 @@ struct MuzzleFlash : Controller {
}
virtual void update() {
if (timer < MUZZLE_FLASH_TIME) {
timer += Core::deltaTime;
if (timer < MUZZLE_FLASH_TIME) {
float intensity = clamp((MUZZLE_FLASH_TIME - timer) * 20.0f, EPS, 1.0f);
@@ -258,7 +256,6 @@ struct MuzzleFlash : Controller {
game->removeEntity(this);
}
}
}
virtual void render(Frustum *frustum, MeshBuilder *mesh, Shader::Type type, bool caustics) {
ASSERT(level->extra.muzzleFlash);