Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit 99685a2

Browse files
committed
Update to Cube World 0.9.1-2
1 parent 75cf216 commit 99685a2

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

cwmods/cube/ChatWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
void cube::ChatWidget::PrintMessage(wchar_t* message, FloatRGBA* color){
55
msvc::wstring str(message);
6-
((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x258660)(this, &str, color);
6+
((void(*)(cube::ChatWidget*, msvc::wstring*, FloatRGBA*))CWBase()+0x269DB0)(this, &str, color);
77
}
88

99
void cube::ChatWidget::PrintMessage(wchar_t* message) {

cwmods/cube/Game.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ cube::Creature* cube::Game::GetPlayer(){
77
}
88

99
cube::Game* cube::GetGame() {
10-
return *(cube::Game**)(CWBase() + 0x5215E0);
10+
return *(cube::Game**)(CWBase() + 0x54EA80);
1111
}

cwmods/cube/World.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ class World {
1111
void *vtable;
1212
int day;
1313
float time;
14-
_BYTE gap10[496];
14+
_BYTE gap10[400];
15+
cube::World *self_ptr;
16+
_BYTE gap1A8[72];
1517
msvc::string world_name;
1618
int seed;
17-
_BYTE gap224[532];
19+
_BYTE gap214[548];
1820
cube::Creature *local_creature;
1921
_BYTE gap440[247];
2022
char end;

0 commit comments

Comments
 (0)