Fix build errors

This commit is contained in:
Open Toontown 2022-01-01 23:39:21 -05:00
parent 984cf6f838
commit f8b78ea12e
2 changed files with 5 additions and 15 deletions

View File

@ -36,6 +36,7 @@
#define STATESERVER_OBJECT_GENERATE_WITH_REQUIRED 2001
#define STATESERVER_OBJECT_GENERATE_WITH_REQUIRED_OTHER 2003
#define STATESERVER_OBJECT_UPDATE_FIELD 2004
#define STATESERVER_BOUNCE_MESSAGE 2086
// CMU messages:
#define CLIENT_OBJECT_GENERATE_CMU 9002

View File

@ -303,23 +303,12 @@ check_datagram() {
return true;
}
unsigned int client_update_msg;
unsigned int stateserver_update_msg;
if (astron_support)
{
client_update_msg = CLIENT_OBJECT_SET_FIELD;
stateserver_update_msg = STATESERVER_OBJECT_SET_FIELD;
}
else
{
client_update_msg = CLIENT_OBJECT_UPDATE_FIELD;
stateserver_update_msg = STATESERVER_OBJECT_UPDATE_FIELD;
}
switch (_msg_type) {
#ifdef HAVE_PYTHON
case client_update_msg:
case stateserver_update_msg:
case CLIENT_OBJECT_SET_FIELD:
case CLIENT_OBJECT_UPDATE_FIELD:
case STATESERVER_OBJECT_SET_FIELD:
case STATESERVER_OBJECT_UPDATE_FIELD:
if (_handle_c_updates) {
if (_has_owner_view) {
if (!handle_update_field_owner()) {