Fix force_immediate
This commit is contained in:
parent
e44f687030
commit
b48ac1873c
@ -680,8 +680,16 @@ AOPacket AOClient::validateIcPacket(AOPacket packet)
|
|||||||
|
|
||||||
// immediate text processing
|
// immediate text processing
|
||||||
int immediate = incoming_args[18].toInt();
|
int immediate = incoming_args[18].toInt();
|
||||||
if (area->force_immediate)
|
if (area->force_immediate) {
|
||||||
|
if (args[7] == "1" || args[7] == "2") {
|
||||||
|
args[7] = "0";
|
||||||
immediate = 1;
|
immediate = 1;
|
||||||
|
}
|
||||||
|
else if (args[7] == "6") {
|
||||||
|
args[7] = "5";
|
||||||
|
immediate = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (immediate != 1 && immediate != 0)
|
if (immediate != 1 && immediate != 0)
|
||||||
return invalid;
|
return invalid;
|
||||||
args.append(QString::number(immediate));
|
args.append(QString::number(immediate));
|
||||||
|
Loading…
Reference in New Issue
Block a user