From a62e0e82a246849177468ba3eef017a322e8dc86 Mon Sep 17 00:00:00 2001 From: MangosArentLiterature <58055358+MangosArentLiterature@users.noreply.github.com> Date: Tue, 13 Apr 2021 18:40:05 -0500 Subject: [PATCH] set pos to "wit" before sending packet during testimony playback --- src/packets.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packets.cpp b/src/packets.cpp index 67bdcfe..8bafbb8 100644 --- a/src/packets.cpp +++ b/src/packets.cpp @@ -645,16 +645,19 @@ AOPacket AOClient::validateIcPacket(AOPacket packet) } else if (area->test_rec == AreaData::TestimonyRecording::PLAYBACK) { if (args[4] == ">") { + pos = "wit"; area->statement = area->statement + 1; args = playTestimony(); } if (args[4] == "<") { + pos = "wit"; area->statement = area->statement - 1; args = playTestimony(); } QRegularExpression jump("(?>)(?[0,1,2,3,4,5,6,7,8,9]+)"); QRegularExpressionMatch match = jump.match(args[4]); if (match.hasMatch()) { + pos = "wit"; area->statement = match.captured("int").toInt(); args= playTestimony(); }