Skip to content

Commit 94dd752

Browse files
committed
Fix transformclipentities erronously converting to tag clips when under a ceiling heightfield
1 parent bdfad92 commit 94dd752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/src/editing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ void transformclipentities() // transforms all clip entities to tag clips, if t
14181418
int vdeltamax = 0;
14191419
loopj(4) if(s[j]->vdelta > vdeltamax) vdeltamax = s[j]->vdelta;
14201420
int floor = s[0]->floor - (s[0]->type == FHF ? (vdeltamax + 3) / 4 : 0),
1421-
ceil = s[0]->ceil - (s[0]->type == CHF ? (vdeltamax + 3) / 4 : 0);
1421+
ceil = s[0]->ceil + (s[0]->type == CHF ? (vdeltamax + 3) / 4 : 0);
14221422
bool alreadytagged = (s[0]->tag & (TAGCLIP | clipmask)) != 0;
14231423
if((z1 - floor > allowedspace || ceil - z2 > allowedspace) && !alreadytagged) bigenough = false;
14241424
if(!inner && !alreadytagged) nodelete = true; // fractional part of the clip would not be covered: entity can not be deleted

0 commit comments

Comments
 (0)