# HG changeset patch # User Nomad # Date 1361565275 -7200 # Node ID 2f67762d04f674b98cbe3b8bb503aa513129f1ae # Parent 5bea494a2365edc22dd7a54b47c7f6e3a19c490d DecorationDesc: flags -> methods diff -r 5bea494a2365 -r 2f67762d04f6 DecorationList.h --- a/DecorationList.h Fri Feb 22 22:26:51 2013 +0200 +++ b/DecorationList.h Fri Feb 22 22:34:35 2013 +0200 @@ -25,8 +25,10 @@ #pragma pack(push, 1) struct DecorationDesc { - inline bool SoundOnDawn() {return uFlags & DECORATION_SOUND_ON_DAWN;} - inline bool SoundOnDusk() {return uFlags & DECORATION_SOUND_ON_DUSK;} + inline bool CanMoveThrough() {return uFlags & DECORATION_MOVE_THROUGH;} + inline bool DontDraw() {return uFlags & DECORATION_DONT_DRAW;} + inline bool SoundOnDawn() {return uFlags & DECORATION_SOUND_ON_DAWN;} + inline bool SoundOnDusk() {return uFlags & DECORATION_SOUND_ON_DUSK;} char pName[32]; char field_20[32]; diff -r 5bea494a2365 -r 2f67762d04f6 Indoor.cpp --- a/Indoor.cpp Fri Feb 22 22:26:51 2013 +0200 +++ b/Indoor.cpp Fri Feb 22 22:34:35 2013 +0200 @@ -4616,7 +4616,7 @@ if ( !(pDecortaion->field_2 & 0x20) ) { v17 = &pDecorationList->pDecorations[pDecortaion->uDecorationDescID]; - if ( !((unsigned __int8)2 & v17->uFlags) ) + if (!v17->DontDraw()) { v18 = v17->uLightRadius; if ( v18 ) diff -r 5bea494a2365 -r 2f67762d04f6 mm7_4.cpp --- a/mm7_4.cpp Fri Feb 22 22:26:51 2013 +0200 +++ b/mm7_4.cpp Fri Feb 22 22:34:35 2013 +0200 @@ -1165,7 +1165,7 @@ if ( !(v1->field_2 & 0x20) ) { v2 = &pDecorationList->pDecorations[v1->uDecorationDescID]; - if ( !(v2->uFlags & 1) ) + if (!v2->CanMoveThrough()) { v3 = v2->uRadius; v4 = v1->vPosition.x; @@ -1274,7 +1274,7 @@ if ( !(v5->field_2 & 0x20) ) { v6 = &pDecorationList->pDecorations[v5->uDecorationDescID]; - if ( !(v6->uFlags & 1) ) + if (!v6->CanMoveThrough()) { v7 = v6->uRadius; v8 = v5->vPosition.x;