Fixed compilation errors related to case-sensitivity

This commit is contained in:
L 2023-02-01 19:29:13 +01:00
parent 3f960d629c
commit 773e8bc79f
15 changed files with 18 additions and 17 deletions

View file

@ -5015,7 +5015,7 @@ void ScriptThread::GetPlayerIP
ip = ent->client->pers.ip;
sprintf(ip_buff, "%s:%i\0", ip, ent->client->pers.port);
sprintf(ip_buff, "%s:%i", ip, ent->client->pers.port);
ev->AddString(ip_buff);
}
@ -7681,7 +7681,7 @@ void ScriptThread::UnregisterEvent
evType = EventNameToType(eventname, NULL);
if (evType == -1)
if (evType == scriptedEvType_t(~0u))
{
ev->AddInteger(0);
throw ScriptException("Wrong event type name for unregisterev!\n");