game: Don't resend quest or zone files when they didn't change.
This fixes the lack of weapons and enemies when reaching B2 in a mission.
This commit is contained in:
parent
c7ee128073
commit
f8b6f01dde
@ -265,8 +265,11 @@ lobby_load(CSocket, GID, QuestID, ZoneID, MapID, EntryID) ->
|
||||
_ ->
|
||||
ignore
|
||||
end,
|
||||
egs_proto:send_init_quest(CSocket, GID, QuestID),
|
||||
egs_proto:send_quest(CSocket, QuestFile),
|
||||
if OldUser#users.questid /= QuestID ->
|
||||
egs_proto:send_init_quest(CSocket, GID, QuestID),
|
||||
egs_proto:send_quest(CSocket, QuestFile);
|
||||
true -> ignore
|
||||
end,
|
||||
send_packet_0a05(CSocket, GID),
|
||||
case AreaType of
|
||||
lobby ->
|
||||
@ -275,8 +278,11 @@ lobby_load(CSocket, GID, QuestID, ZoneID, MapID, EntryID) ->
|
||||
_ ->
|
||||
ignore
|
||||
end,
|
||||
egs_proto:send_zone_init(CSocket, GID, lobby),
|
||||
egs_proto:send_zone(CSocket, ZoneFile),
|
||||
if OldUser#users.zoneid /= ZoneID ->
|
||||
egs_proto:send_zone_init(CSocket, GID, lobby),
|
||||
egs_proto:send_zone(CSocket, ZoneFile);
|
||||
true -> ignore
|
||||
end,
|
||||
egs_proto:send_map(CSocket, ZoneID, MapID, EntryID),
|
||||
egs_proto:send_location(CSocket, GID, QuestID, ZoneID, MapID, AreaName, 16#ffffffff),
|
||||
send_packet_020c(CSocket),
|
||||
|
Loading…
Reference in New Issue
Block a user