Skip to content

Commit

Permalink
TSAGE: Fix a bug reported by salty-horse (and Clang)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 9, 2012
1 parent 9d7b55e commit d8fb634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/tsage/events.h
Expand Up @@ -32,7 +32,7 @@
namespace TsAGE {

enum EventType {EVENT_NONE = 0, EVENT_BUTTON_DOWN = 1, EVENT_BUTTON_UP = 2, EVENT_KEYPRESS = 4,
EVENT_MOUSE_MOVE = 8};
EVENT_MOUSE_MOVE = 8, EVENT_UNK27 = 27};

enum ButtonShiftFlags {BTNSHIFT_LEFT = 0, BTNSHIFT_RIGHT = 3, BTNSHIFT_MIDDLE = 4};

Expand Down
2 changes: 1 addition & 1 deletion engines/tsage/ringworld2/ringworld2_scenes0.cpp
Expand Up @@ -61,7 +61,7 @@ void Scene50::postInit(SceneObjectList *OwnerList) {
}

void Scene50::process(Event &event) {
if ((event.eventType != EVENT_BUTTON_DOWN) && (event.eventType != EVENT_KEYPRESS) && (event.eventType == 27)) {
if ((event.eventType != EVENT_BUTTON_DOWN) && (event.eventType != EVENT_KEYPRESS) && (event.eventType == EVENT_UNK27)) {
event.handled = true;
warning("TODO: incomplete Scene50::process()");
// CursorType _oldCursorId = _cursorId;
Expand Down

0 comments on commit d8fb634

Please sign in to comment.