Skip to content

Commit

Permalink
add command from shared commands when gamesetup or in game to command…
Browse files Browse the repository at this point in the history
… history
  • Loading branch information
sl5net committed Jun 29, 2023
1 parent 4a503f5 commit ef77262
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui/common/~autocivSharedCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ autociv_InitSharedCommands.pipe = {
"description": g_autociv_SharedCommands[key].description,
"handler": text =>
{
// selfMessage(`334: SharedCommands= ${key} ${text}`)
g_autociv_SharedCommands[key].handler(text)
selfMessage(`325: SharedCommands= ${text}`)
return true
}
}
Expand All @@ -330,6 +332,8 @@ autociv_InitSharedCommands.pipe = {
{
g_NetworkCommands["/" + key] = text =>
{
// selfMessage(`334: SharedCommands= ${key} ${text}`)
saveLastCommand2History(`/${key} ${text}`)
g_autociv_SharedCommands[key].handler(text)
return true
}
Expand All @@ -338,6 +342,8 @@ autociv_InitSharedCommands.pipe = {
{
g_NetworkCommands["/" + key] = text =>
{
// selfMessage(`334: SharedCommands= ${key} ${text}`)
saveLastCommand2History(`/${key} ${text}`)
g_autociv_SharedCommands[key].handler(text)
return true
}
Expand Down

0 comments on commit ef77262

Please sign in to comment.