Merge pull request #30981 from IAmActuallyCthulhu/pr/fix-typo-physics-2d-server-wrap-mt

Correct typo and format of comments
This commit is contained in:
Rémi Verschelde
2019-07-31 08:10:58 +02:00
committed by GitHub

View File

@ -327,11 +327,11 @@ public:
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));
}