diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-27 15:33:19 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-27 15:33:19 +0800 |
commit | ced4f8d857dd37c3d3317dbb78b6e6798a747e63 (patch) | |
tree | eaf9fe58659a84b5e597af9ea698e9f976abe854 /csrc | |
parent | fdbaaa68dba375ba8588bcc671590dd5445850e5 (diff) | |
download | rich4-ced4f8d857dd37c3d3317dbb78b6e6798a747e63.tar.xz |
price_index
Diffstat (limited to 'csrc')
-rw-r--r-- | csrc/game_init.c | 2 | ||||
-rw-r--r-- | csrc/global.h | 3 | ||||
-rw-r--r-- | csrc/loadsave.c | 2 | ||||
-rw-r--r-- | csrc/main.c | 1 |
4 files changed, 5 insertions, 3 deletions
diff --git a/csrc/game_init.c b/csrc/game_init.c index b156d55..37adf9a 100644 --- a/csrc/game_init.c +++ b/csrc/game_init.c @@ -187,7 +187,7 @@ int init_new_game(int a0) dw_49911c = days[dw_46cb4c]; dw_499108 = winning_condition[dw_46cb50] * game_initial_fund; w_4991b8 = w_46cb54; - dw_4990e8 = 1; + price_index = 1; dw_4990e4 = dw_499084 = dw_4990dc = dw_4990ec = dw_499100 = esi = 0; for (ebx = 0; ebx < 12; ebx++) { diff --git a/csrc/global.h b/csrc/global.h index 1b316af..7fe28d9 100644 --- a/csrc/global.h +++ b/csrc/global.h @@ -28,7 +28,8 @@ char * read_mkf(int mkf_idx, int a1, char *buf, int *bufsize); extern HINSTANCE ghInstance; // 48a064 extern HWND gwindowHandle; // 48a0d4 extern RECT g_rect; /* struct tagRECT { left, top, right, bottom } @ 0x46cadc */ -int16_t game_stage; +extern int16_t game_stage; +extern int price_index; /* card.c */ extern uint8_t card_amount[30]; diff --git a/csrc/loadsave.c b/csrc/loadsave.c index 392813d..22ffdfd 100644 --- a/csrc/loadsave.c +++ b/csrc/loadsave.c @@ -345,7 +345,7 @@ int load_checkpoint(int n) fread(0x49911c, 4, 1, fp); fread(0x499108, 4, 1, fp); fread(0x49908c, 4, 1, fp); - fread(0x4990e8, 4, 1, fp); + fread(&price_index, 4, 1, fp); fread(0x4990e4, 4, 1, fp); fread(0x499084, 4, 1, fp); fread(0x4990dc, 4, 1, fp); diff --git a/csrc/main.c b/csrc/main.c index eed760d..3344c00 100644 --- a/csrc/main.c +++ b/csrc/main.c @@ -24,6 +24,7 @@ pos_t mpos[5] = { // 0x46cb28 }; int16_t game_stage; +int price_index; LRESULT CALLBACK windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { |