diff --git a/cwmods/cube/ChatWidget.cpp b/cwmods/cube/ChatWidget.cpp index 815d256..b7a3e5d 100644 --- a/cwmods/cube/ChatWidget.cpp +++ b/cwmods/cube/ChatWidget.cpp @@ -3,7 +3,7 @@ void cube::ChatWidget::PrintMessage(wchar_t* message, FloatRGBA* color){ msvc::wstring str(message); - ((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x26A1A0)(this, &str, color); + ((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x26A9B0)(this, &str, color); } void cube::ChatWidget::PrintMessage(wchar_t* message) { diff --git a/cwmods/cube/Game.cpp b/cwmods/cube/Game.cpp index 8ba1511..90c71f1 100644 --- a/cwmods/cube/Game.cpp +++ b/cwmods/cube/Game.cpp @@ -7,5 +7,5 @@ cube::Creature* cube::Game::GetPlayer(){ } cube::Game* cube::GetGame() { - return *(cube::Game**)(CWBase() + 0x54EA80); + return *(cube::Game**)(CWBase() + 0x551A80); } diff --git a/cwmods/cube/Game.h b/cwmods/cube/Game.h index fa511ba..1a13271 100644 --- a/cwmods/cube/Game.h +++ b/cwmods/cube/Game.h @@ -40,8 +40,8 @@ namespace cube { _BYTE gap660[136]; cube::Host host; _BYTE gapCFA[3158]; - void* onP2PSessionRequest; - _BYTE gap1960[536]; + void *onP2PSessionRequest; + char gap1960[536]; int fullscreen; int width; int height; @@ -59,9 +59,9 @@ namespace cube { int field_1BB0; int field_1BB4; int rarity_coding; - _BYTE gap1BBC[1100]; + _BYTE gap1BBC[1108]; msvc::string *current_music_file; - _BYTE gap2010[68]; + _BYTE gap2010[60]; int seed; msvc::string world_name; _BYTE gap2070[503]; diff --git a/cwmods/cube/World.h b/cwmods/cube/World.h index 30b6430..7146a2c 100644 --- a/cwmods/cube/World.h +++ b/cwmods/cube/World.h @@ -11,7 +11,7 @@ class World { void *vtable; int day; float time; - _BYTE gap10[400]; + _BYTE gap10[416]; cube::World *self_ptr; _BYTE gap1A8[72]; msvc::string world_name; diff --git a/cwmods/cwmods.cpp b/cwmods/cwmods.cpp index a24b455..935068e 100644 --- a/cwmods/cwmods.cpp +++ b/cwmods/cwmods.cpp @@ -1,4 +1,4 @@ -#define MOD_MAJOR_VERSION 2 +#define MOD_MAJOR_VERSION 3 #define MOD_MINOR_VERSION 1 #include "cwmods.h"