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:
Muzychenko Andrey committed 2022-09-08 10:51:33 +03:00
1 parent 22603aa126
commit 40672845e4
10 files changed
+103 -110

No files matched your search

+1 -1
View File
@@ -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;