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:
parent
baa64d84d4
commit
be33e9b481
5 changed files with 5 additions and 5 deletions
|
@ -50,7 +50,7 @@ Puzzle::~Puzzle() {
|
|||
// Event Handling
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool Puzzle::handleEvent(const AsylumEvent &evt) {
|
||||
switch ((uint32)evt.type) {
|
||||
switch ((int32)evt.type) {
|
||||
default:
|
||||
break;
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ void Encounter::exitEncounter() {
|
|||
// Message handler
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool Encounter::handleEvent(const AsylumEvent &evt) {
|
||||
switch ((uint32)evt.type) {
|
||||
switch ((int32)evt.type) {
|
||||
default:
|
||||
break;
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ Common::String Menu::getChapterName() {
|
|||
// Event Handler
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool Menu::handleEvent(const AsylumEvent &evt) {
|
||||
switch ((uint32)evt.type) {
|
||||
switch ((int32)evt.type) {
|
||||
default:
|
||||
break;
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ void Scene::load(ResourcePackId packId) {
|
|||
// Event handling
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool Scene::handleEvent(const AsylumEvent &evt) {
|
||||
switch ((uint32)evt.type) {
|
||||
switch ((int32)evt.type) {
|
||||
default:
|
||||
break;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ VideoPlayer::~VideoPlayer() {
|
|||
// Event Handler
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool VideoPlayer::handleEvent(const AsylumEvent &evt) {
|
||||
switch ((uint32)evt.type) {
|
||||
switch ((int32)evt.type) {
|
||||
default:
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue