From e91fd47bf6917cb6130624438acd93d8938b01d4 Mon Sep 17 00:00:00 2001 From: Harvir Date: Mon, 4 Aug 2014 07:04:02 +0100 Subject: [PATCH] msgtypes: Fix CONTROL_CLEAR_POST_REMOVES pluralization. --- direct/src/distributed/AstronInternalRepository.py | 2 +- direct/src/distributed/MsgTypes.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index 7cdd9c8ba5..17aed1f881 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -216,7 +216,7 @@ class AstronInternalRepository(ConnectionRepository): """ dg = PyDatagram() - dg.addServerControlHeader(CONTROL_CLEAR_POST_REMOVE) + dg.addServerControlHeader(CONTROL_CLEAR_POST_REMOVES) dg.addUint64(self.ourChannel) self.send(dg) diff --git a/direct/src/distributed/MsgTypes.py b/direct/src/distributed/MsgTypes.py index b689214d10..70b8ee7149 100644 --- a/direct/src/distributed/MsgTypes.py +++ b/direct/src/distributed/MsgTypes.py @@ -40,7 +40,7 @@ MsgName2Id = { 'CONTROL_ADD_RANGE': 9002, 'CONTROL_REMOVE_RANGE': 9003, 'CONTROL_ADD_POST_REMOVE': 9010, - 'CONTROL_CLEAR_POST_REMOVE': 9011, + 'CONTROL_CLEAR_POST_REMOVES': 9011, # State Server control messages: 'STATESERVER_CREATE_OBJECT_WITH_REQUIRED': 2000, @@ -139,7 +139,7 @@ MsgName2Id = { # create id->name table for debugging MsgId2Names = invertDictLossless(MsgName2Id) - + # put msg names in module scope, assigned to msg value globals().update(MsgName2Id) @@ -149,7 +149,7 @@ QUIET_ZONE_IGNORED_LIST = [ # We mustn't ignore updates, because some updates for localToon # are always important. #CLIENT_OBJECT_UPDATE_FIELD, - + # These are now handled. If it is a create for a class that is in the # uber zone, we should create it. #CLIENT_CREATE_OBJECT_REQUIRED,