Browse Source

PlayFlavor (HandleEmote function in zoneserver) will now handle visuals without requiring a message text being set in the database

Emagi 10 months ago
parent
commit
3129ae3d3b
1 changed files with 1 additions and 8 deletions
  1. 1 8
      EQ2/source/WorldServer/zoneserver.cpp

+ 1 - 8
EQ2/source/WorldServer/zoneserver.cpp

@@ -6446,16 +6446,9 @@ void ZoneServer::HandleEmote(Spawn* originator, string name) {
 					emoteResponse = new char[message.length() + strlen(originator->GetName()) + 10];
 					sprintf(emoteResponse,"%s %s", originator->GetName(), message.c_str());
 				}
-				else{
-					if(orig_client) {
-						orig_client->Message(CHANNEL_COLOR_YELLOW, "%s is not properly configured, be sure to submit a /bug report.", name.c_str());
-					}
-					safe_delete(packet);
-					break;
-				}
 			}
 			if(originator->IsPlayer()) {
-				packet->setMediumStringByName("emote_msg", emoteResponse);
+				packet->setMediumStringByName("emote_msg", emoteResponse ? emoteResponse : "");
 			}
 			packet->setDataByName("anim_type", emote->GetVisualState());
 			client->QueuePacket(packet->serialize());