mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
[MIRROR] the game is no longer mad every time a new emote gets added [MDB IGNORE] (#21028)
* the game is no longer mad every time a new emote gets added (#75244) ## About The Pull Request makes it so stuff thats unbound isnt screamed at in the prefs check ## Why It's Good For The Game  idc bruh ## Changelog 🆑 fix: new hotkeys unbound by default (like emotes) no longer scream at you when added /🆑 * the game is no longer mad every time a new emote gets added --------- Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
@@ -118,12 +118,16 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
|
||||
if(parent.hotkeys)
|
||||
for(var/hotkeytobind in kb.hotkey_keys)
|
||||
if(!length(binds_by_key[hotkeytobind]) && hotkeytobind != "Unbound") //Only bind to the key if nothing else is bound expect for Unbound
|
||||
if(hotkeytobind == "Unbound")
|
||||
addedbind = TRUE
|
||||
else if(!length(binds_by_key[hotkeytobind])) //Only bind to the key if nothing else is bound
|
||||
key_bindings[kb.name] |= hotkeytobind
|
||||
addedbind = TRUE
|
||||
else
|
||||
for(var/classickeytobind in kb.classic_keys)
|
||||
if(!length(binds_by_key[classickeytobind]) && classickeytobind != "Unbound") //Only bind to the key if nothing else is bound expect for Unbound
|
||||
if(classickeytobind == "Unbound")
|
||||
addedbind = TRUE
|
||||
else if(!length(binds_by_key[classickeytobind])) //Only bind to the key if nothing else is bound
|
||||
key_bindings[kb.name] |= classickeytobind
|
||||
addedbind = TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user