Skip to content

Commit

Permalink
Changed player ambient glow detect
Browse files Browse the repository at this point in the history
  • Loading branch information
codeandkey committed Jul 8, 2017
1 parent 9754b5b commit 4ad9a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void obj_player_draw(struct tds_object* ptr) {
lt.b = 0.01f;
lt.dist = 5.0f;

if (tds_engine_global->render_handle->ambient_r < HUNTER_PLAYER_AMBIENT_GLOW) {
if (tds_engine_global->render_handle->ambient_r + tds_engine_global->render_handle->ambient_g + tds_engine_global->render_handle->ambient_b < HUNTER_PLAYER_AMBIENT_GLOW) {
tds_render_submit_light(tds_engine_global->render_handle, lt); /* slight player glow */
}
}
Expand Down

0 comments on commit 4ad9a4a

Please sign in to comment.