Remove this for now

This commit is contained in:
Federico Cecchetto 2022-06-05 21:50:12 +02:00
parent 96ffbcdc76
commit 114e08a8b7

View File

@ -17,7 +17,7 @@ namespace input
void cl_char_event_stub(const int local_client_num, const int key) void cl_char_event_stub(const int local_client_num, const int key)
{ {
if (ui_scripting::lui_running()) if (game::environment::is_sp() && ui_scripting::lui_running())
{ {
ui_scripting::notify("keypress", ui_scripting::notify("keypress",
{ {
@ -36,7 +36,7 @@ namespace input
void cl_key_event_stub(const int local_client_num, const int key, const int down) void cl_key_event_stub(const int local_client_num, const int key, const int down)
{ {
if (ui_scripting::lui_running()) if (game::environment::is_sp() && ui_scripting::lui_running())
{ {
ui_scripting::notify(down ? "keydown" : "keyup", ui_scripting::notify(down ? "keydown" : "keyup",
{ {