add mejorado
This commit is contained in:
parent
fec49ec567
commit
5219410dc1
@ -455,10 +455,10 @@ AOPacket *PacketMS::validateIcPacket(AOClient &client) const
|
|||||||
l_args[14] = "3";
|
l_args[14] = "3";
|
||||||
client.getServer()->broadcast(PacketFactory::createPacket("RT", {"testimony1", "0"}), client.areaId());
|
client.getServer()->broadcast(PacketFactory::createPacket("RT", {"testimony1", "0"}), client.areaId());
|
||||||
}
|
}
|
||||||
client.addStatement(l_args);
|
|
||||||
if (area->testimonyRecording() == AreaData::TestimonyRecording::ADD) {
|
if (area->testimonyRecording() == AreaData::TestimonyRecording::ADD) {
|
||||||
l_args[14] = "1";
|
l_args[14] = "1";
|
||||||
}
|
}
|
||||||
|
client.addStatement(l_args);
|
||||||
}
|
}
|
||||||
else if (area->testimonyRecording() == AreaData::TestimonyRecording::UPDATE) {
|
else if (area->testimonyRecording() == AreaData::TestimonyRecording::UPDATE) {
|
||||||
l_args = client.updateStatement(l_args);
|
l_args = client.updateStatement(l_args);
|
||||||
|
@ -45,6 +45,7 @@ void AOClient::addStatement(QStringList packet)
|
|||||||
else if (area->testimonyRecording() == AreaData::TestimonyRecording::ADD) {
|
else if (area->testimonyRecording() == AreaData::TestimonyRecording::ADD) {
|
||||||
packet[14] = "1";
|
packet[14] = "1";
|
||||||
area->addStatement(c_statement + 1, packet);
|
area->addStatement(c_statement + 1, packet);
|
||||||
|
area->jumpToStatement(c_statement + 1);
|
||||||
area->setTestimonyRecording(AreaData::TestimonyRecording::PLAYBACK);
|
area->setTestimonyRecording(AreaData::TestimonyRecording::PLAYBACK);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user