Commit 61812083 authored by mercury233's avatar mercury233 Committed by GitHub

minor typos (#2890)

parent 0f73f228
...@@ -162,7 +162,6 @@ public: ...@@ -162,7 +162,6 @@ public:
} }
else else
return 0; return 0;
} }
}; };
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <windows.h> #include <windows.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#if defined(_MSC_VER) or defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW32__)
#define mywcsncasecmp _wcsnicmp #define mywcsncasecmp _wcsnicmp
#define mystrncasecmp _strnicmp #define mystrncasecmp _strnicmp
#else #else
......
...@@ -739,7 +739,6 @@ void DuelClient::HandleSTOCPacketLan(unsigned char* data, int len) { ...@@ -739,7 +739,6 @@ void DuelClient::HandleSTOCPacketLan(unsigned char* data, int len) {
starttime = new_replay.pheader.base.start_time; starttime = new_replay.pheader.base.start_time;
else else
starttime = new_replay.pheader.base.seed; starttime = new_replay.pheader.base.seed;
wchar_t timetext[40]; wchar_t timetext[40];
std::wcsftime(timetext, sizeof timetext / sizeof timetext[0], L"%Y-%m-%d %H-%M-%S", std::localtime(&starttime)); std::wcsftime(timetext, sizeof timetext / sizeof timetext[0], L"%Y-%m-%d %H-%M-%S", std::localtime(&starttime));
mainGame->ebRSName->setText(timetext); mainGame->ebRSName->setText(timetext);
......
...@@ -157,7 +157,7 @@ if GetParam("no-dxsdk") then ...@@ -157,7 +157,7 @@ if GetParam("no-dxsdk") then
end end
if USE_DXSDK and os.istarget("windows") then if USE_DXSDK and os.istarget("windows") then
if not os.getenv("DXSDK_DIR") then if not os.getenv("DXSDK_DIR") then
print("DXSDK_DIR environment variable not set, it seems you don't have the DirectX SDK installed. DirectX mode will be disabled.") print("Warning: DXSDK_DIR environment variable not set, it seems you don't have the DirectX SDK installed. DirectX mode will be disabled.")
USE_DXSDK = false USE_DXSDK = false
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment