# HG changeset patch # User Wuzzy # Date 1538529843 -7200 # Node ID 93aa09004d36c8fc6d3a29128d5a7490e39d8b5d # Parent d012948b1eda59cb29a7cce7e1d9f8a242a7e730 Display error when entering invalid chat command in offline game diff -r d012948b1eda -r 93aa09004d36 hedgewars/uChat.pas --- a/hedgewars/uChat.pas Wed Oct 03 02:28:39 2018 +0200 +++ b/hedgewars/uChat.pas Wed Oct 03 03:24:03 2018 +0200 @@ -604,6 +604,8 @@ if (gameType = gmtNet) then SendConsoleCommand(s) + else + AddChatString(#0 + trcmd[sidCmdUnknown]); end else begin diff -r d012948b1eda -r 93aa09004d36 hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Wed Oct 03 02:28:39 2018 +0200 +++ b/hedgewars/uTypes.pas Wed Oct 03 03:24:03 2018 +0200 @@ -503,7 +503,7 @@ sidCmdHeaderTaunts, sidCmdSpeech, sidCmdThink, sidCmdYell, sidCmdSpeechNumberHint, sidCmdHsa, sidCmdHta, sidCmdHya, sidCmdHurrah, sidCmdIlovelotsoflemonade, sidCmdJuggle, - sidCmdRollup, sidCmdShrug, sidCmdWave); + sidCmdRollup, sidCmdShrug, sidCmdWave, sidCmdUnknown); // Events that are important for the course of the game or at least interesting for other reasons TEventId = (eidDied, eidDrowned, eidRoundStart, eidRoundWin, eidRoundDraw, diff -r d012948b1eda -r 93aa09004d36 share/hedgewars/Data/Locale/de.txt --- a/share/hedgewars/Data/Locale/de.txt Wed Oct 03 02:28:39 2018 +0200 +++ b/share/hedgewars/Data/Locale/de.txt Wed Oct 03 03:24:03 2018 +0200 @@ -1422,3 +1422,4 @@ 06:23=/rollup: Igel sich einigeln lassen 06:24=/shrug: Igel mit den Achseln zucken lassen 06:25=/wave: Igel winken lassen +06:26=Unbekannter Befehl oder ungültige Parameter. Sag »/help« im Chat für eine Liste an Befehlen. diff -r d012948b1eda -r 93aa09004d36 share/hedgewars/Data/Locale/en.txt --- a/share/hedgewars/Data/Locale/en.txt Wed Oct 03 02:28:39 2018 +0200 +++ b/share/hedgewars/Data/Locale/en.txt Wed Oct 03 03:24:03 2018 +0200 @@ -1325,3 +1325,4 @@ 06:23=/rollup: Make hedgehog roll up 06:24=/shrug: Make hedgehog shrug 06:25=/wave: Make hedgehog wave its hand +06:26=Unknown command or invalid parameters. Say “/help” in chat for a list of commands.