-
Notifications
You must be signed in to change notification settings - Fork 13
/
___2e1b0h.c
56 lines (50 loc) · 1.4 KB
/
___2e1b0h.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "drally.h"
#include "sfx.h"
extern __BYTE__ ___1a1ef0h[];
extern __DWORD__ ___24cc54h_sfx_volume;
void dRally_Sound_pushEffect(__BYTE__ channel, __BYTE__ n, __DWORD__ unk, __DWORD__ a0, __DWORD__ a1, __DWORD__ a2);
void ___2d898h(void);
void ___281d0h_cdecl(__DWORD__, __DWORD__, __DWORD__, __DWORD__);
void ___27f80h_cdecl(__DWORD__, __DWORD__, __DWORD__, __DWORD__);
void ___12cb8h__VESA101_PRESENTSCREEN(void);
void ___2da10h(void);
void ___2db88h(void);
void ___2ddc8h(void);
// MARKET CONTROL RIGHT
void ___2e1b0h(void){
if((int)D(___1a1ef0h) < 5){
dRally_Sound_pushEffect(0x1, SFX_CLICK_3, 0, ___24cc54h_sfx_volume, 0x28000, 0x8000);
}
switch(D(___1a1ef0h)){
case 1:
D(___1a1ef0h) = 0x2;
___2d898h();
___281d0h_cdecl(0xa, 0xf3, 0x6c, 0x72);
___27f80h_cdecl(0x72, 0xf3, 0x6c, 0x72);
___12cb8h__VESA101_PRESENTSCREEN();
return;
case 2:
D(___1a1ef0h) = 0x3;
___2da10h();
___281d0h_cdecl(0x72, 0xf3, 0x6c, 0x72);
___27f80h_cdecl(0xda, 0xf3, 0x6c, 0x72);
___12cb8h__VESA101_PRESENTSCREEN();
return;
case 3:
D(___1a1ef0h) = 0x4;
___2db88h();
___281d0h_cdecl(0xda, 0xf3, 0x6c, 0x72);
___27f80h_cdecl(0x142, 0xf3, 0x6c, 0x72);
___12cb8h__VESA101_PRESENTSCREEN();
return;
case 4:
D(___1a1ef0h) = 0x5;
___2ddc8h();
___281d0h_cdecl(0x142, 0xf3, 0x6c, 0x72);
___27f80h_cdecl(0x1aa, 0xf3, 0x6c, 0x72);
___12cb8h__VESA101_PRESENTSCREEN();
return;
default:
break;
}
}