FIX logic error in killsay

This commit is contained in:
nullifiedcat 2017-03-28 21:20:11 +03:00
parent 7948f1069f
commit 148e6276cc
2 changed files with 1 additions and 1 deletions

0
res/.gitignore vendored Normal file
View File

View File

@ -46,7 +46,7 @@ std::string ComposeKillSay(IGameEvent* event) {
int vid = event->GetInt("userid");
int kid = event->GetInt("attacker");
if (kid == vid) return "";
if (g_IEngine->GetPlayerForUserID(kid) != g_IEngine->GetLocalPlayer()) return 0;
if (g_IEngine->GetPlayerForUserID(kid) != g_IEngine->GetLocalPlayer()) return "";
std::string msg = file.Line(rand() % file.LineCount());
player_info_s info;
g_IEngine->GetPlayerInfo(g_IEngine->GetPlayerForUserID(vid), &info);