Skip to content

Commit

Permalink
MOHAWK: Engine classes initializations
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jun 13, 2016
1 parent 3a95493 commit f25c848
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engines/mohawk/cstime.h
Expand Up @@ -111,7 +111,7 @@ enum {
};

struct CSTimeEvent {
CSTimeEvent() { }
CSTimeEvent() : type(0), param1(0), param2(0) { }
CSTimeEvent(uint16 t, uint16 p1, uint16 p2) : type(t), param1(p1), param2(p2) { }

uint16 type;
Expand Down
5 changes: 5 additions & 0 deletions engines/mohawk/cstime_game.cpp
Expand Up @@ -94,6 +94,11 @@ CSTimeChar::CSTimeChar(MohawkEngine_CSTime *vm, CSTimeScene *scene, uint id) : _
_lastTime2 = 0;
_lastTime3 = 0;

_unknown1 = _unknown2 = _unknown3 = 0;
_enabled = false;
_nextCue = 0;
_waveStatus = 0;

_playingWaveId = 0;
}

Expand Down
4 changes: 4 additions & 0 deletions engines/mohawk/cstime_ui.cpp
Expand Up @@ -79,6 +79,8 @@ CSTimeInterface::CSTimeInterface(MohawkEngine_CSTime *vm) : _vm(vm) {
_rolloverTextFeature = NULL;
_bubbleTextFeature = NULL;

_draggedItem = 0;

_mouseWasInScene = false;
_state = kCSTimeInterfaceStateNormal;

Expand Down Expand Up @@ -1034,6 +1036,8 @@ CSTimeInventoryDisplay::CSTimeInventoryDisplay(MohawkEngine_CSTime *vm, Common::
_cuffsState = false;
_cuffsShape = 10;

_draggedItem = 0;

_invRect = baseRect;

for (uint i = 0; i < MAX_DISPLAYED_ITEMS; i++) {
Expand Down

0 comments on commit f25c848

Please sign in to comment.