Skip to content

Commit

Permalink
Fixed a bug with the key buffer that was ONLY visible in LuaVerge. Go…
Browse files Browse the repository at this point in the history
… figure. Apparently VergeC is treating its strings a little more forgivingly than Lua and in Lua, \0 was being added when it shouldn't have.

git-svn-id: http://www.verge-rpg.com/svn/verge3/trunk@240 85f9bd53-ed1e-0410-abaf-ef5a3fdb13a8
  • Loading branch information
overkill committed Jun 7, 2008
1 parent a18c242 commit fbfc6a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Verge 3 Changelog
================================================

Revision 240 (2008-06-07) (Overkill)
=========================
* Fixed a bug with the key buffer that was ONLY visible in LuaVerge. Go figure. Apparently VergeC is treating its strings a little more forgivingly than Lua and in Lua, \0 was being added when it shouldn't have.

Revision 239 (2008-06-06) (Overkill)
=========================
* Moved the key buffer related stuff over to the general script binding so now it can be accessed by both VergeC and LuaVerge.
Expand Down
Binary file modified redist/verge.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions verge/Source/win_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int ParseKeyEvent()
{
keybuffer = keybuffer + '\n';
}
else
else if (lastkey)
{
keybuffer = keybuffer + (char)lastkey;
}
Expand Down Expand Up @@ -190,9 +190,9 @@ int ParseKeyEvent()
{
keybuffer = keybuffer + '\n';
}
else
else if (mykey)
{
keybuffer = keybuffer + (char)mykey;
keybuffer = keybuffer + (char)mykey;
}
// Update the timestamp, so it'll repeat at a sane rate again.
key_timer = systemtime;
Expand Down

0 comments on commit fbfc6a3

Please sign in to comment.