Skip to content

Commit

Permalink
DM: Fix compilation using MSVC9
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and Bendegúz Nagy committed Aug 26, 2016
1 parent 8947334 commit 0a0e793
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion engines/dm/movesens.cpp
Expand Up @@ -1072,7 +1072,7 @@ void MovesensMan::f265_createEvent60to61_moveGroup(Thing groupThing, int16 mapX,
L0696_s_Event._priority = 0;
L0696_s_Event._B._location._mapX = mapX;
L0696_s_Event._B._location._mapY = mapY;
L0696_s_Event._C._slot = groupThing;
L0696_s_Event._C._slot = groupThing.toUint16();
_vm->_timeline->f238_addEventGetEventIndex(&L0696_s_Event);
}

Expand Down
4 changes: 2 additions & 2 deletions engines/dm/projexpl.cpp
Expand Up @@ -67,7 +67,7 @@ void ProjExpl::f212_projectileCreate(Thing thing, int16 mapX, int16 mapY, uint16
L0468_s_Event._type = k48_TMEventTypeMoveProjectileIgnoreImpacts; /* Projectiles created by champions or creatures ignore impacts on their first movement */
}
L0468_s_Event._priority = 0;
L0468_s_Event._B._slot = L0466_T_ProjectileThing;
L0468_s_Event._B._slot = L0466_T_ProjectileThing.toUint16();
L0468_s_Event._C._projectile.setMapX(mapX);
L0468_s_Event._C._projectile.setMapY(mapY);
L0468_s_Event._C._projectile.setStepEnergy(stepEnergy);
Expand Down Expand Up @@ -337,7 +337,7 @@ void ProjExpl::f213_explosionCreate(Thing explThing, uint16 attack, uint16 mapXC
M33_setMapAndTime(L0476_s_Event._mapTime, _vm->_dungeonMan->_g272_currMapIndex, _vm->_g313_gameTime + ((explThing == Thing::_explRebirthStep1) ? 5 : 1));
L0476_s_Event._type = k25_TMEventTypeExplosion;
L0476_s_Event._priority = 0;
L0476_s_Event._C._slot = L0473_T_Thing;
L0476_s_Event._C._slot = L0473_T_Thing.toUint16();
L0476_s_Event._B._location._mapX = AP0443_ui_ProjectileMapX;
L0476_s_Event._B._location._mapY = AP0444_ui_ProjectileMapY;
_vm->_timeline->f238_addEventGetEventIndex(&L0476_s_Event);
Expand Down
4 changes: 2 additions & 2 deletions engines/dm/timeline.h
Expand Up @@ -109,7 +109,7 @@ class TimelineEvent {
int16 _attack;
int16 _defense;
int16 _lightPower;
Thing _slot;
uint16 _slot; // Thing
int16 _slotOrdinal;
B_unionTimelineEvent() {}
} _B;
Expand All @@ -135,7 +135,7 @@ class TimelineEvent {
void setStepEnergy(uint16 val) { _backing = (_backing & ~(0xF << 12)) | ((val & 0xF) << 12); }
} _projectile;

Thing _slot;
uint16 _slot;
int16 _soundIndex;
byte _ticks;
C_uionTimelineEvent() {}
Expand Down

0 comments on commit 0a0e793

Please sign in to comment.