From 6cc48214ac02181d3c771ad3dd47abd647b2517e Mon Sep 17 00:00:00 2001 From: joshhuelsman Date: Fri, 30 Jan 2015 21:17:24 -0500 Subject: [PATCH] stbte: removed redundant conditional --- stb_tilemap_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_tilemap_editor.h b/stb_tilemap_editor.h index ac9eaf2..21dabcf 100644 --- a/stb_tilemap_editor.h +++ b/stb_tilemap_editor.h @@ -3398,7 +3398,7 @@ static void stbte__layers(stbte_tilemap *tm, int x0, int y0, int w, int h) if (tm->has_layer_names) { int side = stbte__ui.panel[STBTE__panel_layers].side; - xoff = tm->has_layer_names ? stbte__region[side].width - 42 : 20; + xoff = stbte__region[side].width - 42; xoff = (xoff < tm->layername_width + 10 ? xoff : tm->layername_width + 10); }