mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-27 13:31:43 +00:00
PT_SAY: check that source matches packet source
This commit is contained in:
parent
cb8e48d8a7
commit
42251419e0
1 changed files with 5 additions and 1 deletions
|
|
@ -5243,9 +5243,13 @@ static void HandlePacketFromPlayer(SINT8 node)
|
|||
break;
|
||||
case PT_SAY:
|
||||
if (client)
|
||||
break;
|
||||
break; // Only sent to servers, why are we receiving this?
|
||||
|
||||
say_pak say = netbuffer->u.say;
|
||||
|
||||
if (playernode[say.source] != node)
|
||||
break; // Spoofed source!
|
||||
|
||||
DoSayCommand(say.message, say.target, say.flags, say.source);
|
||||
break;
|
||||
case PT_LOGIN:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue