diff --git a/SQCSim-srv/define.h b/SQCSim-srv/define.h index 2cb6378..f92b4bc 100644 --- a/SQCSim-srv/define.h +++ b/SQCSim-srv/define.h @@ -11,12 +11,13 @@ #define ID_LIST_SIZE 127 #define SRV_MANUAL_SETUP true -std::vector DEATHMESSAGES = { "@ has gone to meet their maker.", - "@ has bit the dust, if you know what I mean.", - "@ has ceased to be.", - "@ is no more.", - "@ is like, super dead.", - "RIP, @.", - "So long, @, and thanks for all the lols!"}; +const std::vector DEATHMESSAGES = { "@ has gone to meet their maker.", + "@ has bit the dust, if you know what I mean.", + "@ has ceased to be.", + "@ is no more.", + "@ is like, super dead.", + "RIP, @.", + "So long, @, and thanks for all the lols!", + "@ has a bad case of being dead." }; #endif diff --git a/SQCSim-srv/server.cpp b/SQCSim-srv/server.cpp index 5c27aa2..81ab798 100644 --- a/SQCSim-srv/server.cpp +++ b/SQCSim-srv/server.cpp @@ -268,10 +268,10 @@ void Server::Run() { Timestamp tstamp = conn->Run(m_world); if (conn->player->AmIDead()) { - Chat* chat = new Chat(); - chat->dest_id = chat->dest_team_id = chat->src_id = 0; + Chat chat; + 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;