Message code enum part 6: final touches + control light cleanup.
MessageField is often used as int, so it stays unchanged.
This commit is contained in:
1 parent
22603aa126
commit
40672845e4
10 files changed
+103
-110
No files matched your search
@@ -107,7 +107,7 @@ TPinballComponent::~TPinballComponent()
|
||||
|
||||
int TPinballComponent::Message(MessageCode code, float value)
|
||||
{
|
||||
MessageField = ~code;
|
||||
MessageField = static_cast<int>(code);
|
||||
if (code == MessageCode::Reset)
|
||||
MessageField = 0;
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user