From 4294508082cb5aef6d2dd0332366cc415130da53 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 2 May 2017 23:22:37 +0300 Subject: [PATCH] [Client] Don't print null for missing plugins when comparing with server --- apps/openmw/mwmp/Networking.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 9791ff243..1e0cdd849 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -92,8 +92,17 @@ string comparePlugins(PacketPreInit::PluginContainer checksums, PacketPreInit::P plugin = "null"; val = 0; } - printWithWidth(sstr, plugin, pluginNameLen1 + 2); - printWithWidth(sstr, intToHexStr(val), 14); + + if (plugin == "null") + { + printWithWidth(sstr, "", pluginNameLen1 + 16); + } + else + { + printWithWidth(sstr, plugin, pluginNameLen1 + 2); + printWithWidth(sstr, intToHexStr(val), 14); + } + printWithWidth(sstr, checksumsResponse[i].first, pluginNameLen2 + 2); if (checksumsResponse[i].second.size() > 0) {