Merge pull request #512 from AttorneyOnline/fix/argh

Fix per-emote stretch setting
This commit is contained in:
oldmud0 2021-03-30 21:44:58 -05:00 committed by GitHub
commit b7f97604ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ void CharLayer::load_image(QString p_filename, QString p_charname,
transform_mode = ao_app->get_scaling( transform_mode = ao_app->get_scaling(
ao_app->get_emote_property(p_charname, p_filename, "scaling")); ao_app->get_emote_property(p_charname, p_filename, "scaling"));
stretch = ao_app->get_emote_property(p_charname, p_filename, "stretch") stretch = ao_app->get_emote_property(p_charname, p_filename, "stretch")
.startsWith(true); .startsWith("true");
if ((p_charname == last_char) && if ((p_charname == last_char) &&
((p_filename == last_emote) || ((p_filename == last_emote) ||
(p_filename.mid(3, -1) == last_emote.mid(3, -1))) && (p_filename.mid(3, -1) == last_emote.mid(3, -1))) &&