Skip to content
Snippets Groups Projects
Commit cc4c1fd7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Clear any mouse hot-spots before executing external program from exec_xtrn()

As Nelgin pointed out, mouse hot-spots were still active when running external
programs (door games) - so clear any active hot-spots before running external
programs.

This could possibly be done in external() instead, but this sufficient for
now. I wouldn't want a menu that EXEC's something (via @-code) to lose all its
hot-spots as a result.
parent baf63f6f
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -1438,6 +1438,7 @@ bool sbbs_t::exec_xtrn(uint xtrnnum, bool user_event)
snprintf(str, sizeof(str), "%u\t%s", useron.number, useron.alias);
mqtt_pub_timestamped_msg(mqtt, TOPIC_BBS_ACTION, topic, start, str);
clear_hotspots();
external(cmdstr(cfg.xtrn[xtrnnum]->cmd, drop_file, startup_dir, NULL, mode)
,mode
,cfg.xtrn[xtrnnum]->path);
......@@ -1446,6 +1447,7 @@ bool sbbs_t::exec_xtrn(uint xtrnnum, bool user_event)
if(cfg.xtrn[xtrnnum]->misc&FREETIME)
starttime+=end-start;
if(cfg.xtrn[xtrnnum]->clean[0]) {
clear_hotspots();
external(cmdstr(cfg.xtrn[xtrnnum]->clean, drop_file, startup_dir, NULL, mode)
,mode&~(EX_STDIN|EX_CONIO), cfg.xtrn[xtrnnum]->path);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment