ASYLUM: fix initialization on Linux systems

The casting of event.type to uint32 was failing silently on non-Windows
systems. Replacing these with int32 casts resolved the issue.

Thanks to Littleboy for spotting this.
This commit is contained in:
Alex Bevilacqua 2011-05-24 14:02:03 -04:00 committed by Eugene Sandulenko
parent baa64d84d4
commit be33e9b481
No known key found for this signature in database
GPG key ID: 014D387312D34F08
5 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ Puzzle::~Puzzle() {
// Event Handling // Event Handling
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
bool Puzzle::handleEvent(const AsylumEvent &evt) { bool Puzzle::handleEvent(const AsylumEvent &evt) {
switch ((uint32)evt.type) { switch ((int32)evt.type) {
default: default:
break; break;

View file

@ -290,7 +290,7 @@ void Encounter::exitEncounter() {
// Message handler // Message handler
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
bool Encounter::handleEvent(const AsylumEvent &evt) { bool Encounter::handleEvent(const AsylumEvent &evt) {
switch ((uint32)evt.type) { switch ((int32)evt.type) {
default: default:
break; break;

View file

@ -314,7 +314,7 @@ Common::String Menu::getChapterName() {
// Event Handler // Event Handler
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
bool Menu::handleEvent(const AsylumEvent &evt) { bool Menu::handleEvent(const AsylumEvent &evt) {
switch ((uint32)evt.type) { switch ((int32)evt.type) {
default: default:
break; break;

View file

@ -293,7 +293,7 @@ void Scene::load(ResourcePackId packId) {
// Event handling // Event handling
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
bool Scene::handleEvent(const AsylumEvent &evt) { bool Scene::handleEvent(const AsylumEvent &evt) {
switch ((uint32)evt.type) { switch ((int32)evt.type) {
default: default:
break; break;

View file

@ -55,7 +55,7 @@ VideoPlayer::~VideoPlayer() {
// Event Handler // Event Handler
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
bool VideoPlayer::handleEvent(const AsylumEvent &evt) { bool VideoPlayer::handleEvent(const AsylumEvent &evt) {
switch ((uint32)evt.type) { switch ((int32)evt.type) {
default: default:
break; break;