Decompile fn_17831 (CWorld::ActiveGameMode)

Batch #19 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review.

- fn_17831 CWorld::ActiveGameMode: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/Client/ActiveGameMode.cpp
This commit is contained in:
ragnarok-clanker 2026-10-24 05:38:56 +00:00
commit 8430dc8678
3 changed files with 697 additions and 673 deletions

View file

@ -0,0 +1,6 @@
#include "Client/ActiveGameMode.h"
// FUNCTION: fn_17831
CGameMode* CWorld::ActiveGameMode() {
return this->state == 1 ? this->gameMode : nullptr;
}

View file

@ -0,0 +1,17 @@
#ifndef RAGNAROK_SOURCE_CLIENT_ACTIVEGAMEMODE_H
#define RAGNAROK_SOURCE_CLIENT_ACTIVEGAMEMODE_H
class CGameMode;
struct CWorld {
unsigned char unknown_0000[4];
CGameMode* gameMode;
unsigned char unknown_0008[0x50];
int state;
CGameMode* ActiveGameMode();
};
extern CWorld g_world;
#endif