From 6dc5194895b6bd61d19bf5c95021471784084325 Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:23:05 +0500 Subject: I forgot to set these to true in .clang-format https://files.catbox.moe/909rig.gif --- game/shared/world/item_registry.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'game/shared/world/item_registry.cc') diff --git a/game/shared/world/item_registry.cc b/game/shared/world/item_registry.cc index 3ec3b88..378f0f1 100644 --- a/game/shared/world/item_registry.cc +++ b/game/shared/world/item_registry.cc @@ -58,7 +58,8 @@ world::ItemInfoBuilder& world::item_registry::construct(const char* name) if(it != world::item_registry::builders.cend()) { return it->second; - } else { + } + else { return world::item_registry::builders.emplace(name, ItemInfoBuilder(name)).first->second; } } @@ -69,7 +70,8 @@ world::ItemInfo* world::item_registry::find(const char* name) if(it != world::item_registry::names.cend()) { return world::item_registry::find(it->second); - } else { + } + else { return nullptr; } } @@ -78,7 +80,8 @@ world::ItemInfo* world::item_registry::find(const item_id item) { if((item != NULL_ITEM_ID) && (item <= world::item_registry::items.size())) { return world::item_registry::items[item - 1].get(); - } else { + } + else { return nullptr; } } -- cgit