36769 Commits

Author SHA1 Message Date
uruk
8a1d046187 CGE2: Fix kCmdWalk's comment. 2014-07-24 23:22:46 +02:00
uruk
b85e5dcfdb CGE2: Remove kCmdDim and kCmdStep and connected code. 2014-07-24 23:19:02 +02:00
uruk
42f0440127 CGE2: Remove more unused opcodes. 2014-07-24 23:16:12 +02:00
uruk
6caee925df CGE2: Fix typo in SETREF's comment. 2014-07-24 23:07:11 +02:00
uruk
12210ecf27 CGE2: Remove the unused opcodes. 2014-07-24 23:06:11 +02:00
uruk
c843898132 CGE2: Remove handling of unused opcodes. 2014-07-24 22:57:26 +02:00
uruk
15a2256972 CGE2: Implement snTrans() and snPort(). 2014-07-24 22:19:11 +02:00
uruk
7c65aa7aec CGE2: Repair/rename checkSoundHandle(). 2014-07-24 19:44:09 +02:00
uruk
6743b8b6a3 CGE2: Remove redundant default labels. 2014-07-24 18:55:41 +02:00
uruk
ff97d52d72 CGE2: Distinguish SFX from speech when playing sounds.
Now the sound options of ScummVM are taken into account when playing these two types of sounds. Until now, everything was considered SFX sound.
2014-07-24 18:55:09 +02:00
uruk
24cc8a8762 CGE2: Implement checkSaySwitch() and add/fix connected code. 2014-07-24 18:11:10 +02:00
uruk
755fedcceb CGE2: Set speech only/text only/both modes according to Launcher options. 2014-07-24 16:50:36 +02:00
uruk
a6eb089033 CGE2: Move inventory system's functions from cge2_main.cpp to inventory.cpp. 2014-07-23 14:56:11 +02:00
uruk
cd8b7c0d15 CGE2: Move toolbar's functions from cge2_main.cpp to toolbar.cpp. 2014-07-23 14:47:43 +02:00
uruk
014b734c98 CGE2: Increase readability of code connected to music switch. 2014-07-23 14:24:06 +02:00
uruk
6336ddb3ce CGE2: Keep music setting in sync with the Launcher. 2014-07-23 12:31:06 +02:00
uruk
4c3bd3e0f5 CGE2: Add MidiPlayer::syncVolume() call to checkSounds(). 2014-07-23 10:09:27 +02:00
uruk
b15b1043f9 CGE2: Updgrade checkSaySwitch().
Now it takes into account the "Speech volume" option in the Launcher and it only plays the keyClick() sound if the button is really switched, not every time it's clicked.
2014-07-23 10:00:03 +02:00
uruk
71a9ead967 CGE2: Add and implement checkSounds() and checkMusicSwitch(). 2014-07-23 09:52:05 +02:00
uruk
2f5e115e9a CGE2: Use nullptr instead of NULL in switchColorMode(). 2014-07-23 09:29:24 +02:00
uruk
93b8f101c3 CGE2: Implement switchMusic(): 2014-07-23 09:28:57 +02:00
uruk
49f68a8913 CGE2: Reimplement checkSaySwitch(). 2014-07-22 20:25:21 +02:00
uruk
848b2650e9 CGE2: Unstub CommandHandler::runCommand(). 2014-07-22 19:07:56 +02:00
uruk
aa6b4601d7 CGE2: Change call order of checkSoundHandle(). 2014-07-22 18:59:22 +02:00
uruk
def6b4fc3e CGE2: Add and use Sound::checkSoundHandle(). 2014-07-22 18:54:48 +02:00
uruk
2f19de9ebe CGE2: Fix error introduced by previous commit. 2014-07-22 18:01:37 +02:00
uruk
e261886d92 CGE2: Fix snSound(). 2014-07-22 17:59:16 +02:00
uruk
77b5c7e4ad CGE2: Rename _commandStat to _soundStat. 2014-07-22 15:41:33 +02:00
uruk
bac952917f CGE2: Remove Spare::locate(char *file), since it's not used anymore. 2014-07-21 20:20:33 +02:00
uruk
6e26422468 CGE2: Rework loading of sprites from file.
Now it satisfies the needs described in the last commit's TODO comment.
2014-07-21 19:57:33 +02:00
uruk
1176721034 CGE2: Fix the issue of loading sprites with changed _ref.
It fixes the problem with the multiply displayed Vulcanizer after giving him the glasses/basket ball, then saving and loading.
2014-07-21 19:52:46 +02:00
uruk
db9e503cfc CGE2: Rework snSetRef(). 2014-07-18 02:26:13 +02:00
uruk
c285d3299c CGE2: Silence GCC warnings. 2014-07-18 00:12:53 +02:00
uruk
f3345f296f CGE2: Use locate instead() of take() in CGE2Eninge::locate().
It fixes the regression with the hole of the sign post on the ground from scene 6 and the display bug in the hospital.
2014-07-17 20:50:16 +02:00
uruk
5963a540ef CGE2: Add destructor to Hero().
Hopefully it will cut short the leak problems with _dim[].
2014-07-17 17:33:04 +02:00
uruk
49cea2d927 CGE2: Initialize _wideSpace in InfoLine's constructor. 2014-07-17 17:23:12 +02:00
uruk
5e780d3d97 CGE2: Use locate() instead of take() where possible. 2014-07-17 16:44:02 +02:00
uruk
2203b7df8c CGE2: Smaller revision regarding Spare. 2014-07-17 16:41:32 +02:00
uruk
d9e82f8f8e CGE2: Get rid of _sprite. 2014-07-17 15:41:49 +02:00
uruk
a82bd2d9c6 CGE2: Fix memory leak regarding Sprite::ghost().
uint8 *v = new uint8;
was the faulty line in Sprite::ghost(), and it should be released right here.
2014-07-17 15:18:55 +02:00
uruk
20eb951b3a CGE2: Rework getText() so it works nicely with offUse(). 2014-07-15 23:54:07 +02:00
uruk
7d6c02ce3f CGE2: Add Hero::contract().
Fix the crash introduced by previous commit on the second scene.
2014-07-15 23:12:58 +02:00
uruk
0b0f998aac CGE2: Try a different approach regarding _dim.
Now it doesn't crash the hospital scene, but I am not entirely sure it's totally leak-free...
2014-07-15 22:15:06 +02:00
Strangerke
fbd8f2c390 CGE2: Some rework in snail 2014-07-15 19:32:07 +02:00
uruk
8fae34df05 CGE2: Implement snRoom(). 2014-07-15 16:22:43 +02:00
uruk
d947167931 CGE2: Fix the intro animation. 2014-07-15 15:17:00 +02:00
uruk
8861b0b583 CGE2: Get rid of _mode. 2014-07-15 14:41:46 +02:00
uruk
470736b9c4 CGE2: Remove unnecessary comment from sceneUp(). 2014-07-15 14:19:55 +02:00
uruk
035fb6ad1c CGE2: Hopefully fix a memory leak problem regarding Hero::_dim; 2014-07-15 13:53:26 +02:00
uruk
753b5f89ba CGE2: Unstub CommandHandler::reset(). 2014-07-14 18:17:07 +02:00