De-duplicate stuck prevention for the player/SCM

Stuck prevention (pushing the player/supercrewmate out if they are
inside a wall) has been factored out into its own function, so it's no
longer copy-pasted but slightly tweaked just for the supercrewmate.
This commit is contained in:
Misa
2020-09-05 17:38:38 -07:00
committed by Ethan Lee
parent 5e29d676e9
commit fae14f4e98
2 changed files with 29 additions and 33 deletions

View File

@@ -160,6 +160,8 @@ public:
void collisioncheck(int i, int j, bool scm = false);
void stuckprevention(int t);
std::vector<entclass> entities;