Rev 18 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 18 | Rev 20 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | #include "options.h" |
1 | #include "options.h" |
| 2 | #include "brender.h" |
- | |
| 3 | #include "brucetrk.h" |
2 | #include "brucetrk.h" |
| 4 | #include "controls.h" |
3 | #include "controls.h" |
| 5 | #include "depth.h" |
4 | #include "depth.h" |
| 6 | #include "displays.h" |
5 | #include "displays.h" |
| 7 | #include "dr_types.h" |
6 | #include "dr_types.h" |
| Line 20... | Line 19... | ||
| 20 | #include "pd/sys.h" |
19 | #include "pd/sys.h" |
| 21 | #include "sound.h" |
20 | #include "sound.h" |
| 22 | #include "spark.h" |
21 | #include "spark.h" |
| 23 | #include "utility.h" |
22 | #include "utility.h" |
| 24 | #include "world.h" |
23 | #include "world.h" |
| - | 24 | #include <brender/brender.h> |
|
| 25 | #include <stdlib.h> |
25 | #include <stdlib.h> |
| 26 | #include <string.h> |
26 | #include <string.h> |
| 27 | 27 | ||
| 28 | int gKey_defns[18] = { 48, 49, 46, 47, 53, 44, 59, 57, 55, 45, 50, 51, 52, 56, 62, 63, 64, 66 }; |
28 | int gKey_defns[18] = { 48, 49, 46, 47, 53, 44, 59, 57, 55, 45, 50, 51, 52, 56, 62, 63, 64, 66 }; |
| 29 | tRadio_bastards gRadio_bastards__options[13] = { |
29 | tRadio_bastards gRadio_bastards__options[13] = { |
| Line 76... | Line 76... | ||
| 76 | LOG_TRACE("(%d, %d, %d)", pWhich_one, pOld_stage, pNew_stage); |
76 | LOG_TRACE("(%d, %d, %d)", pWhich_one, pOld_stage, pNew_stage); |
| 77 | 77 | ||
| 78 | DrawDial(pWhich_one, pOld_stage); |
78 | DrawDial(pWhich_one, pOld_stage); |
| 79 | start_time = PDGetTotalTime(); |
79 | start_time = PDGetTotalTime(); |
| 80 | while ((time_diff = PDGetTotalTime() - start_time) < 100) { |
80 | while ((time_diff = PDGetTotalTime() - start_time) < 100) { |
| 81 | DrawDial(pWhich_one, pOld_stage + (pNew_stage - pOld_stage) * time_diff / 100); |
81 | DrawDial(pWhich_one, pOld_stage + (pNew_stage - pOld_stage) * time_diff / 100); |
| 82 | } |
82 | } |
| 83 | DrawDial(pWhich_one, pNew_stage); |
83 | DrawDial(pWhich_one, pNew_stage); |
| 84 | 84 | ||
| 85 | start_time = PDGetTotalTime(); |
85 | start_time = PDGetTotalTime(); |
| 86 | DrawDial(pWhich_one, pNew_stage < 24 ? pNew_stage + 1 : 22); |
86 | DrawDial(pWhich_one, pNew_stage < 24 ? pNew_stage + 1 : 22); |
| Line 214... | Line 214... | ||
| 214 | } |
214 | } |
| 215 | 215 | ||
| 216 | // IDA: void __cdecl DoSoundOptions() |
216 | // IDA: void __cdecl DoSoundOptions() |
| 217 | void DoSoundOptions(void) { |
217 | void DoSoundOptions(void) { |
| 218 | static tFlicette flicker_on[3] = { |
218 | static tFlicette flicker_on[3] = { |
| 219 | { 156, { 26, 52 }, { 21, 50 } }, |
219 | { 156, { 26, 52 }, { 21, 50 } }, |
| 220 | { 156, { 155, 310 }, { 88, 211 } }, |
220 | { 156, { 155, 310 }, { 88, 211 } }, |
| 221 | { 43, { 38, 76 }, { 153, 367 } }, |
221 | { 43, { 38, 76 }, { 153, 367 } }, |
| 222 | }; |
222 | }; |
| 223 | static tFlicette flicker_off[3] = { |
223 | static tFlicette flicker_off[3] = { |
| 224 | { 155, { 26, 52 }, { 21, 50 } }, |
224 | { 155, { 26, 52 }, { 21, 50 } }, |
| 225 | { 155, { 155, 310 }, { 88, 211 } }, |
225 | { 155, { 155, 310 }, { 88, 211 } }, |
| 226 | { 42, { 38, 76 }, { 153, 367 } }, |
226 | { 42, { 38, 76 }, { 153, 367 } }, |
| 227 | }; |
227 | }; |
| 228 | static tFlicette push[3] = { |
228 | static tFlicette push[3] = { |
| 229 | { 156, { 26, 52 }, { 21, 50 } }, |
229 | { 156, { 26, 52 }, { 21, 50 } }, |
| 230 | { 156, { 155, 310 }, { 88, 211 } }, |
230 | { 156, { 155, 310 }, { 88, 211 } }, |
| 231 | { 43, { 38, 76 }, { 153, 367 } }, |
231 | { 43, { 38, 76 }, { 153, 367 } }, |
| 232 | }; |
232 | }; |
| 233 | static tMouse_area mouse_areas[3] = { |
233 | static tMouse_area mouse_areas[3] = { |
| 234 | { { 26, 52 }, { 21, 50 }, { 144, 288 }, { 97, 233 }, 0, 0, 0, SoundClick }, |
234 | { { 26, 52 }, { 21, 50 }, { 144, 288 }, { 97, 233 }, 0, 0, 0, SoundClick }, |
| 235 | { { 155, 310 }, { 88, 211 }, { 273, 546 }, { 164, 394 }, 1, 0, 0, SoundClick }, |
235 | { { 155, 310 }, { 88, 211 }, { 273, 546 }, { 164, 394 }, 1, 0, 0, SoundClick }, |
| 236 | { { 38, 76 }, { 153, 367 }, { 101, 202 }, { 173, 415 }, 2, 0, 0, NULL }, |
236 | { { 38, 76 }, { 153, 367 }, { 101, 202 }, { 173, 415 }, 2, 0, 0, NULL }, |
| 237 | }; |
237 | }; |
| 238 | static tInterface_spec interface_spec = { |
238 | static tInterface_spec interface_spec = { |
| 239 | 0, |
239 | 0, |
| 240 | 150, |
240 | 150, |
| 241 | 0, |
241 | 0, |
| Line 838... | Line 838... | ||
| 838 | LOG_TRACE("()"); |
838 | LOG_TRACE("()"); |
| 839 | 839 | ||
| 840 | #ifdef __DOS__ |
840 | #ifdef __DOS__ |
| 841 | NOT_IMPLEMENTED(); |
841 | NOT_IMPLEMENTED(); |
| 842 | #else |
842 | #else |
| 843 | NetFullScreenMessage( |
843 | NetFullScreenMessage(229, 0); |
| 844 | #endif |
844 | #endif |
| 845 | } |
845 | } |
| 846 | 846 | ||
| 847 | // IDA: void __usercall StripControls(unsigned char *pStr@<EAX>) |
847 | // IDA: void __usercall StripControls(unsigned char *pStr@<EAX>) |
| 848 | void StripControls(unsigned char* pStr) { |
848 | void StripControls(unsigned char* pStr) { |