Skip to content

Commit

Permalink
Fix transformclipentities erronously converting to tag clips when und…
Browse files Browse the repository at this point in the history
…er a ceiling heightfield
  • Loading branch information
RonaldReagan committed Nov 25, 2021
1 parent bdfad92 commit 94dd752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/src/editing.cpp
Expand Up @@ -1418,7 +1418,7 @@ void transformclipentities() // transforms all clip entities to tag clips, if t
int vdeltamax = 0;
loopj(4) if(s[j]->vdelta > vdeltamax) vdeltamax = s[j]->vdelta;
int floor = s[0]->floor - (s[0]->type == FHF ? (vdeltamax + 3) / 4 : 0),
ceil = s[0]->ceil - (s[0]->type == CHF ? (vdeltamax + 3) / 4 : 0);
ceil = s[0]->ceil + (s[0]->type == CHF ? (vdeltamax + 3) / 4 : 0);
bool alreadytagged = (s[0]->tag & (TAGCLIP | clipmask)) != 0;
if((z1 - floor > allowedspace || ceil - z2 > allowedspace) && !alreadytagged) bigenough = false;
if(!inner && !alreadytagged) nodelete = true; // fractional part of the clip would not be covered: entity can not be deleted
Expand Down

0 comments on commit 94dd752

Please sign in to comment.