MCPcopy Create free account
hub / github.com/assaultcube/AC / editheightxy

Function editheightxy

source/src/editing.cpp:740–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738// triggered locally. They all have very similar structure.
739
740void editheightxy(bool isfloor, int amount, block &sel)
741{
742 loopselxy(sel, if(isfloor)
743 {
744 s->floor += amount;
745 if(s->floor>=s->ceil) s->floor = s->ceil-1;
746 }
747 else
748 {
749 s->ceil += amount;
750 if(s->ceil<=s->floor) s->ceil = s->floor+1;
751 });
752}
753
754void editheight(int *flr, int *amount)
755{

Callers 2

parsemessagesFunction · 0.85
loopvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected