# HG changeset patch # User sheepluva # Date 1461528637 -7200 # Node ID fa4bc078e509ee940670fda9957320989858adce # Parent 3301d4d734a636030cc1715a03235414ed58a467 restore closing hog speech quotation marks being added automatically (lost in SDL2 transition... I think) diff -r 3301d4d734a6 -r fa4bc078e509 hedgewars/uChat.pas --- a/hedgewars/uChat.pas Sun Apr 24 21:16:08 2016 +0200 +++ b/hedgewars/uChat.pas Sun Apr 24 22:10:37 2016 +0200 @@ -1026,6 +1026,15 @@ if byte(InputStr.s[0]) + l > 240 then exit; s[0]:= char(l); InsertIntoInputStr(s); + + // add closing hog speech quotation marks automatically + if (l = 1) and (Length(InputStr.s) = 1) and charIsForHogSpeech(s[1]) then + begin + InsertIntoInputStr(s); + MoveCursorToPreviousChar(); + UpdateCursorCoords(); + end; + end end;