Skip to content

Commit

Permalink
Update e3d.c (#192)
Browse files Browse the repository at this point in the history
Enable self-lit items to actually self-light in the map editor under correct circumstances (dungeon/internal maps). See #188
  • Loading branch information
feeltheburn authored May 21, 2022
1 parent a53b004 commit c84b889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map_editor/e3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void set_emission(object3d * object_id)
{
if(object_id->self_lit && (night_shadows_on || dungeon))
{
glDisable(GL_LIGHTING);
glEnable(GL_LIGHTING);
glMaterialfv(GL_FRONT, GL_EMISSION, object_id->color);
}
else
Expand Down

0 comments on commit c84b889

Please sign in to comment.