Advertisement
Guest User

window_message.cpp patch

a guest
Nov 20th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.91 KB | None | 0 0
  1. --- a/src/window_message.cpp    Sat Nov 15 09:34:34 2014 +0000
  2. +++ b/src/window_message.cpp    Sat Nov 15 22:11:18 2014 +0000
  3. @@ -43,6 +43,9 @@
  4.  const int Window_Message::speed_table[21] = {0, 0, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
  5.                                             7, 7, 8, 8, 9, 9, 10, 10, 11};
  6.  
  7. +// C4428 is nonsense
  8. +#pragma warning (disable : 4428)
  9. +
  10.  Window_Message::Window_Message(int ix, int iy, int iwidth, int iheight) :
  11.     Window_Selectable(ix, iy, iwidth, iheight),
  12.     contents_x(0), contents_y(0), line_count(0), text(""),
  13. @@ -57,9 +60,9 @@
  14.     visible = false;
  15.     SetZ(10000);
  16.  
  17. -   escape_char = (Player::escape_symbol == "\u00A5" ? L'Â¥' :
  18. -             (Player::escape_symbol == "\u20A9" ? L'₩' :
  19. -             '\\'));
  20. +   escape_char = (Player::escape_symbol == "\xC2\xA5" ? L'\u00A5' :
  21. +             (Player::escape_symbol == "\xE2\x82\xA9" ? L'\u20A9' :
  22. +             L'\\'));
  23.     active = false;
  24.     index = -1;
  25.     text_color = Font::ColorDefault;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement