From 99685a297c09720e548d40f600daaa1f4151b9cd Mon Sep 17 00:00:00 2001 From: ChrisMiuchiz Date: Mon, 23 Sep 2019 19:10:20 -0400 Subject: [PATCH] Update to Cube World 0.9.1-2 --- cwmods/cube/ChatWidget.cpp | 2 +- cwmods/cube/Game.cpp | 2 +- cwmods/cube/World.h | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cwmods/cube/ChatWidget.cpp b/cwmods/cube/ChatWidget.cpp index 1914daa..58a4394 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()+0x258660)(this, &str, color); + ((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x269DB0)(this, &str, color); } void cube::ChatWidget::PrintMessage(wchar_t* message) { diff --git a/cwmods/cube/Game.cpp b/cwmods/cube/Game.cpp index 34338e8..8ba1511 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() + 0x5215E0); + return *(cube::Game**)(CWBase() + 0x54EA80); } diff --git a/cwmods/cube/World.h b/cwmods/cube/World.h index d790826..30b6430 100644 --- a/cwmods/cube/World.h +++ b/cwmods/cube/World.h @@ -11,10 +11,12 @@ class World { void *vtable; int day; float time; - _BYTE gap10[496]; + _BYTE gap10[400]; + cube::World *self_ptr; + _BYTE gap1A8[72]; msvc::string world_name; int seed; - _BYTE gap224[532]; + _BYTE gap214[548]; cube::Creature *local_creature; _BYTE gap440[247]; char end;