dbg_msg(
"drop",
"dropping weapon=%d (%s) dropped=%ld",
WeaponID,
WeaponID == WEAPON_GUN ? "gun" :
WeaponID == WEAPON_SHOTGUN ? "shotgun" :
WeaponID == WEAPON_GRENADE ? "grenade" :
WeaponID == WEAPON_LASER ? "laser" :
WeaponID == WEAPON_NINJA ? "ninja" :
WeaponID == WEAPON_HAMMER ? "hammer" : "unknown",
m_pPlayer->m_vWeaponLimit[WeaponID].size());
i do not mind :Dvar foo = ENV["foo"] : "foo";
UNICODE
and _UNICODE
defines on Windows and use either the A or the W variant of the Windows API methods explicitly where it was left unspecified.
I supposed this fixes shell_execute
for unicode paths (e.g. username with unicode) and fixes debug logger output with unicode.
I renamed logger_debugger
to logger_win_debugger
to make it clear that it's only available on windows.
I'm using the A-variant for WSAStringToAddress
and FormatMessage
because they don't really n...str_format(aBuf, sizeof(aBuf), "start %s", link);
was without effect.