Don't draw trims on top of characters in combat

This commit is contained in:
2025-08-04 03:48:10 -05:00
committed by Celtic Minstrel
parent a5a5907847
commit 2fe229f978

View File

@@ -1250,6 +1250,13 @@ void draw_trim(short q,short r,short which_trim,ter_num_t ground_ter) {
}
sf::Color test_color = {0,0,0}, store_color;
location targ;
targ.x = q;
targ.y = r;
if(supressing_some_spaces && (targ != ok_space[0]) && (targ != ok_space[1]) &&
(targ != ok_space[2]) && (targ != ok_space[3]))
return;
unsigned short pic = univ.scenario.ter_types[ground_ter].picture;
if(pic < 960){
int which_sheet = pic / 50;