Browse Source

Death to a hardcoded konstant!

Adam Johnson 12 years ago
parent
commit
f1908391f4
  1. 2
      Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h
  2. 4
      Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp

2
Sources/Plasma/FeatureLib/pfMessage/pfKIMsg.h

@ -161,7 +161,7 @@ class pfKIMsg : public plMessage
kPrivateMsg = 0x00000001, kPrivateMsg = 0x00000001,
kAdminMsg = 0x00000002, kAdminMsg = 0x00000002,
kDead = 0x00000004, kDead = 0x00000004,
kUNUSED1 = 0x00000008, kInterAgeMsg = 0x00000008,
kStatusMsg = 0x00000010, kStatusMsg = 0x00000010,
kNeighborMsg = 0x00000020, // sending to all the neighbors kNeighborMsg = 0x00000020, // sending to all the neighbors
kChannelMask = 0x0000ff00 kChannelMask = 0x0000ff00

4
Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp

@ -1122,7 +1122,7 @@ uint32_t cyMisc::SendRTChat(pyPlayer& from, const std::vector<pyPlayer*> & tolis
if (tolist.size() > 0) if (tolist.size() > 0)
{ {
if (flags & 8/* kRTChatInterAge in PlasmaKITypes.py */) if (flags & pfKIMsg::kInterAgeMsg)
{ {
// allow inter-age routing of this msg // allow inter-age routing of this msg
msg->SetBCastFlag( plMessage::kNetAllowInterAge ); msg->SetBCastFlag( plMessage::kNetAllowInterAge );
@ -1156,7 +1156,7 @@ uint32_t cyMisc::SendRTChat(pyPlayer& from, const std::vector<pyPlayer*> & tolis
if (tolist.size() > 0) if (tolist.size() > 0)
{ {
if (flags & 8/* kRTChatInterAge in PlasmaKITypes.py */) if (flags & pfKIMsg::kInterAgeMsg)
{ {
// allow inter-age routing of this msg // allow inter-age routing of this msg
msg->SetBCastFlag( plMessage::kNetAllowInterAge ); msg->SetBCastFlag( plMessage::kNetAllowInterAge );

Loading…
Cancel
Save