From 9159d406e334c9c13617d1aafbab9cb8b037f829 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 16 Nov 2021 15:52:49 +0300 Subject: [PATCH] engine: client: fix #673 --- engine/client/in_touch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index 9b7dfe7e..8a72bc04 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -197,6 +197,8 @@ static inline int Touch_ExportButtonToConfig( file_t *f, touch_button_t *button, if( FBitSet( flags, TOUCH_FL_DEF_HIDE )) SetBits( flags, TOUCH_FL_HIDE ); + Cmd_Escape( newCommand, B( command ), sizeof( newCommand )); + FS_Printf( f, "touch_addbutton \"%s\" \"%s\" \"%s\" %f %f %f %f %d %d %d %d %d", B(name), B(texturefile), newCommand, B(x1), B(y1), B(x2), B(y2),