ASYLUM: Update Scene::updateMouse() and Scene::updateAmbientSounds()
git-svn-id: http://asylumengine.googlecode.com/svn/trunk@630 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
This commit is contained in:
parent
2540959025
commit
4c7cb12983
9 changed files with 179 additions and 156 deletions
|
@ -425,6 +425,14 @@ void AsylumEngine::updateReverseStereo() {
|
|||
//////////////////////////////////////////////////////////////////////////
|
||||
#define FLAG_MASK 0xFFFFFFE0
|
||||
|
||||
void AsylumEngine::setGameFlagByIndex(int32 index) {
|
||||
_gameFlags[index] = 1;
|
||||
}
|
||||
|
||||
int32 AsylumEngine::getGameFlagByIndex(int32 index) {
|
||||
return _gameFlags[index];
|
||||
}
|
||||
|
||||
void AsylumEngine::setGameFlag(GameFlag flag) {
|
||||
_gameFlags[flag / 32] |= 1 << (flag % FLAG_MASK);
|
||||
}
|
||||
|
@ -445,4 +453,8 @@ bool AsylumEngine::isGameFlagNotSet(GameFlag flag) const {
|
|||
return ((1 << (flag % FLAG_MASK)) & (unsigned int)_gameFlags[flag / 32]) >> (flag % FLAG_MASK) == 0;
|
||||
}
|
||||
|
||||
void AsylumEngine::resetFlags() {
|
||||
memset(&_gameFlags[130], 0, 60);
|
||||
}
|
||||
|
||||
} // namespace Asylum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue