Made it compile with GCC on Linux.

Fixed GCC warnings and Windows specifics.
Restored C++11, switch to 14 was not supposed to happen.
Not 100% sure about my Find* module section.
This commit is contained in:
Muzychenko Andrey
2021-09-09 11:40:54 +03:00
parent 2fe6d6d33a
commit 28e2417ef9
33 changed files with 523 additions and 190 deletions

View File

@@ -13,7 +13,7 @@ TTextBoxMessage::TTextBoxMessage(char* text, float time)
const auto textLen = strlen(text) + 1;
Text = memory::allocate(textLen);
if (Text)
strcpy_s(Text, textLen, text);
strncpy(Text, text, textLen);
}
else
Text = nullptr;