From f1908391f4b69e60636bc2fd956e10f7788b590f Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 17 Feb 2013 20:44:55 -0500 Subject: [PATCH] Death to a hardcoded konstant! --- Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h | 2 +- Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h b/Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h index de534a37..57f3f681 100644 --- a/Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h +++ b/Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h @@ -161,7 +161,7 @@ class pfKIMsg : public plMessage kPrivateMsg = 0x00000001, kAdminMsg = 0x00000002, kDead = 0x00000004, - kUNUSED1 = 0x00000008, + kInterAgeMsg = 0x00000008, kStatusMsg = 0x00000010, kNeighborMsg = 0x00000020, // sending to all the neighbors kChannelMask = 0x0000ff00 diff --git a/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp b/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp index bed9967c..e52800db 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp @@ -1122,7 +1122,7 @@ uint32_t cyMisc::SendRTChat(pyPlayer& from, const std::vector & tolis if (tolist.size() > 0) { - if (flags & 8/* kRTChatInterAge in PlasmaKITypes.py */) + if (flags & pfKIMsg::kInterAgeMsg) { // allow inter-age routing of this msg msg->SetBCastFlag( plMessage::kNetAllowInterAge ); @@ -1156,7 +1156,7 @@ uint32_t cyMisc::SendRTChat(pyPlayer& from, const std::vector & tolis if (tolist.size() > 0) { - if (flags & 8/* kRTChatInterAge in PlasmaKITypes.py */) + if (flags & pfKIMsg::kInterAgeMsg) { // allow inter-age routing of this msg msg->SetBCastFlag( plMessage::kNetAllowInterAge );