Commit 1f56e7ac authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't add hot-spots for users of terminals without mouse support

This eliminates some link-list management and the debug-level log message "Scrolled x mouse hot-spots" for non-mouse-enabled user terminals.
parent 9828d56c
......@@ -572,6 +572,8 @@ void sbbs_t::set_mouse(long flags)
struct mouse_hotspot* sbbs_t::add_hotspot(struct mouse_hotspot* spot)
{
if(!term_supports(MOUSE))
return NULL;
if(spot->y < 0)
spot->y = row;
if(spot->minx < 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment