aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-17 18:51:40 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-17 18:51:40 +0300
commit9d20cf03222add2ef04d4d2cc305458bdf00fcad (patch)
treec9d587da32ac0bb5ffe934f27dbe723cab3d48b6 /src/packet_distribution.cpp
parent6747bfdd5edee3693144c088ad1e732b5748fb8b (diff)
Streamlined ini swapping so the user can set up multiple character folders associated with a character.
This will save to the character folder's iniswaps.ini. You can click on the dropdown and edit the text inside to add an iniswap, and press the [X] button that'll appear next to it to remove the ini swap. Recode the enter_courtroom and add a new update_character feature - the two are now separate and responsible for different things. The courtroom will reload the whole theme and widgets while the character is only responsible for all ui elements related to the character. This drastically improves performance when switching characters using /switch or something Add a set_char_ini helper function that allows you to modify the character variables. For now only used to set name= field when iniswapping
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index ff43f273..9eea1797 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -601,7 +601,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
goto end;
if (courtroom_constructed)
- w_courtroom->enter_courtroom(f_contents.at(2).toInt());
+ w_courtroom->update_character(f_contents.at(2).toInt());
}
else if (header == "MS")
{