From c57991ddfa3532fe02d212f20aa583f9a6c60d62 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 15 Jun 2014 19:47:37 +0200 Subject: CGE: Use booleans instead of uint16 in flag structure --- engines/cge/vga13h.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'engines/cge/vga13h.h') diff --git a/engines/cge/vga13h.h b/engines/cge/vga13h.h index 9511559df0..cc56eebdac 100644 --- a/engines/cge/vga13h.h +++ b/engines/cge/vga13h.h @@ -88,22 +88,22 @@ public: int _ref; signed char _scene; struct Flags { - uint16 _hide : 1; // general visibility switch - uint16 _near : 1; // Near action lock - uint16 _drag : 1; // sprite is moveable - uint16 _hold : 1; // sprite is held with mouse - uint16 _dummy : 1; // intrrupt driven animation - uint16 _slav : 1; // slave object - uint16 _syst : 1; // system object - uint16 _kill : 1; // dispose memory after remove - uint16 _xlat : 1; // 2nd way display: xlat table - uint16 _port : 1; // portable - uint16 _kept : 1; // kept in pocket - uint16 _east : 1; // talk to east (in opposite to west) - uint16 _shad : 1; // shadow - uint16 _back : 1; // 'send to background' request - uint16 _bDel : 1; // delete bitmaps in ~SPRITE - uint16 _tran : 1; // transparent (untouchable) + bool _hide : true; // general visibility switch + bool _near : true; // Near action lock + bool _drag : true; // sprite is moveable + bool _hold : true; // sprite is held with mouse + bool _dummy : true; // intrrupt driven animation + bool _slav : true; // slave object + bool _syst : true; // system object + bool _kill : true; // dispose memory after remove + bool _xlat : true; // 2nd way display: xlat table + bool _port : true; // portable + bool _kept : true; // kept in pocket + bool _east : true; // talk to east (in opposite to west) + bool _shad : true; // shadow + bool _back : true; // 'send to background' request + bool _bDel : true; // delete bitmaps in ~SPRITE + bool _tran : true; // transparent (untouchable) } _flags; int _x; int _y; -- cgit v1.2.3