From 0e05ed63f24d1886ca12726e85da7e41bc3bcf4a Mon Sep 17 00:00:00 2001 From: in1tiate Date: Fri, 30 Apr 2021 23:01:12 -0500 Subject: [PATCH] add firstperson cid check --- src/packets.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/packets.cpp b/src/packets.cpp index 10f25c7..2841836 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -568,7 +568,10 @@ AOPacket AOClient::validateIcPacket(AOPacket packet) // char id if (incoming_args[8].toInt() != char_id) return invalid; - args.append(incoming_args[8].toString()); + if (first_person) + args.append("-1"); // messages with a cid of -1 don't update the viewport + else + args.append(incoming_args[8].toString()); // sfx delay args.append(incoming_args[9].toString());