"heads" not "head"
This commit is contained in:
parent
954e64831c
commit
fb300e1b56
@ -188,7 +188,7 @@ void AOClient::cmdSetBackground(int argc, QStringList argv)
|
|||||||
if (server->backgrounds.contains(argv[0])) {
|
if (server->backgrounds.contains(argv[0])) {
|
||||||
area->background = argv[0];
|
area->background = argv[0];
|
||||||
server->broadcast(AOPacket("BN", {argv[0]}), current_area);
|
server->broadcast(AOPacket("BN", {argv[0]}), current_area);
|
||||||
server->broadcast(AOPacket("CT", {"Server", current_char + " changed the background to " + argv[0], "1"}), current_area);
|
sendServerMessageArea(current_char + " changed the background to " + argv[0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sendServerMessage("Invalid background name.");
|
sendServerMessage("Invalid background name.");
|
||||||
@ -385,7 +385,7 @@ void AOClient::cmdNeed(int argc, QStringList argv)
|
|||||||
void AOClient::cmdFlip(int argc, QStringList argv)
|
void AOClient::cmdFlip(int argc, QStringList argv)
|
||||||
{
|
{
|
||||||
QString sender_name = ooc_name;
|
QString sender_name = ooc_name;
|
||||||
QStringList faces = {"head","tails"};
|
QStringList faces = {"heads","tails"};
|
||||||
QString face = faces[AOClient::genRand(0,1)];
|
QString face = faces[AOClient::genRand(0,1)];
|
||||||
sendServerMessage(sender_name + " flipped a coin and got " + face + ".");
|
sendServerMessage(sender_name + " flipped a coin and got " + face + ".");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user