From d746af4c11a49443d68d8b7787cd3a48e39d6e30 Mon Sep 17 00:00:00 2001 From: Joelrau Date: Sun, 3 Jan 2021 07:26:51 +0200 Subject: [PATCH] Fixed struct order --- src/client/component/game_console.cpp | 12 ++++--- src/client/game/structs.hpp | 50 +++++++++++++-------------- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/client/component/game_console.cpp b/src/client/component/game_console.cpp index 3a46b98..7d2e5b5 100644 --- a/src/client/component/game_console.cpp +++ b/src/client/component/game_console.cpp @@ -76,10 +76,10 @@ namespace game_console printf("%s\n", data.data()); - if (con.output.size() > 1024) - { - con.output.pop_front(); - } + //if (con.output.size() > 512) + //{ + // con.output.pop_front(); + //} } void toggle_console() @@ -662,6 +662,10 @@ namespace game_console va_end(args); std::cout << buffer; con.output.push_back(buffer); + if (con.output.size() > 512) + { + con.output.pop_front(); + } return result; } diff --git a/src/client/game/structs.hpp b/src/client/game/structs.hpp index 35ba4aa..97e12b8 100644 --- a/src/client/game/structs.hpp +++ b/src/client/game/structs.hpp @@ -782,6 +782,31 @@ namespace game ASSET_TYPE_COUNT = 0x44, }; + enum GfxDrawSceneMethod + { + GFX_DRAW_SCENE_STANDARD = 0x0, + }; + + enum MaterialTechniqueType + { + TECHNIQUE_UNLIT = 8, + TECHNIQUE_EMISSIVE = 9, + TECHNIQUE_LIT = 13, + }; + + struct GfxDrawMethod_s + { + int drawScene; + int baseTechType; + int emissiveTechType; + int forceTechType; + }; + + struct Material + { + const char* name; + }; + struct Glyph { unsigned short letter; @@ -806,31 +831,6 @@ namespace game Glyph* glyphs; }; - enum GfxDrawSceneMethod - { - GFX_DRAW_SCENE_STANDARD = 0x0, - }; - - struct Material - { - const char* name; - }; - - enum MaterialTechniqueType - { - TECHNIQUE_UNLIT = 8, - TECHNIQUE_EMISSIVE = 9, - TECHNIQUE_LIT = 13, - }; - - struct GfxDrawMethod_s - { - int drawScene; - int baseTechType; - int emissiveTechType; - int forceTechType; - }; - union XAssetHeader { void* data;