This commit is contained in:
MarcEricMartel 2023-12-05 15:02:31 -05:00
parent b11a484a5a
commit 9c1cd885cf
2 changed files with 11 additions and 10 deletions

View File

@ -11,12 +11,13 @@
#define ID_LIST_SIZE 127 #define ID_LIST_SIZE 127
#define SRV_MANUAL_SETUP true #define SRV_MANUAL_SETUP true
std::vector<std::string> DEATHMESSAGES = { "@ has gone to meet their maker.", const std::vector<std::string> DEATHMESSAGES = { "@ has gone to meet their maker.",
"@ has bit the dust, if you know what I mean.", "@ has bit the dust, if you know what I mean.",
"@ has ceased to be.", "@ has ceased to be.",
"@ is no more.", "@ is no more.",
"@ is like, super dead.", "@ is like, super dead.",
"RIP, @.", "RIP, @.",
"So long, @, and thanks for all the lols!"}; "So long, @, and thanks for all the lols!",
"@ has a bad case of being dead." };
#endif #endif

View File

@ -268,10 +268,10 @@ void Server::Run() {
Timestamp tstamp = conn->Run(m_world); Timestamp tstamp = conn->Run(m_world);
if (conn->player->AmIDead()) { if (conn->player->AmIDead()) {
Chat* chat = new Chat(); Chat chat;
chat->dest_id = chat->dest_team_id = chat->src_id = 0; chat.dest_id = chat.dest_team_id = chat.src_id = 0;
strcpy(chat->mess, getDeathMessage(conn->player->GetUsername()).c_str()); strcpy(chat.mess, getDeathMessage(conn->player->GetUsername()).c_str());
m_chatlog[tstamp] = chat; m_chatlog[tstamp] = chat;