Skip to content

Commit

Permalink
Merge pull request #30981 from IAmActuallyCthulhu/pr/fix-typo-physics…
Browse files Browse the repository at this point in the history
…-2d-server-wrap-mt

Correct typo and format of comments
  • Loading branch information
akien-mga authored Jul 31, 2019
2 parents 51b2d86 + 4e617d2 commit 0636e66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions servers/physics_2d/physics_2d_server_wrap_mt.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ class Physics2DServerWrapMT : public Physics2DServer {
static Physics2DServer *init_server() {

int tm = GLOBAL_DEF("physics/2d/thread_model", 1);
if (tm == 0) //single unsafe
if (tm == 0) // single unsafe
return memnew(T);
else if (tm == 1) //single saef
else if (tm == 1) // single safe
return memnew(Physics2DServerWrapMT(memnew(T), false));
else //single unsafe
else // multi threaded
return memnew(Physics2DServerWrapMT(memnew(T), true));
}

Expand Down

0 comments on commit 0636e66

Please sign in to comment.