From e0701ed5bd0b779f7924dd326e1742a980a44f72 Mon Sep 17 00:00:00 2001 From: Tr0n Date: Tue, 9 Apr 2024 17:04:10 +0200 Subject: [PATCH] restore accidentally removed login logic --- src/game/src/input_login.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/src/input_login.cpp b/src/game/src/input_login.cpp index 14bd35f..df04a39 100644 --- a/src/game/src/input_login.cpp +++ b/src/game/src/input_login.cpp @@ -430,6 +430,9 @@ void CInputLogin::CharacterCreate(LPDESC d, const char * data) // 사용할 수 없는 이름이거나, 잘못된 평상복이면 생설 실패 if (!check_name(pinfo->name) || pinfo->shape > 1) { + d->Packet(&packFailure, sizeof(packFailure)); + return; + } const TAccountTable & c_rAccountTable = d->GetAccountTable(); @@ -442,7 +445,6 @@ void CInputLogin::CharacterCreate(LPDESC d, const char * data) d->Packet(&pack, sizeof(pack)); return; } - } memset(&player_create_packet, 0, sizeof(TPlayerCreatePacket));