Skip to content

Commit

Permalink
SWC: Keep NOT/AND status when changing a trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed Aug 4, 2024
1 parent 8c9373d commit 1844270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/supreme/special.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ void DeleteSpecial(int i)

void DefaultTrigger(trigger_t *trig,int x,int y)
{
trig->flags=0;
// clear flags like LESS and MORE, but keep NOT and AND
trig->flags &= (TF_NOT | TF_AND);
trig->x=x;
trig->y=y;
switch(trig->type)
Expand Down

0 comments on commit 1844270

Please sign in to comment.