SQC-15_online #1
| @@ -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 | ||||||
|   | |||||||
| @@ -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; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user