]> icculus.org git repositories - btb/d2x.git/blob - ChangeLog-old
fix pointer mismatches, warnings are errors again
[btb/d2x.git] / ChangeLog-old
1 This file contains the per-file change logs from the Descent I for PC,
2 Descent I for Mac, and Descent II source releases, converted to "cvs
3 log" style.
4
5 RCS file: /Smoke/miner/source/2d/bitmap.c,v
6 Working file: 2d/bitmap.c
7 head: 1.11
8 description: Graphical routines for manipulating grs_bitmaps.
9 ----------------------------
10 revision 1.11
11 date: 1995/08/23 18:46:06;  author: allender;  state: Exp;
12 fixed compiler warning
13 ----------------------------
14 revision 1.10
15 date: 1995/08/14 14:25:45;  author: allender;  state: Exp;
16 changed transparency color to 0
17 ----------------------------
18 revision 1.9
19 date: 1995/07/05 16:04:51;  author: allender;  state: Exp;
20 transparency/game kitchen changes
21 ----------------------------
22 revision 1.8
23 date: 1995/06/15 09:50:48;  author: allender;  state: Exp;
24 new malloc to align bitmap on 8 byte bountry
25 ----------------------------
26 revision 1.7
27 date: 1995/05/12 11:52:19;  author: allender;  state: Exp;
28 changed memory stuff again
29 ----------------------------
30 revision 1.6
31 date: 1995/05/11 12:48:34;  author: allender;  state: Exp;
32 nge transparency color
33 ----------------------------
34 revision 1.5
35 date: 1995/05/04 19:59:21;  author: allender;  state: Exp;
36 use NewPtr instead of malloc
37 ----------------------------
38 revision 1.4
39 date: 1995/04/27 07:33:04;  author: allender;  state: Exp;
40 rearrange functions
41 ----------------------------
42 revision 1.3
43 date: 1995/04/19 14:37:17;  author: allender;  state: Exp;
44 removed dead asm code
45 ----------------------------
46 revision 1.2
47 date: 1995/04/18 12:04:51;  author: allender;  state: Exp;
48 *** empty log message ***
49 ----------------------------
50 revision 1.1
51 date: 1995/03/09 08:48:06;  author: allender;  state: Exp;
52 Initial revision
53 ----------------------------
54 revision 1.17
55 date: 1994/11/18 22:50:25;  author: john;  state: Exp;
56 Changed shorts to ints in parameters.
57 ----------------------------
58 revision 1.16
59 date: 1994/11/10 15:59:46;  author: john;  state: Exp;
60 Fixed bugs with canvas's being created with bogus bm_flags.
61 ----------------------------
62 revision 1.15
63 date: 1994/10/26 23:55:53;  author: john;  state: Exp;
64 Took out roller; Took out inverse table.
65 ----------------------------
66 revision 1.14
67 date: 1994/09/19 14:40:21;  author: john;  state: Exp;
68 Changed dpmi stuff.
69 ----------------------------
70 revision 1.13
71 date: 1994/09/19 11:44:04;  author: john;  state: Exp;
72 Changed call to allocate selector to the dpmi module.
73 ----------------------------
74 revision 1.12
75 date: 1994/06/09 13:14:57;  author: john;  state: Exp;
76 Made selectors zero our
77 out, I meant.
78 ----------------------------
79 revision 1.11
80 date: 1994/05/06 12:50:07;  author: john;  state: Exp;
81 Added supertransparency; neatend things up; took out warnings.
82 ----------------------------
83 revision 1.10
84 date: 1994/04/08 16:59:39;  author: john;  state: Exp;
85 Add fading poly's; Made palette fade 32 instead of 16.
86 ----------------------------
87 revision 1.9
88 date: 1994/03/16 17:21:09;  author: john;  state: Exp;
89 Added slow palette searching options.
90 ----------------------------
91 revision 1.8
92 date: 1994/03/14 17:59:35;  author: john;  state: Exp;
93 Added function to check bitmap's transparency.
94 ----------------------------
95 revision 1.7
96 date: 1994/03/14 17:16:21;  author: john;  state: Exp;
97 fixed bug with counting freq of pixels.
98 ----------------------------
99 revision 1.6
100 date: 1994/03/14 16:55:47;  author: john;  state: Exp;
101 Changed grs_bitmap structure to include bm_flags.
102 ----------------------------
103 revision 1.5
104 date: 1994/02/18 15:32:22;  author: john;  state: Exp;
105 *** empty log message ***
106 ----------------------------
107 revision 1.4
108 date: 1993/10/15 16:22:49;  author: john;  state: Exp;
109 *** empty log message ***
110 ----------------------------
111 revision 1.3
112 date: 1993/09/08 17:37:11;  author: john;  state: Exp;
113 Checking for errors with Yuan...
114 ----------------------------
115 revision 1.2
116 date: 1993/09/08 14:46:27;  author: john;  state: Exp;
117 looking for possible bugs...
118 ----------------------------
119 revision 1.1
120 date: 1993/09/08 11:43:05;  author: john;  state: Exp;
121 Initial revision
122 =============================================================================
123 RCS file: /Smoke/miner/source/2d/box.c,v
124 Working file: 2d/box.c
125 head: 1.1
126 description: Graphical routines for drawing boxes.
127 ----------------------------
128 revision 1.1
129 date: 1995/03/09 08:49:05;  author: allender;  state: Exp;
130 Initial revision
131 ----------------------------
132 revision 1.3
133 date: 1994/11/18 22:50:19;  author: john;  state: Exp;
134 Changed shorts to ints in parameters.
135 ----------------------------
136 revision 1.2
137 date: 1993/10/15 16:23:31;  author: john;  state: Exp;
138 y
139 ----------------------------
140 revision 1.1
141 date: 1993/09/08 11:43:11;  author: john;  state: Exp;
142 Initial revision
143 =============================================================================
144 RCS file: /Smoke/miner/source/2d/canvas.c,v
145 Working file: 2d/canvas.c
146 head: 1.7
147 description: Graphical routines for manipulating grs_canvas's.
148 ----------------------------
149 revision 1.7
150 date: 1995/06/15 09:51:01;  author: allender;  state: Exp;
151 new malloc to align canvas on 8 byte boundry
152 ----------------------------
153 revision 1.6
154 date: 1995/05/12 11:52:30;  author: allender;  state: Exp;
155 changed memory stuff again
156 ----------------------------
157 revision 1.5
158 date: 1995/05/04 19:59:49;  author: allender;  state: Exp;
159 use NewPtr instead of malloc
160 ----------------------------
161 revision 1.4
162 date: 1995/05/01 08:38:16;  author: allender;  state: Exp;
163 work on malloc stuff and other things
164 ----------------------------
165 revision 1.3
166 date: 1995/04/27 07:39:33;  author: allender;  state: Exp;
167 fix variable
168 ----------------------------
169 revision 1.2
170 date: 1995/04/19 14:40:14;  author: allender;  state: Exp;
171 removed pragma
172 ----------------------------
173 revision 1.1
174 date: 1995/03/09 08:50:27;  author: allender;  state: Exp;
175 Initial revision
176 ----------------------------
177 revision 1.12
178 date: 1994/11/28 17:08:29;  author: john;  state: Exp;
179 Took out some unused functions in linear.asm, moved
180 gr_linear_movsd from linear.asm to bitblt.c, made sure that
181 the code in ibiblt.c sets the direction flags before rep movsing.
182 ----------------------------
183 revision 1.11
184 date: 1994/11/18 22:50:24;  author: john;  state: Exp;
185 Changed shorts to ints in parameters.
186 ----------------------------
187 revision 1.10
188 date: 1994/11/10 15:59:33;  author: john;  state: Exp;
189 Fixed bugs with canvas's being created with bogus bm_flags.
190 ----------------------------
191 revision 1.9
192 date: 1994/06/24 17:26:34;  author: john;  state: Exp;
193 Made rowsizes bigger than actual screen work with SVGA.
194 ----------------------------
195 revision 1.8
196 date: 1994/05/06 12:50:41;  author: john;  state: Exp;
197 Added supertransparency; neatend things up; took out warnings.
198 ----------------------------
199 revision 1.7
200 date: 1993/12/08 16:41:26;  author: john;  state: Exp;
201 fixed color = -1 bug
202 ----------------------------
203 revision 1.6
204 date: 1993/10/15 16:22:25;  author: john;  state: Exp;
205 *** empty log message ***
206 ----------------------------
207 revision 1.5
208 date: 1993/09/29 16:14:07;  author: john;  state: Exp;
209 added globol variables describing current canvas
210 ----------------------------
211 revision 1.4
212 date: 1993/09/14 16:03:40;  author: matt;  state: Exp;
213 Added new function, gr_clear_canvas()
214 ----------------------------
215 revision 1.3
216 date: 1993/09/14 13:51:38;  author: matt;  state: Exp;
217 in gr_init_sub_canvas(), copy bm_rowsize from source canvas
218 ----------------------------
219 revision 1.2
220 date: 1993/09/08 17:37:34;  author: john;  state: Exp;
221 Checking for potential errors
222 ----------------------------
223 revision 1.1
224 date: 1993/09/08 11:43:18;  author: john;  state: Exp;
225 Initial revision
226 =============================================================================
227 RCS file: /Buggin/miner/source/2d/clip.h,v
228 Working file: 2d/clip.h
229 head: 1.1
230 description: Macros used for clipping
231 ----------------------------
232 revision 1.1
233 date: 1995/03/09 08:51:39;  author: allender;  state: Exp;
234 Initial revision
235 ----------------------------
236 revision 1.3
237 date: 1993/10/15 16:22:28;  author: john;  state: Exp;
238 *** empty log message ***
239 ----------------------------
240 revision 1.2
241 date: 1993/09/29 16:14:31;  author: john;  state: Exp;
242 made work with fix point
243 ----------------------------
244 revision 1.1
245 date: 1993/09/08 11:40:53;  author: john;  state: Exp;
246 Initial revision
247 =============================================================================
248 RCS file: /Smoke/miner/source/2d/disc.c,v
249 Working file: 2d/disc.c
250 head: 1.1
251 description: Graphical routines for drawing a disk.
252 ----------------------------
253 revision 1.1
254 date: 1995/03/09 08:52:14;  author: allender;  state: Exp;
255 Initial revision
256 ----------------------------
257 revision 1.5
258 date: 1994/11/18 22:50:16;  author: john;  state: Exp;
259 Changed shorts to ints in parameters.
260 ----------------------------
261 revision 1.4
262 date: 1994/05/06 12:50:12;  author: john;  state: Exp;
263 Added supertransparency; neatend things up; took out warnings.
264 ----------------------------
265 revision 1.3
266 date: 1994/04/22 11:16:04;  author: john;  state: Exp;
267 *** empty log message ***
268 ----------------------------
269 revision 1.2
270 date: 1993/10/15 16:22:24;  author: john;  state: Exp;
271 *** empty log message ***
272 ----------------------------
273 revision 1.1
274 date: 1993/09/08 11:43:24;  author: john;  state: Exp;
275 Initial revision
276 =============================================================================
277 RCS file: /Smoke/miner/source/2d/effect2d.h,v
278 Working file: 2d/effect2d.h
279 head: 1.1
280 description: .
281 ----------------------------
282 revision 1.1
283 date: 1995/05/05 09:26:41;  author: allender;  state: Exp;
284 Initial revision
285 ----------------------------
286 revision 1.2
287 date: 1994/02/01 13:18:47;  author: john;  state: Exp;
288 *** empty log message ***
289 ----------------------------
290 revision 1.1
291 date: 1994/01/28 11:59:37;  author: john;  state: Exp;
292 Initial revision
293 =============================================================================
294 RCS file: /Smoke/miner/source/2d/effects.c,v
295 Working file: 2d/effects.c
296 head: 1.1
297 description: special effects stuff
298 ----------------------------
299 revision 1.1
300 date: 1995/03/09 08:53:09;  author: allender;  state: Exp;
301 Initial revision
302 ----------------------------
303 revision 1.2
304 date: 1993/10/26 13:18:15;  author: john;  state: Exp;
305 *** empty log message ***
306 ----------------------------
307 revision 1.1
308 date: 1993/10/25 14:56:56;  author: john;  state: Exp;
309 Initial revision
310 =============================================================================
311 RCS file: /Buggin/miner/source/2d/effects.h,v
312 Working file: 2d/effects.h
313 head: 1.1
314 description: Special effects stuff.
315 ----------------------------
316 revision 1.1
317 date: 1995/03/09 08:53:43;  author: allender;  state: Exp;
318 Initial revision
319 ----------------------------
320 revision 1.2
321 date: 1993/10/26 13:17:58;  author: john;  state: Exp;
322 *** empty log message ***
323 ----------------------------
324 revision 1.1
325 date: 1993/10/25 14:56:02;  author: john;  state: Exp;
326 Initial revision
327 head: 1.14
328 description: Graphical routines for drawing fonts.
329 ----------------------------
330 revision 1.14
331 date: 1995/10/03 13:08:31;  author: allender;  state: Exp;
332 new font code that doesn't use & as underline marker
333 ----------------------------
334 revision 1.13
335 date: 1995/09/24 10:50:23;  author: allender;  state: Exp;
336 fixed signed/unsigned problem causing incorrect character widths
337 to be generated
338 ----------------------------
339 revision 1.12
340 date: 1995/08/14 14:26:01;  author: allender;  state: Exp;
341 changed transparency color to 0
342 ----------------------------
343 revision 1.11
344 date: 1995/07/05 16:05:32;  author: allender;  state: Exp;
345 transparency/kitchen changes
346 ----------------------------
347 revision 1.10
348 date: 1995/05/12 11:52:45;  author: allender;  state: Exp;
349 changed memory stuff again
350 ----------------------------
351 revision 1.9
352 date: 1995/05/11 13:42:00;  author: allender;  state: Exp;
353 changed char to ubyte in some cases to get extended characters
354 ----------------------------
355 revision 1.8
356 date: 1995/05/11 12:48:42;  author: allender;  state: Exp;
357 change transparency color
358 ----------------------------
359 revision 1.7
360 date: 1995/05/04 20:00:07;  author: allender;  state: Exp;
361 use NewPtr instead of malloc
362 ----------------------------
363 revision 1.6
364 date: 1995/05/01 08:38:34;  author: allender;  state: Exp;
365 memory stuff and other things
366 ----------------------------
367 revision 1.5
368 date: 1995/04/27 07:39:06;  author: allender;  state: Exp;
369 *** empty log message ***
370 ----------------------------
371 revision 1.4
372 date: 1995/04/19 14:38:01;  author: allender;  state: Exp;
373 changed asm code to C
374 ----------------------------
375 revision 1.3
376 date: 1995/04/04 11:40:52;  author: allender;  state: Exp;
377 *** empty log message ***
378 ----------------------------
379 revision 1.2
380 date: 1995/03/30 15:07:06;  author: allender;  state: Exp;
381 *** empty log message ***
382 ----------------------------
383 revision 1.1
384 date: 1995/03/09 08:55:04;  author: allender;  state: Exp;
385 Initial revision
386 ----------------------------
387 revision 1.28
388 date: 1994/11/27 23:08:22;  author: matt;  state: Exp;
389 Changes for new mprintf calling convention
390 ----------------------------
391 revision 1.27
392 date: 1994/11/18 23:54:50;  author: john;  state: Exp;
393 Made centering work on x = 0x8000 not -0x8000.
394 ----------------------------
395 revision 1.26
396 date: 1994/11/18 22:50:23;  author: john;  state: Exp;
397 Changed shorts to ints in parameters.
398 ----------------------------
399 revision 1.25
400 date: 1994/11/04 11:10:31;  author: john;  state: Exp;
401 Took the & out of string sizing.
402 ----------------------------
403 revision 1.24
404 date: 1994/11/04 10:06:36;  author: john;  state: Exp;
405 Added fade table for fading fonts. Made font that partially clips
406 not print a warning message.
407 ----------------------------
408 revision 1.23
409 date: 1994/09/29 10:09:06;  author: john;  state: Exp;
410 Added real clipping to text.
411 ----------------------------
412 revision 1.22
413 date: 1994/09/12 19:27:51;  author: john;  state: Exp;
414 Fixed bug with unclipped fonts clipping.
415 ----------------------------
416 revision 1.21
417 date: 1994/09/12 17:16:59;  author: john;  state: Exp;
418 Added clipping.
419 ----------------------------
420 revision 1.20
421 date: 1994/08/28 16:43:01;  author: matt;  state: Exp;
422 Added centering if x==0x8000
423 ----------------------------
424 revision 1.19
425 date: 1994/08/15 15:01:11;  author: matt;  state: Exp;
426 Close font file after reading
427 ----------------------------
428 revision 1.18
429 date: 1994/08/12 18:17:42;  author: matt;  state: Exp;
430 Fixed stupid bug that cause first char in font not to print
431 ----------------------------
432 revision 1.17
433 date: 1994/08/11 18:00:17;  author: matt;  state: Exp;
434 Cleaned up code, fixed string width bug.
435 ----------------------------
436 revision 1.16
437 date: 1994/08/10 18:46:11;  author: matt;  state: Exp;
438 Fixed a couple of little things
439 ----------------------------
440 revision 1.15
441 date: 1994/08/10 18:36:20;  author: matt;  state: Exp;
442 Changed font file format.  Made chars not in font plot as spaces.  Font file
443 now stores palette for color font & remaps on load.
444 ----------------------------
445 revision 1.14
446 date: 1994/08/10 12:27:27;  author: matt;  state: Exp;
447 Took out unneeded int3
448 ----------------------------
449 revision 1.13
450 date: 1994/08/10 12:25:26;  author: matt;  state: Exp;
451 Added support for colors fonts & kerned fonts
452 Made our own font file format
453 ----------------------------
454 revision 1.12
455 date: 1994/07/22 17:19:00;  author: john;  state: Exp;
456 made proportional font width be the max width.
457 ----------------------------
458 revision 1.11
459 date: 1994/05/06 12:50:26;  author: john;  state: Exp;
460 Added supertransparency; neatend things up; took out warnings.
461 ----------------------------
462 revision 1.10
463 date: 1994/01/31 11:08:12;  author: john;  state: Exp;
464 fixed bug with order of frees.
465 ----------------------------
466 revision 1.9
467 date: 1994/01/31 10:36:40;  author: john;  state: Exp;
468 Free'd variable size font data.
469 ----------------------------
470 revision 1.8
471 date: 1994/01/27 17:17:40;  author: john;  state: Exp;
472 Made error if font file doesn't exist.
473 ----------------------------
474 revision 1.7
475 date: 1993/10/26 13:17:48;  author: john;  state: Exp;
476 *** empty log message ***
477 ----------------------------
478 revision 1.6
479 date: 1993/10/15 16:23:25;  author: john;  state: Exp;
480 y
481 ----------------------------
482 revision 1.5
483 date: 1993/09/28 19:05:50;  author: john;  state: Exp;
484 added support for \n in gr_string and gr_get_string_size
485 ----------------------------
486 revision 1.4
487 date: 1993/09/28 12:46:49;  author: matt;  state: Exp;
488 On error, now call Error() instead of exit().
489 ----------------------------
490 revision 1.3
491 date: 1993/09/20 11:35:31;  author: john;  state: Exp;
492 *** empty log message ***
493 ----------------------------
494 revision 1.2
495 date: 1993/09/08 15:54:39;  author: john;  state: Exp;
496 renamed ReadFile to readfontfile to prevent conflicts with others.
497 ----------------------------
498 revision 1.1
499 date: 1993/09/08 11:43:34;  author: john;  state: Exp;
500 Initial revision
501 =============================================================================
502 RCS file: /Smoke/miner/source/2d/gpixel.c,v
503 Working file: 2d/gpixel.c
504 head: 1.1
505 description: Graphical routines for getting a pixel's value.
506 ----------------------------
507 revision 1.1
508 date: 1995/03/09 08:55:42;  author: allender;  state: Exp;
509 Initial revision
510 ----------------------------
511 revision 1.5
512 date: 1994/11/18 22:50:20;  author: john;  state: Exp;
513 Changed shorts to ints in parameters.
514 ----------------------------
515 revision 1.4
516 date: 1994/05/06 12:50:08;  author: john;  state: Exp;
517 Added supertransparency; neatend things up; took out warnings.
518 ----------------------------
519 revision 1.3
520 date: 1993/10/15 16:22:50;  author: john;  state: Exp;
521 y
522 ----------------------------
523 revision 1.2
524 date: 1993/09/29 16:15:00;  author: john;  state: Exp;
525 optimized
526 ----------------------------
527 revision 1.1
528 date: 1993/09/08 11:43:40;  author: john;  state: Exp;
529 Initial revision
530 =============================================================================
531 RCS file: /Smoke/miner/source/2d/gr.c,v
532 Working file: 2d/gr.c
533 head: 1.12
534 description: Graphical routines for setting video modes, etc.
535 ----------------------------
536 revision 1.12
537 date: 1995/12/01 09:14:18;  author: allender;  state: Exp;
538 stupid comment to check PC rcs
539 ----------------------------
540 revision 1.11
541 date: 1995/10/21 23:45:45;  author: allender;  state: Exp;
542 clear screen to black at close
543 ----------------------------
544 revision 1.10
545 date: 1995/10/18 01:08:14;  author: allender;  state: Exp;
546 call gr_palette_gamma functionc
547 ----------------------------
548 revision 1.9
549 date: 1995/09/22 14:29:15;  author: allender;  state: Exp;
550 fixed aspect at F1_0
551 ----------------------------
552 revision 1.8
553 date: 1995/08/18 15:49:45;  author: allender;  state: Exp;
554 call function to build gamma table
555 ----------------------------
556 revision 1.7
557 date: 1995/08/14 14:58:45;  author: allender;  state: Exp;
558 removed call to white_window()
559 ----------------------------
560 revision 1.6
561 date: 1995/08/02 20:03:46;  author: allender;  state: Exp;
562 center game screen on mac screen on release
563 ----------------------------
564 revision 1.5
565 date: 1995/06/13 13:03:32;  author: allender;  state: Exp;
566 overhauled the windowing system.  Put back in gr_set_mode to change window
567 size
568 ----------------------------
569 revision 1.4
570 date: 1995/05/12 11:52:57;  author: allender;  state: Exp;
571 changed memory stuff again
572 ----------------------------
573 revision 1.3
574 date: 1995/04/18 09:50:29;  author: allender;  state: Exp;
575 *** empty log message ***
576 ----------------------------
577 revision 1.2
578 date: 1995/04/07 07:31:20;  author: allender;  state: Exp;
579 *** empty log message ***
580 ----------------------------
581 revision 1.1
582 date: 1995/03/09 08:56:44;  author: allender;  state: Exp;
583 Initial revision
584 ----------------------------
585 revision 1.49
586 date: 1994/11/30 20:16:05;  author: john;  state: Exp;
587 Fixed bug that the grd_curscreen flags were never initialized.
588 ----------------------------
589 revision 1.48
590 date: 1994/11/24 13:24:43;  author: john;  state: Exp;
591 Made sure that some rep movs had the cld set first.
592 Took some unused functions out.
593 ----------------------------
594 revision 1.47
595 date: 1994/11/18 22:50:20;  author: john;  state: Exp;
596 Changed shorts to ints in parameters.
597 ----------------------------
598 revision 1.46
599 date: 1994/11/15 18:28:36;  author: john;  state: Exp;
600 Made text screen fade in.
601 ----------------------------
602 revision 1.45
603 date: 1994/11/15 17:55:11;  author: john;  state: Exp;
604 Made text palette fade in when game over.
605 ----------------------------
606 revision 1.44
607 date: 1994/11/07 12:07:30;  author: john;  state: Exp;
608 Made save/restore cursor work a bit better.
609 ----------------------------
610 revision 1.43
611 date: 1994/11/05 12:46:44;  author: john;  state: Exp;
612 Changed palette stuff a bit.
613 ----------------------------
614 revision 1.42
615 date: 1994/10/26 23:55:50;  author: john;  state: Exp;
616 Took out roller; Took out inverse table.
617 ----------------------------
618 revision 1.41
619 date: 1994/10/10 13:59:50;  author: john;  state: Exp;
620 *** empty log message ***
621 ----------------------------
622 revision 1.40
623 date: 1994/10/10 13:58:50;  author: john;  state: Exp;
624 Added better VGA detection scheme.
625 ----------------------------
626 revision 1.39
627 date: 1994/09/29 10:09:15;  author: john;  state: Exp;
628 Hacked out VGA card detection for now.
629 ----------------------------
630 revision 1.38
631 date: 1994/09/22 17:35:35;  author: john;  state: Exp;
632 Fixed bug with palette not reloading in
633 gr_set_mode
634 ----------------------------
635 revision 1.37
636 date: 1994/09/22 16:08:42;  author: john;  state: Exp;
637 Fixed some palette stuff.
638 ----------------------------
639 revision 1.36
640 date: 1994/09/19 11:44:23;  author: john;  state: Exp;
641 Changed call to allocate selector to the dpmi module.
642 ----------------------------
643 revision 1.35
644 date: 1994/09/12 19:28:11;  author: john;  state: Exp;
645 Fixed bug with unclipped fonts clipping.
646 ----------------------------
647 revision 1.34
648 date: 1994/09/12 18:20:18;  author: john;  state: Exp;
649 Made text fade out
650 ----------------------------
651 revision 1.33
652 date: 1994/09/12 14:40:15;  author: john;  state: Exp;
653 Neatend.
654 ----------------------------
655 revision 1.32
656 date: 1994/08/15 15:01:01;  author: matt;  state: Exp;
657 Set ptr to NULL after freeing
658 ----------------------------
659 revision 1.31
660 date: 1994/07/27 18:30:28;  author: john;  state: Exp;
661 Took away the blending table.
662 ----------------------------
663 revision 1.30
664 date: 1994/06/24 17:26:59;  author: john;  state: Exp;
665 Made rowsizes bigger than actual screen work with SVGA.
666 ----------------------------
667 revision 1.29
668 date: 1994/05/12 17:33:16;  author: john;  state: Exp;
669 Added circle code.
670 ----------------------------
671 revision 1.28
672 date: 1994/05/10 19:51:49;  author: john;  state: Exp;
673 Added 320x100 mode.
674 ----------------------------
675 revision 1.27
676 date: 1994/05/06 12:50:23;  author: john;  state: Exp;
677 Added supertransparency; neatend things up; took out warnings.
678 ----------------------------
679 revision 1.26
680 date: 1994/05/03 19:39:00;  author: john;  state: Exp;
681 *** empty log message ***
682 ----------------------------
683 revision 1.25
684 date: 1994/04/08 16:59:34;  author: john;  state: Exp;
685 Add fading poly's; Made palette fade 32 instead of 16.
686 ----------------------------
687 revision 1.24
688 date: 1994/03/14 16:56:16;  author: john;  state: Exp;
689 Changed grs_bitmap structure to include bm_flags.
690 ----------------------------
691 revision 1.23
692 date: 1994/02/18 15:32:27;  author: john;  state: Exp;
693 *** empty log message ***
694 ----------------------------
695 revision 1.22
696 date: 1994/01/25 11:40:44;  author: john;  state: Exp;
697 Added gr_check_mode function.
698 ----------------------------
699 revision 1.21
700 date: 1993/12/21 19:57:48;  author: john;  state: Exp;
701 added selector stuff.
702 ----------------------------
703 revision 1.20
704 date: 1993/12/21 11:40:32;  author: john;  state: Exp;
705 *** empty log message ***
706 ----------------------------
707 revision 1.19
708 date: 1993/12/09 15:02:13;  author: john;  state: Exp;
709 Changed palette stuff majorly
710 ----------------------------
711 revision 1.18
712 date: 1993/11/16 11:28:36;  author: john;  state: Exp;
713 *** empty log message ***
714 ----------------------------
715 revision 1.17
716 date: 1993/10/26 13:17:53;  author: john;  state: Exp;
717 *** empty log message ***
718 ----------------------------
719 revision 1.16
720 date: 1993/10/15 16:23:42;  author: john;  state: Exp;
721 y
722 ----------------------------
723 revision 1.15
724 date: 1993/09/29 16:15:21;  author: john;  state: Exp;
725 optimized
726 ----------------------------
727 revision 1.14
728 date: 1993/09/28 19:06:51;  author: john;  state: Exp;
729 made gr_set_mode change the grd_cursreen->sc_mode variable.
730 ----------------------------
731 revision 1.13
732 date: 1993/09/28 12:52:12;  author: matt;  state: Exp;
733 Set aspect ratio of current screen in gr_init() and gr_set_mode().
734 ----------------------------
735 revision 1.12
736 date: 1993/09/27 13:00:24;  author: john;  state: Exp;
737 made gr_set_mode not call mode_reset on fail
738 ----------------------------
739 revision 1.11
740 date: 1993/09/27 12:51:27;  author: john;  state: Exp;
741 fixed gr_set_mode to return values
742 ----------------------------
743 revision 1.10
744 date: 1993/09/26 18:59:12;  author: john;  state: Exp;
745 fade in/out stuff
746 ----------------------------
747 revision 1.9
748 date: 1993/09/21 14:00:41;  author: john;  state: Exp;
749 added code to save 43/50 line modes.
750 ----------------------------
751 revision 1.8
752 date: 1993/09/20 14:48:48;  author: john;  state: Exp;
753 *** empty log message ***
754 ----------------------------
755 revision 1.7
756 date: 1993/09/16 17:27:48;  author: john;  state: Exp;
757 Added code to save/restore video mode.
758 ----------------------------
759 revision 1.6
760 date: 1993/09/16 16:30:15;  author: john;  state: Exp;
761 Made gr_close retore Mode 3 always.
762 ----------------------------
763 revision 1.5
764 date: 1993/09/14 18:40:07;  author: john;  state: Exp;
765 Made it so that gr_setmode doesn't change curcanv font and colors.
766 ----------------------------
767 revision 1.4
768 date: 1993/09/14 16:27:01;  author: matt;  state: Exp;
769 Changes gr_change_mode() to be gr_set_mode()
770 After gr_set_mode(), grd_curcanv is the canvas of the new screen
771 Made gr_set_mode() work with the new grd_curcanv, not the old one
772 ----------------------------
773 revision 1.3
774 date: 1993/09/14 13:08:37;  author: john;  state: Exp;
775 Added gr_changemode
776 ----------------------------
777 revision 1.2
778 date: 1993/09/08 17:36:37;  author: john;  state: Exp;
779 Looking for error for Yuan... Neatened the nested ifs in setmode.
780 ----------------------------
781 revision 1.1
782 date: 1993/09/08 11:43:51;  author: john;  state: Exp;
783 Initial revision
784 =============================================================================
785 RCS file: /Smoke/miner/source/2d/gr.h,v
786 Working file: 2d/gr.h
787 head: 1.7
788 description: Definitions for graphics lib.
789 ----------------------------
790 revision 1.7
791 date: 1995/09/13 08:39:44;  author: allender;  state: Exp;
792 added prototype for gr_bitblt_cockpit
793 ----------------------------
794 revision 1.6
795 date: 1995/08/23 18:47:01;  author: allender;  state: Exp;
796 fixed compiler warnings on mcc
797 ----------------------------
798 revision 1.5
799 date: 1995/08/14 15:51:01;  author: allender;  state: Exp;
800 added #define for transparency color
801 ----------------------------
802 revision 1.4
803 date: 1995/06/13 13:03:55;  author: allender;  state: Exp;
804 added graphics mode
805 ----------------------------
806 revision 1.3
807 date: 1995/04/18 09:50:16;  author: allender;  state: Exp;
808 *** empty log message ***
809 ----------------------------
810 revision 1.2
811 date: 1995/04/07 07:32:33;  author: allender;  state: Exp;
812 *** empty log message ***
813 ----------------------------
814 revision 1.1
815 date: 1995/03/09 09:04:16;  author: allender;  state: Exp;
816 Initial revision
817 ----------------------------
818 revision 1.45
819 date: 1994/11/18 22:50:21;  author: john;  state: Exp;
820 Changed shorts to ints in parameters.
821 ----------------------------
822 revision 1.44
823 date: 1994/11/13 13:04:07;  author: john;  state: Exp;
824 Added paged out bit in bitmap structure.  Commented out the
825 poly code that is never used.
826 ----------------------------
827 revision 1.43
828 date: 1994/11/09 23:04:56;  author: mike;  state: Exp;
829 Add avg_color field.
830 ----------------------------
831 revision 1.42
832 date: 1994/10/27 00:53:35;  author: john;  state: Exp;
833 Added RLE Flag to bitmap structere.
834 ----------------------------
835 revision 1.41
836 date: 1994/10/26 23:55:52;  author: john;  state: Exp;
837 Took out roller; Took out inverse table.
838 ----------------------------
839 revision 1.40
840 date: 1994/08/11 17:59:12;  author: mike;  state: Exp;
841 Assembler merge functions written for 3 rotations of bitmaps.
842 ----------------------------
843 revision 1.39
844 date: 1994/08/10 12:24:56;  author: matt;  state: Exp;
845 Added support for colors fonts & kerned fonts
846 Made our own font file format
847 ----------------------------
848 revision 1.38
849 date: 1994/07/27 18:30:18;  author: john;  state: Exp;
850 Took away the blending table.
851 ----------------------------
852 revision 1.37
853 date: 1994/06/16 15:25:06;  author: mike;  state: Exp;
854 Add flag BM_FLAG_NO_LIGHTING.
855 ----------------------------
856 revision 1.36
857 date: 1994/05/31 10:01:22;  author: john;  state: Exp;
858 *** empty log message ***
859 ----------------------------
860 revision 1.35
861 date: 1994/05/31 07:53:34;  author: john;  state: Exp;
862 *** empty log message ***
863 ----------------------------
864 revision 1.34
865 date: 1994/05/14 17:19:41;  author: matt;  state: Exp;
866 Added externs
867 ----------------------------
868 revision 1.33
869 date: 1994/05/12 17:33:09;  author: john;  state: Exp;
870 Added circle code.
871 ----------------------------
872 revision 1.32
873 date: 1994/05/06 12:50:16;  author: john;  state: Exp;
874 Added supertransparency; neatend things up; took out warnings.
875 ----------------------------
876 revision 1.31
877 date: 1994/05/04 10:06:06;  author: john;  state: Exp;
878 Added flag for bitmap super-transparency.
879 ----------------------------
880 revision 1.30
881 date: 1994/05/03 19:38:56;  author: john;  state: Exp;
882 *** empty log message ***
883 ----------------------------
884 revision 1.29
885 date: 1994/04/22 11:16:05;  author: john;  state: Exp;
886 *** empty log message ***
887 ----------------------------
888 revision 1.28
889 date: 1994/04/08 16:59:32;  author: john;  state: Exp;
890 Add fading poly's; Made palette fade 32 instead of 16.
891 ----------------------------
892 revision 1.27
893 date: 1994/03/16 17:29:52;  author: john;  state: Exp;
894 *** empty log message ***
895 ----------------------------
896 revision 1.26
897 date: 1994/03/16 17:20:51;  author: john;  state: Exp;
898 Added slow palette searching options.
899 ----------------------------
900 revision 1.25
901 date: 1994/03/14 17:59:20;  author: john;  state: Exp;
902 Added function to check bitmap's transparency.
903 ----------------------------
904 revision 1.24
905 date: 1994/03/14 16:56:26;  author: john;  state: Exp;
906 Changed grs_bitmap structure to include bm_flags.
907 ----------------------------
908 revision 1.23
909 date: 1994/02/18 15:32:30;  author: john;  state: Exp;
910 *** empty log message ***
911 ----------------------------
912 revision 1.22
913 date: 1994/01/25 11:40:48;  author: john;  state: Exp;
914 Added gr_check_mode function.
915 ----------------------------
916 revision 1.21
917 date: 1994/01/12 13:45:24;  author: john;  state: Exp;
918 Added scaler.
919 ----------------------------
920 revision 1.20
921 date: 1993/12/21 19:58:24;  author: john;  state: Exp;
922 added selector stuff
923 ----------------------------
924 revision 1.19
925 date: 1993/12/21 11:40:40;  author: john;  state: Exp;
926 *** empty log message ***
927 ----------------------------
928 revision 1.18
929 date: 1993/12/09 15:02:08;  author: john;  state: Exp;
930 Changed palette stuff majorly
931 ----------------------------
932 revision 1.17
933 date: 1993/12/07 12:32:05;  author: john;  state: Exp;
934 moved bmd_palette to gr_palette
935 ----------------------------
936 revision 1.16
937 date: 1993/11/28 12:08:06;  author: mike;  state: Exp;
938 Change prototype for rotate_bitmap.
939 ----------------------------
940 revision 1.15
941 date: 1993/11/18 14:22:51;  author: mike;  state: Exp;
942 Add prototype for rotate_bitmap.
943 ----------------------------
944 revision 1.14
945 date: 1993/11/17 19:00:59;  author: mike;  state: Exp;
946 Add prototype for test_rotate_bitmap
947 ----------------------------
948 revision 1.13
949 date: 1993/11/16 11:28:58;  author: john;  state: Exp;
950 *** empty log message ***
951 ----------------------------
952 revision 1.12
953 date: 1993/10/26 13:17:43;  author: john;  state: Exp;
954 *** empty log message ***
955 ----------------------------
956 revision 1.11
957 date: 1993/10/15 16:23:37;  author: john;  state: Exp;
958 y
959 ----------------------------
960 revision 1.10
961 date: 1993/09/28 15:32:33;  author: john;  state: Exp;
962 added def for save/restore vidmode
963 ----------------------------
964 revision 1.9
965 date: 1993/09/28 12:51:46;  author: matt;  state: Exp;
966 Added aspect ratio to grs_screen structure
967 ----------------------------
968 revision 1.8
969 date: 1993/09/26 22:45:12;  author: matt;  state: Exp;
970 Changed prototypes for line functions to take fixes, not ints.
971 ----------------------------
972 revision 1.7
973 date: 1993/09/26 18:58:16;  author: john;  state: Exp;
974 fadein/out stuff
975 ----------------------------
976 revision 1.6
977 date: 1993/09/14 16:26:44;  author: matt;  state: Exp;
978 Changed gr_change_mode() to be gr_set_mode()
979 ----------------------------
980 revision 1.4
981 date: 1993/09/14 13:08:45;  author: john;  state: Exp;
982 added gr_change_mode
983 ----------------------------
984 revision 1.3
985 date: 1993/09/08 13:56:03;  author: matt;  state: Exp;
986 Put 'if' block around body of file; added bitmap type BM_RGB15
987 ----------------------------
988 revision 1.2
989 date: 1993/09/08 13:02:14;  author: john;  state: Exp;
990 Changed structure definitions a bit.
991 ----------------------------
992 revision 1.1
993 date: 1993/09/08 11:25:15;  author: john;  state: Exp;
994 Initial revision
995 =============================================================================
996 RCS file: /Smoke/miner/source/2d/grdef.h,v
997 Working file: 2d/grdef.h
998 head: 1.5
999 description: Internal definitions for graphics lib.
1000 ----------------------------
1001 revision 1.5
1002 date: 1995/09/14 15:36:33;  author: allender;  state: Exp;
1003 added stuff for 68k version
1004 ----------------------------
1005 revision 1.4
1006 date: 1995/07/05 16:10:57;  author: allender;  state: Exp;
1007 gr_linear_movsd prototype changes
1008 ----------------------------
1009 revision 1.3
1010 date: 1995/04/19 14:39:28;  author: allender;  state: Exp;
1011 changed function prototype
1012 ----------------------------
1013 revision 1.2
1014 date: 1995/04/18 09:49:53;  author: allender;  state: Exp;
1015 *** empty log message ***
1016 ----------------------------
1017 revision 1.1
1018 date: 1995/03/09 09:04:56;  author: allender;  state: Exp;
1019 Initial revision
1020 ----------------------------
1021 revision 1.8
1022 date: 1994/05/06 12:50:09;  author: john;  state: Exp;
1023 Added supertransparency; neatend things up; took out warnings.
1024 ----------------------------
1025 revision 1.7
1026 date: 1994/01/25 11:40:29;  author: john;  state: Exp;
1027 Added gr_check_mode function.
1028 ----------------------------
1029 revision 1.6
1030 date: 1993/10/15 16:22:53;  author: john;  state: Exp;
1031 y
1032 ----------------------------
1033 revision 1.5
1034 date: 1993/09/29 17:31:00;  author: john;  state: Exp;
1035 added gr_vesa_pixel
1036 ----------------------------
1037 revision 1.4
1038 date: 1993/09/29 16:14:43;  author: john;  state: Exp;
1039 added global canvas descriptors.
1040 ----------------------------
1041 revision 1.3
1042 date: 1993/09/08 17:38:02;  author: john;  state: Exp;
1043 Looking for errors
1044 ----------------------------
1045 revision 1.2
1046 date: 1993/09/08 15:54:29;  author: john;  state: Exp;
1047 *** empty log message ***
1048 ----------------------------
1049 revision 1.1
1050 date: 1993/09/08 11:37:57;  author: john;  state: Exp;
1051 Initial revision
1052 =============================================================================
1053 RCS file: /Smoke/miner/source/2d/ibitblt.c,v
1054 Working file: 2d/ibitblt.c
1055 head: 1.3
1056 description:  Routines to to inverse bitblitting -- well not really.
1057  We don't inverse bitblt like in the PC, but this code
1058  does set up a structure that blits around the cockpit
1059 ----------------------------
1060 revision 1.3
1061 date: 1995/09/13 11:43:22;  author: allender;  state: Exp;
1062 start on optimizing cockpit copy code
1063 ----------------------------
1064 revision 1.2
1065 date: 1995/09/07 10:16:57;  author: allender;  state: Exp;
1066 fixed up cockpit and rearview hole blitting
1067 ----------------------------
1068 revision 1.1
1069 date: 1995/08/18 15:50:48;  author: allender;  state: Exp;
1070 Initial revision
1071 =============================================================================
1072 RCS file: /Smoke/miner/source/2d/ibitblt.h,v
1073 Working file: 2d/ibitblt.h
1074 head: 1.1
1075 description:  Header prototypes for inverse bitblt funcitons
1076 ----------------------------
1077 revision 1.1
1078 date: 1995/08/18 15:50:57;  author: allender;  state: Exp;
1079 Initial revision
1080 =============================================================================
1081 RCS file: /Smoke/miner/source/2d/line.c,v
1082 Working file: 2d/line.c
1083 head: 1.2
1084 description: Graphical routines for drawing lines.
1085 ----------------------------
1086 revision 1.2
1087 date: 1995/09/14 13:45:24;  author: allender;  state: Exp;
1088 optimizations from Dave Denhart
1089 ----------------------------
1090 revision 1.1
1091 date: 1995/03/09 09:09:46;  author: allender;  state: Exp;
1092 Initial revision
1093 ----------------------------
1094 revision 1.10
1095 date: 1994/11/18 22:50:02;  author: john;  state: Exp;
1096 Changed shorts to ints in parameters.
1097 ----------------------------
1098 revision 1.9
1099 date: 1994/07/13 12:03:04;  author: john;  state: Exp;
1100 Added assembly modex line-drawer.
1101 ----------------------------
1102 revision 1.8
1103 date: 1993/12/06 18:18:03;  author: john;  state: Exp;
1104 took out aaline.
1105 ----------------------------
1106 revision 1.7
1107 date: 1993/12/03 12:11:17;  author: john;  state: Exp;
1108 ,
1109 ----------------------------
1110 revision 1.6
1111 date: 1993/11/18 09:40:22;  author: john;  state: Exp;
1112 Added laser-line
1113 ----------------------------
1114 revision 1.5
1115 date: 1993/10/15 16:23:36;  author: john;  state: Exp;
1116 y
1117 ----------------------------
1118 revision 1.4
1119 date: 1993/09/29 16:13:58;  author: john;  state: Exp;
1120 optimized
1121 ----------------------------
1122 revision 1.3
1123 date: 1993/09/26 18:44:12;  author: matt;  state: Exp;
1124 Added gr_uline(), which just calls gr_line(), and made both take
1125 fixes, and shift down themselves.
1126 ----------------------------
1127 revision 1.2
1128 date: 1993/09/11 19:50:15;  author: matt;  state: Exp;
1129 In gr_vline() & gr_hline(), check for start > end, and EXCHG if so
1130 ----------------------------
1131 revision 1.1
1132 date: 1993/09/08 11:43:54;  author: john;  state: Exp;
1133 Initial revision
1134 =============================================================================
1135 RCS file: /Smoke/miner/source/2d/palette.c,v
1136 Working file: 2d/palette.c
1137 head: 1.20
1138 description: Graphical routines for setting the palette
1139 ----------------------------
1140 revision 1.20
1141 date: 1995/11/07 13:57:52;  author: allender;  state: Exp;
1142 set gr_palette_gamma_param to 4 as default
1143 ----------------------------
1144 revision 1.19
1145 date: 1995/10/18 01:07:55;  author: allender;  state: Exp;
1146 new gamma correction stuff
1147 ----------------------------
1148 revision 1.18
1149 date: 1995/10/13 14:39:46;  author: allender;  state: Exp;
1150 chance to appropriate GDevice when changing palette
1151 ----------------------------
1152 revision 1.17
1153 date: 1995/09/13 08:39:19;  author: allender;  state: Exp;
1154 added gamma correction table instead of on the fly calculation
1155 ----------------------------
1156 revision 1.16
1157 date: 1995/09/05 08:48:57;  author: allender;  state: Exp;
1158 changed palette gamme value to 1.5
1159 ----------------------------
1160 revision 1.15
1161 date: 1995/09/04 11:41:36;  author: allender;  state: Exp;
1162 added back the debug_mode to set video mode to b/w on
1163 error in case screen is faded.
1164 ----------------------------
1165 revision 1.14
1166 date: 1995/08/18 15:49:20;  author: allender;  state: Exp;
1167 added gamma correction value for PC palette entries
1168 ----------------------------
1169 revision 1.13
1170 date: 1995/08/14 14:26:20;  author: allender;  state: Exp;
1171 changed transparency color to 0
1172 ----------------------------
1173 revision 1.12
1174 date: 1995/07/17 10:41:57;  author: allender;  state: Exp;
1175 get palette read function working
1176 ----------------------------
1177 revision 1.11
1178 date: 1995/07/13 13:32:03;  author: allender;  state: Exp;
1179 change init_computed colors back to original form
1180 ----------------------------
1181 revision 1.10
1182 date: 1995/07/05 16:06:13;  author: allender;  state: Exp;
1183 don't use palette manager anymore -- directly use the color manager
1184 move transparency color back to entry 255 -- what a pain!!!
1185 ----------------------------
1186 revision 1.9
1187 date: 1995/06/23 12:28:21;  author: allender;  state: Exp;
1188 fixed gamma step up problems
1189 ----------------------------
1190 revision 1.8
1191 date: 1995/06/22 16:58:41;  author: allender;  state: Exp;
1192 moved check in gr_palette_fade_in to return immediatly if palette
1193 already faded in
1194 ----------------------------
1195 revision 1.7
1196 date: 1995/06/13 13:04:07;  author: allender;  state: Exp;
1197 modfied GWorld changes to execute only if GWorld is defined
1198 ----------------------------
1199 revision 1.6
1200 date: 1995/06/06 16:02:38;  author: allender;  state: Exp;
1201 fixed gr_palette_set_up to work more correctly
1202 ----------------------------
1203 revision 1.5
1204 date: 1995/05/11 12:49:01;  author: allender;  state: Exp;
1205 change transparency color -- fix up fade tables to reflect this
1206 ----------------------------
1207 revision 1.4
1208 date: 1995/04/27 07:38:52;  author: allender;  state: Exp;
1209 use animate palette to do fade in and out's
1210 ----------------------------
1211 revision 1.3
1212 date: 1995/04/18 09:49:39;  author: allender;  state: Exp;
1213 *** empty log message ***
1214 ----------------------------
1215 revision 1.2
1216 date: 1995/04/07 13:15:01;  author: allender;  state: Exp;
1217 *** empty log message ***
1218 ----------------------------
1219 revision 1.1
1220 date: 1995/03/09 09:20:08;  author: allender;  state: Exp;
1221 Initial revision
1222 ----------------------------
1223 revision 1.39
1224 date: 1994/12/01 11:23:27;  author: john;  state: Exp;
1225 Limited Gamma from 0-8.
1226 ----------------------------
1227 revision 1.38
1228 date: 1994/11/28 01:31:08;  author: mike;  state: Exp;
1229 optimize color lookup function, caching recently used colors.
1230 ----------------------------
1231 revision 1.37
1232 date: 1994/11/18 22:50:18;  author: john;  state: Exp;
1233 Changed shorts to ints in parameters.
1234 ----------------------------
1235 revision 1.36
1236 date: 1994/11/15 17:54:59;  author: john;  state: Exp;
1237 Made text palette fade in when game over.
1238 ----------------------------
1239 revision 1.35
1240 date: 1994/11/10 19:53:14;  author: matt;  state: Exp;
1241 Fixed error handling is gr_use_palette_table()
1242 ----------------------------
1243 revision 1.34
1244 date: 1994/11/07 13:53:48;  author: john;  state: Exp;
1245 Added better gamma stufff.
1246 ----------------------------
1247 revision 1.33
1248 date: 1994/11/07 13:37:56;  author: john;  state: Exp;
1249 Added gamma correction stuff.
1250 ----------------------------
1251 revision 1.32
1252 date: 1994/11/05 13:20:14;  author: john;  state: Exp;
1253 Fixed bug with find_closest_color_current not working.
1254 ----------------------------
1255 revision 1.31
1256 date: 1994/11/05 13:08:09;  author: john;  state: Exp;
1257 MAde it return 0 when palette already faded out.
1258 ----------------------------
1259 revision 1.30
1260 date: 1994/11/05 13:05:34;  author: john;  state: Exp;
1261 Added back in code to allow keys during fade.
1262 ----------------------------
1263 revision 1.29
1264 date: 1994/11/05 12:49:50;  author: john;  state: Exp;
1265 Fixed bug with previous comment..
1266 ----------------------------
1267 revision 1.28
1268 date: 1994/11/05 12:48:46;  author: john;  state: Exp;
1269 Made palette only fade in / out when its supposed to.
1270 ----------------------------
1271 revision 1.27
1272 date: 1994/11/05 12:46:43;  author: john;  state: Exp;
1273 Changed palette stuff a bit.
1274 ----------------------------
1275 revision 1.26
1276 date: 1994/11/01 12:59:35;  author: john;  state: Exp;
1277 Reduced palette.256 size.
1278 ----------------------------
1279 revision 1.25
1280 date: 1994/10/26 23:55:35;  author: john;  state: Exp;
1281 Took out roller; Took out inverse table.
1282 ----------------------------
1283 revision 1.24
1284 date: 1994/10/04 22:03:05;  author: matt;  state: Exp;
1285 Fixed bug: palette wasn't fading all the way out or in
1286 ----------------------------
1287 revision 1.23
1288 date: 1994/09/22 16:08:40;  author: john;  state: Exp;
1289 Fixed some palette stuff.
1290 ----------------------------
1291 revision 1.22
1292 date: 1994/09/19 11:44:31;  author: john;  state: Exp;
1293 Changed call to allocate selector to the dpmi module.
1294 ----------------------------
1295 revision 1.21
1296 date: 1994/09/12 19:28:09;  author: john;  state: Exp;
1297 Fixed bug with unclipped fonts clipping.
1298 ----------------------------
1299 revision 1.20
1300 date: 1994/09/12 18:18:39;  author: john;  state: Exp;
1301 Set 254 and 255 to fade to themselves in fadetable
1302 ----------------------------
1303 revision 1.19
1304 date: 1994/09/12 14:40:10;  author: john;  state: Exp;
1305 Neatend.
1306 ----------------------------
1307 revision 1.18
1308 date: 1994/09/09 09:31:55;  author: john;  state: Exp;
1309 Made find_closest_color not look at superx spot of 254
1310 ----------------------------
1311 revision 1.17
1312 date: 1994/08/09 11:27:08;  author: john;  state: Exp;
1313 Add cthru stuff.
1314 ----------------------------
1315 revision 1.16
1316 date: 1994/08/01 11:03:51;  author: john;  state: Exp;
1317 MAde it read in old/new palette.256
1318 ----------------------------
1319 revision 1.15
1320 date: 1994/07/27 18:30:27;  author: john;  state: Exp;
1321 Took away the blending table.
1322 ----------------------------
1323 revision 1.14
1324 date: 1994/06/09 10:39:52;  author: john;  state: Exp;
1325 In fade out.in functions, returned 1 if key was pressed...
1326 ----------------------------
1327 revision 1.13
1328 date: 1994/05/31 19:04:16;  author: john;  state: Exp;
1329 Added key to stop fade if desired.
1330 ----------------------------
1331 revision 1.12
1332 date: 1994/05/06 12:50:20;  author: john;  state: Exp;
1333 Added supertransparency; neatend things up; took out warnings.
1334 ----------------------------
1335 revision 1.11
1336 date: 1994/05/03 19:39:02;  author: john;  state: Exp;
1337 *** empty log message ***
1338 ----------------------------
1339 revision 1.10
1340 date: 1994/04/22 11:16:07;  author: john;  state: Exp;
1341 *** empty log message ***
1342 ----------------------------
1343 revision 1.9
1344 date: 1994/04/08 16:59:40;  author: john;  state: Exp;
1345 Add fading poly's; Made palette fade 32 instead of 16.
1346 ----------------------------
1347 revision 1.8
1348 date: 1994/03/16 17:21:17;  author: john;  state: Exp;
1349 Added slow palette searching options.
1350 ----------------------------
1351 revision 1.7
1352 date: 1994/01/07 11:47:33;  author: john;  state: Exp;
1353 made use cflib
1354 ----------------------------
1355 revision 1.6
1356 date: 1993/12/21 11:41:04;  author: john;  state: Exp;
1357 *** empty log message ***
1358 ----------------------------
1359 revision 1.5
1360 date: 1993/12/09 15:02:47;  author: john;  state: Exp;
1361 Changed palette stuff majorly
1362 ----------------------------
1363 revision 1.4
1364 date: 1993/12/07 12:31:41;  author: john;  state: Exp;
1365 moved bmd_palette to gr_palette
1366 ----------------------------
1367 revision 1.3
1368 date: 1993/10/15 16:22:23;  author: john;  state: Exp;
1369 *** empty log message ***
1370 ----------------------------
1371 revision 1.2
1372 date: 1993/09/26 18:59:46;  author: john;  state: Exp;
1373 fade stuff
1374 ----------------------------
1375 revision 1.1
1376 date: 1993/09/08 11:44:03;  author: john;  state: Exp;
1377 Initial revision
1378 =============================================================================
1379 RCS file: /Buggin/miner/source/2d/palette.h,v
1380 Working file: 2d/palette.h
1381 head: 1.1
1382 description: Protoypes for palette functions
1383 ----------------------------
1384 revision 1.1
1385 date: 1995/03/09 09:20:45;  author: allender;  state: Exp;
1386 Initial revision
1387 ----------------------------
1388 revision 1.11
1389 date: 1994/11/15 17:55:10;  author: john;  state: Exp;
1390 Made text palette fade in when game over.
1391 ----------------------------
1392 revision 1.10
1393 date: 1994/11/07 13:53:42;  author: john;  state: Exp;
1394 Added better gamma stufff.
1395 ----------------------------
1396 revision 1.9
1397 date: 1994/11/07 13:38:03;  author: john;  state: Exp;
1398 Added gamma correction stuff.
1399 ----------------------------
1400 revision 1.8
1401 date: 1994/11/05 13:05:59;  author: john;  state: Exp;
1402 Added back in code to allow keys during fade.
1403 ----------------------------
1404 revision 1.7
1405 date: 1994/11/05 12:46:37;  author: john;  state: Exp;
1406 Changed palette stuff a bit.
1407 ----------------------------
1408 revision 1.6
1409 date: 1994/09/22 16:08:37;  author: john;  state: Exp;
1410 Fixed some palette stuff.
1411 ----------------------------
1412 revision 1.5
1413 date: 1994/08/09 11:27:04;  author: john;  state: Exp;
1414 Add cthru stuff.
1415 ----------------------------
1416 revision 1.4
1417 date: 1994/06/09 10:39:33;  author: john;  state: Exp;
1418 In fade out.in functions, returned 1 if key was pressed...
1419 ----------------------------
1420 revision 1.3
1421 date: 1994/05/31 19:04:24;  author: john;  state: Exp;
1422 Added key to stop fade if desired.
1423 ----------------------------
1424 revision 1.2
1425 date: 1994/05/06 12:50:42;  author: john;  state: Exp;
1426 Added supertransparency; neatend things up; took out warnings.
1427 ----------------------------
1428 revision 1.1
1429 date: 1994/05/04 14:59:57;  author: john;  state: Exp;
1430 Initial revision
1431 =============================================================================
1432 RCS file: /Smoke/miner/source/2d/pcx.c,v
1433 Working file: 2d/pcx.c
1434 head: 1.11
1435 description: Routines to read/write pcx images.
1436 ----------------------------
1437 revision 1.11
1438 date: 1995/11/02 14:11:35;  author: allender;  state: Exp;
1439 shareware only code
1440 ----------------------------
1441 revision 1.10
1442 date: 1995/10/30 11:12:13;  author: allender;  state: Exp;
1443 added new pcx code
1444 ----------------------------
1445 revision 1.9
1446 date: 1995/10/21 00:14:35;  author: allender;  state: Exp;
1447 sped up pcx reading code
1448 ----------------------------
1449 revision 1.8
1450 date: 1995/07/17 10:41:21;  author: allender;  state: Exp;
1451 get pcx writting working
1452 ----------------------------
1453 revision 1.7
1454 date: 1995/07/05 16:07:05;  author: allender;  state: Exp;
1455 transparency/kitchen changes
1456 ----------------------------
1457 revision 1.6
1458 date: 1995/05/12 11:53:06;  author: allender;  state: Exp;
1459 changed memory stuff again
1460 ----------------------------
1461 revision 1.5
1462 date: 1995/04/27 07:38:35;  author: allender;  state: Exp;
1463 switch last and first palette entries when reading pcx file
1464 ----------------------------
1465 revision 1.4
1466 date: 1995/04/19 14:38:38;  author: allender;  state: Exp;
1467 rearranged some functions
1468 ----------------------------
1469 revision 1.3
1470 date: 1995/04/04 11:41:11;  author: allender;  state: Exp;
1471 *** empty log message ***
1472 ----------------------------
1473 revision 1.2
1474 date: 1995/03/30 15:06:41;  author: allender;  state: Exp;
1475 *** empty log message ***
1476 ----------------------------
1477 revision 1.1
1478 date: 1995/03/23 12:40:05;  author: allender;  state: Exp;
1479 Initial revision
1480 ----------------------------
1481 revision 1.6
1482 date: 1995/03/01 15:38:12;  author: john;  state: Exp;
1483 Better ModeX support.
1484 ----------------------------
1485 revision 1.5
1486 date: 1995/01/21 17:54:17;  author: john;  state: Exp;
1487 Added pcx reader for modes other than modex.
1488 ----------------------------
1489 revision 1.4
1490 date: 1994/12/08 19:03:56;  author: john;  state: Exp;
1491 Made functions use cfile.
1492 ----------------------------
1493 revision 1.3
1494 date: 1994/11/29 02:53:24;  author: john;  state: Exp;
1495 Added error messages; made call be more similiar to iff.
1496 ----------------------------
1497 revision 1.2
1498 date: 1994/11/28 20:03:50;  author: john;  state: Exp;
1499 Added PCX functions.
1500 ----------------------------
1501 revision 1.1
1502 date: 1994/11/28 19:57:56;  author: john;  state: Exp;
1503 Initial revision
1504 =============================================================================
1505 RCS file: /Smoke/miner/source/2d/pcx.h,v
1506 Working file: 2d/pcx.h
1507 head: 1.1
1508 description: Routines to read/write pcx images.
1509 ----------------------------
1510 revision 1.1
1511 date: 1995/05/05 09:26:22;  author: allender;  state: Exp;
1512 Initial revision
1513 ----------------------------
1514 revision 1.4
1515 date: 1995/01/21 17:07:34;  author: john;  state: Exp;
1516 Added out of memory error.
1517 ----------------------------
1518 revision 1.3
1519 date: 1994/11/29 02:53:10;  author: john;  state: Exp;
1520 Added error messages; made call be more similiar to iff.
1521 ----------------------------
1522 revision 1.2
1523 date: 1994/11/28 20:03:48;  author: john;  state: Exp;
1524 Added PCX functions.
1525 ----------------------------
1526 revision 1.1
1527 date: 1994/11/28 19:57:45;  author: john;  state: Exp;
1528 Initial revision
1529 =============================================================================
1530 RCS file: /Buggin/miner/source/2d/pixel.c,v
1531 Working file: 2d/pixel.c
1532 head: 1.1
1533 description: Graphical routines for setting a pixel.
1534 ----------------------------
1535 revision 1.1
1536 date: 1995/03/09 09:21:17;  author: allender;  state: Exp;
1537 Initial revision
1538 ----------------------------
1539 revision 1.5
1540 date: 1994/11/18 22:50:26;  author: john;  state: Exp;
1541 Changed shorts to ints in parameters.
1542 ----------------------------
1543 revision 1.4
1544 date: 1993/10/15 16:22:26;  author: john;  state: Exp;
1545 *** empty log message ***
1546 ----------------------------
1547 revision 1.3
1548 date: 1993/09/29 17:31:27;  author: john;  state: Exp;
1549 optimized vesa pixel stuff
1550 ----------------------------
1551 revision 1.2
1552 date: 1993/09/29 16:15:15;  author: john;  state: Exp;
1553 optimized
1554 ----------------------------
1555 revision 1.1
1556 date: 1993/09/08 11:44:09;  author: john;  state: Exp;
1557 Initial revision
1558 =============================================================================
1559 RCS file: /Buggin/miner/source/2d/poly.c,v
1560 Working file: 2d/poly.c
1561 head: 1.1
1562 description: Graphical routines for drawing polygons.
1563 ----------------------------
1564 revision 1.1
1565 date: 1995/03/09 09:21:47;  author: allender;  state: Exp;
1566 Initial revision
1567 ----------------------------
1568 revision 1.5
1569 date: 1994/11/13 13:03:43;  author: john;  state: Exp;
1570 Added paged out bit in bitmap structure.  Commented out the
1571 poly code that is never used.
1572 ----------------------------
1573 revision 1.4
1574 date: 1994/03/14 16:56:13;  author: john;  state: Exp;
1575 Changed grs_bitmap structure to include bm_flags.
1576 ----------------------------
1577 revision 1.3
1578 date: 1993/10/15 16:23:14;  author: john;  state: Exp;
1579 y
1580 ----------------------------
1581 revision 1.2
1582 date: 1993/10/08 14:30:39;  author: john;  state: Exp;
1583 *** empty log message ***
1584 ----------------------------
1585 revision 1.1
1586 date: 1993/09/08 11:44:13;  author: john;  state: Exp;
1587 Initial revision
1588 =============================================================================
1589 RCS file: /Buggin/miner/source/2d/rect.c,v
1590 Working file: 2d/rect.c
1591 head: 1.1
1592 description: Graphical routines for drawing rectangles.
1593 ----------------------------
1594 revision 1.1
1595 date: 1995/03/09 09:22:22;  author: allender;  state: Exp;
1596 Initial revision
1597 ----------------------------
1598 revision 1.3
1599 date: 1994/11/18 22:50:19;  author: john;  state: Exp;
1600 Changed shorts to ints in parameters.
1601 ----------------------------
1602 revision 1.2
1603 date: 1993/10/15 16:23:27;  author: john;  state: Exp;
1604 y
1605 ----------------------------
1606 revision 1.1
1607 date: 1993/09/08 11:44:22;  author: john;  state: Exp;
1608 Initial revision
1609 =============================================================================
1610 RCS file: /Smoke/miner/source/2d/rle.c,v
1611 Working file: 2d/rle.c
1612 head: 1.10
1613 description: Routines to do run length encoding/decoding
1614 on bitmaps.
1615 ----------------------------
1616 revision 1.10
1617 date: 1995/08/14 14:26:34;  author: allender;  state: Exp;
1618 changed transparency color to 0
1619 ----------------------------
1620 revision 1.9
1621 date: 1995/07/05 16:07:49;  author: allender;  state: Exp;
1622 transparency/kitchen chagnes
1623 ----------------------------
1624 revision 1.8
1625 date: 1995/05/12 11:54:03;  author: allender;  state: Exp;
1626 changed memory stuff again
1627 ----------------------------
1628 revision 1.7
1629 date: 1995/05/11 12:49:19;  author: allender;  state: Exp;
1630 change transparency color
1631 ----------------------------
1632 revision 1.6
1633 date: 1995/05/04 20:00:30;  author: allender;  state: Exp;
1634 use NewPtr instead of malloc.  Fix gr_rle_scanline (which caused me
1635 *many* hours of frustration!!!!)
1636 ----------------------------
1637 revision 1.5
1638 date: 1995/05/01 08:40:32;  author: allender;  state: Exp;
1639 trying to find memory bug....this stuff works -- it's johns code
1640 ----------------------------
1641 revision 1.4
1642 date: 1995/04/27 07:38:24;  author: allender;  state: Exp;
1643 new rle code ala John
1644 ----------------------------
1645 revision 1.3
1646 date: 1995/04/19 14:36:06;  author: allender;  state: Exp;
1647 *** empty log message ***
1648 ----------------------------
1649 revision 1.2
1650 date: 1995/04/18 12:08:30;  author: allender;  state: Exp;
1651 *** empty log message ***
1652 ----------------------------
1653 revision 1.1
1654 date: 1995/03/09 09:23:04;  author: allender;  state: Exp;
1655 Initial revision
1656 ----------------------------
1657 revision 1.16
1658 date: 1994/11/30 00:55:03;  author: mike;  state: Exp;
1659 optimization
1660 ----------------------------
1661 revision 1.15
1662 date: 1994/11/24 13:24:44;  author: john;  state: Exp;
1663 Made sure that some rep movs had the cld set first.
1664 Took some unused functions out.
1665 ----------------------------
1666 revision 1.14
1667 date: 1994/11/23 16:03:46;  author: john;  state: Exp;
1668 Fixed generic rle'ing to use new bit method.
1669 ----------------------------
1670 revision 1.13
1671 date: 1994/11/23 15:45:51;  author: john;  state: Exp;
1672 Changed to a 3 bit rle scheme.
1673 ----------------------------
1674 revision 1.12
1675 date: 1994/11/18 22:50:24;  author: john;  state: Exp;
1676 Changed shorts to ints in parameters.
1677 ----------------------------
1678 revision 1.11
1679 date: 1994/11/14 17:06:13;  author: john;  state: Exp;
1680 Took out Key_f12.
1681 ----------------------------
1682 revision 1.10
1683 date: 1994/11/14 15:54:09;  author: john;  state: Exp;
1684 Put code in for maybe checking bogus rle data.
1685 ----------------------------
1686 revision 1.9
1687 date: 1994/11/14 15:51:58;  author: john;  state: Exp;
1688 Added rle_disable_caching variable to prove the stability of my rle caching code
1689 to any non-believers.
1690 ----------------------------
1691 revision 1.8
1692 date: 1994/11/10 10:31:20;  author: john;  state: Exp;
1693 Reduce cache buffers to 16.
1694 ----------------------------
1695 revision 1.7
1696 date: 1994/11/09 19:53:43;  author: john;  state: Exp;
1697 Added texture rle caching.
1698 ----------------------------
1699 revision 1.6
1700 date: 1994/11/09 17:41:44;  author: john;  state: Exp;
1701 Made a slow version of rle bitblt to svga, modex.
1702 ----------------------------
1703 revision 1.5
1704 date: 1994/11/09 17:07:50;  author: john;  state: Exp;
1705 Fixed bug with bitmap that gets bigger with rle.
1706 ----------------------------
1707 revision 1.4
1708 date: 1994/11/09 16:35:17;  author: john;  state: Exp;
1709 First version with working RLE bitmaps.
1710 ----------------------------
1711 revision 1.3
1712 date: 1994/10/26 12:54:47;  author: john;  state: Exp;
1713 Fixed bug with decode that used rep movsd instead of 
1714 rep stosd.
1715 ----------------------------
1716 revision 1.2
1717 date: 1994/10/06 17:05:25;  author: john;  state: Exp;
1718 First version of rle stuff.
1719 ----------------------------
1720 revision 1.1
1721 date: 1994/10/06 16:53:34;  author: john;  state: Exp;
1722 Initial revision
1723 =============================================================================
1724 RCS file: /Smoke/miner/source/2d/rle.h,v
1725 Working file: 2d/rle.h
1726 head: 1.2
1727 description: Protypes for rle functions.
1728 ----------------------------
1729 revision 1.2
1730 date: 1995/05/05 16:34:54;  author: allender;  state: Exp;
1731 changed types.h to dtypes.h
1732 ----------------------------
1733 revision 1.1
1734 date: 1995/03/09 09:23:32;  author: allender;  state: Exp;
1735 Initial revision
1736 ----------------------------
1737 revision 1.4
1738 date: 1994/11/10 13:16:01;  author: matt;  state: Exp;
1739 Added includes
1740 ----------------------------
1741 revision 1.3
1742 date: 1994/11/09 19:53:51;  author: john;  state: Exp;
1743 Added texture rle caching.
1744 ----------------------------
1745 revision 1.2
1746 date: 1994/11/09 16:35:18;  author: john;  state: Exp;
1747 First version with working RLE bitmaps.
1748 ----------------------------
1749 revision 1.1
1750 date: 1994/11/09 12:40:17;  author: john;  state: Exp;
1751 Initial revision
1752 =============================================================================
1753 RCS file: /Smoke/miner/source/2d/scanline.c,v
1754 Working file: 2d/scanline.c
1755 head: 1.6
1756 description: Graphical routines for drawing solid scanlines.
1757 ----------------------------
1758 revision 1.6
1759 date: 1995/09/14 14:24:03;  author: allender;  state: Exp;
1760 fixed MW compile error
1761 ----------------------------
1762 revision 1.5
1763 date: 1995/09/14 13:45:17;  author: allender;  state: Exp;
1764 quick optimization for scanline
1765 ----------------------------
1766 revision 1.4
1767 date: 1995/04/27 07:36:05;  author: allender;  state: Exp;
1768 remove some memsets since all old is here now
1769 ----------------------------
1770 revision 1.3
1771 date: 1995/04/19 14:35:33;  author: allender;  state: Exp;
1772 *** empty log message ***
1773 ----------------------------
1774 revision 1.2
1775 date: 1995/04/18 12:03:40;  author: allender;  state: Exp;
1776 *** empty log message ***
1777 ----------------------------
1778 revision 1.1
1779 date: 1995/03/09 09:24:06;  author: allender;  state: Exp;
1780 Initial revision
1781 ----------------------------
1782 revision 1.7
1783 date: 1994/11/18 22:50:48;  author: john;  state: Exp;
1784 Changed a bunch of shorts to ints in calls.
1785 ----------------------------
1786 revision 1.6
1787 date: 1994/09/02 11:40:32;  author: john;  state: Exp;
1788 fixed bug with urect scanline drakening still
1789 only using 16 levels of fade.
1790 ----------------------------
1791 revision 1.5
1792 date: 1994/04/08 16:59:12;  author: john;  state: Exp;
1793 Add fading poly's; Made palette fade 32 instead of 16.
1794 ----------------------------
1795 revision 1.4
1796 date: 1994/03/22 18:36:27;  author: john;  state: Exp;
1797 Added darkening scanlines
1798 ----------------------------
1799 revision 1.3
1800 date: 1993/10/15 16:22:52;  author: john;  state: Exp;
1801 y
1802 ----------------------------
1803 revision 1.2
1804 date: 1993/09/08 11:56:29;  author: john;  state: Exp;
1805 neatened
1806 ----------------------------
1807 revision 1.1
1808 date: 1993/09/08 11:44:27;  author: john;  state: Exp;
1809 Initial revision
1810 =============================================================================
1811 RCS file: /Smoke/miner/source/3d/3d.h,v
1812 Working file: 3d/3d.h
1813 head: 1.2
1814 description: Header file for 3d library
1815 ----------------------------
1816 revision 1.2
1817 date: 1995/09/14 14:08:58;  author: allender;  state: Exp;
1818 return value for g3_draw_sphere
1819 ----------------------------
1820 revision 1.1
1821 date: 1995/05/05 08:48:41;  author: allender;  state: Exp;
1822 Initial revision
1823 =============================================================================
1824 RCS file: /Buggin/miner/source/3d/clipper.h,v
1825 Working file: 3d/clipper.h
1826 head: 1.1
1827 description: Header for clipper.c
1828 ----------------------------
1829 revision 1.1
1830 date: 1995/05/05 08:50:13;  author: allender;  state: Exp;
1831 Initial revision
1832 ----------------------------
1833 revision 1.1
1834 date: 1995/04/17 19:56:58;  author: matt;  state: Exp;
1835 Initial revision
1836 =============================================================================
1837 RCS file: /Smoke/miner/source/3d/draw.c,v
1838 Working file: 3d/draw.c
1839 head: 1.5
1840 description: Drawing routines
1841 ----------------------------
1842 revision 1.5
1843 date: 1995/10/11 00:27:17;  author: allender;  state: Exp;
1844 remove free_num_point settings to 0
1845 ----------------------------
1846 revision 1.4
1847 date: 1995/09/14 14:08:27;  author: allender;  state: Exp;
1848 co -l 3d.h
1849 g3_draw_sphere need to return value in new PPC stuff
1850 ----------------------------
1851 revision 1.3
1852 date: 1995/09/13 11:30:35;  author: allender;  state: Exp;
1853 removed checkmuldiv in PPC implementation
1854 ----------------------------
1855 revision 1.2
1856 date: 1995/06/25 21:57:41;  author: allender;  state: Exp;
1857 free_point_num problem
1858 ----------------------------
1859 revision 1.1
1860 date: 1995/05/05 08:50:26;  author: allender;  state: Exp;
1861 Initial revision
1862 ----------------------------
1863 revision 1.1
1864 date: 1995/04/17 05:13:45;  author: matt;  state: Exp;
1865 Initial revision
1866 =============================================================================
1867 RCS file: /Smoke/miner/source/3d/globvars.c,v
1868 Working file: 3d/globvars.c
1869 head: 1.2
1870 description: Global variables for 3d
1871 ----------------------------
1872 revision 1.2
1873 date: 1995/09/13 11:30:47;  author: allender;  state: Exp;
1874 added fCanv_w2 and vCanv_h2 for PPC implementation
1875 ----------------------------
1876 revision 1.1
1877 date: 1995/05/05 08:50:48;  author: allender;  state: Exp;
1878 Initial revision
1879 ----------------------------
1880 revision 1.1
1881 date: 1995/04/17 04:24:57;  author: matt;  state: Exp;
1882 Initial revision
1883 =============================================================================
1884 RCS file: /Smoke/miner/source/3d/globvars.h,v
1885 Working file: 3d/globvars.h
1886 head: 1.2
1887 description: Private (internal) header for 3d library
1888 ----------------------------
1889 revision 1.2
1890 date: 1995/09/13 11:31:19;  author: allender;  state: Exp;
1891 added fCanv_w2 and vCanv_h2 for PPC implementation
1892 ----------------------------
1893 revision 1.1
1894 date: 1995/05/05 08:51:02;  author: allender;  state: Exp;
1895 Initial revision
1896 ----------------------------
1897 revision 1.1
1898 date: 1995/04/17 04:07:58;  author: matt;  state: Exp;
1899 Initial revision
1900 =============================================================================
1901 RCS file: /Buggin/miner/source/3d/horizon.c,v
1902 Working file: 3d/horizon.c
1903 head: 1.1
1904 description: Horizon drawer
1905 ----------------------------
1906 revision 1.1
1907 date: 1995/05/05 08:51:14;  author: allender;  state: Exp;
1908 Initial revision
1909 ----------------------------
1910 revision 1.1
1911 date: 1995/04/17 06:38:57;  author: matt;  state: Exp;
1912 Initial revision
1913 =============================================================================
1914 RCS file: /Smoke/miner/source/3d/instance.c,v
1915 Working file: 3d/instance.c
1916 head: 1.2
1917 description: Instancing routines
1918 ----------------------------
1919 revision 1.2
1920 date: 1995/06/12 12:36:57;  author: allender;  state: Exp;
1921 fixed bug where g3_start_instance_angles recursively called itself
1922 ----------------------------
1923 revision 1.1
1924 date: 1995/05/05 08:51:27;  author: allender;  state: Exp;
1925 Initial revision
1926 ----------------------------
1927 revision 1.1
1928 date: 1995/04/17 06:43:29;  author: matt;  state: Exp;
1929 Initial revision
1930 =============================================================================
1931 RCS file: /Smoke/miner/source/3d/interp.c,v
1932 Working file: 3d/interp.c
1933 head: 1.4
1934 description: Polygon object interpreter
1935 ----------------------------
1936 revision 1.4
1937 date: 1995/10/10 22:20:09;  author: allender;  state: Exp;
1938 new morphing code from Matt
1939 ----------------------------
1940 revision 1.3
1941 date: 1995/08/31 15:40:24;  author: allender;  state: Exp;
1942 swap color data correctly
1943 ----------------------------
1944 revision 1.2
1945 date: 1995/05/11 13:06:38;  author: allender;  state: Exp;
1946 fix int --> short problem
1947 ----------------------------
1948 revision 1.1
1949 date: 1995/05/05 08:51:41;  author: allender;  state: Exp;
1950 Initial revision
1951 ----------------------------
1952 revision 1.1
1953 date: 1995/04/17 06:44:33;  author: matt;  state: Exp;
1954 Initial revision
1955 =============================================================================
1956 RCS file: /Buggin/miner/source/3d/matrix.c,v
1957 Working file: 3d/matrix.c
1958 head: 1.1
1959 description: Matrix setup & manipulation routines
1960 ----------------------------
1961 revision 1.1
1962 date: 1995/05/05 08:52:11;  author: allender;  state: Exp;
1963 Initial revision
1964 ----------------------------
1965 revision 1.1
1966 date: 1995/04/17 04:14:34;  author: matt;  state: Exp;
1967 Initial revision
1968 =============================================================================
1969 RCS file: /Smoke/miner/source/3d/points.c,v
1970 Working file: 3d/points.c
1971 head: 1.3
1972 description: Routines for point definition, rotation, etc.
1973 ----------------------------
1974 revision 1.3
1975 date: 1995/09/21 17:29:40;  author: allender;  state: Exp;
1976 changed project_point to overflow if z <= 0
1977 ----------------------------
1978 revision 1.2
1979 date: 1995/09/13 11:31:28;  author: allender;  state: Exp;
1980 removed checkmuldiv from g3_project_point
1981 ----------------------------
1982 revision 1.1
1983 date: 1995/05/05 08:52:35;  author: allender;  state: Exp;
1984 Initial revision
1985 ----------------------------
1986 revision 1.1
1987 date: 1995/04/17 04:32:25;  author: matt;  state: Exp;
1988 Initial revision
1989 =============================================================================
1990 RCS file: /Smoke/miner/source/3d/rod.c,v
1991 Working file: 3d/rod.c
1992 head: 1.2
1993 description: Rod routines
1994 ----------------------------
1995 revision 1.2
1996 date: 1995/09/13 11:31:46;  author: allender;  state: Exp;
1997 removed checkmuldiv in PPC implemenation
1998 ----------------------------
1999 revision 1.1
2000 date: 1995/05/05 08:52:45;  author: allender;  state: Exp;
2001 Initial revision
2002 ----------------------------
2003 revision 1.1
2004 date: 1995/04/17 06:42:08;  author: matt;  state: Exp;
2005 Initial revision
2006 =============================================================================
2007 RCS file: /Smoke/miner/source/3d/setup.c,v
2008 Working file: 3d/setup.c
2009 head: 1.4
2010 description: Setup for 3d library
2011 ----------------------------
2012 revision 1.4
2013 date: 1995/10/11 00:27:04;  author: allender;  state: Exp;
2014 bash free_num_points to 0
2015 ----------------------------
2016 revision 1.3
2017 date: 1995/09/13 11:31:58;  author: allender;  state: Exp;
2018 calc for fCanv_w2 and fCanv_h2
2019 ----------------------------
2020 revision 1.2
2021 date: 1995/06/25 21:57:57;  author: allender;  state: Exp;
2022 *** empty log message ***
2023 ----------------------------
2024 revision 1.1
2025 date: 1995/05/05 08:52:54;  author: allender;  state: Exp;
2026 Initial revision
2027 ----------------------------
2028 revision 1.1
2029 date: 1995/04/17 03:59:01;  author: matt;  state: Exp;
2030 Initial revision
2031 =============================================================================
2032 RCS file: /Smoke/miner/source/appltalk/appltalk.c,v
2033 Working file: appltalk/appltalk.c
2034 head: 1.17
2035 description: Appletalk code for initialization, sending, receiving, etc.
2036 ----------------------------
2037 revision 1.17
2038 date: 1995/10/18 17:13:12;  author: allender;  state: Exp;
2039 lock down all appletalk stuff
2040 ----------------------------
2041 revision 1.16
2042 date: 1995/10/11 01:00:10;  author: allender;  state: Exp;
2043 new implementation of get_zone_names
2044 ----------------------------
2045 revision 1.15
2046 date: 1995/10/05 09:28:44;  author: allender;  state: Exp;
2047 increased the MAX_APPLETALK_BUFS to 128...there appeared to be crashes
2048 related to running out of queue elements in the free queue for the
2049 socket listener
2050 ----------------------------
2051 revision 1.14
2052 date: 1995/09/23 09:37:16;  author: allender;  state: Exp;
2053 removed 'free' call on string that didn't need to be freed
2054 try and handle NULL zone names properly...does this happen?
2055 ----------------------------
2056 revision 1.13
2057 date: 1995/09/21 14:30:58;  author: allender;  state: Exp;
2058 attemp to release NBP binding when registering new game
2059 ----------------------------
2060 revision 1.12
2061 date: 1995/09/21 12:57:29;  author: allender;  state: Exp;
2062 use two sockets for appletalk: reading and writing to try
2063 and reduce time spent in socket code.  Added DDP packet type
2064 for Descent appletalk packets
2065 ----------------------------
2066 revision 1.11
2067 date: 1995/09/19 11:45:36;  author: allender;  state: Exp;
2068 don't free pointer after c2pstr
2069 ----------------------------
2070 revision 1.10
2071 date: 1995/09/18 08:04:33;  author: allender;  state: Exp;
2072 fixed problem with getting zone names (duplictates
2073 and missing ones).  Added function to get my zone name
2074 ----------------------------
2075 revision 1.9
2076 date: 1995/09/13 08:40:52;  author: allender;  state: Exp;
2077 removed Warning statements, and beefed up return values.  Call routine
2078 ...use variable instead of function to check for vm
2079 ----------------------------
2080 revision 1.8
2081 date: 1995/08/31 11:49:29;  author: allender;  state: Exp;
2082 close socket in appletalk_close()  (DOH!!!)
2083 ----------------------------
2084 revision 1.7
2085 date: 1995/08/31 10:33:57;  author: allender;  state: Exp;
2086 do_make
2087 cd ::network
2088 open network.c
2089 open network.c
2090 ----------------------------
2091 revision 1.6
2092 date: 1995/08/31 10:02:38;  author: allender;  state: Exp;
2093 create seperate data area for queue buffers as opposed
2094 to packet buffers to fix nasty bug.
2095 ----------------------------
2096 revision 1.5
2097 date: 1995/08/31 07:50:14;  author: allender;  state: Exp;
2098 put in Int3's for debugging
2099 ----------------------------
2100 revision 1.4
2101 date: 1995/08/30 19:56:59;  author: allender;  state: Exp;
2102 fixed possible signed/unsigned problem with GetNodeAddress
2103 ----------------------------
2104 revision 1.3
2105 date: 1995/08/30 17:13:59;  author: allender;  state: Exp;
2106 fix up packet pitching again!!!
2107 ----------------------------
2108 revision 1.2
2109 date: 1995/08/30 16:58:08;  author: allender;  state: Exp;
2110 fix packet get to pitch packets sent from myself.  NPBExtract
2111 needs indices from 1, not 0
2112 ----------------------------
2113 revision 1.1
2114 date: 1995/08/30 16:10:48;  author: allender;  state: Exp;
2115 Initial revision
2116  Initialize appletalk.  Make the appropriate checks to be sure that the correct
2117  version of appletalk is available, and that appletalk is active.  Returns 0 if
2118  appletalk initialized okay, -1 if something is amuk.
2119 =============================================================================
2120 RCS file: /Smoke/miner/source/appltalk/appltalk.h,v
2121 Working file: appltalk/appltalk.h
2122 head: 1.5
2123 description:  header file which defines appletalk constants and structures
2124 ----------------------------
2125 revision 1.5
2126 date: 1995/10/11 01:00:31;  author: allender;  state: Exp;
2127 changed prototype for get_zone_names
2128 ----------------------------
2129 revision 1.4
2130 date: 1995/09/18 08:05:06;  author: allender;  state: Exp;
2131 added function to get my zone name
2132 ----------------------------
2133 revision 1.3
2134 date: 1995/09/12 09:19:36;  author: allender;  state: Exp;
2135 added value to register netgame to help avoid name conflicts
2136 ----------------------------
2137 revision 1.2
2138 date: 1995/09/08 17:14:15;  author: allender;  state: Exp;
2139 fixed typedefs for 68K build
2140 ----------------------------
2141 revision 1.1
2142 date: 1995/08/30 16:10:54;  author: allender;  state: Exp;
2143 Initial revision
2144 =============================================================================
2145 RCS file: /Smoke/miner/source/bios/debug.c,v
2146 Working file: bios/debug.c
2147 head: 1.2
2148 description: Header for monochrome/mprintf functions
2149 ----------------------------
2150 revision 1.2
2151 date: 1995/06/16 15:28:57;  author: allender;  state: Exp;
2152 fixed "unused" pragma
2153 ----------------------------
2154 revision 1.1
2155 date: 1995/05/05 09:54:14;  author: allender;  state: Exp;
2156 Initial revision
2157 =============================================================================
2158 RCS file: /Smoke/miner/source/bios/gtimer.h,v
2159 Working file: bios/gtimer.h
2160 head: 1.2
2161 description: Header for timer functions
2162 ----------------------------
2163 revision 1.2
2164 date: 1995/05/11 13:04:25;  author: allender;  state: Exp;
2165 no a5 references if under powerPC code
2166 ----------------------------
2167 revision 1.1
2168 date: 1995/05/05 09:31:09;  author: allender;  state: Exp;
2169 Initial revision
2170 ----------------------------
2171 revision 1.1
2172 date: 1995/03/21 13:32:43;  author: allender;  state: Exp;
2173 Initial revision
2174 ----------------------------
2175 revision 1.5
2176 date: 1994/11/15 12:04:15;  author: john;  state: Exp;
2177 Cleaned up timer code a bit... took out unused functions
2178 like timer_get_milliseconds, etc.
2179 ----------------------------
2180 revision 1.4
2181 date: 1994/04/28 23:50:08;  author: john;  state: Exp;
2182 Changed calling for init_timer.  Made the function that the
2183 timer calls be a far function. All of this was done to make
2184 our timer system compatible with the HMI sound stuff.
2185 ----------------------------
2186 revision 1.3
2187 date: 1994/02/17 15:57:12;  author: john;  state: Exp;
2188 Changed key libary to C.
2189 ----------------------------
2190 revision 1.2
2191 date: 1994/01/18 10:58:34;  author: john;  state: Exp;
2192 Added timer_get_fixed_seconds
2193 ----------------------------
2194 revision 1.1
2195 date: 1993/07/10 13:10:41;  author: matt;  state: Exp;
2196 Initial revision
2197 =============================================================================
2198 RCS file: /Smoke/miner/source/bios/joy.h,v
2199 Working file: bios/joy.h
2200 head: 1.4
2201 description: Headers for joystick functions
2202 ----------------------------
2203 revision 1.4
2204 date: 1995/10/17 15:36:25;  author: allender;  state: Exp;
2205 flightstick pro code removed
2206 ----------------------------
2207 revision 1.3
2208 date: 1995/08/18 10:17:25;  author: allender;  state: Exp;
2209 new functions and structures for joystick reading
2210 ----------------------------
2211 revision 1.2
2212 date: 1995/05/05 16:34:05;  author: allender;  state: Exp;
2213 changes types.h to dtypes.h
2214 ----------------------------
2215 revision 1.1
2216 date: 1995/05/05 09:30:03;  author: allender;  state: Exp;
2217 Initial revision
2218 ----------------------------
2219 revision 1.16
2220 date: 1995/02/14 11:17:13;  author: john;  state: Exp;
2221 Added BIOS readings for stick.
2222 ----------------------------
2223 revision 1.15
2224 date: 1995/02/14 10:09:58;  author: john;  state: Exp;
2225 Added OS2 switch.
2226 ----------------------------
2227 revision 1.14
2228 date: 1994/12/28 13:49:20;  author: john;  state: Exp;
2229 Added function to set joystick for slow reading
2230 ----------------------------
2231 revision 1.13
2232 date: 1994/10/13 11:36:06;  author: john;  state: Exp;
2233 Made joy_down_time be kept track of in fixed seconds,
2234 not ticks.
2235 ----------------------------
2236 revision 1.12
2237 date: 1994/10/12 17:03:16;  author: john;  state: Exp;
2238 Added prototype for joy_get_scaled_reading.
2239 ----------------------------
2240 revision 1.11
2241 date: 1994/10/12 16:57:55;  author: john;  state: Exp;
2242 Added function to set a joystick button's state.
2243 ----------------------------
2244 revision 1.10
2245 date: 1994/09/22 16:09:00;  author: john;  state: Exp;
2246 Fixed some virtual memory lockdown problems with timer and
2247 joystick.
2248 ----------------------------
2249 revision 1.9
2250 date: 1994/08/31 09:54:57;  author: john;  state: Exp;
2251 *** empty log message ***
2252 ----------------------------
2253 revision 1.8
2254 date: 1994/08/29 21:02:24;  author: john;  state: Exp;
2255 Added joy_set_cal_values...
2256 ----------------------------
2257 revision 1.7
2258 date: 1994/08/29 20:51:52;  author: john;  state: Exp;
2259 Added better cyberman support; also, joystick calibration
2260 value return funcctiionn,
2261 ----------------------------
2262 revision 1.6
2263 date: 1994/07/01 10:55:44;  author: john;  state: Exp;
2264 Fixed some bugs... added support for 4 axis.
2265 ----------------------------
2266 revision 1.5
2267 date: 1994/06/30 20:36:51;  author: john;  state: Exp;
2268 Revamped joystick code.
2269 ----------------------------
2270 revision 1.4
2271 date: 1994/04/22 12:52:10;  author: john;  state: Exp;
2272 *** empty log message ***
2273 ----------------------------
2274 revision 1.3
2275 date: 1994/01/18 13:53:39;  author: john;  state: Exp;
2276 Made all joystick functions return int's instead of
2277 shorts.  Also made the stick reading be CPU speed
2278 independant by using the timer_get_Stamp_64 
2279 function.
2280 ----------------------------
2281 revision 1.2
2282 date: 1994/01/18 10:58:42;  author: john;  state: Exp;
2283 *** empty log message ***
2284 ----------------------------
2285 revision 1.1
2286 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
2287 Initial revision
2288 =============================================================================
2289 RCS file: /Smoke/miner/source/bios/joyc.c,v
2290 Working file: bios/joyc.c
2291 head: 1.6
2292 description: Routines for joystick reading.
2293 ----------------------------
2294 revision 1.6
2295 date: 1995/10/30 11:10:44;  author: allender;  state: Exp;
2296 lock down adb structures for stick info to try and get by
2297 VM bug in 7.5 -- not quite yet though
2298 ----------------------------
2299 revision 1.5
2300 date: 1995/10/17 15:36:05;  author: allender;  state: Exp;
2301 new joystick code ala Dave D w/o Flightstick pro support
2302 ----------------------------
2303 revision 1.4
2304 date: 1995/08/18 10:16:48;  author: allender;  state: Exp;
2305 put back in some joystick functions -- added support
2306 for thrustmaster stick direct reading of axis
2307 ----------------------------
2308 revision 1.3
2309 date: 1995/07/26 16:58:17;  author: allender;  state: Exp;
2310 get coords right for joystick
2311 ----------------------------
2312 revision 1.2
2313 date: 1995/06/25 21:56:04;  author: allender;  state: Exp;
2314 removed and modified joy handling routines for the mac
2315 ----------------------------
2316 revision 1.1
2317 date: 1995/05/05 09:55:34;  author: allender;  state: Exp;
2318 Initial revision
2319 ----------------------------
2320 revision 1.32
2321 date: 1995/01/12 13:16:40;  author: john;  state: Exp;
2322 Made it so that joystick can't lose an axis
2323 by 1 weird reading. Reading has to occurr during
2324 calibration for this to happen.
2325 ----------------------------
2326 revision 1.31
2327 date: 1994/12/28 15:56:03;  author: john;  state: Exp;
2328 Fixed bug that refused to read joysticks whose 
2329 min,cen,max were less than 100 apart.
2330 ----------------------------
2331 revision 1.30
2332 date: 1994/12/28 15:31:53;  author: john;  state: Exp;
2333 Added code to read joystick axis not all at one time.
2334 ----------------------------
2335 revision 1.29
2336 date: 1994/12/27 15:44:36;  author: john;  state: Exp;
2337 Made the joystick timeout be at 1/100th of a second, 
2338 regardless of CPU speed.
2339 ----------------------------
2340 revision 1.28
2341 date: 1994/12/04 11:54:54;  author: john;  state: Exp;
2342 Made stick read at whatever rate the clock is at, not
2343 at 18.2 times/second.
2344 ----------------------------
2345 revision 1.27
2346 date: 1994/11/29 02:25:40;  author: john;  state: Exp;
2347 Made it so that the scaled reading returns 0 
2348 if the calibration factors look funny..
2349 ----------------------------
2350 revision 1.26
2351 date: 1994/11/22 11:08:07;  author: john;  state: Exp;
2352 Commented out the ARCADE joystick.
2353 ----------------------------
2354 revision 1.25
2355 date: 1994/11/14 19:40:26;  author: john;  state: Exp;
2356 Fixed bug with no joystick being detected.
2357 ----------------------------
2358 revision 1.24
2359 date: 1994/11/14 19:36:40;  author: john;  state: Exp;
2360 Took out initial cheapy calibration.
2361 ----------------------------
2362 revision 1.23
2363 date: 1994/11/14 19:13:27;  author: john;  state: Exp;
2364 Took out the calibration in joy_init
2365 ----------------------------
2366 revision 1.22
2367 date: 1994/10/17 10:09:57;  author: john;  state: Exp;
2368 Made the state look at last_State, so that a joy_flush
2369 doesn't cause a new down state to be added next reading.
2370 ----------------------------
2371 revision 1.21
2372 date: 1994/10/13 11:36:23;  author: john;  state: Exp;
2373 Made joy_down_time be kept track of in fixed seconds,
2374 not ticks.
2375 ----------------------------
2376 revision 1.20
2377 date: 1994/10/12 16:58:50;  author: john;  state: Exp;
2378 Fixed bug w/ previous comment.
2379 ----------------------------
2380 revision 1.19
2381 date: 1994/10/12 16:57:44;  author: john;  state: Exp;
2382 Added function to set a joystick button's state.
2383 ----------------------------
2384 revision 1.18
2385 date: 1994/10/11 10:20:13;  author: john;  state: Exp;
2386 Fixed Flightstick Pro/
2387 ..
2388 ----------------------------
2389 revision 1.17
2390 date: 1994/09/29 18:29:20;  author: john;  state: Exp;
2391 *** empty log message ***
2392 ----------------------------
2393 revision 1.16
2394 date: 1994/09/27 19:17:23;  author: john;  state: Exp;
2395 Added code so that is joy_init is never called, joystick is not
2396 used at all.
2397 ----------------------------
2398 revision 1.15
2399 date: 1994/09/22 16:09:23;  author: john;  state: Exp;
2400 Fixed some virtual memory lockdown problems with timer and
2401 joystick.
2402 ----------------------------
2403 revision 1.14
2404 date: 1994/09/16 11:44:42;  author: john;  state: Exp;
2405 Fixed bug with slow joystick.
2406 ----------------------------
2407 revision 1.13
2408 date: 1994/09/16 11:36:15;  author: john;  state: Exp;
2409 Fixed bug with reading non-present channels.
2410 ----------------------------
2411 revision 1.12
2412 date: 1994/09/15 20:52:48;  author: john;  state: Exp;
2413 rme john
2414 Added support for the Arcade style joystick.
2415 ----------------------------
2416 revision 1.11
2417 date: 1994/09/13 20:04:49;  author: john;  state: Exp;
2418 Fixed bug with joystick button down_time.
2419 ----------------------------
2420 revision 1.10
2421 date: 1994/09/10 13:48:07;  author: john;  state: Exp;
2422 Made all 20 buttons read.
2423 ----------------------------
2424 revision 1.9
2425 date: 1994/08/31 09:55:02;  author: john;  state: Exp;
2426 *** empty log message ***
2427 ----------------------------
2428 revision 1.8
2429 date: 1994/08/29 21:02:14;  author: john;  state: Exp;
2430 Added joy_set_cal_values...
2431 ----------------------------
2432 revision 1.7
2433 date: 1994/08/29 20:52:17;  author: john;  state: Exp;
2434 Added better cyberman support; also, joystick calibration
2435 value return funcctiionn,
2436 ----------------------------
2437 revision 1.6
2438 date: 1994/08/24 18:53:12;  author: john;  state: Exp;
2439 Made Cyberman read like normal mouse; added dpmi module; moved
2440 mouse from assembly to c. Made mouse buttons return time_down.
2441 ----------------------------
2442 revision 1.5
2443 date: 1994/07/14 22:12:23;  author: john;  state: Exp;
2444 Used intrinsic forms of outp to fix vmm error.
2445 ----------------------------
2446 revision 1.4
2447 date: 1994/07/07 19:52:59;  author: matt;  state: Exp;
2448 Made joy_init() return success/fail flag
2449 Made joy_init() properly detect a stick if one is plugged in after joy_init()
2450 was called the first time.
2451 ----------------------------
2452 revision 1.3
2453 date: 1994/07/01 10:55:55;  author: john;  state: Exp;
2454 Fixed some bugs... added support for 4 axis.
2455 ----------------------------
2456 revision 1.2
2457 date: 1994/06/30 20:36:55;  author: john;  state: Exp;
2458 Revamped joystick code.
2459 ----------------------------
2460 revision 1.1
2461 date: 1994/06/30 15:42:15;  author: john;  state: Exp;
2462 Initial revision
2463 =============================================================================
2464 RCS file: /Smoke/miner/source/bios/key.c,v
2465 Working file: bios/key.c
2466 head: 1.19
2467 description: Functions for keyboard handler.
2468 ----------------------------
2469 revision 1.19
2470 date: 1995/11/14 14:23:17;  author: allender;  state: Exp;
2471 reallocate UPP when initing keyboard
2472 ----------------------------
2473 revision 1.18
2474 date: 1995/10/21 23:47:49;  author: allender;  state: Exp;
2475 call GetOSEvent with all events -- screwed up thrustmaster stuff
2476 ----------------------------
2477 revision 1.17
2478 date: 1995/10/17 15:35:45;  author: allender;  state: Exp;
2479 only get keyup and keydown events in GetOSEvent
2480 ----------------------------
2481 revision 1.16
2482 date: 1995/09/06 13:08:31;  author: allender;  state: Exp;
2483 fixed command modifier for keys
2484 ----------------------------
2485 revision 1.15
2486 date: 1995/08/25 11:06:43;  author: allender;  state: Exp;
2487 changed handler to key apprpriate track of time keys held down
2488 ----------------------------
2489 revision 1.14
2490 date: 1995/08/25 09:38:36;  author: allender;  state: Exp;
2491 installed handler in key_inkey_time when not installed
2492 ----------------------------
2493 revision 1.13
2494 date: 1995/08/18 10:15:52;  author: allender;  state: Exp;
2495 use vbl interrupt for keyboard handler to get keystrokes
2496 more often because of high frame rate
2497 ----------------------------
2498 revision 1.12
2499 date: 1995/07/26 16:57:35;  author: allender;  state: Exp;
2500 new style keyboard handler using getOSEvent ala DF
2501 ----------------------------
2502 revision 1.11
2503 date: 1995/07/13 15:11:25;  author: allender;  state: Exp;
2504 fixed totally bogus key_shifted array
2505 ----------------------------
2506 revision 1.10
2507 date: 1995/07/13 11:24:23;  author: allender;  state: Exp;
2508 trap checking for scancodes at 128 and not 256
2509 ----------------------------
2510 revision 1.9
2511 date: 1995/05/15 13:55:40;  author: allender;  state: Exp;
2512 change prototypes for keyboard_proc
2513 ----------------------------
2514 revision 1.8
2515 date: 1995/05/12 14:54:09;  author: allender;  state: Exp;
2516 make key_to_ascii returned unsigned char instead of char
2517 ----------------------------
2518 revision 1.7
2519 date: 1995/05/12 12:19:13;  author: allender;  state: Exp;
2520 added call to mouse handler to get button pressed during
2521 interrupt time
2522 ----------------------------
2523 revision 1.6
2524 date: 1995/05/11 13:04:44;  author: allender;  state: Exp;
2525 fixed keyboard handling.   Removed gestalt handing -- should be in
2526 macinit
2527 ----------------------------
2528 revision 1.5
2529 date: 1995/05/04 20:02:43;  author: allender;  state: Exp;
2530 still working
2531 ----------------------------
2532 revision 1.4
2533 date: 1995/04/05 13:49:48;  author: allender;  state: Exp;
2534 *** empty log message ***
2535 ----------------------------
2536 revision 1.3
2537 date: 1995/03/21 13:39:51;  author: allender;  state: Exp;
2538 *** empty log message ***
2539 ----------------------------
2540 revision 1.2
2541 date: 1995/03/21 13:28:11;  author: allender;  state: Exp;
2542 *** empty log message ***
2543 ----------------------------
2544 revision 1.1
2545 date: 1995/03/09 09:32:25;  author: allender;  state: Exp;
2546 Initial revision
2547 ----------------------------
2548 revision 1.34
2549 date: 1995/01/14 19:19:31;  author: john;  state: Exp;
2550 Made so when you press Shift+Baskspace, it release keys autmatically.
2551 ----------------------------
2552 revision 1.33
2553 date: 1994/12/13 09:21:48;  author: john;  state: Exp;
2554 Took out keyd_editor_mode, and KEY_DEBUGGED stuff for NDEBUG versions.
2555 ----------------------------
2556 revision 1.32
2557 date: 1994/11/12 13:52:01;  author: john;  state: Exp;
2558 Fixed bug with code that cleared bios buffer.
2559 ----------------------------
2560 revision 1.31
2561 date: 1994/10/24 15:16:16;  author: john;  state: Exp;
2562 Added code to detect KEY_PAUSE.
2563 ----------------------------
2564 revision 1.30
2565 date: 1994/10/24 13:57:53;  author: john;  state: Exp;
2566 Hacked in support for pause key onto code 0x61.
2567 ----------------------------
2568 revision 1.29
2569 date: 1994/10/21 15:18:13;  author: john;  state: Exp;
2570 *** empty log message ***
2571 ----------------------------
2572 revision 1.28
2573 date: 1994/10/21 15:17:24;  author: john;  state: Exp;
2574 Made LSHIFT+BACKSPACE do what PrtScr used to.
2575 ----------------------------
2576 revision 1.27
2577 date: 1994/09/22 16:09:18;  author: john;  state: Exp;
2578 Fixed some virtual memory lockdown problems with timer and
2579 joystick.
2580 ----------------------------
2581 revision 1.26
2582 date: 1994/09/15 21:32:47;  author: john;  state: Exp;
2583 Added bounds checking for down_count scancode
2584 parameter.
2585 ----------------------------
2586 revision 1.25
2587 date: 1994/08/31 12:22:20;  author: john;  state: Exp;
2588 Added KEY_DEBUGGED
2589 ----------------------------
2590 revision 1.24
2591 date: 1994/08/24 18:53:48;  author: john;  state: Exp;
2592 Made Cyberman read like normal mouse; added dpmi module; moved
2593 mouse from assembly to c. Made mouse buttons return time_down.
2594 ----------------------------
2595 revision 1.23
2596 date: 1994/08/18 15:17:51;  author: john;  state: Exp;
2597 *** empty log message ***
2598 ----------------------------
2599 revision 1.22
2600 date: 1994/08/18 15:16:38;  author: john;  state: Exp;
2601 fixed some bugs with clear_key_times and then
2602 removed it because i fixed key_flush to do the
2603 same.
2604 ----------------------------
2605 revision 1.21
2606 date: 1994/08/17 19:01:25;  author: john;  state: Exp;
2607 Attempted to fix a bug with a key being held down
2608 key_flush called, then the key released having too 
2609 long of a time.
2610 ----------------------------
2611 revision 1.20
2612 date: 1994/08/08 10:43:48;  author: john;  state: Exp;
2613 Recorded when a key was pressed for key_inkey_time.
2614 ----------------------------
2615 revision 1.19
2616 date: 1994/06/22 15:00:03;  author: john;  state: Exp;
2617 Made keyboard close automatically on exit.
2618 ----------------------------
2619 revision 1.18
2620 date: 1994/06/21 09:16:29;  author: john;  state: Exp;
2621 *** empty log message ***
2622 ----------------------------
2623 revision 1.17
2624 date: 1994/06/21 09:08:23;  author: john;  state: Exp;
2625 *** empty log message ***
2626 ----------------------------
2627 revision 1.16
2628 date: 1994/06/21 09:05:01;  author: john;  state: Exp;
2629 *** empty log message ***
2630 ----------------------------
2631 revision 1.15
2632 date: 1994/06/21 09:04:24;  author: john;  state: Exp;
2633 Made PrtScreen do an int5
2634 ----------------------------
2635 revision 1.14
2636 date: 1994/06/17 17:17:06;  author: john;  state: Exp;
2637 Added keyd_time_last_key_was_pressed or something like that.
2638 ----------------------------
2639 revision 1.13
2640 date: 1994/05/14 13:55:16;  author: matt;  state: Exp;
2641 Added #define to control key passing to bios
2642 ----------------------------
2643 revision 1.12
2644 date: 1994/05/05 18:09:39;  author: john;  state: Exp;
2645 Took out BIOS to prevent stuck keys.
2646 ----------------------------
2647 revision 1.11
2648 date: 1994/05/03 17:39:12;  author: john;  state: Exp;
2649 *** empty log message ***
2650 ----------------------------
2651 revision 1.10
2652 date: 1994/04/29 12:14:20;  author: john;  state: Exp;
2653 Locked all memory used during interrupts so that program
2654 won't hang when using virtual memory.
2655 ----------------------------
2656 revision 1.9
2657 date: 1994/04/28 23:49:41;  author: john;  state: Exp;
2658 Made key_flush flush more keys and also did something else but i forget what.
2659 ----------------------------
2660 revision 1.8
2661 date: 1994/04/22 12:52:12;  author: john;  state: Exp;
2662 *** empty log message ***
2663 ----------------------------
2664 revision 1.7
2665 date: 1994/04/01 10:44:59;  author: mike;  state: Exp;
2666 Change key_getch() to call getch() if our interrupt hasn't been installed.
2667 ----------------------------
2668 revision 1.6
2669 date: 1994/03/09 10:45:48;  author: john;  state: Exp;
2670 Neatend code a bit.
2671 ----------------------------
2672 revision 1.5
2673 date: 1994/02/17 17:24:16;  author: john;  state: Exp;
2674 Neatened up a bit.
2675 ----------------------------
2676 revision 1.4
2677 date: 1994/02/17 16:30:29;  author: john;  state: Exp;
2678 Put in code to pass keys when in debugger.
2679 ----------------------------
2680 revision 1.3
2681 date: 1994/02/17 15:57:59;  author: john;  state: Exp;
2682 Made handler not chain to BIOS handler.
2683 ----------------------------
2684 revision 1.2
2685 date: 1994/02/17 15:56:06;  author: john;  state: Exp;
2686 Initial version.
2687 ----------------------------
2688 revision 1.1
2689 date: 1994/02/17 15:54:07;  author: john;  state: Exp;
2690 Initial revision
2691 =============================================================================
2692 RCS file: /Smoke/miner/source/bios/key.h,v
2693 Working file: bios/key.h
2694 head: 1.9
2695 description: Header for keyboard functions
2696 ----------------------------
2697 revision 1.9
2698 date: 1995/09/06 13:08:42;  author: allender;  state: Exp;
2699 fixed command modifier
2700 ----------------------------
2701 revision 1.8
2702 date: 1995/07/26 16:57:57;  author: allender;  state: Exp;
2703 added command key to key list
2704 ----------------------------
2705 revision 1.7
2706 date: 1995/05/12 14:53:58;  author: allender;  state: Exp;
2707 changed key_to_ascii to return unsigned char now!
2708 ----------------------------
2709 revision 1.6
2710 date: 1995/05/12 14:49:38;  author: allender;  state: Exp;
2711 changed prototype of key_to_ascii to return int instead of
2712 char
2713 ----------------------------
2714 revision 1.5
2715 date: 1995/05/11 13:05:09;  author: allender;  state: Exp;
2716 remove a5 references for powerPC
2717 ----------------------------
2718 revision 1.4
2719 date: 1995/05/05 16:34:32;  author: allender;  state: Exp;
2720 hanges types.h to dtypes.h
2721 ----------------------------
2722 revision 1.3
2723 date: 1995/04/05 11:41:13;  author: allender;  state: Exp;
2724 *** empty log message ***
2725 ----------------------------
2726 revision 1.2
2727 date: 1995/03/27 14:53:26;  author: allender;  state: Exp;
2728 *** empty log message ***
2729 ----------------------------
2730 revision 1.1
2731 date: 1995/03/09 09:32:51;  author: allender;  state: Exp;
2732 Initial revision
2733 ----------------------------
2734 revision 1.19
2735 date: 1994/10/24 13:58:12;  author: john;  state: Exp;
2736 Hacked in support for pause key onto code 0x61.
2737 ----------------------------
2738 revision 1.18
2739 date: 1994/10/21 15:17:10;  author: john;  state: Exp;
2740 Added KEY_PRINT_SCREEN
2741 ----------------------------
2742 revision 1.17
2743 date: 1994/08/31 12:22:13;  author: john;  state: Exp;
2744 Added KEY_DEBUGGED
2745 ----------------------------
2746 revision 1.16
2747 date: 1994/08/24 18:53:50;  author: john;  state: Exp;
2748 Made Cyberman read like normal mouse; added dpmi module; moved
2749 mouse from assembly to c. Made mouse buttons return time_down.
2750 ----------------------------
2751 revision 1.15
2752 date: 1994/08/18 14:56:16;  author: john;  state: Exp;
2753 *** empty log message ***
2754 ----------------------------
2755 revision 1.14
2756 date: 1994/08/08 10:43:24;  author: john;  state: Exp;
2757 Recorded when a key was pressed for key_inkey_time.
2758 ----------------------------
2759 revision 1.13
2760 date: 1994/06/17 17:17:28;  author: john;  state: Exp;
2761 Added keyd_time_last_key_was_pressed or something like that.
2762 ----------------------------
2763 revision 1.12
2764 date: 1994/04/29 12:14:19;  author: john;  state: Exp;
2765 Locked all memory used during interrupts so that program
2766 won't hang when using virtual memory.
2767 ----------------------------
2768 revision 1.11
2769 date: 1994/02/17 15:57:14;  author: john;  state: Exp;
2770 Changed key libary to C.
2771 ----------------------------
2772 revision 1.10
2773 date: 1994/01/31 08:34:09;  author: john;  state: Exp;
2774 Fixed reversed lshift/rshift keys.
2775 ----------------------------
2776 revision 1.9
2777 date: 1994/01/18 10:58:17;  author: john;  state: Exp;
2778 *** empty log message ***
2779 ----------------------------
2780 revision 1.8
2781 date: 1993/10/16 19:24:43;  author: matt;  state: Exp;
2782 Added new function key_clear_times() & key_clear_counts()
2783 ----------------------------
2784 revision 1.7
2785 date: 1993/10/15 10:17:09;  author: john;  state: Exp;
2786 added keyd_last_key_pressed and released for use with recorder.
2787 ----------------------------
2788 revision 1.6
2789 date: 1993/10/06 16:20:37;  author: john;  state: Exp;
2790 fixed down arrow bug
2791 ----------------------------
2792 revision 1.5
2793 date: 1993/10/04 13:26:42;  author: john;  state: Exp;
2794 changed the #defines for scan codes.
2795 ----------------------------
2796 revision 1.4
2797 date: 1993/09/28 11:35:20;  author: john;  state: Exp;
2798 added key_peekkey
2799 ----------------------------
2800 revision 1.3
2801 date: 1993/09/20 18:36:43;  author: john;  state: Exp;
2802 *** empty log message ***
2803 ----------------------------
2804 revision 1.1
2805 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
2806 Initial revision
2807 =============================================================================
2808 RCS file: /Buggin/miner/source/bios/key.c,v
2809 Working file: bios/key.c
2810 head: 1.11
2811 description: Functions for keyboard handler.
2812 ----------------------------
2813 revision 1.11
2814 date: 1995/07/13 15:11:25;  author: allender;  state: Exp;
2815 fixed totally bogus key_shifted array
2816 ----------------------------
2817 revision 1.10
2818 date: 1995/07/13 11:24:23;  author: allender;  state: Exp;
2819 trap checking for scancodes at 128 and not 256
2820 ----------------------------
2821 revision 1.9
2822 date: 1995/05/15 13:55:40;  author: allender;  state: Exp;
2823 change prototypes for keyboard_proc
2824 ----------------------------
2825 revision 1.8
2826 date: 1995/05/12 14:54:09;  author: allender;  state: Exp;
2827 make key_to_ascii returned unsigned char instead of char
2828 ----------------------------
2829 revision 1.7
2830 date: 1995/05/12 12:19:13;  author: allender;  state: Exp;
2831 added call to mouse handler to get button pressed during
2832 interrupt time
2833 ----------------------------
2834 revision 1.6
2835 date: 1995/05/11 13:04:44;  author: allender;  state: Exp;
2836 fixed keyboard handling.   Removed gestalt handing -- should be in
2837 macinit
2838 ----------------------------
2839 revision 1.5
2840 date: 1995/05/04 20:02:43;  author: allender;  state: Exp;
2841 still working
2842 ----------------------------
2843 revision 1.4
2844 date: 1995/04/05 13:49:48;  author: allender;  state: Exp;
2845 *** empty log message ***
2846 ----------------------------
2847 revision 1.3
2848 date: 1995/03/21 13:39:51;  author: allender;  state: Exp;
2849 *** empty log message ***
2850 ----------------------------
2851 revision 1.2
2852 date: 1995/03/21 13:28:11;  author: allender;  state: Exp;
2853 *** empty log message ***
2854 ----------------------------
2855 revision 1.1
2856 date: 1995/03/09 09:32:25;  author: allender;  state: Exp;
2857 Initial revision
2858 ----------------------------
2859 revision 1.34
2860 date: 1995/01/14 19:19:31;  author: john;  state: Exp;
2861 Made so when you press Shift+Baskspace, it release keys autmatically.
2862 ----------------------------
2863 revision 1.33
2864 date: 1994/12/13 09:21:48;  author: john;  state: Exp;
2865 Took out keyd_editor_mode, and KEY_DEBUGGED stuff for NDEBUG versions.
2866 ----------------------------
2867 revision 1.32
2868 date: 1994/11/12 13:52:01;  author: john;  state: Exp;
2869 Fixed bug with code that cleared bios buffer.
2870 ----------------------------
2871 revision 1.31
2872 date: 1994/10/24 15:16:16;  author: john;  state: Exp;
2873 Added code to detect KEY_PAUSE.
2874 ----------------------------
2875 revision 1.30
2876 date: 1994/10/24 13:57:53;  author: john;  state: Exp;
2877 Hacked in support for pause key onto code 0x61.
2878 ----------------------------
2879 revision 1.29
2880 date: 1994/10/21 15:18:13;  author: john;  state: Exp;
2881 *** empty log message ***
2882 ----------------------------
2883 revision 1.28
2884 date: 1994/10/21 15:17:24;  author: john;  state: Exp;
2885 Made LSHIFT+BACKSPACE do what PrtScr used to.
2886 ----------------------------
2887 revision 1.27
2888 date: 1994/09/22 16:09:18;  author: john;  state: Exp;
2889 Fixed some virtual memory lockdown problems with timer and
2890 joystick.
2891 ----------------------------
2892 revision 1.26
2893 date: 1994/09/15 21:32:47;  author: john;  state: Exp;
2894 Added bounds checking for down_count scancode
2895 parameter.
2896 ----------------------------
2897 revision 1.25
2898 date: 1994/08/31 12:22:20;  author: john;  state: Exp;
2899 Added KEY_DEBUGGED
2900 ----------------------------
2901 revision 1.24
2902 date: 1994/08/24 18:53:48;  author: john;  state: Exp;
2903 Made Cyberman read like normal mouse; added dpmi module; moved
2904 mouse from assembly to c. Made mouse buttons return time_down.
2905 ----------------------------
2906 revision 1.23
2907 date: 1994/08/18 15:17:51;  author: john;  state: Exp;
2908 *** empty log message ***
2909 ----------------------------
2910 revision 1.22
2911 date: 1994/08/18 15:16:38;  author: john;  state: Exp;
2912 fixed some bugs with clear_key_times and then
2913 removed it because i fixed key_flush to do the
2914 same.
2915 ----------------------------
2916 revision 1.21
2917 date: 1994/08/17 19:01:25;  author: john;  state: Exp;
2918 Attempted to fix a bug with a key being held down
2919 key_flush called, then the key released having too 
2920 long of a time.
2921 ----------------------------
2922 revision 1.20
2923 date: 1994/08/08 10:43:48;  author: john;  state: Exp;
2924 Recorded when a key was pressed for key_inkey_time.
2925 ----------------------------
2926 revision 1.19
2927 date: 1994/06/22 15:00:03;  author: john;  state: Exp;
2928 Made keyboard close automatically on exit.
2929 ----------------------------
2930 revision 1.18
2931 date: 1994/06/21 09:16:29;  author: john;  state: Exp;
2932 *** empty log message ***
2933 ----------------------------
2934 revision 1.17
2935 date: 1994/06/21 09:08:23;  author: john;  state: Exp;
2936 *** empty log message ***
2937 ----------------------------
2938 revision 1.16
2939 date: 1994/06/21 09:05:01;  author: john;  state: Exp;
2940 *** empty log message ***
2941 ----------------------------
2942 revision 1.15
2943 date: 1994/06/21 09:04:24;  author: john;  state: Exp;
2944 Made PrtScreen do an int5
2945 ----------------------------
2946 revision 1.14
2947 date: 1994/06/17 17:17:06;  author: john;  state: Exp;
2948 Added keyd_time_last_key_was_pressed or something like that.
2949 ----------------------------
2950 revision 1.13
2951 date: 1994/05/14 13:55:16;  author: matt;  state: Exp;
2952 Added #define to control key passing to bios
2953 ----------------------------
2954 revision 1.12
2955 date: 1994/05/05 18:09:39;  author: john;  state: Exp;
2956 Took out BIOS to prevent stuck keys.
2957 ----------------------------
2958 revision 1.11
2959 date: 1994/05/03 17:39:12;  author: john;  state: Exp;
2960 *** empty log message ***
2961 ----------------------------
2962 revision 1.10
2963 date: 1994/04/29 12:14:20;  author: john;  state: Exp;
2964 Locked all memory used during interrupts so that program
2965 won't hang when using virtual memory.
2966 ----------------------------
2967 revision 1.9
2968 date: 1994/04/28 23:49:41;  author: john;  state: Exp;
2969 Made key_flush flush more keys and also did something else but i forget what.
2970 ----------------------------
2971 revision 1.8
2972 date: 1994/04/22 12:52:12;  author: john;  state: Exp;
2973 *** empty log message ***
2974 ----------------------------
2975 revision 1.7
2976 date: 1994/04/01 10:44:59;  author: mike;  state: Exp;
2977 Change key_getch() to call getch() if our interrupt hasn't been installed.
2978 ----------------------------
2979 revision 1.6
2980 date: 1994/03/09 10:45:48;  author: john;  state: Exp;
2981 Neatend code a bit.
2982 ----------------------------
2983 revision 1.5
2984 date: 1994/02/17 17:24:16;  author: john;  state: Exp;
2985 Neatened up a bit.
2986 ----------------------------
2987 revision 1.4
2988 date: 1994/02/17 16:30:29;  author: john;  state: Exp;
2989 Put in code to pass keys when in debugger.
2990 ----------------------------
2991 revision 1.3
2992 date: 1994/02/17 15:57:59;  author: john;  state: Exp;
2993 Made handler not chain to BIOS handler.
2994 ----------------------------
2995 revision 1.2
2996 date: 1994/02/17 15:56:06;  author: john;  state: Exp;
2997 Initial version.
2998 ----------------------------
2999 revision 1.1
3000 date: 1994/02/17 15:54:07;  author: john;  state: Exp;
3001 Initial revision
3002 =============================================================================
3003 RCS file: /Smoke/miner/source/bios/mono.h,v
3004 Working file: bios/mono.h
3005 head: 1.1
3006 description: Header for monochrome/mprintf functions
3007 ----------------------------
3008 revision 1.1
3009 date: 1995/05/05 09:30:23;  author: allender;  state: Exp;
3010 Initial revision
3011 ----------------------------
3012 revision 1.6
3013 date: 1994/12/03 17:07:37;  author: matt;  state: Exp;
3014 Made mono code turn off with either NDEBUG or NMONO
3015 ----------------------------
3016 revision 1.5
3017 date: 1994/11/27 23:07:28;  author: matt;  state: Exp;
3018 Made changes needed to be able to compile out monochrome debugging code
3019 ----------------------------
3020 revision 1.4
3021 date: 1993/12/07 12:33:28;  author: john;  state: Exp;
3022 *** empty log message ***
3023 ----------------------------
3024 revision 1.3
3025 date: 1993/09/14 20:54:50;  author: matt;  state: Exp;
3026 Made minit() check for mono card, return -1 if present, 0 if not
3027 ----------------------------
3028 revision 1.2
3029 date: 1993/07/22 13:05:40;  author: john;  state: Exp;
3030 added macros to print variables
3031 ----------------------------
3032 revision 1.1
3033 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
3034 Initial revision
3035 =============================================================================
3036 RCS file: /BigRed/miner/source/bios/mouse.c,v
3037 Working file: bios/mouse.c
3038 head: 1.8
3039 description: Functions to access Mouse and Cyberman...
3040 ----------------------------
3041 revision 1.8
3042 date: 1996/02/21 13:57:36;  author: allender;  state: Exp;
3043 cursor device manager stuff added here so as not to
3044 rely on InterfaceLib anymore
3045 ----------------------------
3046 revision 1.7
3047 date: 1995/10/17 15:42:21;  author: allender;  state: Exp;
3048 new mouse function to determine single button press
3049 ----------------------------
3050 revision 1.6
3051 date: 1995/10/03 11:27:31;  author: allender;  state: Exp;
3052 fixed up hotspot problems with the mouse on multiple monitors
3053 ----------------------------
3054 revision 1.5
3055 date: 1995/07/13 11:27:08;  author: allender;  state: Exp;
3056 trap button checks at MAX_MOUSE_BUTTONS
3057 ----------------------------
3058 revision 1.4
3059 date: 1995/06/25 21:56:53;  author: allender;  state: Exp;
3060 added events include
3061 ----------------------------
3062 revision 1.3
3063 date: 1995/05/11 17:06:38;  author: allender;  state: Exp;
3064 fixed up mouse routines
3065 ----------------------------
3066 revision 1.2
3067 date: 1995/05/11 13:05:53;  author: allender;  state: Exp;
3068 of mouse handler code
3069 ----------------------------
3070 revision 1.1
3071 date: 1995/05/05 09:54:45;  author: allender;  state: Exp;
3072 Initial revision
3073 ----------------------------
3074 revision 1.9
3075 date: 1995/01/14 19:19:52;  author: john;  state: Exp;
3076 Fixed signed short error cmp with -1 that caused mouse
3077 to break under Watcom 10.0
3078 ----------------------------
3079 revision 1.8
3080 date: 1994/12/27 12:38:23;  author: john;  state: Exp;
3081 Made mouse use temporary dos buffer instead of
3082 allocating its own.
3083 ----------------------------
3084 revision 1.7
3085 date: 1994/12/05 23:54:53;  author: john;  state: Exp;
3086 Fixed bug with mouse_get_delta only returning positive numbers..
3087 ----------------------------
3088 revision 1.6
3089 date: 1994/11/18 23:18:18;  author: john;  state: Exp;
3090 Changed some shorts to ints.
3091 ----------------------------
3092 revision 1.5
3093 date: 1994/09/13 12:34:02;  author: john;  state: Exp;
3094 Added functions to get down count and state.
3095 ----------------------------
3096 revision 1.4
3097 date: 1994/08/29 20:52:19;  author: john;  state: Exp;
3098 Added better cyberman support; also, joystick calibration
3099 value return funcctiionn,
3100 ----------------------------
3101 revision 1.3
3102 date: 1994/08/24 18:54:32;  author: john;  state: Exp;
3103 *** empty log message ***
3104 ----------------------------
3105 revision 1.2
3106 date: 1994/08/24 18:53:46;  author: john;  state: Exp;
3107 Made Cyberman read like normal mouse; added dpmi module; moved
3108 mouse from assembly to c. Made mouse buttons return time_down.
3109 ----------------------------
3110 revision 1.1
3111 date: 1994/08/24 13:56:37;  author: john;  state: Exp;
3112 Initial revision
3113 =============================================================================
3114 RCS file: /Smoke/miner/source/bios/mouse.h,v
3115 Working file: bios/mouse.h
3116 head: 1.2
3117 description: Header for mouse functions
3118 ----------------------------
3119 revision 1.2
3120 date: 1995/10/17 11:31:57;  author: allender;  state: Exp;
3121 added new function to return mouse button state
3122 ----------------------------
3123 revision 1.1
3124 date: 1995/05/05 09:30:33;  author: allender;  state: Exp;
3125 Initial revision
3126 ----------------------------
3127 revision 1.9
3128 date: 1994/11/18 23:18:09;  author: john;  state: Exp;
3129 Changed some shorts to ints.
3130 ----------------------------
3131 revision 1.8
3132 date: 1994/09/13 12:33:49;  author: john;  state: Exp;
3133 Added functions to get down count and state.
3134 ----------------------------
3135 revision 1.7
3136 date: 1994/08/29 20:52:20;  author: john;  state: Exp;
3137 Added better cyberman support; also, joystick calibration
3138 value return funcctiionn,
3139 ----------------------------
3140 revision 1.6
3141 date: 1994/08/24 17:54:35;  author: john;  state: Exp;
3142 *** empty log message ***
3143 ----------------------------
3144 revision 1.5
3145 date: 1994/08/24 17:51:43;  author: john;  state: Exp;
3146 Added transparent cyberman support
3147 ----------------------------
3148 revision 1.4
3149 date: 1993/07/27 09:32:22;  author: john;  state: Exp;
3150 *** empty log message ***
3151 ----------------------------
3152 revision 1.3
3153 date: 1993/07/26 10:46:44;  author: john;  state: Exp;
3154 added definition for mouse_set_pos
3155 ----------------------------
3156 revision 1.2
3157 date: 1993/07/22 13:07:59;  author: john;  state: Exp;
3158 added header for mousesetlimts
3159 ----------------------------
3160 revision 1.1
3161 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
3162 Initial revision
3163 =============================================================================
3164 RCS file: /Smoke/miner/source/bios/timer.c,v
3165 Working file: bios/timer.c
3166 head: 1.7
3167 description: Functions for timers.
3168 ----------------------------
3169 revision 1.7
3170 date: 1995/09/13 08:38:08;  author: allender;  state: Exp;
3171 added control macros and put in correct support for 68k
3172 ----------------------------
3173 revision 1.6
3174 date: 1995/08/31 14:40:09;  author: allender;  state: Exp;
3175 multiply by F1_0/160 instead of dividing
3176 ----------------------------
3177 revision 1.5
3178 date: 1995/05/15 13:55:52;  author: allender;  state: Exp;
3179 change prototype for timer_proc
3180 ----------------------------
3181 revision 1.4
3182 date: 1995/05/11 13:06:07;  author: allender;  state: Exp;
3183 remove a5 references under PowerPC code
3184 ----------------------------
3185 revision 1.3
3186 date: 1995/05/04 20:03:03;  author: allender;  state: Exp;
3187 added two functions, timer_approx_seconds, and delay
3188 ----------------------------
3189 revision 1.2
3190 date: 1995/03/21 13:40:01;  author: allender;  state: Exp;
3191 *** empty log message ***
3192 ----------------------------
3193 revision 1.1
3194 date: 1995/03/21 13:31:33;  author: allender;  state: Exp;
3195 Initial revision
3196 =============================================================================
3197 RCS file: /BigRed/miner/source/cfile/cfile.c,v
3198 Working file: cfile/cfile.c
3199 head: 1.7
3200 description: Functions for accessing compressed files.
3201 ----------------------------
3202 revision 1.7
3203 date: 1995/10/27 15:18:20;  author: allender;  state: Exp;
3204 get back to descent directory before trying to read a hog file
3205 ----------------------------
3206 revision 1.6
3207 date: 1995/10/21 23:48:24;  author: allender;  state: Exp;
3208 hogfile(s) are now in :Data: folder
3209 ----------------------------
3210 revision 1.5
3211 date: 1995/08/14 09:27:31;  author: allender;  state: Exp;
3212 added byteswap header
3213 ----------------------------
3214 revision 1.4
3215 date: 1995/05/12 11:54:33;  author: allender;  state: Exp;
3216 changed memory stuff again
3217 ----------------------------
3218 revision 1.3
3219 date: 1995/05/04 20:03:38;  author: allender;  state: Exp;
3220 added code that was missing...use NewPtr instead of malloc
3221 ----------------------------
3222 revision 1.2
3223 date: 1995/04/03 09:59:49;  author: allender;  state: Exp;
3224 *** empty log message ***
3225 ----------------------------
3226 revision 1.1
3227 date: 1995/03/30 10:25:02;  author: allender;  state: Exp;
3228 Initial revision
3229 ----------------------------
3230 revision 1.24
3231 date: 1995/03/15 14:20:27;  author: john;  state: Exp;
3232 Added critical error checker.
3233 ----------------------------
3234 revision 1.23
3235 date: 1995/03/13 15:16:53;  author: john;  state: Exp;
3236 Added alternate directory stuff.
3237 ----------------------------
3238 revision 1.22
3239 date: 1995/02/09 23:08:47;  author: matt;  state: Exp;
3240 Increased the max number of files in hogfile to 250
3241 ----------------------------
3242 revision 1.21
3243 date: 1995/02/01 20:56:47;  author: john;  state: Exp;
3244 Added cfexist function
3245 ----------------------------
3246 revision 1.20
3247 date: 1995/01/21 17:53:48;  author: john;  state: Exp;
3248 Added alternate pig file thing.
3249 ----------------------------
3250 revision 1.19
3251 date: 1994/12/29 15:10:02;  author: john;  state: Exp;
3252 Increased hogfile max files to 200.
3253 ----------------------------
3254 revision 1.18
3255 date: 1994/12/12 13:20:57;  author: john;  state: Exp;
3256 Made cfile work with fiellentth.
3257 ----------------------------
3258 revision 1.17
3259 date: 1994/12/12 13:14:25;  author: john;  state: Exp;
3260 Made cfiles prefer non-hog files.
3261 ----------------------------
3262 revision 1.16
3263 date: 1994/12/09 18:53:26;  author: john;  state: Exp;
3264 *** empty log message ***
3265 ----------------------------
3266 revision 1.15
3267 date: 1994/12/09 18:52:56;  author: john;  state: Exp;
3268 Took out mem, error checking.
3269 ----------------------------
3270 revision 1.14
3271 date: 1994/12/09 18:10:31;  author: john;  state: Exp;
3272 Speed up cfgets, which was slowing down the reading of
3273 bitmaps.tbl, which was making POF loading look slow.
3274 ----------------------------
3275 revision 1.13
3276 date: 1994/12/09 17:53:51;  author: john;  state: Exp;
3277 Added error checking to number of hogfiles..
3278 ----------------------------
3279 revision 1.12
3280 date: 1994/12/08 19:02:55;  author: john;  state: Exp;
3281 Added cfgets.
3282 ----------------------------
3283 revision 1.11
3284 date: 1994/12/07 21:57:48;  author: john;  state: Exp;
3285 Took out data dir.
3286 ----------------------------
3287 revision 1.10
3288 date: 1994/12/07 21:38:02;  author: john;  state: Exp;
3289 Made cfile not return error..
3290 ----------------------------
3291 revision 1.9
3292 date: 1994/12/07 21:35:34;  author: john;  state: Exp;
3293 Made it read from data directory.
3294 ----------------------------
3295 revision 1.8
3296 date: 1994/12/07 21:33:55;  author: john;  state: Exp;
3297 Stripped out compression stuff...
3298 ----------------------------
3299 revision 1.7
3300 date: 1994/04/13 23:44:59;  author: matt;  state: Exp;
3301 When file cannot be opened, free up the buffer for that file.
3302 ----------------------------
3303 revision 1.6
3304 date: 1994/02/18 12:38:20;  author: john;  state: Exp;
3305 Optimized a bit
3306 ----------------------------
3307 revision 1.5
3308 date: 1994/02/15 18:13:20;  author: john;  state: Exp;
3309 Fixed more bugs.
3310 ----------------------------
3311 revision 1.4
3312 date: 1994/02/15 13:27:58;  author: john;  state: Exp;
3313 Works ok...
3314 ----------------------------
3315 revision 1.3
3316 date: 1994/02/15 12:51:57;  author: john;  state: Exp;
3317 Crappy inbetween version
3318 ----------------------------
3319 revision 1.2
3320 date: 1994/02/14 20:12:29;  author: john;  state: Exp;
3321 First version working with new cfile stuff.
3322 ----------------------------
3323 revision 1.1
3324 date: 1994/02/14 15:51:33;  author: john;  state: Exp;
3325 Initial revision
3326 ----------------------------
3327 revision 1.1
3328 date: 1994/02/10 15:45:12;  author: john;  state: Exp;
3329 Initial revision
3330 =============================================================================
3331 RCS file: /Buggin/miner/source/cfile/cfile.h,v
3332 Working file: cfile/cfile.h
3333 head: 1.1
3334 description: Prototypes for compressed file functions...
3335 ----------------------------
3336 revision 1.1
3337 date: 1995/03/30 10:25:08;  author: allender;  state: Exp;
3338 Initial revision
3339 ----------------------------
3340 revision 1.9
3341 date: 1995/02/01 20:56:40;  author: john;  state: Exp;
3342 Added cfexist function
3343 ----------------------------
3344 revision 1.8
3345 date: 1995/01/21 17:53:41;  author: john;  state: Exp;
3346 Added alternate pig file thing.
3347 ----------------------------
3348 revision 1.7
3349 date: 1994/12/12 13:19:47;  author: john;  state: Exp;
3350 Made cfile work with fiellentth.
3351 ----------------------------
3352 revision 1.6
3353 date: 1994/12/08 19:02:52;  author: john;  state: Exp;
3354 Added cfgets.
3355 ----------------------------
3356 revision 1.5
3357 date: 1994/12/07 21:34:07;  author: john;  state: Exp;
3358 Stripped out compression stuff...
3359 ----------------------------
3360 revision 1.4
3361 date: 1994/07/13 00:16:53;  author: matt;  state: Exp;
3362 Added include
3363 ----------------------------
3364 revision 1.3
3365 date: 1994/02/17 17:36:19;  author: john;  state: Exp;
3366 Added CF_READ_MODE and CF_WRITE_MODE constants.
3367 ----------------------------
3368 revision 1.2
3369 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
3370 Crappy inbetween version
3371 ----------------------------
3372 revision 1.1
3373 date: 1994/02/15 10:54:23;  author: john;  state: Exp;
3374 Initial revision
3375 ----------------------------
3376 revision 1.1
3377 date: 1994/02/10 15:50:54;  author: john;  state: Exp;
3378 Initial revision
3379 =============================================================================
3380 RCS file: /Smoke/miner/source/cfile/nocfile.h,v
3381 Working file: cfile/nocfile.h
3382 head: 1.1
3383 description: Prototypes to *NOT* use cfile, but use cfile calling parameters.
3384 For debugging.
3385 ----------------------------
3386 revision 1.1
3387 date: 1995/05/05 09:32:06;  author: allender;  state: Exp;
3388 Initial revision
3389 ----------------------------
3390 revision 1.4
3391 date: 1994/12/09 17:53:52;  author: john;  state: Exp;
3392 Added error checking to number of hogfiles..
3393 ----------------------------
3394 revision 1.3
3395 date: 1994/02/17 17:36:34;  author: john;  state: Exp;
3396 Added CF_READ_MODE and CF_WRITE_MODE constants.
3397 ----------------------------
3398 revision 1.2
3399 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
3400 Crappy inbetween version
3401 ----------------------------
3402 revision 1.1
3403 date: 1994/02/15 09:51:00;  author: john;  state: Exp;
3404 Initial revision
3405 =============================================================================
3406 RCS file: /Smoke/miner/source/fix/fix.c,v
3407 Working file: fix/fix.c
3408 head: 1.7
3409 description: C version of fixed point library
3410 ----------------------------
3411 revision 1.7
3412 date: 1995/09/22 14:08:16;  author: allender;  state: Exp;
3413 fixed fix_atan2 to work correctly with doubles
3414 ----------------------------
3415 revision 1.6
3416 date: 1995/08/31 15:43:49;  author: allender;  state: Exp;
3417 *** empty log message ***
3418 ----------------------------
3419 revision 1.5
3420 date: 1995/07/05 16:15:15;  author: allender;  state: Exp;
3421 make fixmuldiv use doubles for PPC implementation
3422 ----------------------------
3423 revision 1.4
3424 date: 1995/05/15 13:57:36;  author: allender;  state: Exp;
3425 make fixmuldiv compile when compiling under 68k
3426 ----------------------------
3427 revision 1.3
3428 date: 1995/05/11 13:02:59;  author: allender;  state: Exp;
3429 some routines are now in assembly
3430 ----------------------------
3431 revision 1.2
3432 date: 1995/05/04 20:04:45;  author: allender;  state: Exp;
3433 use MPW fixdiv if compiling with MPW (why did I do this?)
3434 ----------------------------
3435 revision 1.1
3436 date: 1995/04/17 11:37:54;  author: allender;  state: Exp;
3437 Initial revision
3438 ----------------------------
3439 revision 1.1
3440 date: 1995/03/08 18:55:09;  author: matt;  state: Exp;
3441 Initial revision
3442 =============================================================================
3443 RCS file: /Smoke/miner/source/fix/fix.h,v
3444 Working file: fix/fix.h
3445 head: 1.2
3446 description: FIX.H - prototypes and macros for fixed-point functions
3447 Copyright (c) 1993  Matt Toschlog & Mike Kulas
3448 ----------------------------
3449 revision 1.2
3450 date: 1995/08/31 15:44:01;  author: allender;  state: Exp;
3451 *** empty log message ***
3452 ----------------------------
3453 revision 1.1
3454 date: 1995/04/17 11:37:59;  author: allender;  state: Exp;
3455 Initial revision
3456 ----------------------------
3457 revision 1.13
3458 date: 1994/12/06 13:52:34;  author: matt;  state: Exp;
3459 Added f2ir(), which is fix-to-int with rounding
3460 ----------------------------
3461 revision 1.12
3462 date: 1994/05/18 21:45:16;  author: matt;  state: Exp;
3463 Added comments
3464 ----------------------------
3465 revision 1.11
3466 date: 1994/01/19 23:12:02;  author: matt;  state: Exp;
3467 Made fix_atan2() left-handed, like our coordinate system
3468 ----------------------------
3469 revision 1.10
3470 date: 1993/10/20 01:09:00;  author: matt;  state: Exp;
3471 Add fix_asin(), improved fix_atan2()
3472 ----------------------------
3473 revision 1.9
3474 date: 1993/10/19 23:53:46;  author: matt;  state: Exp;
3475 Added fix_atan2()
3476 ----------------------------
3477 revision 1.8
3478 date: 1993/10/19 22:22:40;  author: matt;  state: Exp;
3479 Added fix_acos()
3480 ----------------------------
3481 revision 1.7
3482 date: 1993/09/17 11:37:01;  author: mike;  state: Exp;
3483 Add capitalized versions of "some handy constants", eg:
3484 #define F1_0 f1_0
3485 ----------------------------
3486 revision 1.6
3487 date: 1993/08/24 13:00:48;  author: matt;  state: Exp;
3488 Adopted new standard, and made assembly-callable routines not trash any regs
3489 ----------------------------
3490 revision 1.5
3491 date: 1993/08/12 13:12:45;  author: matt;  state: Exp;
3492 Changed fixmul() to use SHRD instead of shl,shr,or
3493 ----------------------------
3494 revision 1.4
3495 date: 1993/08/04 19:57:18;  author: matt;  state: Exp;
3496 Added parens in fix/float conversion macros
3497 ----------------------------
3498 revision 1.3
3499 date: 1993/08/04 11:41:45;  author: matt;  state: Exp;
3500 Fixed bogus constants
3501 ----------------------------
3502 revision 1.2
3503 date: 1993/08/04 09:30:11;  author: matt;  state: Exp;
3504 Added more constants
3505 ----------------------------
3506 revision 1.1
3507 date: 1993/08/03 17:45:53;  author: matt;  state: Exp;
3508 Initial revision
3509 =============================================================================
3510 RCS file: /Smoke/miner/source/fix/tables.c,v
3511 Working file: fix/tables.c
3512 head: 1.2
3513 description: C version of fixed point library
3514 ----------------------------
3515 revision 1.2
3516 date: 1995/08/31 15:44:36;  author: allender;  state: Exp;
3517 ..
3518 ----------------------------
3519 revision 1.1
3520 date: 1995/04/17 11:38:04;  author: allender;  state: Exp;
3521 Initial revision
3522 =============================================================================
3523 RCS file: /Smoke/miner/source/iff/iff.c,v
3524 Working file: iff/iff.c
3525 head: 1.2
3526 description: Routines for reading and writing IFF files
3527 ----------------------------
3528 revision 1.2
3529 date: 1995/05/12 11:54:43;  author: allender;  state: Exp;
3530 changed memory stuff again
3531 ----------------------------
3532 revision 1.1
3533 date: 1995/05/05 08:59:41;  author: allender;  state: Exp;
3534 Initial revision
3535 ----------------------------
3536 revision 1.43
3537 date: 1994/12/08 19:03:17;  author: john;  state: Exp;
3538 Added code to use cfile.
3539 ----------------------------
3540 revision 1.42
3541 date: 1994/12/08 17:45:32;  author: john;  state: Exp;
3542 Put back in cfile stuff.
3543 ----------------------------
3544 revision 1.41
3545 date: 1994/11/19 16:41:06;  author: matt;  state: Exp;
3546 Took out unused code
3547 ----------------------------
3548 revision 1.40
3549 date: 1994/11/07 21:26:39;  author: matt;  state: Exp;
3550 Added new function iff_read_into_bitmap()
3551 ----------------------------
3552 revision 1.39
3553 date: 1994/10/27 00:12:03;  author: john;  state: Exp;
3554 Used nocfile
3555 ----------------------------
3556 revision 1.38
3557 date: 1994/08/10 19:49:58;  author: matt;  state: Exp;
3558 Fixed bitmaps in ILBM format with masking (stencil) on.
3559 ----------------------------
3560 revision 1.37
3561 date: 1994/06/02 18:53:17;  author: matt;  state: Exp;
3562 Clear flags & selector in new bitmap structure
3563 ----------------------------
3564 revision 1.36
3565 date: 1994/05/17 14:00:33;  author: matt;  state: Exp;
3566 Fixed bug with odd-width deltas & odd-length body chunks
3567 ----------------------------
3568 revision 1.35
3569 date: 1994/05/16 20:38:55;  author: matt;  state: Exp;
3570 Made anim brushes work when odd width
3571 ----------------------------
3572 revision 1.34
3573 date: 1994/05/06 19:37:26;  author: matt;  state: Exp;
3574 Improved error handling and checking
3575 ----------------------------
3576 revision 1.33
3577 date: 1994/04/27 20:57:07;  author: matt;  state: Exp;
3578 Fixed problem with RLE decompression and odd-width bitmap
3579 Added more error checking
3580 ----------------------------
3581 revision 1.32
3582 date: 1994/04/16 21:44:19;  author: matt;  state: Exp;
3583 Fixed bug introduced last version
3584 ----------------------------
3585 revision 1.31
3586 date: 1994/04/16 20:12:40;  author: matt;  state: Exp;
3587 Made masked (stenciled) bitmaps work
3588 ----------------------------
3589 revision 1.30
3590 date: 1994/04/13 23:46:16;  author: matt;  state: Exp;
3591 Added function, iff_errormsg(), which returns ptr to error message.
3592 ----------------------------
3593 revision 1.29
3594 date: 1994/04/13 23:27:25;  author: matt;  state: Exp;
3595 Put in support for anim brushes (.abm files)
3596 ----------------------------
3597 revision 1.28
3598 date: 1994/04/13 16:33:31;  author: matt;  state: Exp;
3599 Cleaned up file read code, adding fake_file structure (FFILE), which
3600 cleanly implements reading the entire file into a buffer and then reading
3601 out of that buffer.
3602 ----------------------------
3603 revision 1.27
3604 date: 1994/04/06 23:07:43;  author: matt;  state: Exp;
3605 Cleaned up code; added prototype (but no new code) for anim brush read
3606 ----------------------------
3607 revision 1.26
3608 date: 1994/03/19 02:51:52;  author: matt;  state: Exp;
3609 Really did what I said I did last revision.
3610 ----------------------------
3611 revision 1.25
3612 date: 1994/03/19 02:16:07;  author: matt;  state: Exp;
3613 Made work ILBMs which didn't have 8 planes
3614 ----------------------------
3615 revision 1.24
3616 date: 1994/03/15 14:45:26;  author: matt;  state: Exp;
3617 When error, only free memory if has been allocated
3618 ----------------------------
3619 revision 1.23
3620 date: 1994/02/18 12:39:05;  author: john;  state: Exp;
3621 Made code read from buffer.
3622 ----------------------------
3623 revision 1.22
3624 date: 1994/02/15 18:15:26;  author: john;  state: Exp;
3625 Took out cfile attempt (too slow)
3626 ----------------------------
3627 revision 1.21
3628 date: 1994/02/15 13:17:48;  author: john;  state: Exp;
3629 added assert to cfseek.
3630 ----------------------------
3631 revision 1.20
3632 date: 1994/02/15 13:13:11;  author: john;  state: Exp;
3633 Made iff code work normally.
3634 ----------------------------
3635 revision 1.19
3636 date: 1994/02/15 12:51:07;  author: john;  state: Exp;
3637 crappy inbetween version.
3638 ----------------------------
3639 revision 1.18
3640 date: 1994/02/10 18:31:32;  author: matt;  state: Exp;
3641 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
3642 ----------------------------
3643 revision 1.17
3644 date: 1994/01/24 11:51:26;  author: john;  state: Exp;
3645 Made write routine write transparency info.
3646 ----------------------------
3647 revision 1.16
3648 date: 1994/01/22 14:41:11;  author: john;  state: Exp;
3649 Fixed bug with declareations.
3650 ----------------------------
3651 revision 1.15
3652 date: 1994/01/22 14:23:00;  author: john;  state: Exp;
3653 Added global vars to check transparency
3654 ----------------------------
3655 revision 1.14
3656 date: 1993/12/08 19:00:42;  author: matt;  state: Exp;
3657 Changed while loop to memset
3658 ----------------------------
3659 revision 1.13
3660 date: 1993/12/08 17:23:51;  author: mike;  state: Exp;
3661 Speedup by converting while...getc to fread.
3662 ----------------------------
3663 revision 1.12
3664 date: 1993/12/08 12:37:35;  author: mike;  state: Exp;
3665 Optimize parse_body.
3666 ----------------------------
3667 revision 1.11
3668 date: 1993/12/05 17:30:14;  author: matt;  state: Exp;
3669 Made bitmaps with width <= 64 not compress
3670 ----------------------------
3671 revision 1.10
3672 date: 1993/12/03 12:24:51;  author: matt;  state: Exp;
3673 Fixed TINY chunk when bitmap was part of a larger bitmap
3674 ----------------------------
3675 revision 1.9
3676 date: 1993/11/22 17:26:43;  author: matt;  state: Exp;
3677 iff write now writes out a tiny chunk
3678 ----------------------------
3679 revision 1.8
3680 date: 1993/11/21 22:04:13;  author: matt;  state: Exp;
3681 Fixed error with non-compressed bitmaps
3682 Added Yuan's code to free raw data if we get an error parsing the body
3683 ----------------------------
3684 revision 1.7
3685 date: 1993/11/11 12:12:12;  author: yuan;  state: Exp;
3686 Changed mallocs to MALLOCs.
3687 ----------------------------
3688 revision 1.6
3689 date: 1993/11/01 19:02:23;  author: matt;  state: Exp;
3690 Fixed a couple bugs in rle compression
3691 ----------------------------
3692 revision 1.5
3693 date: 1993/10/27 12:47:39;  author: john;  state: Exp;
3694 *** empty log message ***
3695 ----------------------------
3696 revision 1.4
3697 date: 1993/10/27 12:37:31;  author: yuan;  state: Exp;
3698 Added mem.h
3699 ----------------------------
3700 revision 1.3
3701 date: 1993/09/22 19:16:57;  author: matt;  state: Exp;
3702 Added new error type, IFF_CORRUPT, for internally bad IFF files.
3703 ----------------------------
3704 revision 1.2
3705 date: 1993/09/08 19:24:16;  author: matt;  state: Exp;
3706 Fixed bug in RLE compression
3707 Changed a bunch of unimportant values like aspect and page size when writing
3708 Added new error condition, IFF_BAD_BM_TYPE
3709 Make sub-bitmaps work correctly
3710 Added compile flag to turn compression off (COMPRESS)
3711 ----------------------------
3712 revision 1.1
3713 date: 1993/09/08 14:24:15;  author: matt;  state: Exp;
3714 Initial revision
3715 =============================================================================
3716 RCS file: /Smoke/miner/source/iff/iff.h,v
3717 Working file: iff/iff.h
3718 head: 1.2
3719 description: Header for IFF routines
3720 ----------------------------
3721 revision 1.2
3722 date: 1995/05/05 16:33:22;  author: allender;  state: Exp;
3723 changed types.h to dtypes.h
3724 ----------------------------
3725 revision 1.1
3726 date: 1995/05/05 08:59:45;  author: allender;  state: Exp;
3727 Initial revision
3728 ----------------------------
3729 revision 1.12
3730 date: 1994/11/07 21:26:53;  author: matt;  state: Exp;
3731 Added new function iff_read_into_bitmap()
3732 ----------------------------
3733 revision 1.11
3734 date: 1994/05/06 19:37:38;  author: matt;  state: Exp;
3735 Improved error handling and checking
3736 ----------------------------
3737 revision 1.10
3738 date: 1994/04/16 20:12:54;  author: matt;  state: Exp;
3739 Made masked (stenciled) bitmaps work
3740 ----------------------------
3741 revision 1.9
3742 date: 1994/04/13 23:46:00;  author: matt;  state: Exp;
3743 Added function, iff_errormsg(), which returns ptr to error message.
3744 ----------------------------
3745 revision 1.8
3746 date: 1994/04/13 23:27:10;  author: matt;  state: Exp;
3747 Put in support for anim brushes (.abm files)
3748 ----------------------------
3749 revision 1.7
3750 date: 1994/04/06 23:08:02;  author: matt;  state: Exp;
3751 Cleaned up code; added prototype (but no new code) for anim brush read
3752 ----------------------------
3753 revision 1.6
3754 date: 1994/01/22 14:40:59;  author: john;  state: Exp;
3755 Fixed bug with declareations.
3756 ----------------------------
3757 revision 1.5
3758 date: 1994/01/22 14:23:13;  author: john;  state: Exp;
3759 Added global vars to check transparency
3760 ----------------------------
3761 revision 1.4
3762 date: 1993/10/27 12:47:42;  author: john;  state: Exp;
3763 Extended the comments
3764 ----------------------------
3765 revision 1.3
3766 date: 1993/09/22 19:17:20;  author: matt;  state: Exp;
3767 Fixed handling of pad byte in ILBM/PPB body - was writing pad byte to
3768 destination buffer.
3769 ----------------------------
3770 revision 1.2
3771 date: 1993/09/08 19:23:25;  author: matt;  state: Exp;
3772 Added additional return code, IFF_BAD_BM_TYPE
3773 ----------------------------
3774 revision 1.1
3775 date: 1993/09/08 14:24:21;  author: matt;  state: Exp;
3776 Initial revision
3777 =============================================================================
3778 RCS file: f:/miner/source/includes/types.h,v
3779 Working file: includes/types.h
3780 head: 1.2
3781 description: Common types for use in Miner
3782 ----------------------------
3783 revision 1.2
3784 date: 1993/09/14 12:12:30;  author: matt;  state: Exp;
3785 Added #define for NULL
3786 ----------------------------
3787 revision 1.1
3788 date: 1993/08/24 12:50:40;  author: matt;  state: Exp;
3789 Initial revision
3790 =============================================================================
3791 RCS file: /Smoke/miner/source/macsys/backgrnd.c,v
3792 Working file: macsys/backgrnd.c
3793 head: 1.1
3794 description: Routines to deal with blacking out the background
3795 ----------------------------
3796 revision 1.1
3797 date: 1995/04/07 13:18:00;  author: allender;  state: Exp;
3798 Initial revision
3799 =============================================================================
3800 RCS file: /BigRed/miner/source/macsys/macinit.c,v
3801 Working file: macsys/macinit.c
3802 head: 1.21
3803 description: $Log: not supported by cvs2svn $
3804 ----------------------------
3805 revision 1.21
3806 date: 1995/11/02 14:13:23;  author: allender;  state: Exp;
3807 cd checking only on registered version
3808 ----------------------------
3809 revision 1.20
3810 date: 1995/10/28 22:51:12;  author: allender;  state: Exp;
3811 #ifdef RELEASE for cd checking
3812 ----------------------------
3813 revision 1.19
3814 date: 1995/10/28 22:22:39;  author: allender;  state: Exp;
3815 added stuff to check for Descent CD at startup
3816 ----------------------------
3817 revision 1.18
3818 date: 1995/10/24 18:13:01;  author: allender;  state: Exp;
3819 do screen saver stuff
3820 ----------------------------
3821 revision 1.17
3822 date: 1995/10/21 04:54:12;  author: allender;  state: Exp;
3823 low sounds and textures in virtual memory
3824 ----------------------------
3825 revision 1.16
3826 date: 1995/10/20 00:10:07;  author: allender;  state: Exp;
3827 new memory stuff (only two possibilities), and fucking
3828 correct checking of VM active
3829 ----------------------------
3830 revision 1.15
3831 date: 1995/10/15 22:47:53;  author: allender;  state: Exp;
3832 call process_initial_events 4 times since I don't loop
3833 there anymore
3834 ----------------------------
3835 revision 1.14
3836 date: 1995/10/13 14:41:58;  author: allender;  state: Exp;
3837 tried hiding control strip on startup.  Code is commented
3838 out because functions don't appear to exist anywhere
3839 ----------------------------
3840 revision 1.13
3841 date: 1995/10/11 13:56:16;  author: allender;  state: Exp;
3842 removed a couple of functions that shouldn't be called here
3843 ----------------------------
3844 revision 1.12
3845 date: 1995/10/05 08:57:28;  author: allender;  state: Exp;
3846 chedck to be sure GDevice is valid before performing close
3847 operations (fixing up bbp and restoring clut)
3848 ----------------------------
3849 revision 1.11
3850 date: 1995/09/18 08:45:00;  author: allender;  state: Exp;
3851 correctly restore device bitplane when done
3852 ----------------------------
3853 revision 1.10
3854 date: 1995/09/18 08:11:13;  author: allender;  state: Exp;
3855 added memory stuff.  Descent should run in 5.5 w/VM on PPC
3856 now.
3857 ----------------------------
3858 revision 1.9
3859 date: 1995/09/13 09:31:18;  author: allender;  state: Exp;
3860 more memory stuff.  Put in mymkdir and mychdir functions
3861 to account for some compilers not implementing the
3862 normal functions
3863 ----------------------------
3864 revision 1.8
3865 date: 1995/09/01 14:14:14;  author: allender;  state: Exp;
3866 determine in VM is on during init
3867 ----------------------------
3868 revision 1.7
3869 date: 1995/08/08 14:22:00;  author: allender;  state: Exp;
3870 changed initialization code
3871 ----------------------------
3872 revision 1.6
3873 date: 1995/07/17 09:08:49;  author: allender;  state: Exp;
3874 first attempt to change pixel depth of device
3875 ----------------------------
3876 revision 1.5
3877 date: 1995/06/13 10:22:50;  author: allender;  state: Exp;
3878 overhauled screen manipulation stuff
3879 ----------------------------
3880 revision 1.4
3881 date: 1995/06/12 11:12:18;  author: allender;  state: Exp;
3882 ifdef'ed qd global
3883 ----------------------------
3884 revision 1.3
3885 date: 1995/05/11 13:02:02;  author: allender;  state: Exp;
3886 make define for stack size and change error message
3887 ----------------------------
3888 revision 1.2
3889 date: 1995/05/04 20:06:10;  author: allender;  state: Exp;
3890 stack and heap handling -- needs work
3891 ----------------------------
3892 revision 1.1
3893 date: 1995/04/07 13:20:32;  author: allender;  state: Exp;
3894 Initial revision
3895 =============================================================================
3896 RCS file: /BigRed/miner/source/macsys/macinit.c,v
3897 Working file: macsys/macinit.c
3898 head: 1.21
3899 description: $Log: not supported by cvs2svn $
3900 ----------------------------
3901 revision 1.21
3902 date: 1995/11/02 14:13:23;  author: allender;  state: Exp;
3903 cd checking only on registered version
3904 ----------------------------
3905 revision 1.20
3906 date: 1995/10/28 22:51:12;  author: allender;  state: Exp;
3907 #ifdef RELEASE for cd checking
3908 ----------------------------
3909 revision 1.19
3910 date: 1995/10/28 22:22:39;  author: allender;  state: Exp;
3911 added stuff to check for Descent CD at startup
3912 ----------------------------
3913 revision 1.18
3914 date: 1995/10/24 18:13:01;  author: allender;  state: Exp;
3915 do screen saver stuff
3916 ----------------------------
3917 revision 1.17
3918 date: 1995/10/21 04:54:12;  author: allender;  state: Exp;
3919 low sounds and textures in virtual memory
3920 ----------------------------
3921 revision 1.16
3922 date: 1995/10/20 00:10:07;  author: allender;  state: Exp;
3923 new memory stuff (only two possibilities), and fucking
3924 correct checking of VM active
3925 ----------------------------
3926 revision 1.15
3927 date: 1995/10/15 22:47:53;  author: allender;  state: Exp;
3928 call process_initial_events 4 times since I don't loop
3929 there anymore
3930 ----------------------------
3931 revision 1.14
3932 date: 1995/10/13 14:41:58;  author: allender;  state: Exp;
3933 tried hiding control strip on startup.  Code is commented
3934 out because functions don't appear to exist anywhere
3935 ----------------------------
3936 revision 1.13
3937 date: 1995/10/11 13:56:16;  author: allender;  state: Exp;
3938 removed a couple of functions that shouldn't be called here
3939 ----------------------------
3940 revision 1.12
3941 date: 1995/10/05 08:57:28;  author: allender;  state: Exp;
3942 chedck to be sure GDevice is valid before performing close
3943 operations (fixing up bbp and restoring clut)
3944 ----------------------------
3945 revision 1.11
3946 date: 1995/09/18 08:45:00;  author: allender;  state: Exp;
3947 correctly restore device bitplane when done
3948 ----------------------------
3949 revision 1.10
3950 date: 1995/09/18 08:11:13;  author: allender;  state: Exp;
3951 added memory stuff.  Descent should run in 5.5 w/VM on PPC
3952 now.
3953 ----------------------------
3954 revision 1.9
3955 date: 1995/09/13 09:31:18;  author: allender;  state: Exp;
3956 more memory stuff.  Put in mymkdir and mychdir functions
3957 to account for some compilers not implementing the
3958 normal functions
3959 ----------------------------
3960 revision 1.8
3961 date: 1995/09/01 14:14:14;  author: allender;  state: Exp;
3962 determine in VM is on during init
3963 ----------------------------
3964 revision 1.7
3965 date: 1995/08/08 14:22:00;  author: allender;  state: Exp;
3966 changed initialization code
3967 ----------------------------
3968 revision 1.6
3969 date: 1995/07/17 09:08:49;  author: allender;  state: Exp;
3970 first attempt to change pixel depth of device
3971 ----------------------------
3972 revision 1.5
3973 date: 1995/06/13 10:22:50;  author: allender;  state: Exp;
3974 overhauled screen manipulation stuff
3975 ----------------------------
3976 revision 1.4
3977 date: 1995/06/12 11:12:18;  author: allender;  state: Exp;
3978 ifdef'ed qd global
3979 ----------------------------
3980 revision 1.3
3981 date: 1995/05/11 13:02:02;  author: allender;  state: Exp;
3982 make define for stack size and change error message
3983 ----------------------------
3984 revision 1.2
3985 date: 1995/05/04 20:06:10;  author: allender;  state: Exp;
3986 stack and heap handling -- needs work
3987 ----------------------------
3988 revision 1.1
3989 date: 1995/04/07 13:20:32;  author: allender;  state: Exp;
3990 Initial revision
3991 =============================================================================
3992 RCS file: /BigRed/miner/source/macsys/macinit.c,v
3993 Working file: macsys/macinit.c
3994 head: 1.21
3995 description: $Log: not supported by cvs2svn $
3996 ----------------------------
3997 revision 1.21
3998 date: 1995/11/02 14:13:23;  author: allender;  state: Exp;
3999 cd checking only on registered version
4000 ----------------------------
4001 revision 1.20
4002 date: 1995/10/28 22:51:12;  author: allender;  state: Exp;
4003 #ifdef RELEASE for cd checking
4004 ----------------------------
4005 revision 1.19
4006 date: 1995/10/28 22:22:39;  author: allender;  state: Exp;
4007 added stuff to check for Descent CD at startup
4008 ----------------------------
4009 revision 1.18
4010 date: 1995/10/24 18:13:01;  author: allender;  state: Exp;
4011 do screen saver stuff
4012 ----------------------------
4013 revision 1.17
4014 date: 1995/10/21 04:54:12;  author: allender;  state: Exp;
4015 low sounds and textures in virtual memory
4016 ----------------------------
4017 revision 1.16
4018 date: 1995/10/20 00:10:07;  author: allender;  state: Exp;
4019 new memory stuff (only two possibilities), and fucking
4020 correct checking of VM active
4021 ----------------------------
4022 revision 1.15
4023 date: 1995/10/15 22:47:53;  author: allender;  state: Exp;
4024 call process_initial_events 4 times since I don't loop
4025 there anymore
4026 ----------------------------
4027 revision 1.14
4028 date: 1995/10/13 14:41:58;  author: allender;  state: Exp;
4029 tried hiding control strip on startup.  Code is commented
4030 out because functions don't appear to exist anywhere
4031 ----------------------------
4032 revision 1.13
4033 date: 1995/10/11 13:56:16;  author: allender;  state: Exp;
4034 removed a couple of functions that shouldn't be called here
4035 ----------------------------
4036 revision 1.12
4037 date: 1995/10/05 08:57:28;  author: allender;  state: Exp;
4038 chedck to be sure GDevice is valid before performing close
4039 operations (fixing up bbp and restoring clut)
4040 ----------------------------
4041 revision 1.11
4042 date: 1995/09/18 08:45:00;  author: allender;  state: Exp;
4043 correctly restore device bitplane when done
4044 ----------------------------
4045 revision 1.10
4046 date: 1995/09/18 08:11:13;  author: allender;  state: Exp;
4047 added memory stuff.  Descent should run in 5.5 w/VM on PPC
4048 now.
4049 ----------------------------
4050 revision 1.9
4051 date: 1995/09/13 09:31:18;  author: allender;  state: Exp;
4052 more memory stuff.  Put in mymkdir and mychdir functions
4053 to account for some compilers not implementing the
4054 normal functions
4055 ----------------------------
4056 revision 1.8
4057 date: 1995/09/01 14:14:14;  author: allender;  state: Exp;
4058 determine in VM is on during init
4059 ----------------------------
4060 revision 1.7
4061 date: 1995/08/08 14:22:00;  author: allender;  state: Exp;
4062 changed initialization code
4063 ----------------------------
4064 revision 1.6
4065 date: 1995/07/17 09:08:49;  author: allender;  state: Exp;
4066 first attempt to change pixel depth of device
4067 ----------------------------
4068 revision 1.5
4069 date: 1995/06/13 10:22:50;  author: allender;  state: Exp;
4070 overhauled screen manipulation stuff
4071 ----------------------------
4072 revision 1.4
4073 date: 1995/06/12 11:12:18;  author: allender;  state: Exp;
4074 ifdef'ed qd global
4075 ----------------------------
4076 revision 1.3
4077 date: 1995/05/11 13:02:02;  author: allender;  state: Exp;
4078 make define for stack size and change error message
4079 ----------------------------
4080 revision 1.2
4081 date: 1995/05/04 20:06:10;  author: allender;  state: Exp;
4082 stack and heap handling -- needs work
4083 ----------------------------
4084 revision 1.1
4085 date: 1995/04/07 13:20:32;  author: allender;  state: Exp;
4086 Initial revision
4087 =============================================================================
4088 RCS file: /Smoke/miner/source/macsys/macsys.h,v
4089 Working file: macsys/macsys.h
4090 head: 1.16
4091 description: $Log: not supported by cvs2svn $
4092 ----------------------------
4093 revision 1.16
4094 date: 1995/10/25 09:19:11;  author: allender;  state: Exp;
4095 end file with newline to get rid of warnings on compile
4096 ----------------------------
4097 revision 1.15
4098 date: 1995/10/23 10:46:06;  author: allender;  state: Exp;
4099 removed drv_num from GetDiskInserted
4100 ----------------------------
4101 revision 1.14
4102 date: 1995/10/23 09:41:27;  author: allender;  state: Exp;
4103 changed param to GetDiskInserted to be drv_num
4104 ----------------------------
4105 revision 1.13
4106 date: 1995/10/11 13:57:42;  author: allender;  state: Exp;
4107 added prototype for GetDiskInserted
4108 ----------------------------
4109 revision 1.12
4110 date: 1995/09/24 11:00:11;  author: allender;  state: Exp;
4111 extern do_appl_quit function
4112 ----------------------------
4113 revision 1.11
4114 date: 1995/09/19 10:38:02;  author: allender;  state: Exp;
4115 start of compatibility stuff...added function prototype
4116 ----------------------------
4117 revision 1.10
4118 date: 1995/09/18 09:16:18;  author: allender;  state: Exp;
4119 added Compatibility_mode variable
4120 ----------------------------
4121 revision 1.9
4122 date: 1995/09/15 13:43:32;  author: allender;  state: Exp;
4123 changed parameter to SavePictScreen
4124 ----------------------------
4125 revision 1.8
4126 date: 1995/09/13 08:41:52;  author: allender;  state: Exp;
4127 added two variable to control memory usage
4128 ----------------------------
4129 revision 1.7
4130 date: 1995/09/05 08:48:15;  author: allender;  state: Exp;
4131 added prefs header stuff
4132 ----------------------------
4133 revision 1.6
4134 date: 1995/09/01 14:14:28;  author: allender;  state: Exp;
4135 have_virtual_memory global variable added
4136 ----------------------------
4137 revision 1.5
4138 date: 1995/08/31 15:46:03;  author: allender;  state: Exp;
4139 new headers and stuff
4140 ----------------------------
4141 revision 1.4
4142 date: 1995/07/10 20:39:59;  author: allender;  state: Exp;
4143 added save_bbp as extern
4144 ----------------------------
4145 revision 1.3
4146 date: 1995/06/13 10:22:37;  author: allender;  state: Exp;
4147 overhauled screen manipulation stuff
4148 ----------------------------
4149 revision 1.2
4150 date: 1995/06/13 09:08:29;  author: allender;  state: Exp;
4151 changed window init code -- now called from gr_init
4152 ----------------------------
4153 revision 1.1
4154 date: 1995/04/07 13:19:04;  author: allender;  state: Exp;
4155 Initial revision
4156 =============================================================================
4157 RCS file: /BigRed/miner/source/macsys/macwin.c,v
4158 Working file: macsys/macwin.c
4159 head: 1.30
4160 description: $Log: not supported by cvs2svn $
4161 ----------------------------
4162 revision 1.30
4163 date: 1995/11/02 14:13:09;  author: allender;  state: Exp;
4164 cd checking only on registered version
4165 ----------------------------
4166 revision 1.29
4167 date: 1995/10/28 22:51:24;  author: allender;  state: Exp;
4168 #ifdef RELEASE for CD checking and call do_appl_quit1 so
4169 we don't do silly restore/save of monitor background
4170 ----------------------------
4171 revision 1.28
4172 date: 1995/10/28 22:22:24;  author: allender;  state: Exp;
4173 added calls to check for Descent CD at startup
4174 ----------------------------
4175 revision 1.27
4176 date: 1995/10/24 18:13:13;  author: allender;  state: Exp;
4177 cd back to Descent directory after saving screen shot
4178 ----------------------------
4179 revision 1.26
4180 date: 1995/10/20 22:18:05;  author: allender;  state: Exp;
4181 change creator code for PICTS to 'ttxt'
4182 ----------------------------
4183 revision 1.25
4184 date: 1995/10/20 00:09:21;  author: allender;  state: Exp;
4185 added correct creator code to PICT files, and now
4186 call process_one_event in window code
4187 ----------------------------
4188 revision 1.24
4189 date: 1995/10/17 13:19:51;  author: allender;  state: Exp;
4190 show and hide cursor when doing screen shot
4191 ----------------------------
4192 revision 1.23
4193 date: 1995/10/15 23:21:48;  author: allender;  state: Exp;
4194 process events after getting game monitor
4195 ----------------------------
4196 revision 1.22
4197 date: 1995/10/13 14:40:57;  author: allender;  state: Exp;
4198 don't change to GDevice when monitor is picked
4199 ----------------------------
4200 revision 1.21
4201 date: 1995/10/11 13:56:34;  author: allender;  state: Exp;
4202 fixed up window processing -- background black window
4203 now covers only game monitor
4204 ----------------------------
4205 revision 1.20
4206 date: 1995/10/05 08:54:46;  author: allender;  state: Exp;
4207 close keyboard and show cursor always before bringing up
4208 monitor selection box
4209 ----------------------------
4210 revision 1.19
4211 date: 1995/10/03 11:27:55;  author: allender;  state: Exp;
4212 fixed multiple monitor problems with game window appearing
4213 on wrong monitor
4214 ----------------------------
4215 revision 1.18
4216 date: 1995/09/24 10:59:19;  author: allender;  state: Exp;
4217 canceling or cmd-q'ing out of pickamonitor will ask for quit game
4218 ----------------------------
4219 revision 1.17
4220 date: 1995/09/19 10:37:49;  author: allender;  state: Exp;
4221 start of copybits compatibility stuff
4222 ----------------------------
4223 revision 1.16
4224 date: 1995/09/18 08:45:27;  author: allender;  state: Exp;
4225 bitplane restoration stuff on exit
4226 ----------------------------
4227 revision 1.15
4228 date: 1995/09/18 08:10:39;  author: allender;  state: Exp;
4229 handled NULL returned from PickaMonitor.
4230 ----------------------------
4231 revision 1.14
4232 date: 1995/09/15 15:52:53;  author: allender;  state: Exp;
4233 better handling of dumping of PICT files
4234 ----------------------------
4235 revision 1.13
4236 date: 1995/09/13 09:08:20;  author: allender;  state: Exp;
4237 added PICT screen dumps
4238 ----------------------------
4239 revision 1.12
4240 date: 1995/08/31 15:46:22;  author: allender;  state: Exp;
4241 don't show game window
4242 ----------------------------
4243 revision 1.11
4244 date: 1995/08/14 14:30:52;  author: allender;  state: Exp;
4245 removed white_window call
4246 ----------------------------
4247 revision 1.10
4248 date: 1995/08/08 14:22:23;  author: allender;  state: Exp;
4249 new windowing code (i.e. white and black background windows)
4250 plus new code for picking the monitor ala MacPlay
4251 ----------------------------
4252 revision 1.9
4253 date: 1995/07/17 09:08:33;  author: allender;  state: Exp;
4254 first attempt to change pixel dpeth of device
4255 ----------------------------
4256 revision 1.8
4257 date: 1995/07/05 16:19:40;  author: allender;  state: Exp;
4258 no more palette manager stuff
4259 ----------------------------
4260 revision 1.7
4261 date: 1995/06/13 10:23:09;  author: allender;  state: Exp;
4262 overhauled screen manipulation stuff
4263 ----------------------------
4264 revision 1.6
4265 date: 1995/05/17 14:40:01;  author: allender;  state: Exp;
4266 added some globals to speed up screen copy
4267 ----------------------------
4268 revision 1.5
4269 date: 1995/05/12 11:55:06;  author: allender;  state: Exp;
4270 changed memory stuff again
4271 ----------------------------
4272 revision 1.4
4273 date: 1995/05/04 20:06:35;  author: allender;  state: Exp;
4274 change palette stuff to be animated
4275 ----------------------------
4276 revision 1.3
4277 date: 1995/04/18 09:52:49;  author: allender;  state: Exp;
4278 *** empty log message ***
4279 ----------------------------
4280 revision 1.2
4281 date: 1995/04/07 13:15:27;  author: allender;  state: Exp;
4282 *** empty log message ***
4283 ----------------------------
4284 revision 1.1
4285 date: 1995/03/09 09:16:57;  author: allender;  state: Exp;
4286 Initial revision
4287  Creates the window and GWorld.  We won't do any size information.  We will have
4288  seperate routines which will deal with setting the size of the window and GWorld.
4289 =============================================================================
4290 RCS file: /Smoke/miner/source/macsys/menubar.c,v
4291 Working file: macsys/menubar.c
4292 head: 1.4
4293 description: Functions to deal with manipulating the macintosh menubar
4294 ----------------------------
4295 revision 1.4
4296 date: 1995/08/31 15:46:46;  author: allender;  state: Exp;
4297 removed conditional compiles for functions
4298 ----------------------------
4299 revision 1.3
4300 date: 1995/06/12 10:33:43;  author: allender;  state: Exp;
4301 change parameters to window fn's because of differnces between compiler
4302 prototypes
4303 ----------------------------
4304 revision 1.2
4305 date: 1995/05/04 20:07:14;  author: allender;  state: Exp;
4306 use proper prototypes on mac functions
4307 ----------------------------
4308 revision 1.1
4309 date: 1995/04/07 13:17:22;  author: allender;  state: Exp;
4310 Initial revision
4311 =============================================================================
4312 RCS file: /Smoke/miner/source/macsys/mevent.c,v
4313 Working file: macsys/mevent.c
4314 head: 1.15
4315 description: $Log: not supported by cvs2svn $
4316 ----------------------------
4317 revision 1.15
4318 date: 1995/10/28 22:51:55;  author: allender;  state: Exp;
4319 make do_appl_quit1 which doesn't save/restore monitor
4320 background below quit dialog -- WHAT A HACK!!!!
4321 ----------------------------
4322 revision 1.14
4323 date: 1995/10/27 16:56:17;  author: allender;  state: Exp;
4324 fix up the quit thing restoring correctly
4325 ----------------------------
4326 revision 1.13
4327 date: 1995/10/27 15:18:55;  author: allender;  state: Exp;
4328 go back to descent dir after events, and make sure
4329 that screen behind quit box refreshes correctly on
4330 higher than 640x480 mode
4331 ----------------------------
4332 revision 1.12
4333 date: 1995/10/27 11:06:55;  author: allender;  state: Exp;
4334 cd back to Descent dir after any event processing
4335 ----------------------------
4336 revision 1.11
4337 date: 1995/10/24 15:41:12;  author: allender;  state: Exp;
4338 new quit dialog stuff -- use dialog so that background
4339 can be saved and restored easily
4340 ----------------------------
4341 revision 1.10
4342 date: 1995/10/20 00:11:02;  author: allender;  state: Exp;
4343 new event code
4344 ----------------------------
4345 revision 1.9
4346 date: 1995/10/15 22:48:16;  author: allender;  state: Exp;
4347 don't loop in process_initial_events
4348 ----------------------------
4349 revision 1.8
4350 date: 1995/10/13 14:41:37;  author: allender;  state: Exp;
4351 tried putting in standard dialog filter
4352 ----------------------------
4353 revision 1.7
4354 date: 1995/10/11 13:57:59;  author: allender;  state: Exp;
4355 added GetDiskInserted for mounting CD's.  Killed
4356 the finder
4357 ----------------------------
4358 revision 1.6
4359 date: 1995/10/07 16:46:00;  author: allender;  state: Exp;
4360 ode for single event processing
4361 ----------------------------
4362 revision 1.5
4363 date: 1995/09/24 11:00:43;  author: allender;  state: Exp;
4364 fixed up do_qppl_quit to get to basic black and white if screen
4365 is faded out
4366 ----------------------------
4367 revision 1.4
4368 date: 1995/09/18 08:47:42;  author: allender;  state: Exp;
4369 restore back to 8 bits when exiting back to Descent from
4370 menubar
4371 ----------------------------
4372 revision 1.3
4373 date: 1995/08/31 15:47:48;  author: allender;  state: Exp;
4374 add silly return at eof
4375 ----------------------------
4376 revision 1.2
4377 date: 1995/08/31 15:47:26;  author: allender;  state: Exp;
4378 *** empty log message ***
4379 ----------------------------
4380 revision 1.1
4381 date: 1995/04/07 13:19:41;  author: allender;  state: Exp;
4382 Initial revision
4383 =============================================================================
4384 RCS file: /Buggin/miner/source/macsys/mouse.c,v
4385 Working file: macsys/mouse.c
4386 head: 1.1
4387 description: $Log: not supported by cvs2svn $
4388 ----------------------------
4389 revision 1.1
4390 date: 1995/04/07 13:17:09;  author: allender;  state: Exp;
4391 Initial revision
4392 =============================================================================
4393 RCS file: /Smoke/miner/source/macsys/scrncpy.c,v
4394 Working file: macsys/scrncpy.c
4395 head: 1.3
4396 description: $Log: not supported by cvs2svn $
4397 ----------------------------
4398 revision 1.3
4399 date: 1995/06/12 15:10:58;  author: allender;  state: Exp;
4400 no more direct to screen.  This is handled through normal gr (2d) calls
4401 ----------------------------
4402 revision 1.2
4403 date: 1995/05/17 13:18:18;  author: allender;  state: Exp;
4404 for PPC, call specialized memory copy routine which moves 8 bytes at a time
4405 ----------------------------
4406 revision 1.1
4407 date: 1995/05/05 12:40:33;  author: allender;  state: Exp;
4408 Initial revision
4409 ----------------------------
4410 revision 1.1
4411 date: 1995/04/07 13:18:30;  author: allender;  state: Exp;
4412 Initial revision
4413 =============================================================================
4414 RCS file: /Smoke/miner/source/main/ai.c,v
4415 Working file: main/ai.c
4416 head: 1.1
4417 description: Autonomous Individual movement.
4418 ----------------------------
4419 revision 1.1
4420 date: 1995/12/05 14:15:37;  author: allender;  state: Exp;
4421 Initial revision
4422 ----------------------------
4423 revision 1.10
4424 date: 1995/11/09 09:36:12;  author: allender;  state: Exp;
4425 cheats not active during demo playback
4426 ----------------------------
4427 revision 1.9
4428 date: 1995/11/03 12:51:55;  author: allender;  state: Exp;
4429 shareware changes
4430 ----------------------------
4431 revision 1.8
4432 date: 1995/10/31 10:25:07;  author: allender;  state: Exp;
4433 shareware stuff
4434 ----------------------------
4435 revision 1.7
4436 date: 1995/10/26 14:01:38;  author: allender;  state: Exp;
4437 optimization for doing robot stuff only if anim angles done last frame
4438 ----------------------------
4439 revision 1.6
4440 date: 1995/10/25 09:35:43;  author: allender;  state: Exp;
4441 prototype some functions causing mcc problems
4442 ----------------------------
4443 revision 1.5
4444 date: 1995/10/17 13:11:40;  author: allender;  state: Exp;
4445 fix in ai code that makes bots only look for you every so often
4446 ----------------------------
4447 revision 1.4
4448 date: 1995/10/10 11:48:10;  author: allender;  state: Exp;
4449 PC ai code
4450 ----------------------------
4451 revision 2.11
4452 date: 1995/07/09 11:15:48;  author: john;  state: Exp;
4453 Put in Mike's code to fix bug where bosses don't gate in bots after
4454 32767 seconds of playing.
4455 ----------------------------
4456 revision 2.10
4457 date: 1995/06/15 12:31:08;  author: john;  state: Exp;
4458 Fixed bug with cheats getting enabled when you type
4459 the whole alphabet.
4460 ----------------------------
4461 revision 2.9
4462 date: 1995/05/26 16:16:18;  author: john;  state: Exp;
4463 Split SATURN into define's for requiring cd, using cd, etc.
4464 Also started adding all the Rockwell stuff.
4465 ----------------------------
4466 revision 2.8
4467 date: 1995/04/06 15:12:27;  author: john;  state: Exp;
4468 Fixed bug with insane not working.
4469 ----------------------------
4470 revision 2.7
4471 date: 1995/03/30 16:36:44;  author: mike;  state: Exp;
4472 text localization.
4473 ----------------------------
4474 revision 2.6
4475 date: 1995/03/28 11:22:24;  author: john;  state: Exp;
4476 Added cheats to save file. Changed lunacy text.
4477 ----------------------------
4478 revision 2.5
4479 date: 1995/03/27 16:45:07;  author: john;  state: Exp;
4480 Fixed some cheat bugs.  Added astral cheat.
4481 ----------------------------
4482 revision 2.4
4483 date: 1995/03/24 15:29:17;  author: mike;  state: Exp;
4484 add new cheats.
4485 ----------------------------
4486 revision 2.3
4487 date: 1995/03/21 14:39:45;  author: john;  state: Exp;
4488 Ifdef'd out the NETWORK code.
4489 ----------------------------
4490 revision 2.2
4491 date: 1995/03/14 18:24:39;  author: john;  state: Exp;
4492 Force Destination Saturn to use CD-ROM drive.
4493 ----------------------------
4494 revision 2.1
4495 date: 1995/03/06 16:47:14;  author: mike;  state: Exp;
4496 destination saturn
4497 ----------------------------
4498 revision 2.0
4499 date: 1995/02/27 11:30:01;  author: john;  state: Exp;
4500 New version 2.0, which has no anonymous unions, builds with
4501 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
4502 ----------------------------
4503 revision 1.295
4504 date: 1995/02/22 13:23:04;  author: allender;  state: Exp;
4505 remove anonymous unions from object structure
4506 ----------------------------
4507 revision 1.294
4508 date: 1995/02/13 11:00:43;  author: rob;  state: Exp;
4509 Make brain guys high enough to get an open slot.
4510 ----------------------------
4511 revision 1.293
4512 date: 1995/02/13 10:31:55;  author: mike;  state: Exp;
4513 Make brains understand they can't open locked doors.
4514 ----------------------------
4515 revision 1.292
4516 date: 1995/02/13 10:18:01;  author: rob;  state: Exp;
4517 Reduced brain guy's level of awareness to keep him from hogging slots.
4518 ----------------------------
4519 revision 1.291
4520 date: 1995/02/11 12:27:12;  author: mike;  state: Exp;
4521 fix path-to-exit cheat.
4522 ----------------------------
4523 revision 1.290
4524 date: 1995/02/11 01:56:30;  author: mike;  state: Exp;
4525 robots don't fire cheat.
4526 ----------------------------
4527 revision 1.289
4528 date: 1995/02/10 17:15:09;  author: rob;  state: Exp;
4529 Fixed some stuff with 64 awareness stuff.
4530 ----------------------------
4531 revision 1.288
4532 date: 1995/02/10 16:31:32;  author: mike;  state: Exp;
4533 oops.
4534 ----------------------------
4535 revision 1.287
4536 date: 1995/02/10 16:24:45;  author: mike;  state: Exp;
4537 fix the network follow path fix.
4538 ----------------------------
4539 revision 1.286
4540 date: 1995/02/10 16:11:40;  author: mike;  state: Exp;
4541 in serial or modem games, follow path guys don't move if far away and
4542 can't see player.
4543 ----------------------------
4544 revision 1.285
4545 date: 1995/02/09 13:11:35;  author: mike;  state: Exp;
4546 comment out a bunch of mprintfs.
4547 add toaster (drops prox bombs, runs away) to boss gate list.
4548 ----------------------------
4549 revision 1.284
4550 date: 1995/02/08 22:44:53;  author: rob;  state: Exp;
4551 Lowerd anger level for follow path of any sort.
4552 ----------------------------
4553 revision 1.283
4554 date: 1995/02/08 22:30:43;  author: mike;  state: Exp;
4555 lower awareness on station guys if they are returning home (multiplayer).
4556 ----------------------------
4557 revision 1.282
4558 date: 1995/02/08 17:01:06;  author: rob;  state: Exp;
4559 Fixed problem with toasters dropping of proximity bombs.
4560 ----------------------------
4561 revision 1.281
4562 date: 1995/02/08 11:49:35;  author: rob;  state: Exp;
4563 Reduce Green-guy attack awareness level so we don't let him attack us too.
4564 ----------------------------
4565 revision 1.280
4566 date: 1995/02/08 11:37:52;  author: mike;  state: Exp;
4567 Check for failures in call to obj_create.
4568 ----------------------------
4569 revision 1.279
4570 date: 1995/02/07 20:38:46;  author: mike;  state: Exp;
4571 fix toasters in multiplayer
4572 ----------------------------
4573 revision 1.278
4574 date: 1995/02/07 16:51:07;  author: mike;  state: Exp;
4575 fix sound time play bug.
4576 ----------------------------
4577 revision 1.277
4578 date: 1995/02/06 22:33:04;  author: mike;  state: Exp;
4579 make robots follow path better in cooperative/roboarchy.
4580 ----------------------------
4581 revision 1.276
4582 date: 1995/02/06 18:15:42;  author: rob;  state: Exp;
4583 Added forced sends for evasion movemnet.
4584 ----------------------------
4585 revision 1.275
4586 date: 1995/02/06 16:41:22;  author: rob;  state: Exp;
4587 Change some positioning calls.
4588 ----------------------------
4589 revision 1.274
4590 date: 1995/02/06 11:40:33;  author: mike;  state: Exp;
4591 replace some lint-related hacks with clean, proper code.
4592 ----------------------------
4593 revision 1.273
4594 date: 1995/02/04 17:28:19;  author: mike;  state: Exp;
4595 make station guys return better.
4596 ----------------------------
4597 revision 1.272
4598 date: 1995/02/03 17:40:55;  author: mike;  state: Exp;
4599 fix problem with robots falling asleep if you sit in game overnight, not in pause...bah.
4600 ----------------------------
4601 revision 1.271
4602 date: 1995/02/02 21:11:25;  author: rob;  state: Exp;
4603 Tweaking stuff for multiplayer ai.
4604 ----------------------------
4605 revision 1.270
4606 date: 1995/02/02 17:32:06;  author: john;  state: Exp;
4607 Added Hack for Assert that Mike put in after using Lint to find
4608 uninitialized variables.
4609 ----------------------------
4610 revision 1.269
4611 date: 1995/02/02 16:46:31;  author: mike;  state: Exp;
4612 fix boss gating.
4613 ----------------------------
4614 revision 1.268
4615 date: 1995/02/02 16:27:29;  author: mike;  state: Exp;
4616 make boss not put out infinite robots.
4617 ----------------------------
4618 revision 1.267
4619 date: 1995/02/01 21:10:02;  author: mike;  state: Exp;
4620 lint found bug! player_visibility not initialized!
4621 ----------------------------
4622 revision 1.266
4623 date: 1995/02/01 20:51:27;  author: john;  state: Exp;
4624 Lintized
4625 ----------------------------
4626 revision 1.265
4627 date: 1995/02/01 17:14:05;  author: mike;  state: Exp;
4628 fix robot sounds.
4629 ----------------------------
4630 revision 1.264
4631 date: 1995/01/31 16:16:40;  author: mike;  state: Exp;
4632 Comment out "Darn you, John" Int3().
4633 ----------------------------
4634 revision 1.263
4635 date: 1995/01/30 20:55:04;  author: mike;  state: Exp;
4636 fix nonsense in robot firing when a player is cloaked.
4637 ----------------------------
4638 revision 1.262
4639 date: 1995/01/30 17:15:10;  author: rob;  state: Exp;
4640 Fixed problems with bigboss eclip messages.
4641 Tweaked robot position sending for modem purposes.
4642 ----------------------------
4643 revision 1.261
4644 date: 1995/01/30 15:30:31;  author: rob;  state: Exp;
4645 Prevent non-master players from gating in robots.
4646 ----------------------------
4647 revision 1.260
4648 date: 1995/01/30 13:30:55;  author: mike;  state: Exp;
4649 new cases for firing at other players were bogus, could send position
4650 without permission.
4651 ----------------------------
4652 revision 1.259
4653 date: 1995/01/30 13:01:17;  author: mike;  state: Exp;
4654 Make robots fire at player other than one they are controlled by sometimes.
4655 ----------------------------
4656 revision 1.258
4657 date: 1995/01/29 16:09:17;  author: rob;  state: Exp;
4658 Trying to get robots to shoot at non-controlling players.
4659 ----------------------------
4660 revision 1.257
4661 date: 1995/01/29 13:47:05;  author: mike;  state: Exp;
4662 Make boss have more fireballs on death, have until end (though silent at end).
4663 Fix bug which was preventing him from teleporting until hit, so he'd always
4664 be in the same place when the player enters the room.
4665 ----------------------------
4666 revision 1.256
4667 date: 1995/01/28 17:40:18;  author: mike;  state: Exp;
4668 make boss teleport & gate before you see him.
4669 ----------------------------
4670 revision 1.255
4671 date: 1995/01/27 17:02:08;  author: mike;  state: Exp;
4672 move code around, was sending one frame (or worse!) old robot information.
4673 ----------------------------
4674 revision 1.254
4675 date: 1995/01/26 17:02:43;  author: mike;  state: Exp;
4676 make fusion cannon have more chrome, make fusion, mega rock you!
4677 ----------------------------
4678 revision 1.253
4679 date: 1995/01/26 15:11:17;  author: rob;  state: Exp;
4680 Shutup!  I fixed it!
4681 ----------------------------
4682 revision 1.252
4683 date: 1995/01/26 15:08:55;  author: rob;  state: Exp;
4684 Changed robot gating to accomodate multiplayer.
4685 ----------------------------
4686 revision 1.251
4687 date: 1995/01/26 14:49:04;  author: rob;  state: Exp;
4688 Increase awareness level for firing to 94.
4689 ----------------------------
4690 revision 1.250
4691 date: 1995/01/26 12:41:20;  author: mike;  state: Exp;
4692 fix bogus multiplayer code, would send permission without getting permission.
4693 ----------------------------
4694 revision 1.249
4695 date: 1995/01/26 12:23:23;  author: rob;  state: Exp;
4696 Removed defines that were moved to ai.h
4697 ----------------------------
4698 revision 1.248
4699 date: 1995/01/25 23:38:48;  author: mike;  state: Exp;
4700 modify list of robots gated in by super boss.
4701 ----------------------------
4702 revision 1.247
4703 date: 1995/01/25 21:21:13;  author: rob;  state: Exp;
4704 Trying to let robots fire at a player even if they're not in control.
4705 ----------------------------
4706 revision 1.246
4707 date: 1995/01/25 13:50:37;  author: mike;  state: Exp;
4708 Robots make angry sounds.
4709 ----------------------------
4710 revision 1.245
4711 date: 1995/01/25 10:53:47;  author: mike;  state: Exp;
4712 better handling of robots which poke out of mine and try to recover.
4713 ----------------------------
4714 revision 1.244
4715 date: 1995/01/24 22:03:02;  author: mike;  state: Exp;
4716 Tricky code to move a robot to a legal position if he is poking out of
4717 the mine, even if it means moving him to another segment.
4718 ----------------------------
4719 revision 1.243
4720 date: 1995/01/24 20:12:06;  author: rob;  state: Exp;
4721 Changed robot fire awareness level from 74 to 94.
4722 ----------------------------
4723 revision 1.242
4724 date: 1995/01/24 13:22:32;  author: mike;  state: Exp;
4725 make robots accelerate faster, and Difficulty_level dependent.
4726 ----------------------------
4727 revision 1.241
4728 date: 1995/01/24 12:09:39;  author: mike;  state: Exp;
4729 make robots animate in multiplayer.
4730 ----------------------------
4731 revision 1.240
4732 date: 1995/01/21 21:21:10;  author: mike;  state: Exp;
4733 Make boss only gate robots into specified segments.
4734 ----------------------------
4735 revision 1.239
4736 date: 1995/01/20 20:21:26;  author: mike;  state: Exp;
4737 prevent unnecessary boss cloaking.
4738 =============================================================================
4739 RCS file: /Smoke/miner/source/main/ai.h,v
4740 Working file: main/ai.h
4741 head: 1.3
4742 description: Header file for AI system.
4743 ----------------------------
4744 revision 1.3
4745 date: 1995/10/15 16:28:07;  author: allender;  state: Exp;
4746 added flag to player_is_visible function
4747 ----------------------------
4748 revision 1.2
4749 date: 1995/10/10 11:48:32;  author: allender;  state: Exp;
4750 PC ai header
4751 ----------------------------
4752 revision 1.1
4753 date: 1995/05/16 15:54:00;  author: allender;  state: Exp;
4754 Initial revision
4755 ----------------------------
4756 revision 2.0
4757 date: 1995/02/27 11:33:07;  author: john;  state: Exp;
4758 New version 2.0, which has no anonymous unions, builds with
4759 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
4760 ----------------------------
4761 revision 1.57
4762 date: 1995/02/04 17:28:31;  author: mike;  state: Exp;
4763 make station guys return better.
4764 ----------------------------
4765 revision 1.56
4766 date: 1995/02/04 10:03:23;  author: mike;  state: Exp;
4767 Fly to exit cheat.
4768 ----------------------------
4769 revision 1.55
4770 date: 1995/02/01 19:23:52;  author: rob;  state: Exp;
4771 Externed a boss var.
4772 ----------------------------
4773 revision 1.54
4774 date: 1995/01/30 13:00:58;  author: mike;  state: Exp;
4775 Make robots fire at player other than one they are controlled by sometimes.
4776 ----------------------------
4777 revision 1.53
4778 date: 1995/01/26 15:09:16;  author: rob;  state: Exp;
4779 Changed robot gating to accomodate multiplayer.
4780 ----------------------------
4781 revision 1.52
4782 date: 1995/01/26 12:23:12;  author: rob;  state: Exp;
4783 Added new externs needed for multiplayer.
4784 ----------------------------
4785 revision 1.51
4786 date: 1995/01/21 21:22:14;  author: mike;  state: Exp;
4787 Kill prototype of init_boss_segments, which didn't need to be public
4788 and had changed.
4789 ----------------------------
4790 revision 1.50
4791 date: 1995/01/16 19:24:29;  author: mike;  state: Exp;
4792 Publicize BOSS_GATE_MATCEN_NUM and Boss_been_hit.
4793 ----------------------------
4794 revision 1.49
4795 date: 1995/01/02 16:17:35;  author: mike;  state: Exp;
4796 prototype some super boss function for gameseq.
4797 ----------------------------
4798 revision 1.48
4799 date: 1994/12/19 17:08:06;  author: mike;  state: Exp;
4800 deal with new ai_multiplayer_awareness which returns a value saying whether this object can be moved by this player.
4801 ----------------------------
4802 revision 1.47
4803 date: 1994/12/12 17:18:04;  author: mike;  state: Exp;
4804 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
4805 ----------------------------
4806 revision 1.46
4807 date: 1994/12/08 15:46:16;  author: mike;  state: Exp;
4808 better robot behavior.
4809 ----------------------------
4810 revision 1.45
4811 date: 1994/11/27 23:16:08;  author: matt;  state: Exp;
4812 Made debug code go away when debugging turned off
4813 ----------------------------
4814 revision 1.44
4815 date: 1994/11/16 23:38:41;  author: mike;  state: Exp;
4816 new improved boss teleportation behavior.
4817 ----------------------------
4818 revision 1.43
4819 date: 1994/11/10 17:45:11;  author: mike;  state: Exp;
4820 debugging.
4821 ----------------------------
4822 revision 1.42
4823 date: 1994/11/07 10:37:42;  author: mike;  state: Exp;
4824 hooks for rob's network code.
4825 ----------------------------
4826 revision 1.41
4827 date: 1994/11/06 15:10:50;  author: mike;  state: Exp;
4828 prototype a debug function for dumping ai info.
4829 ----------------------------
4830 revision 1.40
4831 date: 1994/11/02 17:57:30;  author: rob;  state: Exp;
4832 Added extern of Believe_player_pos needed to get control centers
4833 locating people.
4834 ----------------------------
4835 revision 1.39
4836 date: 1994/10/28 19:43:39;  author: mike;  state: Exp;
4837 Prototype Boss_cloak_start_time, Boss_cloak_end_time.
4838 ----------------------------
4839 revision 1.38
4840 date: 1994/10/22 14:14:42;  author: mike;  state: Exp;
4841 Prototype ai_reset_all_paths.
4842 ----------------------------
4843 revision 1.37
4844 date: 1994/10/21 20:42:01;  author: mike;  state: Exp;
4845 Define MAX_PATH_LENGTH: maximum allowed length of a path.
4846 ----------------------------
4847 revision 1.36
4848 date: 1994/10/20 09:49:18;  author: mike;  state: Exp;
4849 Prototype something.
4850 ----------------------------
4851 revision 1.35
4852 date: 1994/10/18 15:37:52;  author: mike;  state: Exp;
4853 Define ROBOT_BOSS1.
4854 ----------------------------
4855 revision 1.34
4856 date: 1994/10/13 11:12:25;  author: mike;  state: Exp;
4857 Prototype some door functions.
4858 ----------------------------
4859 revision 1.33
4860 date: 1994/10/12 21:28:51;  author: mike;  state: Exp;
4861 Prototype create_n_segment_path_to_door
4862 Prototype ai_open_doors_in_segment
4863 Prototype ai_door_is_openable.
4864 ----------------------------
4865 revision 1.32
4866 date: 1994/10/11 15:59:41;  author: mike;  state: Exp;
4867 Prototype Robot_firing_enabled.
4868 ----------------------------
4869 revision 1.31
4870 date: 1994/10/09 22:02:48;  author: mike;  state: Exp;
4871 Adapt create_path_points and create_n_segment_path prototypes to use avoid_seg for player evasion.
4872 ----------------------------
4873 revision 1.30
4874 date: 1994/09/18 18:07:44;  author: mike;  state: Exp;
4875 Update prototypes for create_path_points and create_path_to_player.
4876 ----------------------------
4877 revision 1.29
4878 date: 1994/09/15 16:34:08;  author: mike;  state: Exp;
4879 Prototype do_ai_robot_hit_attack.
4880 ----------------------------
4881 revision 1.28
4882 date: 1994/09/12 19:12:35;  author: mike;  state: Exp;
4883 Prototype attempt_to_resume_path.
4884 ----------------------------
4885 revision 1.27
4886 date: 1994/08/25 21:55:32;  author: mike;  state: Exp;
4887 Add some prototypes.
4888 ----------------------------
4889 revision 1.26
4890 date: 1994/08/10 19:53:24;  author: mike;  state: Exp;
4891 Prototype create_path_to_player and init_robots_for_level.
4892 ----------------------------
4893 revision 1.25
4894 date: 1994/08/04 16:32:58;  author: mike;  state: Exp;
4895 prototype create_path_to_player.
4896 ----------------------------
4897 revision 1.24
4898 date: 1994/08/03 15:17:20;  author: mike;  state: Exp;
4899 Prototype make_random_vector.
4900 ----------------------------
4901 revision 1.23
4902 date: 1994/07/31 18:10:34;  author: mike;  state: Exp;
4903 Update prototype for create_path_points.
4904 ----------------------------
4905 revision 1.22
4906 date: 1994/07/28 12:36:14;  author: matt;  state: Exp;
4907 Cleaned up object bumping code
4908 =============================================================================
4909 RCS file: /Smoke/miner/source/main/aipath.c,v
4910 Working file: main/aipath.c
4911 head: 1.5
4912 description: AI path forming stuff.
4913 ----------------------------
4914 revision 1.5
4915 date: 1995/10/26 14:12:03;  author: allender;  state: Exp;
4916 prototype functions for mcc compiler
4917 ----------------------------
4918 revision 1.4
4919 date: 1995/10/25 09:38:22;  author: allender;  state: Exp;
4920 prototype some functions causing mcc grief
4921 ----------------------------
4922 revision 1.3
4923 date: 1995/10/10 11:48:43;  author: allender;  state: Exp;
4924 PC ai code
4925 ----------------------------
4926 revision 2.0
4927 date: 1995/02/27 11:30:48;  author: john;  state: Exp;
4928 New version 2.0, which has no anonymous unions, builds with
4929 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
4930 ----------------------------
4931 revision 1.101
4932 date: 1995/02/22 13:42:44;  author: allender;  state: Exp;
4933 remove anonymous unions for object structure
4934 ----------------------------
4935 revision 1.100
4936 date: 1995/02/10 16:20:04;  author: mike;  state: Exp;
4937 fix bogosity in create_path_points, assumed all objects were robots.
4938 ----------------------------
4939 revision 1.99
4940 date: 1995/02/07 21:09:30;  author: mike;  state: Exp;
4941 make run_from guys have diff level based speed.
4942 ----------------------------
4943 revision 1.98
4944 date: 1995/02/04 17:28:29;  author: mike;  state: Exp;
4945 make station guys return better.
4946 ----------------------------
4947 revision 1.97
4948 date: 1995/02/04 10:28:39;  author: mike;  state: Exp;
4949 fix compile error!
4950 ----------------------------
4951 revision 1.96
4952 date: 1995/02/04 10:03:37;  author: mike;  state: Exp;
4953 Fly to exit cheat.
4954 ----------------------------
4955 revision 1.95
4956 date: 1995/02/01 21:10:36;  author: mike;  state: Exp;
4957 Array name was dereferenced.  Not a bug, but unclean.
4958 ----------------------------
4959 revision 1.94
4960 date: 1995/02/01 17:14:12;  author: mike;  state: Exp;
4961 comment out some common mprintfs which didn't matter.
4962 ----------------------------
4963 revision 1.93
4964 date: 1995/01/30 13:01:23;  author: mike;  state: Exp;
4965 Make robots fire at player other than one they are controlled by sometimes.
4966 ----------------------------
4967 revision 1.92
4968 date: 1995/01/29 22:29:32;  author: mike;  state: Exp;
4969 add more debug info for guys that get lost.
4970 ----------------------------
4971 revision 1.91
4972 date: 1995/01/20 16:56:05;  author: mike;  state: Exp;
4973 station stuff.
4974 ----------------------------
4975 revision 1.90
4976 date: 1995/01/18 10:59:45;  author: mike;  state: Exp;
4977 comment out some mprintfs.
4978 ----------------------------
4979 revision 1.89
4980 date: 1995/01/17 16:58:34;  author: mike;  state: Exp;
4981 make path following work for multiplayer.
4982 ----------------------------
4983 revision 1.88
4984 date: 1995/01/17 14:21:44;  author: mike;  state: Exp;
4985 make run_from guys run better.
4986 ----------------------------
4987 revision 1.87
4988 date: 1995/01/14 17:09:04;  author: mike;  state: Exp;
4989 playing with crazy josh, he's kinda slow and dumb now.
4990 ----------------------------
4991 revision 1.86
4992 date: 1995/01/13 18:52:28;  author: mike;  state: Exp;
4993 comment out int3.
4994 ----------------------------
4995 revision 1.85
4996 date: 1995/01/05 09:42:11;  author: mike;  state: Exp;
4997 compile out code based on SHAREWARE.
4998 ----------------------------
4999 revision 1.84
5000 date: 1995/01/02 12:38:32;  author: mike;  state: Exp;
5001 make crazy josh turn faster, therefore evade player better.
5002 ----------------------------
5003 revision 1.83
5004 date: 1994/12/27 15:59:40;  author: mike;  state: Exp;
5005 tweak ai_multiplayer_awareness constants.
5006 ----------------------------
5007 revision 1.82
5008 date: 1994/12/19 17:07:10;  author: mike;  state: Exp;
5009 deal with new ai_multiplayer_awareness which returns a value saying whether this object can be moved by this player.
5010 ----------------------------
5011 revision 1.81
5012 date: 1994/12/15 13:04:30;  author: mike;  state: Exp;
5013 Replace Players[Player_num].time_total references with GameTime.
5014 ----------------------------
5015 revision 1.80
5016 date: 1994/12/09 16:13:23;  author: mike;  state: Exp;
5017 remove debug code.
5018 ----------------------------
5019 revision 1.79
5020 date: 1994/12/07 00:36:54;  author: mike;  state: Exp;
5021 make robots get out of matcens better and be aware of player.
5022 ----------------------------
5023 revision 1.78
5024 date: 1994/11/30 00:59:05;  author: mike;  state: Exp;
5025 optimizations.
5026 ----------------------------
5027 revision 1.77
5028 date: 1994/11/27 23:13:39;  author: matt;  state: Exp;
5029 Made changes for new mprintf calling convention
5030 ----------------------------
5031 revision 1.76
5032 date: 1994/11/23 21:59:34;  author: mike;  state: Exp;
5033 comment out some mprintfs.
5034 ----------------------------
5035 revision 1.75
5036 date: 1994/11/21 16:07:14;  author: mike;  state: Exp;
5037 flip PARALLAX flag, prevent annoying debug information.
5038 ----------------------------
5039 revision 1.74
5040 date: 1994/11/19 15:13:28;  author: mike;  state: Exp;
5041 remove unused code and data.
5042 ----------------------------
5043 revision 1.73
5044 date: 1994/11/17 14:53:15;  author: mike;  state: Exp;
5045 segment validation functions moved from editor to main.
5046 ----------------------------
5047 revision 1.72
5048 date: 1994/11/16 23:38:42;  author: mike;  state: Exp;
5049 new improved boss teleportation behavior.
5050 ----------------------------
5051 revision 1.71
5052 date: 1994/11/13 17:18:30;  author: mike;  state: Exp;
5053 debug code, then comment it out.
5054 ----------------------------
5055 revision 1.70
5056 date: 1994/11/11 16:41:43;  author: mike;  state: Exp;
5057 flip the PARALLAX flag.
5058 ----------------------------
5059 revision 1.69
5060 date: 1994/11/11 16:33:45;  author: mike;  state: Exp;
5061 twiddle the PARALLAX flag.
5062 ----------------------------
5063 revision 1.68
5064 date: 1994/11/10 21:32:29;  author: mike;  state: Exp;
5065 debug code.
5066 ----------------------------
5067 revision 1.67
5068 date: 1994/11/10 20:15:07;  author: mike;  state: Exp;
5069 fix stupid bug: uninitialized pointer.
5070 ----------------------------
5071 revision 1.66
5072 date: 1994/11/10 17:45:15;  author: mike;  state: Exp;
5073 debugging.
5074 ----------------------------
5075 revision 1.65
5076 date: 1994/11/10 17:28:10;  author: mike;  state: Exp;
5077 debugging.
5078 =============================================================================
5079 RCS file: /Smoke/miner/source/main/aistruct.h,v
5080 Working file: main/aistruct.h
5081 head: 1.2
5082 description: Structs and constants for AI system.
5083 object.h depends on this.
5084 ai.h depends on object.h.
5085 Get it?
5086 ----------------------------
5087 revision 1.2
5088 date: 1995/10/10 11:49:04;  author: allender;  state: Exp;
5089 PC ai code
5090 ----------------------------
5091 revision 1.1
5092 date: 1995/05/16 15:54:08;  author: allender;  state: Exp;
5093 Initial revision
5094 ----------------------------
5095 revision 2.0
5096 date: 1995/02/27 11:30:19;  author: john;  state: Exp;
5097 New version 2.0, which has no anonymous unions, builds with
5098 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5099 ----------------------------
5100 revision 1.34
5101 date: 1995/01/25 13:50:46;  author: mike;  state: Exp;
5102 Robots make angry sounds.
5103 ----------------------------
5104 revision 1.33
5105 date: 1994/12/29 12:44:56;  author: rob;  state: Exp;
5106 Added new coop robot flag.
5107 ----------------------------
5108 revision 1.32
5109 date: 1994/12/20 20:41:54;  author: rob;  state: Exp;
5110 Added new ai flag for multiplayer robots.
5111 ----------------------------
5112 revision 1.31
5113 date: 1994/12/19 16:37:39;  author: rob;  state: Exp;
5114 Added a new flag for remote controlled objects.
5115 ----------------------------
5116 revision 1.30
5117 date: 1994/12/07 00:36:07;  author: mike;  state: Exp;
5118 fix phys_apply_rot for robots -- ai was bashing effect in next frame.
5119 ----------------------------
5120 revision 1.29
5121 date: 1994/12/02 22:06:28;  author: mike;  state: Exp;
5122 add fields to allow robots to make awareness sounds every so often, not every damn blasted frame
5123 ----------------------------
5124 revision 1.28
5125 date: 1994/11/04 17:18:35;  author: yuan;  state: Exp;
5126 Increased MAX_SEG_POINTS to 2500.
5127 ----------------------------
5128 revision 1.27
5129 date: 1994/10/17 21:19:22;  author: mike;  state: Exp;
5130 robot cloaking.
5131 ----------------------------
5132 revision 1.26
5133 date: 1994/10/12 21:28:38;  author: mike;  state: Exp;
5134 Add new ai mode: AIM_OPEN_DOOR.
5135 Add GOALSIDE to aip.
5136 ----------------------------
5137 revision 1.25
5138 date: 1994/09/25 23:41:08;  author: matt;  state: Exp;
5139 Changed the object load & save code to read/write the structure fields one
5140 at a time (rather than the whole structure at once).  This mean that the
5141 object structure can be changed without breaking the load/save functions.
5142 As a result of this change, the local_object data can be and has been 
5143 incorporated into the object array.  Also, timeleft is now a property 
5144 of all objects, and the object structure has been otherwise cleaned up.
5145 ----------------------------
5146 revision 1.24
5147 date: 1994/09/21 12:28:11;  author: mike;  state: Exp;
5148 Change AI behavior for when player cloaked
5149 ----------------------------
5150 revision 1.23
5151 date: 1994/09/19 21:43:00;  author: mike;  state: Exp;
5152 Add follow_path_start_seg and follow_path_end_seg to aistruct.h.
5153 ----------------------------
5154 revision 1.22
5155 date: 1994/09/18 18:06:14;  author: mike;  state: Exp;
5156 Add Last_uncloaked_time and Last_uncloaked_position variables.
5157 ----------------------------
5158 revision 1.21
5159 date: 1994/09/15 16:31:38;  author: mike;  state: Exp;
5160 Define GREEN_GUY
5161 Add previous_visibility to ai_local struct.
5162 ----------------------------
5163 revision 1.20
5164 date: 1994/09/12 19:12:45;  author: mike;  state: Exp;
5165 Change some bytes to ints in ai_local so I could set watchpoints.
5166 ----------------------------
5167 revision 1.19
5168 date: 1994/08/25 21:53:31;  author: mike;  state: Exp;
5169 Add behavior, taking place of what used to be mode.
5170 ----------------------------
5171 revision 1.18
5172 date: 1994/08/23 16:38:09;  author: mike;  state: Exp;
5173 rapidfire_count in ai_local.
5174 ----------------------------
5175 revision 1.17
5176 date: 1994/08/19 17:38:23;  author: mike;  state: Exp;
5177 *** empty log message ***
5178 ----------------------------
5179 revision 1.16
5180 date: 1994/08/17 22:18:58;  author: mike;  state: Exp;
5181 add time_since_processed to ai_local.
5182 ----------------------------
5183 revision 1.15
5184 date: 1994/08/10 19:52:25;  author: mike;  state: Exp;
5185 Add Overall_agitation.
5186 ----------------------------
5187 revision 1.14
5188 date: 1994/08/04 16:32:32;  author: mike;  state: Exp;
5189 Add time_player_seen.
5190 ----------------------------
5191 revision 1.13
5192 date: 1994/07/28 16:58:11;  author: mike;  state: Exp;
5193 Move constants from ai.c
5194 ----------------------------
5195 revision 1.12
5196 date: 1994/07/19 15:26:24;  author: mike;  state: Exp;
5197 New ai_static and ai_local structures.
5198 ----------------------------
5199 revision 1.11
5200 date: 1994/07/15 15:17:19;  author: matt;  state: Exp;
5201 Changes MAX_AI_FLAGS for better alignment
5202 =============================================================================
5203 RCS file: /Smoke/miner/source/main/arcade.h,v
5204 Working file: main/arcade.h
5205 head: 1.1
5206 description: Routines for arcade version.
5207 ----------------------------
5208 revision 1.1
5209 date: 1995/05/16 15:54:16;  author: allender;  state: Exp;
5210 Initial revision
5211 ----------------------------
5212 revision 2.0
5213 date: 1995/02/27 11:27:27;  author: john;  state: Exp;
5214 New version 2.0, which has no anonymous unions, builds with
5215 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5216 ----------------------------
5217 revision 1.4
5218 date: 1994/09/16 21:44:06;  author: matt;  state: Exp;
5219 Made arcade code based on #define
5220 ----------------------------
5221 revision 1.3
5222 date: 1994/09/16 16:14:52;  author: john;  state: Exp;
5223 Added acrade sequencing.
5224 ----------------------------
5225 revision 1.2
5226 date: 1994/09/16 11:51:01;  author: john;  state: Exp;
5227 Added first version of arcade joystick support;
5228 Also fixed some bugs in kconfig.c, such as reading non-present
5229 joysticks, which killed frame rate, and not reading key_down_time
5230 when in slide mode or bank mode.
5231 ----------------------------
5232 revision 1.1
5233 date: 1994/09/16 09:59:29;  author: john;  state: Exp;
5234 Initial revision
5235 =============================================================================
5236 RCS file: /Smoke/miner/source/main/args.c,v
5237 Working file: main/args.c
5238 head: 1.1
5239 description: Functions for accessing arguments.
5240 ----------------------------
5241 revision 1.1
5242 date: 1995/05/16 15:22:52;  author: allender;  state: Exp;
5243 Initial revision
5244 ----------------------------
5245 revision 2.0
5246 date: 1995/02/27 11:31:22;  author: john;  state: Exp;
5247 New version 2.0, which has no anonymous unions, builds with
5248 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5249 ----------------------------
5250 revision 1.9
5251 date: 1994/11/29 01:07:57;  author: john;  state: Exp;
5252 Took out some unused vars.
5253 ----------------------------
5254 revision 1.8
5255 date: 1994/11/29 01:04:30;  author: john;  state: Exp;
5256 Took out descent.ini stuff.
5257 ----------------------------
5258 revision 1.7
5259 date: 1994/09/20 19:29:15;  author: matt;  state: Exp;
5260 Made args require exact (not substring), though still case insensitive.
5261 ----------------------------
5262 revision 1.6
5263 date: 1994/07/25 12:33:11;  author: john;  state: Exp;
5264 Network "pinging" in.
5265 ----------------------------
5266 revision 1.5
5267 date: 1994/06/17 18:07:50;  author: matt;  state: Exp;
5268 Took out printf
5269 ----------------------------
5270 revision 1.4
5271 date: 1994/05/11 19:45:33;  author: john;  state: Exp;
5272 *** empty log message ***
5273 ----------------------------
5274 revision 1.3
5275 date: 1994/05/11 18:42:11;  author: john;  state: Exp;
5276 Added Descent.ini config file.
5277 ----------------------------
5278 revision 1.2
5279 date: 1994/05/09 17:03:30;  author: john;  state: Exp;
5280 Split command line parameters into arg.c and arg.h.
5281 Also added /dma, /port, /irq to digi.c
5282 ----------------------------
5283 revision 1.1
5284 date: 1994/05/09 16:49:11;  author: john;  state: Exp;
5285 Initial revision
5286 =============================================================================
5287 RCS file: /Smoke/miner/source/main/args.h,v
5288 Working file: main/args.h
5289 head: 1.1
5290 description: Prototypes for accessing arguments.
5291 ----------------------------
5292 revision 1.1
5293 date: 1995/05/16 15:54:24;  author: allender;  state: Exp;
5294 Initial revision
5295 ----------------------------
5296 revision 2.0
5297 date: 1995/02/27 11:33:09;  author: john;  state: Exp;
5298 New version 2.0, which has no anonymous unions, builds with
5299 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5300 ----------------------------
5301 revision 1.4
5302 date: 1994/07/11 16:27:28;  author: matt;  state: Exp;
5303 Took out prototypes for netipx funcs
5304 ----------------------------
5305 revision 1.3
5306 date: 1994/05/11 19:45:34;  author: john;  state: Exp;
5307 *** empty log message ***
5308 ----------------------------
5309 revision 1.2
5310 date: 1994/05/09 17:02:55;  author: john;  state: Exp;
5311 Split command line parameters into arg.c and arg.h.
5312 Also added /dma, /port, /irq to digi.c
5313 ----------------------------
5314 revision 1.1
5315 date: 1994/05/09 16:47:49;  author: john;  state: Exp;
5316 Initial revision
5317 =============================================================================
5318 RCS file: /Smoke/miner/source/main/automap.c,v
5319 Working file: main/automap.c
5320 head: 1.8
5321 description: Routines for displaying the auto-map.
5322 ----------------------------
5323 revision 1.8
5324 date: 1995/10/31 10:24:54;  author: allender;  state: Exp;
5325 shareware stuff
5326 ----------------------------
5327 revision 1.7
5328 date: 1995/10/21 16:18:20;  author: allender;  state: Exp;
5329 blit pcx background directly to Page canvas instead of creating
5330 seperate bitmap for it -- hope to solve VM bug on some macs
5331 ----------------------------
5332 revision 1.6
5333 date: 1995/10/20 00:49:16;  author: allender;  state: Exp;
5334 added redbook check during automap
5335 ----------------------------
5336 revision 1.5
5337 date: 1995/09/13 08:44:07;  author: allender;  state: Exp;
5338 Dave Denhart's changes to speed up the automap
5339 ----------------------------
5340 revision 1.4
5341 date: 1995/08/18 15:46:00;  author: allender;  state: Exp;
5342 put text all on upper bar -- and fixed background since
5343 changing xparency color
5344 ----------------------------
5345 revision 1.3
5346 date: 1995/08/03 15:15:18;  author: allender;  state: Exp;
5347 fixed edge hashing problem causing automap to crash
5348 ----------------------------
5349 revision 1.2
5350 date: 1995/07/12 12:49:27;  author: allender;  state: Exp;
5351 works in 640x480 mode
5352 ----------------------------
5353 revision 1.1
5354 date: 1995/05/16 15:22:59;  author: allender;  state: Exp;
5355 Initial revision
5356 ----------------------------
5357 revision 2.2
5358 date: 1995/03/21 08:41:26;  author: john;  state: Exp;
5359 Ifdef'd out the NETWORK code.
5360 ----------------------------
5361 revision 2.1
5362 date: 1995/03/20 18:16:06;  author: john;  state: Exp;
5363 Added code to not store the normals in the segment structure.
5364 ----------------------------
5365 revision 2.0
5366 date: 1995/02/27 11:32:55;  author: john;  state: Exp;
5367 New version 2.0, which has no anonymous unions, builds with
5368 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5369 ----------------------------
5370 revision 1.117
5371 date: 1995/02/22 14:11:31;  author: allender;  state: Exp;
5372 remove anonymous unions from object structure
5373 ----------------------------
5374 revision 1.116
5375 date: 1995/02/22 13:24:39;  author: john;  state: Exp;
5376 Removed the vecmat anonymous unions.
5377 ----------------------------
5378 revision 1.115
5379 date: 1995/02/09 14:57:02;  author: john;  state: Exp;
5380 Reduced mem usage. Made automap slide farther.
5381 ----------------------------
5382 revision 1.114
5383 date: 1995/02/07 20:40:44;  author: rob;  state: Exp;
5384 Allow for anarchy automap of player pos by option.
5385 ----------------------------
5386 revision 1.113
5387 date: 1995/02/07 15:45:33;  author: john;  state: Exp;
5388 Made automap memory be static.
5389 ----------------------------
5390 revision 1.112
5391 date: 1995/02/02 12:24:00;  author: adam;  state: Exp;
5392 played with automap labels
5393 ----------------------------
5394 revision 1.111
5395 date: 1995/02/02 01:52:52;  author: john;  state: Exp;
5396 Made the automap use small font.
5397 ----------------------------
5398 revision 1.110
5399 date: 1995/02/02 01:34:34;  author: john;  state: Exp;
5400 Made Reset in automap not change segmentlimit.
5401 ----------------------------
5402 revision 1.109
5403 date: 1995/02/02 01:23:11;  author: john;  state: Exp;
5404 Finalized the new automap partial viewer.
5405 ----------------------------
5406 revision 1.108
5407 date: 1995/02/02 00:49:45;  author: mike;  state: Exp;
5408 new automap segment-depth functionality.
5409 ----------------------------
5410 revision 1.107
5411 date: 1995/02/02 00:23:04;  author: john;  state: Exp;
5412 Half of the code for new connected distance stuff in automap.
5413 ----------------------------
5414 revision 1.106
5415 date: 1995/02/01 22:54:00;  author: john;  state: Exp;
5416 Made colored doors not fade in automap. Made default
5417 viewing area be maxxed.
5418 ----------------------------
5419 revision 1.105
5420 date: 1995/02/01 13:16:13;  author: john;  state: Exp;
5421 Added great grates. 
5422 ----------------------------
5423 revision 1.104
5424 date: 1995/01/31 12:47:06;  author: john;  state: Exp;
5425 Made Alt+F only work with cheats enabled.
5426 ----------------------------
5427 revision 1.103
5428 date: 1995/01/31 12:41:23;  author: john;  state: Exp;
5429 Working with new controls.
5430 ----------------------------
5431 revision 1.102
5432 date: 1995/01/31 12:04:19;  author: john;  state: Exp;
5433 Version 2 of new key control.
5434 ----------------------------
5435 revision 1.101
5436 date: 1995/01/31 11:32:00;  author: john;  state: Exp;
5437 First version of new automap system.
5438 ----------------------------
5439 revision 1.100
5440 date: 1995/01/28 16:55:48;  author: john;  state: Exp;
5441 Made keys draw in automap in the segments that you have
5442 visited.
5443 ----------------------------
5444 revision 1.99
5445 date: 1995/01/28 14:44:51;  author: john;  state: Exp;
5446 Made hostage doors show up on automap.
5447 ----------------------------
5448 revision 1.98
5449 date: 1995/01/22 17:03:49;  author: rob;  state: Exp;
5450 Fixed problem drawing playerships in automap coop/team mode
5451 ----------------------------
5452 revision 1.97
5453 date: 1995/01/21 17:23:11;  author: john;  state: Exp;
5454 Limited S movement in map. Made map bitmap load from disk
5455 and then freed it.
5456 ----------------------------
5457 revision 1.96
5458 date: 1995/01/19 18:55:38;  author: john;  state: Exp;
5459 Don't draw players in automap if not obj_player.
5460 ----------------------------
5461 revision 1.95
5462 date: 1995/01/19 18:48:13;  author: john;  state: Exp;
5463 Made player colors better in automap.
5464 ----------------------------
5465 revision 1.94
5466 date: 1995/01/19 17:34:52;  author: rob;  state: Exp;
5467 Added team colorizations in automap.
5468 ----------------------------
5469 revision 1.93
5470 date: 1995/01/19 17:15:36;  author: rob;  state: Exp;
5471 Trying to add player ships into map for coop and team mode.
5472 ----------------------------
5473 revision 1.92
5474 date: 1995/01/19 17:11:09;  author: john;  state: Exp;
5475 Added code for Rob to draw Multiplayer ships in automap.
5476 ----------------------------
5477 revision 1.91
5478 date: 1995/01/12 13:35:20;  author: john;  state: Exp;
5479 Fixed bug with Segment 0 not getting displayed 
5480 in automap if you have EDITOR compiled in.
5481 ----------------------------
5482 revision 1.90
5483 date: 1995/01/08 16:17:14;  author: john;  state: Exp;
5484 Added code to draw player's up vector while in automap.
5485 ----------------------------
5486 revision 1.89
5487 date: 1995/01/08 16:09:41;  author: john;  state: Exp;
5488 Fixed problems with grate.
5489 ----------------------------
5490 revision 1.88
5491 date: 1994/12/14 22:54:17;  author: john;  state: Exp;
5492 Fixed bug that didn't show hostages in automap.
5493 ----------------------------
5494 revision 1.87
5495 date: 1994/12/09 00:41:03;  author: mike;  state: Exp;
5496 fix hang in automap print screen
5497 ----------------------------
5498 revision 1.86
5499 date: 1994/12/05 23:37:15;  author: matt;  state: Exp;
5500 Took out calls to warning() function
5501 ----------------------------
5502 revision 1.85
5503 date: 1994/12/03 22:35:28;  author: yuan;  state: Exp;
5504 Localization 412
5505 ----------------------------
5506 revision 1.84
5507 date: 1994/12/02 15:05:45;  author: matt;  state: Exp;
5508 Added new "official" cheats
5509 ----------------------------
5510 revision 1.83
5511 date: 1994/11/30 12:10:49;  author: adam;  state: Exp;
5512 added support for PCX titles/brief screens
5513 ----------------------------
5514 revision 1.82
5515 date: 1994/11/27 23:15:12;  author: matt;  state: Exp;
5516 Made changes for new mprintf calling convention
5517 ----------------------------
5518 revision 1.81
5519 date: 1994/11/27 15:35:52;  author: matt;  state: Exp;
5520 Enable screen shots even when debugging is turned off
5521 ----------------------------
5522 revision 1.80
5523 date: 1994/11/26 22:51:43;  author: matt;  state: Exp;
5524 Removed editor-only fields from segment structure when editor is compiled
5525 out, and padded segment structure to even multiple of 4 bytes.
5526 ----------------------------
5527 revision 1.79
5528 date: 1994/11/26 16:22:48;  author: matt;  state: Exp;
5529 Reduced leave_time
5530 ----------------------------
5531 revision 1.78
5532 date: 1994/11/23 22:00:10;  author: mike;  state: Exp;
5533 show level number.
5534 ----------------------------
5535 revision 1.77
5536 date: 1994/11/21 11:40:33;  author: rob;  state: Exp;
5537 Tweaked the game-loop for automap in multiplayer games.
5538 ----------------------------
5539 revision 1.76
5540 date: 1994/11/18 16:42:06;  author: adam;  state: Exp;
5541 removed a font
5542 ----------------------------
5543 revision 1.75
5544 date: 1994/11/17 13:06:48;  author: adam;  state: Exp;
5545 changed font
5546 ----------------------------
5547 revision 1.74
5548 date: 1994/11/14 20:47:17;  author: john;  state: Exp;
5549 Attempted to strip out all the code in the game 
5550 directory that uses any ui code.
5551 =============================================================================
5552 RCS file: /Smoke/miner/source/main/automap.h,v
5553 Working file: main/automap.h
5554 head: 1.2
5555 description: Prototypes for auto-map stuff.
5556 ----------------------------
5557 revision 1.2
5558 date: 1995/07/12 12:48:33;  author: allender;  state: Exp;
5559 moved edge_list structure into here for mallocing in mglobal
5560 ----------------------------
5561 revision 1.1
5562 date: 1995/05/16 15:54:31;  author: allender;  state: Exp;
5563 Initial revision
5564 ----------------------------
5565 revision 2.0
5566 date: 1995/02/27 11:29:35;  author: john;  state: Exp;
5567 New version 2.0, which has no anonymous unions, builds with
5568 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5569 ----------------------------
5570 revision 1.5
5571 date: 1994/12/09 00:41:21;  author: mike;  state: Exp;
5572 fix hang in automap print screen
5573 ----------------------------
5574 revision 1.4
5575 date: 1994/07/14 11:25:29;  author: john;  state: Exp;
5576 Made control centers destroy better; made automap use Tab key.
5577 ----------------------------
5578 revision 1.3
5579 date: 1994/07/12 15:45:51;  author: john;  state: Exp;
5580 Made paritial map.
5581 ----------------------------
5582 revision 1.2
5583 date: 1994/07/07 18:35:05;  author: john;  state: Exp;
5584 First version of automap
5585 ----------------------------
5586 revision 1.1
5587 date: 1994/07/07 15:12:13;  author: john;  state: Exp;
5588 Initial revision
5589 =============================================================================
5590 RCS file: /Buggin/miner/source/main/bm.c,v
5591 Working file: main/bm.c
5592 head: 1.1
5593 description: Bitmap and palette loading functions.
5594 ----------------------------
5595 revision 1.1
5596 date: 1995/05/16 15:23:08;  author: allender;  state: Exp;
5597 Initial revision
5598 ----------------------------
5599 revision 2.3
5600 date: 1995/03/14 16:22:04;  author: john;  state: Exp;
5601 Added cdrom alternate directory stuff.
5602 ----------------------------
5603 revision 2.2
5604 date: 1995/03/07 16:51:48;  author: john;  state: Exp;
5605 Fixed robots not moving without edtiro bug.
5606 ----------------------------
5607 revision 2.1
5608 date: 1995/03/06 15:23:06;  author: john;  state: Exp;
5609 New screen techniques.
5610 ----------------------------
5611 revision 2.0
5612 date: 1995/02/27 11:27:05;  author: john;  state: Exp;
5613 New version 2.0, which has no anonymous unions, builds with
5614 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5615 =============================================================================
5616 RCS file: /Smoke/miner/source/main/bm.h,v
5617 Working file: main/bm.h
5618 head: 1.1
5619 description: Bitmap and Palette loading functions.
5620 ----------------------------
5621 revision 1.1
5622 date: 1995/05/16 15:54:39;  author: allender;  state: Exp;
5623 Initial revision
5624 ----------------------------
5625 revision 2.0
5626 date: 1995/02/27 11:32:59;  author: john;  state: Exp;
5627 New version 2.0, which has no anonymous unions, builds with
5628 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5629 ----------------------------
5630 revision 1.60
5631 date: 1994/12/06 13:24:58;  author: matt;  state: Exp;
5632 Made exit model come out of bitmaps.tbl
5633 ----------------------------
5634 revision 1.59
5635 date: 1994/11/10 14:02:48;  author: matt;  state: Exp;
5636 Hacked in support for player ships with different textures
5637 ----------------------------
5638 revision 1.58
5639 date: 1994/10/27 13:32:17;  author: john;  state: Exp;
5640 Made TmapList only be in if editor
5641 ----------------------------
5642 revision 1.57
5643 date: 1994/10/11 12:25:20;  author: matt;  state: Exp;
5644 Added "hot rocks" that create badass explosion when hit by weapons
5645 ----------------------------
5646 revision 1.56
5647 date: 1994/09/29 12:38:13;  author: matt;  state: Exp;
5648 Took out include of digi.h, saving hours of unneeded compiles
5649 ----------------------------
5650 revision 1.55
5651 date: 1994/09/25 00:39:51;  author: matt;  state: Exp;
5652 Added the ability to make eclips (monitors, fans) which can be blown up
5653 ----------------------------
5654 revision 1.54
5655 date: 1994/09/17 01:40:59;  author: matt;  state: Exp;
5656 Added status bar/sizable window mode, and in the process revamped the
5657 whole cockpit mode system.
5658 ----------------------------
5659 revision 1.53
5660 date: 1994/09/08 16:20:48;  author: matt;  state: Exp;
5661 Gave textures the ability to cause damage when scraped
5662 ----------------------------
5663 revision 1.52
5664 date: 1994/08/30 22:23:43;  author: matt;  state: Exp;
5665 Added cabability for player ship to have alternate model to use to
5666 create debris.
5667 ----------------------------
5668 revision 1.51
5669 date: 1994/08/26 15:35:57;  author: matt;  state: Exp;
5670 Made eclips usable on more than one object at a time
5671 ----------------------------
5672 revision 1.50
5673 date: 1994/08/23 16:59:51;  author: john;  state: Exp;
5674 Added 3 cockpuits
5675 ----------------------------
5676 revision 1.49
5677 date: 1994/08/19 20:09:43;  author: matt;  state: Exp;
5678 Added end-of-level cut scene with external scene
5679 ----------------------------
5680 revision 1.48
5681 date: 1994/08/12 22:20:45;  author: matt;  state: Exp;
5682 Generalized polygon objects (such as control center)
5683 ----------------------------
5684 revision 1.47
5685 date: 1994/08/09 16:04:21;  author: john;  state: Exp;
5686 Added network players to editor.
5687 ----------------------------
5688 revision 1.46
5689 date: 1994/08/09 09:01:31;  author: john;  state: Exp;
5690 Increase MAX_TEXTURES
5691 ----------------------------
5692 revision 1.45
5693 date: 1994/07/13 00:14:57;  author: matt;  state: Exp;
5694 Moved all (or nearly all) of the values that affect player movement to 
5695 bitmaps.tbl
5696 ----------------------------
5697 revision 1.44
5698 date: 1994/06/20 21:33:15;  author: matt;  state: Exp;
5699 Made bm.h not include sounds.h, to reduce dependencies
5700 ----------------------------
5701 revision 1.43
5702 date: 1994/06/15 11:55:58;  author: matt;  state: Exp;
5703 Added 3d model for player
5704 ----------------------------
5705 revision 1.42
5706 date: 1994/06/13 16:09:11;  author: adam;  state: Exp;
5707 increased max textures to 600
5708 ----------------------------
5709 revision 1.41
5710 date: 1994/06/06 15:38:58;  author: john;  state: Exp;
5711 Made fullscreen view be just another cockpit, but the "hole"
5712 in the cockpit is just bigger.
5713 ----------------------------
5714 revision 1.40
5715 date: 1994/05/26 21:08:59;  author: matt;  state: Exp;
5716 Moved robot stuff out of polygon model and into robot_info struct
5717 Made new file, robot.c, to deal with robots
5718 ----------------------------
5719 revision 1.39
5720 date: 1994/05/18 11:00:05;  author: mike;  state: Exp;
5721 Add robot_info stuff.
5722 ----------------------------
5723 revision 1.38
5724 date: 1994/05/17 14:44:56;  author: mike;  state: Exp;
5725 Get object type and id from ObjType and ObjId.
5726 ----------------------------
5727 revision 1.37
5728 date: 1994/05/17 12:04:45;  author: mike;  state: Exp;
5729 Deal with little known fact that polygon object != robot.
5730 ----------------------------
5731 revision 1.36
5732 date: 1994/05/16 16:17:35;  author: john;  state: Exp;
5733 Bunch of stuff on my Inferno Task list May16-23
5734 ----------------------------
5735 revision 1.35
5736 date: 1994/04/27 11:43:42;  author: john;  state: Exp;
5737 First version of sound! Yay!
5738 ----------------------------
5739 revision 1.34
5740 date: 1994/04/22 10:53:48;  author: john;  state: Exp;
5741 Increased MAX_TEXTURES to 500.
5742 ----------------------------
5743 revision 1.33
5744 date: 1994/04/01 11:15:05;  author: yuan;  state: Exp;
5745 Added multiple bitmap functionality to all objects...
5746 (hostages, powerups, lasers, etc.)  
5747 Hostages and powerups are implemented in the object system,
5748 just need to finish function call to "affect" player.
5749 ----------------------------
5750 revision 1.32
5751 date: 1994/03/25 17:30:37;  author: yuan;  state: Exp;
5752 Checking in hostage stuff.
5753 ----------------------------
5754 revision 1.31
5755 date: 1994/03/17 18:07:28;  author: yuan;  state: Exp;
5756 Removed switch code... Now we just have Walls, Triggers, and Links...
5757 ----------------------------
5758 revision 1.30
5759 date: 1994/03/15 17:03:51;  author: yuan;  state: Exp;
5760 Added Robot/object bitmap capability
5761 ----------------------------
5762 revision 1.29
5763 date: 1994/03/15 16:32:58;  author: yuan;  state: Exp;
5764 Cleaned up bm-loading code.
5765 (Fixed structures too)
5766 ----------------------------
5767 revision 1.28
5768 date: 1994/03/04 17:09:13;  author: yuan;  state: Exp;
5769 New door stuff.
5770 ----------------------------
5771 revision 1.27
5772 date: 1994/01/31 14:50:09;  author: yuan;  state: Exp;
5773 Added Robotex
5774 ----------------------------
5775 revision 1.26
5776 date: 1994/01/31 12:27:14;  author: yuan;  state: Exp;
5777 Added demo stuff (menu, etc.)
5778 ----------------------------
5779 revision 1.25
5780 date: 1994/01/25 17:11:43;  author: john;  state: Exp;
5781 New texmaped lasers.
5782 ----------------------------
5783 revision 1.24
5784 date: 1994/01/24 11:48:06;  author: yuan;  state: Exp;
5785 Lighting stuff
5786 ----------------------------
5787 revision 1.23
5788 date: 1994/01/22 13:40:15;  author: yuan;  state: Exp;
5789 Modified the bmd_bitmap structure a bit.
5790 (Saves some memory, and added reflection)
5791 ----------------------------
5792 revision 1.22
5793 date: 1994/01/11 10:58:38;  author: yuan;  state: Exp;
5794 Added effects system
5795 ----------------------------
5796 revision 1.21
5797 date: 1994/01/06 17:13:12;  author: john;  state: Exp;
5798 Added Video clip functionality
5799 ----------------------------
5800 revision 1.20
5801 date: 1993/12/21 20:00:15;  author: john;  state: Exp;
5802 moved selector stuff to grs_bitmap
5803 ----------------------------
5804 revision 1.19
5805 date: 1993/12/21 19:33:58;  author: john;  state: Exp;
5806 Added selector to bmd_bitmap.
5807 ----------------------------
5808 revision 1.18
5809 date: 1993/12/07 12:28:48;  author: john;  state: Exp;
5810 moved bmd_palette to gr_palette
5811 ----------------------------
5812 revision 1.17
5813 date: 1993/12/06 18:40:37;  author: matt;  state: Exp;
5814 Changed object loading & handling
5815 ----------------------------
5816 revision 1.16
5817 date: 1993/12/05 23:05:03;  author: matt;  state: Exp;
5818 Added include of gr.h
5819 ----------------------------
5820 revision 1.15
5821 date: 1993/12/03 17:38:04;  author: yuan;  state: Exp;
5822 Ooops. meant to say:
5823 Moved MAX variables to bm.c, Arrays left open.
5824 ----------------------------
5825 revision 1.14
5826 date: 1993/12/03 17:37:26;  author: yuan;  state: Exp;
5827 Added Asserts.
5828 ----------------------------
5829 revision 1.13
5830 date: 1993/12/02 17:22:54;  author: yuan;  state: Exp;
5831 New global var. Num_object_types
5832 ----------------------------
5833 revision 1.12
5834 date: 1993/12/02 16:34:39;  author: yuan;  state: Exp;
5835 Added fireball hack stuff.
5836 ----------------------------
5837 revision 1.11
5838 date: 1993/12/02 15:45:14;  author: yuan;  state: Exp;
5839 Added a buncha constants, variables, and function prototypes
5840 for the new bitmaps.tbl format.
5841 ----------------------------
5842 revision 1.10
5843 date: 1993/12/01 11:25:11;  author: yuan;  state: Exp;
5844 Changed MALLOC'd buffers for filename and type in
5845 the bmd_bitmap structure into arrays... Saves time
5846 at load up.
5847 ----------------------------
5848 revision 1.9
5849 date: 1993/12/01 00:28:09;  author: yuan;  state: Exp;
5850 New bitmap system structure.
5851 ----------------------------
5852 revision 1.8
5853 date: 1993/11/03 11:34:08;  author: john;  state: Exp;
5854 made it use bitmaps.tbl
5855 ----------------------------
5856 revision 1.7
5857 date: 1993/10/26 18:11:03;  author: john;  state: Exp;
5858 made all palette data be statically allocated
5859 ----------------------------
5860 revision 1.6
5861 date: 1993/10/19 12:17:51;  author: john;  state: Exp;
5862 *** empty log message ***
5863 ----------------------------
5864 revision 1.5
5865 date: 1993/10/16 20:02:41;  author: matt;  state: Exp;
5866 Changed name of backdrop bitmap file
5867 ----------------------------
5868 revision 1.4
5869 date: 1993/10/12 15:08:52;  author: matt;  state: Exp;
5870 Added a bunch of new textures
5871 ----------------------------
5872 revision 1.3
5873 date: 1993/10/12 12:30:41;  author: john;  state: Exp;
5874 *** empty log message ***
5875 ----------------------------
5876 revision 1.2
5877 date: 1993/10/12 11:27:58;  author: john;  state: Exp;
5878 added more bitmaps
5879 ----------------------------
5880 revision 1.1
5881 date: 1993/09/23 13:09:10;  author: john;  state: Exp;
5882 Initial revision
5883 =============================================================================
5884 RCS file: /Smoke/miner/source/main/bmread.c,v
5885 Working file: main/bmread.c
5886 head: 1.1
5887 description: Routines to parse bitmaps.tbl
5888 ----------------------------
5889 revision 1.1
5890 date: 1995/05/16 15:23:16;  author: allender;  state: Exp;
5891 Initial revision
5892 ----------------------------
5893 revision 2.4
5894 date: 1995/03/28 18:05:29;  author: john;  state: Exp;
5895 Fixed it so you don't have to delete pig after changing bitmaps.tbl
5896 ----------------------------
5897 revision 2.3
5898 date: 1995/03/07 16:52:03;  author: john;  state: Exp;
5899 Fixed robots not moving without edtiro bug.
5900 ----------------------------
5901 revision 2.2
5902 date: 1995/03/06 16:10:20;  author: mike;  state: Exp;
5903 Fix compile errors if building without editor.
5904 ----------------------------
5905 revision 2.1
5906 date: 1995/03/02 14:55:40;  author: john;  state: Exp;
5907 Fixed bug with EDITOR never defined.
5908 ----------------------------
5909 revision 2.0
5910 date: 1995/02/27 11:33:10;  author: john;  state: Exp;
5911 New version 2.0, which has no anonymous unions, builds with
5912 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5913 ----------------------------
5914 revision 1.1
5915 date: 1995/02/25 14:02:36;  author: john;  state: Exp;
5916 Initial revision
5917 =============================================================================
5918 RCS file: /Smoke/miner/source/main/cdrom.h,v
5919 Working file: main/cdrom.h
5920 head: 1.1
5921 description: Prototypes for cdrom.c
5922 ----------------------------
5923 revision 1.1
5924 date: 1995/05/16 15:54:46;  author: allender;  state: Exp;
5925 Initial revision
5926 ----------------------------
5927 revision 1.2
5928 date: 1995/03/20 09:01:12;  author: john;  state: Exp;
5929 Initial revision.
5930 ----------------------------
5931 revision 1.1
5932 date: 1995/03/14 17:01:37;  author: john;  state: Exp;
5933 Initial revision
5934 =============================================================================
5935 RCS file: /Smoke/miner/source/main/cntrlcen.c,v
5936 Working file: main/cntrlcen.c
5937 head: 1.2
5938 description: Code for the control center
5939 ----------------------------
5940 revision 1.2
5941 date: 1995/10/17 13:12:13;  author: allender;  state: Exp;
5942 added param to ai call
5943 ----------------------------
5944 revision 1.1
5945 date: 1995/05/16 15:23:27;  author: allender;  state: Exp;
5946 Initial revision
5947 ----------------------------
5948 revision 2.1
5949 date: 1995/03/21 08:40:25;  author: john;  state: Exp;
5950 Ifdef'd out the NETWORK code.
5951 ----------------------------
5952 revision 2.0
5953 date: 1995/02/27 11:31:25;  author: john;  state: Exp;
5954 New version 2.0, which has no anonymous unions, builds with
5955 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
5956 ----------------------------
5957 revision 1.22
5958 date: 1995/02/11 01:56:14;  author: mike;  state: Exp;
5959 robots don't fire cheat.
5960 ----------------------------
5961 revision 1.21
5962 date: 1995/02/05 13:39:39;  author: mike;  state: Exp;
5963 fix stupid bug in control center firing timing.
5964 ----------------------------
5965 revision 1.20
5966 date: 1995/02/03 17:41:21;  author: mike;  state: Exp;
5967 fix control cen next fire time in multiplayer.
5968 ----------------------------
5969 revision 1.19
5970 date: 1995/01/29 13:46:41;  author: mike;  state: Exp;
5971 adapt to new create_small_fireball_on_object prototype.
5972 ----------------------------
5973 revision 1.18
5974 date: 1995/01/18 16:12:13;  author: mike;  state: Exp;
5975 Make control center aware of a cloaked playerr when he fires.
5976 ----------------------------
5977 revision 1.17
5978 date: 1995/01/12 12:53:44;  author: rob;  state: Exp;
5979 Trying to fix a bug with having cntrlcen in robotarchy games.
5980 ----------------------------
5981 revision 1.16
5982 date: 1994/12/11 12:37:22;  author: mike;  state: Exp;
5983 make control center smarter about firing at cloaked player, don't fire through self, though
5984 it still looks that way due to prioritization problems.
5985 ----------------------------
5986 revision 1.15
5987 date: 1994/12/01 11:34:33;  author: mike;  state: Exp;
5988 fix control center shield strength in multiplayer team games.
5989 ----------------------------
5990 revision 1.14
5991 date: 1994/11/30 15:44:29;  author: mike;  state: Exp;
5992 make cntrlcen harder at higher levels.
5993 ----------------------------
5994 revision 1.13
5995 date: 1994/11/29 22:26:23;  author: yuan;  state: Exp;
5996 Fixed boss bug.
5997 ----------------------------
5998 revision 1.12
5999 date: 1994/11/27 23:12:31;  author: matt;  state: Exp;
6000 Made changes for new mprintf calling convention
6001 ----------------------------
6002 revision 1.11
6003 date: 1994/11/23 17:29:38;  author: mike;  state: Exp;
6004 deal with peculiarities going between net and regular game on boss level.
6005 ----------------------------
6006 revision 1.10
6007 date: 1994/11/18 18:27:15;  author: rob;  state: Exp;
6008 Fixed some bugs with the last version.
6009 ----------------------------
6010 revision 1.9
6011 date: 1994/11/18 17:13:59;  author: mike;  state: Exp;
6012 special case handling for level 8.
6013 ----------------------------
6014 revision 1.8
6015 date: 1994/11/15 12:45:28;  author: mike;  state: Exp;
6016 don't let cntrlcen know where a cloaked player is.
6017 ----------------------------
6018 revision 1.7
6019 date: 1994/11/08 12:18:37;  author: mike;  state: Exp;
6020 small explosions on control center.
6021 ----------------------------
6022 revision 1.6
6023 date: 1994/11/02 17:59:18;  author: rob;  state: Exp;
6024 Changed control centers so they can find people in network games.
6025 Side effect of this is that control centers can find cloaked players.
6026 (see in-code comments for explanation).  
6027 Also added network hooks so control center shots 'sync up'.
6028 ----------------------------
6029 revision 1.5
6030 date: 1994/10/22 14:13:21;  author: mike;  state: Exp;
6031 Make control center stop firing shortly after player dies.
6032 Fix bug: If play from editor and die, tries to initialize non-control center object.
6033 ----------------------------
6034 revision 1.4
6035 date: 1994/10/20 15:17:30;  author: mike;  state: Exp;
6036 Hack for control center inside boss robot.
6037 ----------------------------
6038 revision 1.3
6039 date: 1994/10/20 09:47:46;  author: mike;  state: Exp;
6040 lots stuff.
6041 ----------------------------
6042 revision 1.2
6043 date: 1994/10/17 21:35:09;  author: matt;  state: Exp;
6044 Added support for new Control Center/Main Reactor
6045 ----------------------------
6046 revision 1.1
6047 date: 1994/10/17 20:24:01;  author: matt;  state: Exp;
6048 Initial revision
6049 =============================================================================
6050 RCS file: /Smoke/miner/source/main/cntrlcen.h,v
6051 Working file: main/cntrlcen.h
6052 head: 1.1
6053 description: Header for cntrlcen.c
6054 ----------------------------
6055 revision 1.1
6056 date: 1995/05/16 15:54:54;  author: allender;  state: Exp;
6057 Initial revision
6058 ----------------------------
6059 revision 2.0
6060 date: 1995/02/27 11:30:40;  author: john;  state: Exp;
6061 New version 2.0, which has no anonymous unions, builds with
6062 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6063 ----------------------------
6064 revision 1.7
6065 date: 1995/02/01 16:34:14;  author: john;  state: Exp;
6066 Linted.
6067 ----------------------------
6068 revision 1.6
6069 date: 1995/01/03 20:19:14;  author: john;  state: Exp;
6070 Pretty good working version of game save.
6071 ----------------------------
6072 revision 1.5
6073 date: 1994/11/08 12:18:28;  author: mike;  state: Exp;
6074 small explosions on control center.
6075 ----------------------------
6076 revision 1.4
6077 date: 1994/11/02 18:00:12;  author: rob;  state: Exp;
6078 Added extern for Gun_pos array for network hooks.
6079 ----------------------------
6080 revision 1.3
6081 date: 1994/10/20 09:47:37;  author: mike;  state: Exp;
6082 *** empty log message ***
6083 ----------------------------
6084 revision 1.2
6085 date: 1994/10/17 21:35:10;  author: matt;  state: Exp;
6086 Added support for new Control Center/Main Reactor
6087 ----------------------------
6088 revision 1.1
6089 date: 1994/10/17 20:24:28;  author: matt;  state: Exp;
6090 Initial revision
6091 =============================================================================
6092 RCS file: /Smoke/miner/source/main/coindev.h,v
6093 Working file: main/coindev.h
6094 head: 1.1
6095 description: Routines to read the coin counter.
6096 ----------------------------
6097 revision 1.1
6098 date: 1995/05/16 15:55:01;  author: allender;  state: Exp;
6099 Initial revision
6100 ----------------------------
6101 revision 2.0
6102 date: 1995/02/27 11:30:38;  author: john;  state: Exp;
6103 New version 2.0, which has no anonymous unions, builds with
6104 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6105 ----------------------------
6106 revision 1.2
6107 date: 1994/09/16 16:15:10;  author: john;  state: Exp;
6108 Added acrade sequencing.
6109 ----------------------------
6110 revision 1.1
6111 date: 1994/09/16 12:56:24;  author: john;  state: Exp;
6112 Initial revision
6113 =============================================================================
6114 RCS file: /Smoke/miner/source/main/collide.c,v
6115 Working file: main/collide.c
6116 head: 1.3
6117 description: ----------------------------
6118 revision 1.3
6119 date: 1995/11/08 17:15:21;  author: allender;  state: Exp;
6120 make collide_player_and_weapon play player_hit_sound if
6121 shareware and not my playernum
6122 ----------------------------
6123 revision 1.2
6124 date: 1995/10/31 10:24:37;  author: allender;  state: Exp;
6125 shareware stuff
6126 ----------------------------
6127 revision 1.1
6128 date: 1995/05/16 15:23:34;  author: allender;  state: Exp;
6129 Initial revision
6130 ----------------------------
6131 revision 2.4
6132 date: 1995/03/30 16:36:09;  author: mike;  state: Exp;
6133 text localization.
6134 ----------------------------
6135 revision 2.3
6136 date: 1995/03/24 15:11:13;  author: john;  state: Exp;
6137 Added ugly robot cheat.
6138 ----------------------------
6139 revision 2.2
6140 date: 1995/03/21 14:41:04;  author: john;  state: Exp;
6141 Ifdef'd out the NETWORK code.
6142 ----------------------------
6143 revision 2.1
6144 date: 1995/03/20 18:16:02;  author: john;  state: Exp;
6145 Added code to not store the normals in the segment structure.
6146 ----------------------------
6147 revision 2.0
6148 date: 1995/02/27 11:32:20;  author: john;  state: Exp;
6149 New version 2.0, which has no anonymous unions, builds with
6150 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6151 ----------------------------
6152 revision 1.289
6153 date: 1995/02/22 13:56:06;  author: allender;  state: Exp;
6154 remove anonymous unions from object structure
6155 ----------------------------
6156 revision 1.288
6157 date: 1995/02/11 15:52:45;  author: rob;  state: Exp;
6158 Included text.h.
6159 ----------------------------
6160 revision 1.287
6161 date: 1995/02/11 15:04:11;  author: rob;  state: Exp;
6162 Localized a string.
6163 ----------------------------
6164 revision 1.286
6165 date: 1995/02/11 14:25:41;  author: rob;  state: Exp;
6166 Added invul. controlcen option.
6167 ----------------------------
6168 revision 1.285
6169 date: 1995/02/06 15:53:00;  author: mike;  state: Exp;
6170 create awareness event for player:wall collision.
6171 ----------------------------
6172 revision 1.284
6173 date: 1995/02/05 23:18:17;  author: matt;  state: Exp;
6174 Deal with objects (such as fusion blobs) that get created already
6175 poking through a wall
6176 ----------------------------
6177 revision 1.283
6178 date: 1995/02/01 17:51:33;  author: mike;  state: Exp;
6179 fusion bolt can now toast multiple proximity bombs.
6180 ----------------------------
6181 revision 1.282
6182 date: 1995/02/01 17:29:20;  author: john;  state: Exp;
6183 Lintized
6184 ----------------------------
6185 revision 1.281
6186 date: 1995/02/01 15:04:00;  author: rob;  state: Exp;
6187 Changed sound of weapons hitting invulnerable players.
6188 ----------------------------
6189 revision 1.280
6190 date: 1995/01/31 16:16:35;  author: mike;  state: Exp;
6191 Separate smart blobs for robot and player.
6192 ----------------------------
6193 revision 1.279
6194 date: 1995/01/29 15:57:10;  author: rob;  state: Exp;
6195 Fixed another bug with robot_request_change calls.
6196 ----------------------------
6197 revision 1.278
6198 date: 1995/01/28 18:15:06;  author: rob;  state: Exp;
6199 Fixed a bug in multi_request_robot_change.
6200 ----------------------------
6201 revision 1.277
6202 date: 1995/01/27 15:15:44;  author: rob;  state: Exp;
6203 Fixing problems with controlcen damage.
6204 ----------------------------
6205 revision 1.276
6206 date: 1995/01/27 15:13:10;  author: mike;  state: Exp;
6207 comment out mprintf.
6208 ----------------------------
6209 revision 1.275
6210 date: 1995/01/26 22:11:51;  author: mike;  state: Exp;
6211 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
6212 ----------------------------
6213 revision 1.274
6214 date: 1995/01/26 18:57:55;  author: rob;  state: Exp;
6215 Changed two uses of digi_play_sample to digi_link_sound_to_pos which
6216 made more sense.
6217 ----------------------------
6218 revision 1.273
6219 date: 1995/01/25 23:37:58;  author: mike;  state: Exp;
6220 make persistent objects not hit player more than once.
6221 Also, make them hit player before degrading them, else they often did 0 damage.
6222 ----------------------------
6223 revision 1.272
6224 date: 1995/01/25 18:23:54;  author: rob;  state: Exp;
6225 Don't let players pick up powerups in exit tunnel.
6226 ----------------------------
6227 revision 1.271
6228 date: 1995/01/25 13:43:18;  author: rob;  state: Exp;
6229 Added robot transfer for player collisions.
6230 Removed mprintf from collide.c on Mike's request.
6231 ----------------------------
6232 revision 1.270
6233 date: 1995/01/25 10:24:01;  author: mike;  state: Exp;
6234 Make sizzle and rock happen in lava even if you're invulnerable.
6235 ----------------------------
6236 revision 1.269
6237 date: 1995/01/22 17:05:33;  author: mike;  state: Exp;
6238 Call multi_robot_request_change when a robot gets whacked by a player or
6239 player weapon, if player_num != Player_num
6240 ----------------------------
6241 revision 1.268
6242 date: 1995/01/21 21:20:28;  author: matt;  state: Exp;
6243 Fixed stupid bug
6244 ----------------------------
6245 revision 1.267
6246 date: 1995/01/21 18:47:47;  author: rob;  state: Exp;
6247 Fixed a really dumb bug with player keys.
6248 ----------------------------
6249 revision 1.266
6250 date: 1995/01/21 17:39:30;  author: matt;  state: Exp;
6251 Cleaned up laser/player hit wall confusions
6252 ----------------------------
6253 revision 1.265
6254 date: 1995/01/19 17:44:42;  author: mike;  state: Exp;
6255 damage_force removed, that information coming from strength field.
6256 ----------------------------
6257 revision 1.264
6258 date: 1995/01/18 17:12:56;  author: rob;  state: Exp;
6259 Fixed control stuff for multiplayer.
6260 ----------------------------
6261 revision 1.263
6262 date: 1995/01/18 16:12:33;  author: mike;  state: Exp;
6263 Make control center aware of a cloaked playerr when he fires.
6264 ----------------------------
6265 revision 1.262
6266 date: 1995/01/17 17:48:42;  author: rob;  state: Exp;
6267 Added key syncing for coop players.
6268 ----------------------------
6269 revision 1.261
6270 date: 1995/01/16 19:30:28;  author: rob;  state: Exp;
6271 Fixed an assert error in fireball.c
6272 ----------------------------
6273 revision 1.260
6274 date: 1995/01/16 19:23:51;  author: mike;  state: Exp;
6275 Say Boss_been_hit if he been hit so he gates appropriately.
6276 ----------------------------
6277 revision 1.259
6278 date: 1995/01/16 11:55:16;  author: mike;  state: Exp;
6279 make enemies become aware of player if he damages control center.
6280 ----------------------------
6281 revision 1.258
6282 date: 1995/01/15 16:42:00;  author: rob;  state: Exp;
6283 Fixed problem with robot bumping damage.
6284 ----------------------------
6285 revision 1.257
6286 date: 1995/01/14 19:16:36;  author: john;  state: Exp;
6287 First version of new bitmap paging code.
6288 ----------------------------
6289 revision 1.256
6290 date: 1995/01/03 17:58:37;  author: rob;  state: Exp;
6291 Fixed scoring problems.
6292 ----------------------------
6293 revision 1.255
6294 date: 1994/12/29 12:41:11;  author: rob;  state: Exp;
6295 Tweaking robot exploding in coop.
6296 ----------------------------
6297 revision 1.254
6298 date: 1994/12/28 10:37:59;  author: rob;  state: Exp;
6299 Fixed ifdef of multibot stuff.
6300 ----------------------------
6301 revision 1.253
6302 date: 1994/12/21 19:03:14;  author: rob;  state: Exp;
6303 Fixing score accounting for multiplayer robots
6304 ----------------------------
6305 revision 1.252
6306 date: 1994/12/21 17:36:31;  author: rob;  state: Exp;
6307 Fix hostage pickup problem in network.
6308 tweaking robot powerup drops.
6309 ----------------------------
6310 revision 1.251
6311 date: 1994/12/19 20:32:34;  author: rob;  state: Exp;
6312 Remove awareness events from player collisions and lasers that are not the console player.
6313 ----------------------------
6314 revision 1.250
6315 date: 1994/12/19 20:01:22;  author: rob;  state: Exp;
6316 Added multibot.h include.
6317 ----------------------------
6318 revision 1.249
6319 date: 1994/12/19 16:36:41;  author: rob;  state: Exp;
6320 Patches damaging of multiplayer robots.
6321 ----------------------------
6322 revision 1.248
6323 date: 1994/12/14 21:15:18;  author: rob;  state: Exp;
6324 play lava hiss across network.
6325 ----------------------------
6326 revision 1.247
6327 date: 1994/12/14 17:09:09;  author: matt;  state: Exp;
6328 Fixed problem with no sound when lasers hit closed walls, like grates.
6329 ----------------------------
6330 revision 1.246
6331 date: 1994/12/14 09:51:49;  author: mike;  state: Exp;
6332 make any weapon cause proximity bomb detonation.
6333 ----------------------------
6334 revision 1.245
6335 date: 1994/12/13 12:55:25;  author: mike;  state: Exp;
6336 change number of proximity bomb powerups which get dropped.
6337 ----------------------------
6338 revision 1.244
6339 date: 1994/12/12 17:17:53;  author: mike;  state: Exp;
6340 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
6341 ----------------------------
6342 revision 1.243
6343 date: 1994/12/12 12:07:51;  author: rob;  state: Exp;
6344 Don't take damage if we're in endlevel sequence.
6345 ----------------------------
6346 revision 1.242
6347 date: 1994/12/11 23:44:52;  author: mike;  state: Exp;
6348 less phys_apply_rot() at higher skill levels.
6349 ----------------------------
6350 revision 1.241
6351 date: 1994/12/11 12:37:02;  author: mike;  state: Exp;
6352 remove stupid robot spinning code.  it was really stupid.  (actually, call here, code in ai.c).
6353 ----------------------------
6354 revision 1.240
6355 date: 1994/12/10 16:44:51;  author: matt;  state: Exp;
6356 Added debugging code to track down door that turns into rock
6357 ----------------------------
6358 revision 1.239
6359 date: 1994/12/09 14:59:19;  author: matt;  state: Exp;
6360 Added system to attach a fireball to another object for rendering purposes,
6361 so the fireball always renders on top of (after) the object.
6362 ----------------------------
6363 revision 1.238
6364 date: 1994/12/09 09:57:02;  author: mike;  state: Exp;
6365 Don't allow robots or their weapons to pass through control center.
6366 ----------------------------
6367 revision 1.237
6368 date: 1994/12/08 15:46:03;  author: mike;  state: Exp;
6369 better robot behavior.
6370 ----------------------------
6371 revision 1.236
6372 date: 1994/12/08 12:32:56;  author: mike;  state: Exp;
6373 make boss dying more interesting.
6374 ----------------------------
6375 revision 1.235
6376 date: 1994/12/07 22:49:15;  author: mike;  state: Exp;
6377 tweak rotation due to collision.
6378 ----------------------------
6379 revision 1.234
6380 date: 1994/12/07 16:44:50;  author: mike;  state: Exp;
6381 make bump sound if supposed to, even if not taking damage.
6382 ----------------------------
6383 revision 1.233
6384 date: 1994/12/07 12:55:08;  author: mike;  state: Exp;
6385 tweak rotvel applied from collisions.
6386 ----------------------------
6387 revision 1.232
6388 date: 1994/12/05 19:30:48;  author: matt;  state: Exp;
6389 Fixed horrible segment over-dereferencing
6390 ----------------------------
6391 revision 1.231
6392 date: 1994/12/05 00:32:15;  author: mike;  state: Exp;
6393 do rotvel on badass and bump collisions.
6394 ----------------------------
6395 revision 1.230
6396 date: 1994/12/03 12:49:22;  author: mike;  state: Exp;
6397 don't play bonk sound when you collide with a volatile wall (like lava).
6398 ----------------------------
6399 revision 1.229
6400 date: 1994/12/02 16:51:09;  author: mike;  state: Exp;
6401 make lava sound only happen at 4 Hz.
6402 ----------------------------
6403 revision 1.228
6404 date: 1994/11/30 23:55:27;  author: rob;  state: Exp;
6405 Fixed a bug where a laser hitting a wall was making 2 sounds.
6406 ----------------------------
6407 revision 1.227
6408 date: 1994/11/30 20:11:00;  author: rob;  state: Exp;
6409 Fixed # of dropped laser powerups.
6410 ----------------------------
6411 revision 1.226
6412 date: 1994/11/30 19:19:03;  author: rob;  state: Exp;
6413 Transmit collission sounds for net games.
6414 ----------------------------
6415 revision 1.225
6416 date: 1994/11/30 16:33:01;  author: mike;  state: Exp;
6417 new boss behavior.
6418 ----------------------------
6419 revision 1.224
6420 date: 1994/11/30 15:44:17;  author: mike;  state: Exp;
6421 /2 on boss smart children damage.
6422 ----------------------------
6423 revision 1.223
6424 date: 1994/11/30 14:03:03;  author: mike;  state: Exp;
6425 hook for claw sounds
6426 ----------------------------
6427 revision 1.222
6428 date: 1994/11/29 20:41:09;  author: matt;  state: Exp;
6429 Deleted a bunch of commented-out lines
6430 ----------------------------
6431 revision 1.221
6432 date: 1994/11/27 23:15:08;  author: matt;  state: Exp;
6433 Made changes for new mprintf calling convention
6434 ----------------------------
6435 revision 1.220
6436 date: 1994/11/19 16:11:28;  author: rob;  state: Exp;
6437 Collision damage with walls or lava is counted as suicides in net games
6438 ----------------------------
6439 revision 1.219
6440 date: 1994/11/19 15:20:41;  author: mike;  state: Exp;
6441 rip out unused code and data
6442 ----------------------------
6443 revision 1.218
6444 date: 1994/11/17 18:44:27;  author: rob;  state: Exp;
6445 Added OBJ_GHOST to list of valid player types to create eggs.
6446 ----------------------------
6447 revision 1.217
6448 date: 1994/11/17 14:57:59;  author: mike;  state: Exp;
6449 moved segment validation functions from editor to main.
6450 ----------------------------
6451 revision 1.216
6452 date: 1994/11/16 23:38:36;  author: mike;  state: Exp;
6453 new improved boss teleportation behavior.
6454 ----------------------------
6455 revision 1.215
6456 date: 1994/11/16 12:16:29;  author: mike;  state: Exp;
6457 Enable collisions between robots.  A hack in fvi.c only does this for robots which lunge to attack (eg, green guy)
6458 ----------------------------
6459 revision 1.214
6460 date: 1994/11/15 16:51:50;  author: mike;  state: Exp;
6461 bump player when he hits a volatile wall.
6462 ----------------------------
6463 revision 1.213
6464 date: 1994/11/12 16:38:44;  author: mike;  state: Exp;
6465 allow flares to open doors.
6466 ----------------------------
6467 revision 1.212
6468 date: 1994/11/10 13:09:19;  author: matt;  state: Exp;
6469 Added support for new run-length-encoded bitmaps
6470 ----------------------------
6471 revision 1.211
6472 date: 1994/11/09 17:05:43;  author: matt;  state: Exp;
6473 Fixed problem with volatile walls
6474 ----------------------------
6475 revision 1.210
6476 date: 1994/11/09 12:11:46;  author: mike;  state: Exp;
6477 only award points if ConsoleObject killed robot.
6478 ----------------------------
6479 revision 1.209
6480 date: 1994/11/09 11:11:03;  author: yuan;  state: Exp;
6481 Made wall volatile if either tmap_num1 or tmap_num2 is a volatile wall.
6482 ----------------------------
6483 revision 1.208
6484 date: 1994/11/08 12:20:15;  author: mike;  state: Exp;
6485 moved do_controlcen_destroyed_stuff from here to cntrlcen.c
6486 ----------------------------
6487 revision 1.207
6488 date: 1994/11/02 23:22:08;  author: mike;  state: Exp;
6489 Make ` (backquote, KEY_LAPOSTRO) tell what wall was hit by laser.
6490 ----------------------------
6491 revision 1.206
6492 date: 1994/11/02 18:03:00;  author: rob;  state: Exp;
6493 Fix control_center_been_hit logic so it only cares about the local player.
6494 Other players take care of their own control center 'ai'.
6495 ----------------------------
6496 revision 1.205
6497 date: 1994/11/01 19:37:33;  author: rob;  state: Exp;
6498 Changed the max # of consussion missiles to 4.
6499 (cause they're lame and clutter things up)
6500 ----------------------------
6501 revision 1.204
6502 date: 1994/11/01 18:06:35;  author: john;  state: Exp;
6503 Tweaked wall banging sound constant.
6504 ----------------------------
6505 revision 1.203
6506 date: 1994/11/01 18:01:40;  author: john;  state: Exp;
6507 Made wall bang less obnoxious, but volume based.
6508 ----------------------------
6509 revision 1.202
6510 date: 1994/11/01 17:11:05;  author: rob;  state: Exp;
6511 Changed some stuff in drop_player_eggs.
6512 ----------------------------
6513 revision 1.201
6514 date: 1994/11/01 12:18:23;  author: john;  state: Exp;
6515 Added sound volume support. Made wall collisions be louder/softer.
6516 ----------------------------
6517 revision 1.200
6518 date: 1994/10/31 13:48:44;  author: rob;  state: Exp;
6519 Fixed bug in opening doors over network/modem.  Added a new message
6520 type to multi.c that communicates door openings across the net. 
6521 Changed includes in multi.c and wall.c to accomplish this.
6522 ----------------------------
6523 revision 1.199
6524 date: 1994/10/28 14:42:52;  author: john;  state: Exp;
6525 Added sound volumes to all sound calls.
6526 ----------------------------
6527 revision 1.198
6528 date: 1994/10/27 16:58:37;  author: allender;  state: Exp;
6529 added demo recording of monitors blowing up
6530 ----------------------------
6531 revision 1.197
6532 date: 1994/10/26 23:20:52;  author: matt;  state: Exp;
6533 Tone down flash even more
6534 ----------------------------
6535 revision 1.196
6536 date: 1994/10/26 23:01:50;  author: matt;  state: Exp;
6537 Toned down red flash when damaged
6538 ----------------------------
6539 revision 1.195
6540 date: 1994/10/26 15:56:29;  author: yuan;  state: Exp;
6541 Tweaked some palette flashes.
6542 ----------------------------
6543 revision 1.194
6544 date: 1994/10/25 11:32:26;  author: matt;  state: Exp;
6545 Fixed bugs with vulcan powerups in mutliplayer
6546 ----------------------------
6547 revision 1.193
6548 date: 1994/10/25 10:51:18;  author: matt;  state: Exp;
6549 Vulcan cannon powerups now contain ammo count
6550 ----------------------------
6551 revision 1.192
6552 date: 1994/10/24 14:14:05;  author: matt;  state: Exp;
6553 Fixed bug in bump_two_objects()
6554 ----------------------------
6555 revision 1.191
6556 date: 1994/10/23 19:17:04;  author: matt;  state: Exp;
6557 Fixed bug with "no key" messages
6558 ----------------------------
6559 revision 1.190
6560 date: 1994/10/22 00:08:46;  author: matt;  state: Exp;
6561 Fixed up problems with bonus & game sequencing
6562 Player doesn't get credit for hostages unless he gets them out alive
6563 ----------------------------
6564 revision 1.189
6565 date: 1994/10/21 20:42:34;  author: mike;  state: Exp;
6566 Clear number of hostages on board between levels.
6567 ----------------------------
6568 revision 1.188
6569 date: 1994/10/20 15:17:43;  author: mike;  state: Exp;
6570 control center in boss handling.
6571 ----------------------------
6572 revision 1.187
6573 date: 1994/10/20 10:09:47;  author: mike;  state: Exp;
6574 Only ever drop 1 shield powerup in multiplayer (as an egg).
6575 ----------------------------
6576 revision 1.186
6577 date: 1994/10/20 09:47:11;  author: mike;  state: Exp;
6578 Fix bug in dropping vulcan ammo in multiplayer.
6579 Also control center stuff.
6580 ----------------------------
6581 revision 1.185
6582 date: 1994/10/19 15:14:32;  author: john;  state: Exp;
6583 Took % hits out of player structure, made %kills work properly.
6584 ----------------------------
6585 revision 1.184
6586 date: 1994/10/19 11:33:16;  author: john;  state: Exp;
6587 Fixed hostage rescued percent.
6588 ----------------------------
6589 revision 1.183
6590 date: 1994/10/19 11:16:49;  author: mike;  state: Exp;
6591 Don't allow crazy josh to open locked doors.
6592 Don't allow weapons to harm parent.
6593 ----------------------------
6594 revision 1.182
6595 date: 1994/10/18 18:37:01;  author: mike;  state: Exp;
6596 No more hostage killing.  Too much stuff to do to integrate into game.
6597 ----------------------------
6598 revision 1.181
6599 date: 1994/10/18 16:37:35;  author: mike;  state: Exp;
6600 Debug function for Yuan: Show seg:side when hit by puny laser if Show_seg_and_side != 0.
6601 ----------------------------
6602 revision 1.180
6603 date: 1994/10/18 10:53:17;  author: mike;  state: Exp;
6604 Support attack type as a property of a robot, not of being == GREEN_GUY.
6605 ----------------------------
6606 revision 1.179
6607 date: 1994/10/17 21:18:36;  author: mike;  state: Exp;
6608 diminish damage player does to robot due to collision, only took 2-3 hits to kill a josh.
6609 ----------------------------
6610 revision 1.178
6611 date: 1994/10/17 20:30:40;  author: john;  state: Exp;
6612 Made player_hostages_rescued or whatever count properly.
6613 ----------------------------
6614 revision 1.177
6615 date: 1994/10/16 12:42:56;  author: mike;  state: Exp;
6616 Trap bogus amount of vulcan ammo dropping.
6617 ----------------------------
6618 revision 1.176
6619 date: 1994/10/15 19:06:51;  author: mike;  state: Exp;
6620 Drop vulcan ammo if player has it, but no vulcan cannon (when he dies).
6621 ----------------------------
6622 revision 1.175
6623 date: 1994/10/13 15:42:06;  author: mike;  state: Exp;
6624 Remove afterburner.
6625 ----------------------------
6626 revision 1.174
6627 date: 1994/10/13 11:12:57;  author: mike;  state: Exp;
6628 Apply damage to robots.  I hosed it a couple weeks ago when I made the green guy special.
6629 =============================================================================
6630 RCS file: /Smoke/miner/source/main/collide.h,v
6631 Working file: main/collide.h
6632 head: 1.1
6633 description: .
6634 ----------------------------
6635 revision 1.1
6636 date: 1995/05/16 15:55:09;  author: allender;  state: Exp;
6637 Initial revision
6638 ----------------------------
6639 revision 2.0
6640 date: 1995/02/27 11:28:59;  author: john;  state: Exp;
6641 New version 2.0, which has no anonymous unions, builds with
6642 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6643 ----------------------------
6644 revision 1.23
6645 date: 1995/01/26 22:11:47;  author: mike;  state: Exp;
6646 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
6647 ----------------------------
6648 revision 1.22
6649 date: 1994/12/21 19:03:24;  author: rob;  state: Exp;
6650 Fixing score accounting for multiplayer robots
6651 ----------------------------
6652 revision 1.21
6653 date: 1994/12/21 11:34:56;  author: mike;  state: Exp;
6654 make control center take badass damage.
6655 ----------------------------
6656 revision 1.20
6657 date: 1994/10/29 16:53:16;  author: allender;  state: Exp;
6658 added check_effect_blowup for demo recording to record monitor explosions
6659 ----------------------------
6660 revision 1.19
6661 date: 1994/10/09 13:46:48;  author: mike;  state: Exp;
6662 Make public collide_player_and_powerup.
6663 ----------------------------
6664 revision 1.18
6665 date: 1994/10/05 14:54:29;  author: rob;  state: Exp;
6666 Added serial game support in control center sequence..
6667 ----------------------------
6668 revision 1.17
6669 date: 1994/09/15 16:32:12;  author: mike;  state: Exp;
6670 Prototype collide_player_and_nasty_robot.
6671 ----------------------------
6672 revision 1.16
6673 date: 1994/09/11 15:49:04;  author: mike;  state: Exp;
6674 Prototype for maybe_detonate_weapon.
6675 ----------------------------
6676 revision 1.15
6677 date: 1994/09/09 14:20:07;  author: matt;  state: Exp;
6678 Added prototype for scrape function
6679 ----------------------------
6680 revision 1.14
6681 date: 1994/09/02 14:00:44;  author: matt;  state: Exp;
6682 Simplified explode_object() & mutliple-stage explosions
6683 ----------------------------
6684 revision 1.13
6685 date: 1994/08/18 10:47:35;  author: john;  state: Exp;
6686 Cleaned up game sequencing and player death stuff
6687 in preparation for making the player explode into
6688 pieces when dead.
6689 ----------------------------
6690 revision 1.12
6691 date: 1994/08/17 16:50:08;  author: john;  state: Exp;
6692 Added damaging fireballs, missiles.
6693 ----------------------------
6694 revision 1.11
6695 date: 1994/08/03 16:45:31;  author: mike;  state: Exp;
6696 Prototype a function.
6697 ----------------------------
6698 revision 1.10
6699 date: 1994/08/03 15:17:41;  author: mike;  state: Exp;
6700 make matcen whack on you if it's ready to make a robot.
6701 ----------------------------
6702 revision 1.9
6703 date: 1994/07/22 12:08:03;  author: mike;  state: Exp;
6704 Make robot hit vclip and sound weapon-based until robot dies, then robot-based.
6705 ----------------------------
6706 revision 1.8
6707 date: 1994/07/09 17:36:31;  author: mike;  state: Exp;
6708 Prototype apply_damage_to_robot.
6709 ----------------------------
6710 revision 1.7
6711 date: 1994/07/09 13:20:36;  author: mike;  state: Exp;
6712 Prototype apply_damage_to_player.
6713 ----------------------------
6714 revision 1.6
6715 date: 1994/06/20 23:35:52;  author: john;  state: Exp;
6716 Bunch of stuff.
6717 ----------------------------
6718 revision 1.5
6719 date: 1994/06/17 18:04:03;  author: yuan;  state: Exp;
6720 Added Immaterialization...
6721 Fixed Invulnerability to allow being hit.
6722 ----------------------------
6723 revision 1.4
6724 date: 1994/05/13 20:28:02;  author: john;  state: Exp;
6725 Version II of John's new object code.
6726 ----------------------------
6727 revision 1.3
6728 date: 1994/05/13 12:20:35;  author: john;  state: Exp;
6729 Fixed some potential problems with code using global variables
6730 that are set in fvi. 
6731 ----------------------------
6732 revision 1.2
6733 date: 1994/05/12 23:20:32;  author: john;  state: Exp;
6734 Moved all object collision handling into collide.c.
6735 ----------------------------
6736 revision 1.1
6737 date: 1994/05/12 20:39:09;  author: john;  state: Exp;
6738 Initial revision
6739 =============================================================================
6740 RCS file: /Smoke/miner/source/main/compbit.h,v
6741 Working file: main/compbit.h
6742 head: 1.1
6743 description: Contains encryption key for bitmaps.tbl
6744 ----------------------------
6745 revision 1.1
6746 date: 1995/05/16 15:55:16;  author: allender;  state: Exp;
6747 Initial revision
6748 ----------------------------
6749 revision 2.0
6750 date: 1995/02/27 11:28:46;  author: john;  state: Exp;
6751 New version 2.0, which has no anonymous unions, builds with
6752 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6753 ----------------------------
6754 revision 1.3
6755 date: 1994/12/05 15:10:28;  author: allender;  state: Exp;
6756 changed extern prototype definition
6757 ----------------------------
6758 revision 1.2
6759 date: 1994/10/19 15:43:33;  author: allender;  state: Exp;
6760 header file which contains the xor value which is used when encrypting
6761 bitmaps.tbl
6762 ----------------------------
6763 revision 1.1
6764 date: 1994/10/19 13:22:19;  author: allender;  state: Exp;
6765 Initial revision
6766 =============================================================================
6767 RCS file: /Smoke/miner/source/main/config.c,v
6768 Working file: main/config.c
6769 head: 1.8
6770 description: contains routine(s) to read in the configuration file which contains
6771 game configuration stuff like detail level, sound card, etc
6772 ----------------------------
6773 revision 1.8
6774 date: 1995/10/27 10:52:20;  author: allender;  state: Exp;
6775 call digi_set_master_volume when prefs are read in to
6776 set the master volume of the mac
6777 ----------------------------
6778 revision 1.7
6779 date: 1995/10/24 17:08:39;  author: allender;  state: Exp;
6780 Config_master_volume added for saving sound manager volume
6781 across games
6782 ----------------------------
6783 revision 1.6
6784 date: 1995/10/20 00:49:31;  author: allender;  state: Exp;
6785 use default values when no prefs file
6786 ----------------------------
6787 revision 1.5
6788 date: 1995/09/21 10:06:58;  author: allender;  state: Exp;
6789 set digi and midi volume appropriately
6790 ----------------------------
6791 revision 1.4
6792 date: 1995/09/13 08:49:38;  author: allender;  state: Exp;
6793 prefs file stuff
6794 ----------------------------
6795 revision 1.3
6796 date: 1995/09/05 08:47:37;  author: allender;  state: Exp;
6797 prefs file working
6798 ----------------------------
6799 revision 1.2
6800 date: 1995/05/26 06:54:14;  author: allender;  state: Exp;
6801 removed midi and digi references from config file
6802 ----------------------------
6803 revision 1.1
6804 date: 1995/05/16 15:23:45;  author: allender;  state: Exp;
6805 Initial revision
6806 ----------------------------
6807 revision 2.2
6808 date: 1995/03/27 09:42:59;  author: john;  state: Exp;
6809 Added VR Settings in config file.
6810 ----------------------------
6811 revision 2.1
6812 date: 1995/03/16 11:20:40;  author: john;  state: Exp;
6813 Put in support for Crystal Lake soundcard.
6814 ----------------------------
6815 revision 2.0
6816 date: 1995/02/27 11:30:13;  author: john;  state: Exp;
6817 New version 2.0, which has no anonymous unions, builds with
6818 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6819 ----------------------------
6820 revision 1.14
6821 date: 1995/02/11 16:19:36;  author: john;  state: Exp;
6822 Added code to make the default mission be the one last played.
6823 ----------------------------
6824 revision 1.13
6825 date: 1995/01/18 13:23:24;  author: matt;  state: Exp;
6826 Made curtom detail level vars initialize properly at load
6827 ----------------------------
6828 revision 1.12
6829 date: 1995/01/04 22:15:36;  author: matt;  state: Exp;
6830 Fixed stupid bug using scanf() to read bytes
6831 ----------------------------
6832 revision 1.11
6833 date: 1995/01/04 13:14:21;  author: matt;  state: Exp;
6834 Made custom detail level settings save in config file
6835 ----------------------------
6836 revision 1.10
6837 date: 1994/12/12 21:35:09;  author: john;  state: Exp;
6838 *** empty log message ***
6839 ----------------------------
6840 revision 1.9
6841 date: 1994/12/12 21:31:51;  author: john;  state: Exp;
6842 Made volume work better by making sure volumes are valid
6843 and set correctly at program startup.
6844 ----------------------------
6845 revision 1.8
6846 date: 1994/12/12 13:58:01;  author: john;  state: Exp;
6847 MAde -nomusic work.
6848 Fixed GUS hang at exit by deinitializing digi before midi.
6849 ----------------------------
6850 revision 1.7
6851 date: 1994/12/08 10:01:33;  author: john;  state: Exp;
6852 Changed the way the player callsign stuff works.
6853 ----------------------------
6854 revision 1.6
6855 date: 1994/12/01 11:24:07;  author: john;  state: Exp;
6856 Made volume/gamma/joystick sliders all be the same length.  0-->8.
6857 ----------------------------
6858 revision 1.5
6859 date: 1994/11/29 02:01:07;  author: john;  state: Exp;
6860 Added code to look at -volume command line arg.
6861 ----------------------------
6862 revision 1.4
6863 date: 1994/11/14 20:14:11;  author: john;  state: Exp;
6864 Fixed some warnings.
6865 ----------------------------
6866 revision 1.3
6867 date: 1994/11/14 19:51:01;  author: john;  state: Exp;
6868 Added joystick cal values to descent.cfg.
6869 ----------------------------
6870 revision 1.2
6871 date: 1994/11/14 17:53:09;  author: allender;  state: Exp;
6872 read and write descent.cfg file
6873 ----------------------------
6874 revision 1.1
6875 date: 1994/11/14 16:28:08;  author: allender;  state: Exp;
6876 Initial revision
6877 =============================================================================
6878 RCS file: /Smoke/miner/source/main/config.h,v
6879 Working file: main/config.h
6880 head: 1.3
6881 description: prototype definitions for descent.cfg reading/writing
6882 ----------------------------
6883 revision 1.3
6884 date: 1995/09/08 17:12:26;  author: allender;  state: Exp;
6885 added modem tool stuff for prefs file
6886 ----------------------------
6887 revision 1.2
6888 date: 1995/09/05 08:47:48;  author: allender;  state: Exp;
6889 prefs file working
6890 ----------------------------
6891 revision 1.1
6892 date: 1995/05/16 15:55:23;  author: allender;  state: Exp;
6893 Initial revision
6894 ----------------------------
6895 revision 2.0
6896 date: 1995/02/27 11:32:48;  author: john;  state: Exp;
6897 New version 2.0, which has no anonymous unions, builds with
6898 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6899 ----------------------------
6900 revision 1.4
6901 date: 1995/02/11 16:20:06;  author: john;  state: Exp;
6902 Added code to make the default mission be the one last played.
6903 ----------------------------
6904 revision 1.3
6905 date: 1994/12/08 10:01:41;  author: john;  state: Exp;
6906 Changed the way the player callsign stuff works.
6907 ----------------------------
6908 revision 1.2
6909 date: 1994/11/14 17:53:17;  author: allender;  state: Exp;
6910 extern definitions for ReadConfigFile and WriteConfigFile
6911 ----------------------------
6912 revision 1.1
6913 date: 1994/11/14 16:56:17;  author: allender;  state: Exp;
6914 Initial revision
6915 =============================================================================
6916 RCS file: /Smoke/miner/source/main/controls.c,v
6917 Working file: main/controls.c
6918 head: 1.3
6919 description: Code for controlling player movement
6920 ----------------------------
6921 revision 1.3
6922 date: 1995/11/20 17:17:27;  author: allender;  state: Exp;
6923 call fix_fastsincos with tmp variable to prevent
6924 writing to NULL
6925 ----------------------------
6926 revision 1.2
6927 date: 1995/08/11 16:00:04;  author: allender;  state: Exp;
6928 fixed bug we think we never saw (overflow on max_rotthrust
6929 ----------------------------
6930 revision 1.1
6931 date: 1995/05/16 15:23:53;  author: allender;  state: Exp;
6932 Initial revision
6933 ----------------------------
6934 revision 2.0
6935 date: 1995/02/27 11:27:11;  author: john;  state: Exp;
6936 New version 2.0, which has no anonymous unions, builds with
6937 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
6938 ----------------------------
6939 revision 1.50
6940 date: 1995/02/22 14:11:19;  author: allender;  state: Exp;
6941 remove anonymous unions from object structure
6942 ----------------------------
6943 revision 1.49
6944 date: 1994/12/15 13:04:10;  author: mike;  state: Exp;
6945 Replace Players[Player_num].time_total references with GameTime.
6946 ----------------------------
6947 revision 1.48
6948 date: 1994/11/27 23:12:13;  author: matt;  state: Exp;
6949 Made changes for new mprintf calling convention
6950 ----------------------------
6951 revision 1.47
6952 date: 1994/11/25 22:15:54;  author: matt;  state: Exp;
6953 Added asserts to try to trap frametime < 0 bug
6954 ----------------------------
6955 revision 1.46
6956 date: 1994/11/16 11:25:40;  author: matt;  state: Exp;
6957 Took out int3's since I determined that the errors are caused by neg frametime
6958 ----------------------------
6959 revision 1.45
6960 date: 1994/11/15 13:07:23;  author: matt;  state: Exp;
6961 Added int3's to try to trap bug
6962 ----------------------------
6963 revision 1.44
6964 date: 1994/10/14 16:18:12;  author: john;  state: Exp;
6965 Made Assert that the object was player just nicely exit
6966 the function.
6967 ----------------------------
6968 revision 1.43
6969 date: 1994/10/13 11:35:25;  author: john;  state: Exp;
6970 Made Thrustmaster FCS Hat work.  Put a background behind the
6971 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
6972 menu to new menu. Made F6 be calibrate joystick.
6973 ----------------------------
6974 revision 1.42
6975 date: 1994/09/29 11:22:02;  author: mike;  state: Exp;
6976 Zero thrust when player dies.
6977 ----------------------------
6978 revision 1.41
6979 date: 1994/09/16 13:10:30;  author: mike;  state: Exp;
6980 Hook in afterburner stuff.
6981 ----------------------------
6982 revision 1.40
6983 date: 1994/09/14 22:21:54;  author: matt;  state: Exp;
6984 Avoid post-death assert
6985 ----------------------------
6986 revision 1.39
6987 date: 1994/09/11 20:30:27;  author: matt;  state: Exp;
6988 Cleaned up thrust vars, changing a few names
6989 ----------------------------
6990 revision 1.38
6991 date: 1994/09/10 15:46:31;  author: john;  state: Exp;
6992 First version of new keyboard configuration.
6993 ----------------------------
6994 revision 1.37
6995 date: 1994/09/07 15:58:12;  author: mike;  state: Exp;
6996 Check for player dead in controls so you can't fire or move after dead, logical, huh?
6997 ----------------------------
6998 revision 1.36
6999 date: 1994/09/06 14:51:56;  author: john;  state: Exp;
7000 Added sensitivity adjustment, fixed bug with joystick button not
7001 staying down.
7002 ----------------------------
7003 revision 1.35
7004 date: 1994/09/01 15:43:26;  author: john;  state: Exp;
7005 Put pitch bak like it was.
7006 ----------------------------
7007 revision 1.34
7008 date: 1994/08/31 18:59:35;  author: john;  state: Exp;
7009 Made rotthrust back like it was.
7010 ----------------------------
7011 revision 1.33
7012 date: 1994/08/31 18:49:17;  author: john;  state: Exp;
7013 Slowed Maxrothrust a bit,
7014 ..
7015 ----------------------------
7016 revision 1.32
7017 date: 1994/08/31 18:32:05;  author: john;  state: Exp;
7018 Lower max rotational thrust
7019 ----------------------------
7020 revision 1.31
7021 date: 1994/08/29 21:18:27;  author: john;  state: Exp;
7022 First version of new keyboard/oystick remapping stuff.
7023 ----------------------------
7024 revision 1.30
7025 date: 1994/08/29 16:18:30;  author: mike;  state: Exp;
7026 trap divide overflow.
7027 ----------------------------
7028 revision 1.29
7029 date: 1994/08/26 14:40:45;  author: john;  state: Exp;
7030 *** empty log message ***
7031 ----------------------------
7032 revision 1.28
7033 date: 1994/08/26 12:23:50;  author: john;  state: Exp;
7034 MAde joystick read up to 15 times per second max.
7035 ----------------------------
7036 revision 1.27
7037 date: 1994/08/26 10:50:59;  author: john;  state: Exp;
7038 Took out Controls_always_stopped.
7039 ----------------------------
7040 revision 1.26
7041 date: 1994/08/26 10:47:27;  author: john;  state: Exp;
7042 *** empty log message ***
7043 ----------------------------
7044 revision 1.25
7045 date: 1994/08/26 10:46:50;  author: john;  state: Exp;
7046 New version of controls.
7047 ----------------------------
7048 revision 1.24
7049 date: 1994/08/25 19:41:44;  author: john;  state: Exp;
7050 *** empty log message ***
7051 ----------------------------
7052 revision 1.23
7053 date: 1994/08/25 18:44:55;  author: john;  state: Exp;
7054 *** empty log message ***
7055 ----------------------------
7056 revision 1.22
7057 date: 1994/08/25 18:43:46;  author: john;  state: Exp;
7058 First revision of new control code.
7059 ----------------------------
7060 revision 1.21
7061 date: 1994/08/24 20:02:46;  author: john;  state: Exp;
7062 Added cyberman support; made keys work key_down_time
7063 returning seconds instead of milliseconds,.
7064 ----------------------------
7065 revision 1.20
7066 date: 1994/08/24 19:00:27;  author: john;  state: Exp;
7067 Changed key_down_time to return fixed seconds instead of
7068 milliseconds.
7069 ----------------------------
7070 revision 1.19
7071 date: 1994/08/19 15:22:12;  author: mike;  state: Exp;
7072 Fix divide overflow in sliding.
7073 ----------------------------
7074 revision 1.18
7075 date: 1994/08/19 14:42:50;  author: john;  state: Exp;
7076 Added joystick sensitivity.
7077 ----------------------------
7078 revision 1.17
7079 date: 1994/08/17 16:50:01;  author: john;  state: Exp;
7080 Added damaging fireballs, missiles.
7081 ----------------------------
7082 revision 1.16
7083 date: 1994/08/12 22:41:54;  author: john;  state: Exp;
7084 Took away Player_stats; added Players array.
7085 ----------------------------
7086 revision 1.15
7087 date: 1994/08/09 16:03:56;  author: john;  state: Exp;
7088 Added network players to editor.
7089 ----------------------------
7090 revision 1.14
7091 date: 1994/07/28 12:33:31;  author: matt;  state: Exp;
7092 Made sliding use thrust, rather than changing velocity directly
7093 ----------------------------
7094 revision 1.13
7095 date: 1994/07/27 20:53:21;  author: matt;  state: Exp;
7096 Added rotational drag & thrust, so turning now has momemtum like moving
7097 ----------------------------
7098 revision 1.12
7099 date: 1994/07/25 10:24:06;  author: john;  state: Exp;
7100 Victor stuff.
7101 ----------------------------
7102 revision 1.11
7103 date: 1994/07/22 17:53:16;  author: john;  state: Exp;
7104 Added better victormax support
7105 ----------------------------
7106 revision 1.10
7107 date: 1994/07/21 21:31:29;  author: john;  state: Exp;
7108 First cheapo version of VictorMaxx tracking.
7109 ----------------------------
7110 revision 1.9
7111 date: 1994/07/15 15:16:18;  author: john;  state: Exp;
7112 Fixed some joystick stuff.
7113 ----------------------------
7114 revision 1.8
7115 date: 1994/07/15 09:32:09;  author: john;  state: Exp;
7116 Changes player movement.
7117 ----------------------------
7118 revision 1.7
7119 date: 1994/07/13 00:14:58;  author: matt;  state: Exp;
7120 Moved all (or nearly all) of the values that affect player movement to 
7121 bitmaps.tbl
7122 ----------------------------
7123 revision 1.6
7124 date: 1994/07/12 12:40:14;  author: matt;  state: Exp;
7125 Revamped physics system
7126 ----------------------------
7127 revision 1.5
7128 date: 1994/07/02 13:50:39;  author: matt;  state: Exp;
7129 Cleaned up includes
7130 ----------------------------
7131 revision 1.4
7132 date: 1994/07/01 10:55:25;  author: john;  state: Exp;
7133 Added analog joystick throttle
7134 ----------------------------
7135 revision 1.3
7136 date: 1994/06/30 20:04:28;  author: john;  state: Exp;
7137 Added -joydef support.
7138 ----------------------------
7139 revision 1.2
7140 date: 1994/06/30 19:01:58;  author: matt;  state: Exp;
7141 Moved flying controls code from physics.c to controls.c
7142 ----------------------------
7143 revision 1.1
7144 date: 1994/06/30 18:41:25;  author: matt;  state: Exp;
7145 Initial revision
7146 =============================================================================
7147 RCS file: /Smoke/miner/source/main/controls.h,v
7148 Working file: main/controls.h
7149 head: 1.1
7150 description: Header for controls.c
7151 ----------------------------
7152 revision 1.1
7153 date: 1995/05/16 15:55:31;  author: allender;  state: Exp;
7154 Initial revision
7155 ----------------------------
7156 revision 2.0
7157 date: 1995/02/27 11:27:17;  author: john;  state: Exp;
7158 New version 2.0, which has no anonymous unions, builds with
7159 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7160 ----------------------------
7161 revision 1.4
7162 date: 1994/07/21 18:15:33;  author: matt;  state: Exp;
7163 Ripped out a bunch of unused stuff
7164 ----------------------------
7165 revision 1.3
7166 date: 1994/07/15 09:32:08;  author: john;  state: Exp;
7167 Changes player movement.
7168 ----------------------------
7169 revision 1.2
7170 date: 1994/06/30 19:02:22;  author: matt;  state: Exp;
7171 Moved flying controls code from physics.c to controls.c
7172 ----------------------------
7173 revision 1.1
7174 date: 1994/06/30 18:41:36;  author: matt;  state: Exp;
7175 Initial revision
7176 =============================================================================
7177 RCS file: /Smoke/miner/source/main/credits.c,v
7178 Working file: main/credits.c
7179 head: 1.8
7180 description: Routines to display the credits.
7181 ----------------------------
7182 revision 1.8
7183 date: 1995/11/07 13:54:56;  author: allender;  state: Exp;
7184 loop shareware song since it is too short
7185 ----------------------------
7186 revision 1.7
7187 date: 1995/10/31 10:24:25;  author: allender;  state: Exp;
7188 shareware stuff
7189 ----------------------------
7190 revision 1.6
7191 date: 1995/10/27 15:17:57;  author: allender;  state: Exp;
7192 minor fix to get them to look right at top and bottom
7193 of screens
7194 ----------------------------
7195 revision 1.5
7196 date: 1995/10/21 22:50:49;  author: allender;  state: Exp;
7197 credits is way cool!!!!
7198 ----------------------------
7199 revision 1.3
7200 date: 1995/08/08 13:45:26;  author: allender;  state: Exp;
7201 added macsys header file
7202 ----------------------------
7203 revision 1.2
7204 date: 1995/07/17 08:49:48;  author: allender;  state: Exp;
7205 make work in 640x480 -- still needs major work!!
7206 ----------------------------
7207 revision 1.1
7208 date: 1995/05/16 15:24:01;  author: allender;  state: Exp;
7209 Initial revision
7210 ----------------------------
7211 revision 2.1
7212 date: 1995/03/06 15:23:30;  author: john;  state: Exp;
7213 New screen techniques.
7214 ----------------------------
7215 revision 2.0
7216 date: 1995/02/27 11:29:25;  author: john;  state: Exp;
7217 New version 2.0, which has no anonymous unions, builds with
7218 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7219 ----------------------------
7220 revision 1.33
7221 date: 1995/02/11 12:41:56;  author: john;  state: Exp;
7222 Added new song method, with FM bank switching..
7223 ----------------------------
7224 revision 1.32
7225 date: 1995/02/03 14:18:06;  author: john;  state: Exp;
7226 Added columns.
7227 ----------------------------
7228 revision 1.31
7229 date: 1994/12/28 10:43:00;  author: john;  state: Exp;
7230 More VFX tweaking.
7231 ----------------------------
7232 revision 1.30
7233 date: 1994/12/20 18:22:31;  author: john;  state: Exp;
7234 Added code to support non-looping songs, and put
7235 it in for endlevel and credits.
7236 ----------------------------
7237 revision 1.29
7238 date: 1994/12/15 14:23:00;  author: adam;  state: Exp;
7239 fixed timing.
7240 ----------------------------
7241 revision 1.28
7242 date: 1994/12/14 16:56:33;  author: adam;  state: Exp;
7243 *** empty log message ***
7244 ----------------------------
7245 revision 1.27
7246 date: 1994/12/14 12:18:11;  author: adam;  state: Exp;
7247 messed w/timing
7248 ----------------------------
7249 revision 1.26
7250 date: 1994/12/12 22:52:59;  author: matt;  state: Exp;
7251 Fixed little bug
7252 ----------------------------
7253 revision 1.25
7254 date: 1994/12/12 22:49:35;  author: adam;  state: Exp;
7255 *** empty log message ***
7256 ----------------------------
7257 revision 1.24
7258 date: 1994/12/09 23:16:50;  author: john;  state: Exp;
7259 Make credits.txb load.
7260 ----------------------------
7261 revision 1.23
7262 date: 1994/12/09 00:41:54;  author: mike;  state: Exp;
7263 fix hang in automap print screen.
7264 ----------------------------
7265 revision 1.22
7266 date: 1994/12/09 00:34:22;  author: matt;  state: Exp;
7267 Added support for half-height lines
7268 ----------------------------
7269 revision 1.21
7270 date: 1994/12/08 18:36:03;  author: yuan;  state: Exp;
7271 More HOGfile support.
7272 ----------------------------
7273 revision 1.20
7274 date: 1994/12/04 14:48:17;  author: john;  state: Exp;
7275 Made credits restore playing descent.hmp.
7276 ----------------------------
7277 revision 1.19
7278 date: 1994/12/04 14:30:20;  author: john;  state: Exp;
7279 Added hooks for music..
7280 ----------------------------
7281 revision 1.18
7282 date: 1994/12/04 12:06:46;  author: matt;  state: Exp;
7283 Put in support for large font
7284 ----------------------------
7285 revision 1.17
7286 date: 1994/12/01 10:47:27;  author: john;  state: Exp;
7287 Took out code that allows keypresses to change scroll rate.
7288 ----------------------------
7289 revision 1.16
7290 date: 1994/11/30 12:10:52;  author: adam;  state: Exp;
7291 added support for PCX titles/brief screens
7292 ----------------------------
7293 revision 1.15
7294 date: 1994/11/27 23:12:17;  author: matt;  state: Exp;
7295 Made changes for new mprintf calling convention
7296 ----------------------------
7297 revision 1.14
7298 date: 1994/11/27 19:51:46;  author: matt;  state: Exp;
7299 Made screen shots work in a few more places
7300 ----------------------------
7301 revision 1.13
7302 date: 1994/11/18 16:41:51;  author: adam;  state: Exp;
7303 trimmed some more meat for shareware
7304 ----------------------------
7305 revision 1.12
7306 date: 1994/11/10 20:38:29;  author: john;  state: Exp;
7307 Made credits not loop.
7308 ----------------------------
7309 revision 1.11
7310 date: 1994/11/05 15:04:06;  author: john;  state: Exp;
7311 Added non-popup menu for the main menu, so that scores and credits don't have to save
7312 the background.
7313 ----------------------------
7314 revision 1.10
7315 date: 1994/11/05 14:05:52;  author: john;  state: Exp;
7316 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
7317 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
7318 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
7319 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
7320 ----------------------------
7321 revision 1.9
7322 date: 1994/11/04 12:02:32;  author: john;  state: Exp;
7323 Fixed fading transitions a bit more.
7324 ----------------------------
7325 revision 1.8
7326 date: 1994/11/04 11:30:44;  author: john;  state: Exp;
7327 Fixed fade transitions between game/menu/credits.
7328 ----------------------------
7329 revision 1.7
7330 date: 1994/11/04 11:06:32;  author: john;  state: Exp;
7331 Added code to support credit fade table.
7332 ----------------------------
7333 revision 1.6
7334 date: 1994/11/04 10:16:13;  author: john;  state: Exp;
7335 Made the credits fade in/out smoothly on top of a bitmap background.
7336 ----------------------------
7337 revision 1.5
7338 date: 1994/11/03 21:24:12;  author: john;  state: Exp;
7339 Made credits exit the instant a key is pressed.
7340 Made it scroll a bit slower.
7341 ----------------------------
7342 revision 1.4
7343 date: 1994/11/03 21:20:28;  author: john;  state: Exp;
7344 Working.
7345 ----------------------------
7346 revision 1.3
7347 date: 1994/11/03 21:01:24;  author: john;  state: Exp;
7348 First version of credits that works.
7349 ----------------------------
7350 revision 1.2
7351 date: 1994/11/03 20:17:39;  author: john;  state: Exp;
7352 Added initial code for showing credits.
7353 ----------------------------
7354 revision 1.1
7355 date: 1994/11/03 20:09:05;  author: john;  state: Exp;
7356 Initial revision
7357 =============================================================================
7358 RCS file: /Smoke/miner/source/main/credits.h,v
7359 Working file: main/credits.h
7360 head: 1.1
7361 description: Prototypes for the credit sequence.
7362 ----------------------------
7363 revision 1.1
7364 date: 1995/05/16 15:55:39;  author: allender;  state: Exp;
7365 Initial revision
7366 ----------------------------
7367 revision 2.0
7368 date: 1995/02/27 11:32:30;  author: john;  state: Exp;
7369 New version 2.0, which has no anonymous unions, builds with
7370 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7371 ----------------------------
7372 revision 1.2
7373 date: 1994/11/03 20:17:40;  author: john;  state: Exp;
7374 Added initial code for showing credits.
7375 ----------------------------
7376 revision 1.1
7377 date: 1994/11/03 20:09:19;  author: john;  state: Exp;
7378 Initial revision
7379 =============================================================================
7380 RCS file: /Smoke/miner/source/main/demo.h,v
7381 Working file: main/demo.h
7382 head: 1.1
7383 description: Demo constants.
7384 ----------------------------
7385 revision 1.1
7386 date: 1995/05/16 15:55:46;  author: allender;  state: Exp;
7387 Initial revision
7388 ----------------------------
7389 revision 2.0
7390 date: 1995/02/27 11:27:03;  author: john;  state: Exp;
7391 New version 2.0, which has no anonymous unions, builds with
7392 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7393 ----------------------------
7394 revision 1.5
7395 date: 1994/05/14 17:16:10;  author: matt;  state: Exp;
7396 Got rid of externs in source (non-header) files
7397 ----------------------------
7398 revision 1.4
7399 date: 1994/02/02 09:40:49;  author: mike;  state: Exp;
7400 prototypes, change MAX_DEMO_RECORDS.
7401 ----------------------------
7402 revision 1.3
7403 date: 1994/02/01 15:15:02;  author: mike;  state: Exp;
7404 Self-running demo code.
7405 ----------------------------
7406 revision 1.2
7407 date: 1994/02/01 11:51:49;  author: mike;  state: Exp;
7408 demo functions.
7409 ----------------------------
7410 revision 1.1
7411 date: 1994/01/31 19:15:05;  author: mike;  state: Exp;
7412 Initial revision
7413 =============================================================================
7414 RCS file: /Smoke/miner/source/main/desc_id.h,v
7415 Working file: main/desc_id.h
7416 head: 1.1
7417 description: Header file which contains string for id and timestamp information
7418 ----------------------------
7419 revision 1.1
7420 date: 1995/05/16 15:55:53;  author: allender;  state: Exp;
7421 Initial revision
7422 ----------------------------
7423 revision 2.0
7424 date: 1995/02/27 11:29:38;  author: john;  state: Exp;
7425 New version 2.0, which has no anonymous unions, builds with
7426 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7427 ----------------------------
7428 revision 1.3
7429 date: 1994/10/19 09:52:57;  author: allender;  state: Exp;
7430 Added variable for bogus error number return when game exits
7431 ----------------------------
7432 revision 1.2
7433 date: 1994/10/18 16:43:52;  author: allender;  state: Exp;
7434 Added constants for id and time stamping
7435 ----------------------------
7436 revision 1.1
7437 date: 1994/10/17 09:56:47;  author: allender;  state: Exp;
7438 Initial revision
7439 =============================================================================
7440 RCS file: /Smoke/miner/source/main/digi.h,v
7441 Working file: main/digi.h
7442 head: 1.6
7443 description: Include file for sound hardware.
7444 ----------------------------
7445 revision 1.6
7446 date: 1995/09/24 10:54:47;  author: allender;  state: Exp;
7447 added master volume function
7448 ----------------------------
7449 revision 1.5
7450 date: 1995/09/13 08:44:34;  author: allender;  state: Exp;
7451 removed commented out defines and added digi_load_sounds prototype
7452 ----------------------------
7453 revision 1.4
7454 date: 1995/08/18 10:25:57;  author: allender;  state: Exp;
7455 added back digi_kill_sound object calls as real function
7456 calls
7457 ----------------------------
7458 revision 1.3
7459 date: 1995/07/17 08:49:32;  author: allender;  state: Exp;
7460 changed some prototypes
7461 ----------------------------
7462 revision 1.2
7463 date: 1995/05/26 06:52:49;  author: allender;  state: Exp;
7464 new header file stuff for digi code
7465 ----------------------------
7466 revision 1.1
7467 date: 1995/05/16 09:49:03;  author: john;  state: Exp;
7468 Initial revision
7469 ----------------------------
7470 revision 2.0
7471 date: 1995/02/27 11:28:40;  author: john;  state: Exp;
7472 New version 2.0, which has no anonymous unions, builds with
7473 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7474 ----------------------------
7475 revision 1.29
7476 date: 1995/02/11 12:42:00;  author: john;  state: Exp;
7477 Added new song method, with FM bank switching..
7478 ----------------------------
7479 revision 1.28
7480 date: 1995/02/03 17:08:26;  author: john;  state: Exp;
7481 Changed sound stuff to allow low memory usage.
7482 Also, changed so that Sounds isn't an array of digi_sounds, it
7483 is a ubyte pointing into GameSounds, this way the digi.c code that
7484 locks sounds won't accidentally unlock a sound that is already playing, but
7485 since it's Sounds[soundno] is different, it would erroneously be unlocked.
7486 ----------------------------
7487 revision 1.27
7488 date: 1995/02/01 22:20:31;  author: john;  state: Exp;
7489 Added digi_is_sound_playing.
7490 ----------------------------
7491 revision 1.26
7492 date: 1994/12/20 18:03:51;  author: john;  state: Exp;
7493 Added loop midi flag.
7494 ----------------------------
7495 revision 1.25
7496 date: 1994/12/13 00:46:14;  author: john;  state: Exp;
7497 Split digi and midi volume into 2 seperate functions.
7498 ----------------------------
7499 revision 1.24
7500 date: 1994/12/10 20:34:53;  author: john;  state: Exp;
7501 Added digi_kill_sound_linked_to_object.
7502 ----------------------------
7503 revision 1.23
7504 date: 1994/12/10 15:59:39;  author: mike;  state: Exp;
7505 Fixed bug.
7506 ----------------------------
7507 revision 1.22
7508 date: 1994/12/10 15:44:35;  author: john;  state: Exp;
7509 Added max_distance passing for sound objects.
7510 ----------------------------
7511 revision 1.21
7512 date: 1994/12/05 12:17:40;  author: john;  state: Exp;
7513 Added code that locks/unlocks digital sounds on demand.
7514 ----------------------------
7515 revision 1.20
7516 date: 1994/11/28 18:34:57;  author: john;  state: Exp;
7517 Made the digi_max_channels cut of an old sound instead of
7518 not playing a new sound.
7519 ----------------------------
7520 revision 1.19
7521 date: 1994/11/14 17:53:56;  author: allender;  state: Exp;
7522 made some digi variables extern
7523 ----------------------------
7524 revision 1.18
7525 date: 1994/10/28 14:42:58;  author: john;  state: Exp;
7526 Added sound volumes to all sound calls.
7527 ----------------------------
7528 revision 1.17
7529 date: 1994/10/11 15:25:37;  author: john;  state: Exp;
7530 Added new function to play a sound once...
7531 ----------------------------
7532 revision 1.16
7533 date: 1994/10/03 20:51:44;  author: john;  state: Exp;
7534 Started added pause sound function; for the network I changed to 
7535 packet structure a bit; never tested, though.
7536 ----------------------------
7537 revision 1.15
7538 date: 1994/10/03 13:09:43;  author: john;  state: Exp;
7539 Added Pause function, but never tested it yet.
7540 ----------------------------
7541 revision 1.14
7542 date: 1994/09/30 10:09:24;  author: john;  state: Exp;
7543 Changed sound stuff... made it so the reseting card doesn't hang, 
7544 made volume change only if sound is installed.
7545 ----------------------------
7546 revision 1.13
7547 date: 1994/09/29 21:13:43;  author: john;  state: Exp;
7548 Added Master volumes for digi and midi. Also took out panning,
7549 because it doesn't work with MasterVolume stuff. 
7550 ----------------------------
7551 revision 1.12
7552 date: 1994/09/29 12:42:34;  author: john;  state: Exp;
7553 Added sidenum to keep track of sound pos. Made sound functions
7554 not do anything if nosound. Made sounds_init delete currently
7555 playing sounds.
7556 ----------------------------
7557 revision 1.11
7558 date: 1994/09/29 12:23:42;  author: john;  state: Exp;
7559 Added digi_kill_sound_linked_to_segment function.
7560 ----------------------------
7561 revision 1.10
7562 date: 1994/09/29 11:59:04;  author: john;  state: Exp;
7563 Added digi_kill_sound
7564 ----------------------------
7565 revision 1.9
7566 date: 1994/09/29 10:37:38;  author: john;  state: Exp;
7567 Added sound objects that dynamicaly change volume,pan.
7568 ----------------------------
7569 revision 1.8
7570 date: 1994/09/28 16:18:37;  author: john;  state: Exp;
7571 Added capability to play midi song.
7572 ----------------------------
7573 revision 1.7
7574 date: 1994/06/17 18:01:41;  author: john;  state: Exp;
7575 A bunch of new stuff by John
7576 ----------------------------
7577 revision 1.6
7578 date: 1994/06/15 19:00:58;  author: john;  state: Exp;
7579 Added the capability to make 3d sounds play just once for the
7580 laser hit wall effects.
7581 ----------------------------
7582 revision 1.5
7583 date: 1994/06/07 10:54:30;  author: john;  state: Exp;
7584 Made key S reinit the sound system.
7585 ----------------------------
7586 revision 1.4
7587 date: 1994/05/09 21:11:39;  author: john;  state: Exp;
7588 Sound changes; pass index instead of pointer to digi routines.
7589 Made laser sound cut off the last laser sound.
7590 ----------------------------
7591 revision 1.3
7592 date: 1994/04/27 11:44:25;  author: john;  state: Exp;
7593 First version of sound! Yay!
7594 ----------------------------
7595 revision 1.2
7596 date: 1994/04/20 21:58:50;  author: john;  state: Exp;
7597 First version of sound stuff... hopefully everything
7598 is commented out because it hangs..
7599 ----------------------------
7600 revision 1.1
7601 date: 1994/04/15 14:25:02;  author: john;  state: Exp;
7602 Initial revision
7603 =============================================================================
7604 RCS file: /Smoke/miner/source/main/dumpmine.c,v
7605 Working file: main/dumpmine.c
7606 head: 1.1
7607 description: Functions to dump text description of mine.
7608 An editor-only function, called at mine load time.
7609 To be read by a human to verify the correctness and completeness of a mine.
7610 ----------------------------
7611 revision 1.1
7612 date: 1995/05/16 15:24:16;  author: allender;  state: Exp;
7613 Initial revision
7614 ----------------------------
7615 revision 2.1
7616 date: 1995/04/06 12:21:50;  author: mike;  state: Exp;
7617 Add texture map information to txm files.
7618 ----------------------------
7619 revision 2.0
7620 date: 1995/02/27 11:26:41;  author: john;  state: Exp;
7621 New version 2.0, which has no anonymous unions, builds with
7622 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7623 ----------------------------
7624 revision 1.24
7625 date: 1995/01/23 15:34:43;  author: mike;  state: Exp;
7626 New diagnostic code, levels.all stuff.
7627 ----------------------------
7628 revision 1.23
7629 date: 1994/12/20 17:56:36;  author: yuan;  state: Exp;
7630 Multiplayer object capability.
7631 ----------------------------
7632 revision 1.22
7633 date: 1994/11/27 23:12:19;  author: matt;  state: Exp;
7634 Made changes for new mprintf calling convention
7635 ----------------------------
7636 revision 1.21
7637 date: 1994/11/23 12:19:04;  author: mike;  state: Exp;
7638 move out level names, stick in gamesave.
7639 ----------------------------
7640 revision 1.20
7641 date: 1994/11/21 16:54:36;  author: mike;  state: Exp;
7642 oops.
7643 ----------------------------
7644 revision 1.19
7645 date: 1994/11/20 22:12:55;  author: mike;  state: Exp;
7646 Lotsa new stuff in this fine debug file.
7647 ----------------------------
7648 revision 1.18
7649 date: 1994/11/17 14:58:09;  author: mike;  state: Exp;
7650 moved segment validation functions from editor to main.
7651 ----------------------------
7652 revision 1.17
7653 date: 1994/11/15 21:43:02;  author: mike;  state: Exp;
7654 texture usage system.
7655 ----------------------------
7656 revision 1.16
7657 date: 1994/11/15 12:45:59;  author: mike;  state: Exp;
7658 debug code for dumping texture info.
7659 ----------------------------
7660 revision 1.15
7661 date: 1994/11/14 20:47:50;  author: john;  state: Exp;
7662 Attempted to strip out all the code in the game 
7663 directory that uses any ui code.
7664 ----------------------------
7665 revision 1.14
7666 date: 1994/10/14 17:33:38;  author: mike;  state: Exp;
7667 Fix error reporting for number of multiplayer objects in mine.
7668 ----------------------------
7669 revision 1.13
7670 date: 1994/10/14 13:37:46;  author: mike;  state: Exp;
7671 Forgot parameter in fprintf, was getting bogus number of excess keys.
7672 ----------------------------
7673 revision 1.12
7674 date: 1994/10/12 08:05:33;  author: mike;  state: Exp;
7675 Detect keys contained in objects for error checking (txm file).
7676 ----------------------------
7677 revision 1.11
7678 date: 1994/10/10 17:02:08;  author: mike;  state: Exp;
7679 fix fix.
7680 ----------------------------
7681 revision 1.10
7682 date: 1994/10/10 17:00:37;  author: mike;  state: Exp;
7683 Add checking for proper number of players.
7684 ----------------------------
7685 revision 1.9
7686 date: 1994/10/03 23:37:19;  author: mike;  state: Exp;
7687 Adapt to clear and rational understanding of matcens as related to fuelcens as related to something that might work.
7688 ----------------------------
7689 revision 1.8
7690 date: 1994/09/30 17:15:29;  author: mike;  state: Exp;
7691 Fix error message, was telling bogus filename.
7692 ----------------------------
7693 revision 1.7
7694 date: 1994/09/30 11:50:55;  author: mike;  state: Exp;
7695 More diagnostics.
7696 ----------------------------
7697 revision 1.6
7698 date: 1994/09/28 17:31:19;  author: mike;  state: Exp;
7699 More error checking.
7700 ----------------------------
7701 revision 1.5
7702 date: 1994/09/28 11:14:05;  author: mike;  state: Exp;
7703 Better checking on bogus walls.
7704 ----------------------------
7705 revision 1.4
7706 date: 1994/09/28 09:23:50;  author: mike;  state: Exp;
7707 Change some Error messages to Warnings.
7708 ----------------------------
7709 revision 1.3
7710 date: 1994/09/27 17:08:31;  author: mike;  state: Exp;
7711 More mine validation stuff.
7712 ----------------------------
7713 revision 1.2
7714 date: 1994/09/27 15:43:22;  author: mike;  state: Exp;
7715 The amazing code to tell you everything and more about our mines!
7716 ----------------------------
7717 revision 1.1
7718 date: 1994/09/27 10:51:15;  author: mike;  state: Exp;
7719 Initial revision
7720 =============================================================================
7721 RCS file: /Smoke/miner/source/main/effects.c,v
7722 Working file: main/effects.c
7723 head: 1.1
7724 description: Special effects, such as rotating fans, electrical walls, and
7725 other cool animations. 
7726 ----------------------------
7727 revision 1.1
7728 date: 1995/05/16 15:24:25;  author: allender;  state: Exp;
7729 Initial revision
7730 ----------------------------
7731 revision 2.0
7732 date: 1995/02/27 11:32:49;  author: john;  state: Exp;
7733 New version 2.0, which has no anonymous unions, builds with
7734 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7735 ----------------------------
7736 revision 1.21
7737 date: 1995/02/13 20:35:06;  author: john;  state: Exp;
7738 Lintized
7739 ----------------------------
7740 revision 1.20
7741 date: 1994/12/10 16:44:50;  author: matt;  state: Exp;
7742 Added debugging code to track down door that turns into rock
7743 ----------------------------
7744 revision 1.19
7745 date: 1994/12/06 16:27:14;  author: matt;  state: Exp;
7746 Fixed horrible bug that was referencing segment -1
7747 ----------------------------
7748 revision 1.18
7749 date: 1994/12/02 23:20:51;  author: matt;  state: Exp;
7750 Reset bitmaps possibly changed by crit clips
7751 ----------------------------
7752 revision 1.17
7753 date: 1994/11/14 14:00:19;  author: matt;  state: Exp;
7754 Fixed stupid bug
7755 ----------------------------
7756 revision 1.16
7757 date: 1994/11/14 12:42:43;  author: matt;  state: Exp;
7758 Allow holes in effects list
7759 ----------------------------
7760 revision 1.15
7761 date: 1994/11/08 21:11:52;  author: matt;  state: Exp;
7762 Added functions to stop & start effects
7763 ----------------------------
7764 revision 1.14
7765 date: 1994/10/04 18:59:08;  author: matt;  state: Exp;
7766 Exploding eclips now play eclip while exploding, then switch to static bm
7767 ----------------------------
7768 revision 1.13
7769 date: 1994/10/04 15:17:42;  author: matt;  state: Exp;
7770 Took out references to unused constant
7771 ----------------------------
7772 revision 1.12
7773 date: 1994/09/29 11:00:01;  author: matt;  state: Exp;
7774 Made eclips (wall animations) not frame-rate dependent (for now)
7775 ----------------------------
7776 revision 1.11
7777 date: 1994/09/25 00:40:24;  author: matt;  state: Exp;
7778 Added the ability to make eclips (monitors, fans) which can be blown up
7779 ----------------------------
7780 revision 1.10
7781 date: 1994/08/14 23:15:14;  author: matt;  state: Exp;
7782 Added animating bitmap hostages, and cleaned up vclips a bit
7783 ----------------------------
7784 revision 1.9
7785 date: 1994/08/05 15:56:04;  author: matt;  state: Exp;
7786 Cleaned up effects system, and added alternate effects for after mine
7787 destruction.
7788 ----------------------------
7789 revision 1.8
7790 date: 1994/08/01 23:17:21;  author: matt;  state: Exp;
7791 Add support for animating textures on robots
7792 ----------------------------
7793 revision 1.7
7794 date: 1994/05/23 15:10:46;  author: yuan;  state: Exp;
7795 Make Eclips read directly... 
7796 No more need for $EFFECTS list.
7797 ----------------------------
7798 revision 1.6
7799 date: 1994/04/06 14:42:44;  author: yuan;  state: Exp;
7800 Adding new powerups.
7801 ----------------------------
7802 revision 1.5
7803 date: 1994/03/15 16:31:54;  author: yuan;  state: Exp;
7804 Cleaned up bm-loading code.
7805 (And structures)
7806 ----------------------------
7807 revision 1.4
7808 date: 1994/03/04 17:09:09;  author: yuan;  state: Exp;
7809 New door stuff.
7810 ----------------------------
7811 revision 1.3
7812 date: 1994/01/11 11:18:50;  author: yuan;  state: Exp;
7813 Fixed frame_count
7814 ----------------------------
7815 revision 1.2
7816 date: 1994/01/11 10:38:55;  author: yuan;  state: Exp;
7817 Special effects new implementation
7818 ----------------------------
7819 revision 1.1
7820 date: 1994/01/10 09:45:29;  author: yuan;  state: Exp;
7821 Initial revision
7822 =============================================================================
7823 RCS file: /Smoke/miner/source/main/effects.h,v
7824 Working file: main/effects.h
7825 head: 1.1
7826 description: Headerfile for effects.c
7827 ----------------------------
7828 revision 1.1
7829 date: 1995/05/16 15:56:08;  author: allender;  state: Exp;
7830 Initial revision
7831 ----------------------------
7832 revision 2.0
7833 date: 1995/02/27 11:27:34;  author: john;  state: Exp;
7834 New version 2.0, which has no anonymous unions, builds with
7835 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7836 ----------------------------
7837 revision 1.15
7838 date: 1994/11/08 21:12:07;  author: matt;  state: Exp;
7839 Added functions to stop & start effects
7840 ----------------------------
7841 revision 1.14
7842 date: 1994/10/13 17:14:11;  author: adam;  state: Exp;
7843 MAX_EFFECTS to 60 (ugh)
7844 ----------------------------
7845 revision 1.13
7846 date: 1994/10/05 10:14:34;  author: adam;  state: Exp;
7847 MAX_EFFECTS to 50
7848 ----------------------------
7849 revision 1.12
7850 date: 1994/10/04 18:59:09;  author: matt;  state: Exp;
7851 Exploding eclips now play eclip while exploding, then switch to static bm
7852 ----------------------------
7853 revision 1.11
7854 date: 1994/10/04 15:17:52;  author: matt;  state: Exp;
7855 Took out references to unused constant
7856 ----------------------------
7857 revision 1.10
7858 date: 1994/09/29 14:15:00;  author: matt;  state: Exp;
7859 Added sounds for eclips (wall effects)
7860 ----------------------------
7861 revision 1.9
7862 date: 1994/09/25 00:40:24;  author: matt;  state: Exp;
7863 Added the ability to make eclips (monitors, fans) which can be blown up
7864 ----------------------------
7865 revision 1.8
7866 date: 1994/08/05 15:55:25;  author: matt;  state: Exp;
7867 Cleaned up effects system, and added alternate effects for after mine
7868 destruction.
7869 ----------------------------
7870 revision 1.7
7871 date: 1994/08/01 23:17:20;  author: matt;  state: Exp;
7872 Add support for animating textures on robots
7873 ----------------------------
7874 revision 1.6
7875 date: 1994/05/19 18:13:18;  author: yuan;  state: Exp;
7876 MAX_EFFECTS increased to 30
7877 ----------------------------
7878 revision 1.5
7879 date: 1994/03/15 16:32:37;  author: yuan;  state: Exp;
7880 Cleaned up bm-loading code.
7881 (Fixed structures too)
7882 ----------------------------
7883 revision 1.4
7884 date: 1994/03/04 17:09:07;  author: yuan;  state: Exp;
7885 New door stuff.
7886 ----------------------------
7887 revision 1.3
7888 date: 1994/01/19 18:22:45;  author: yuan;  state: Exp;
7889 Changed number of effects from 10-20
7890 ----------------------------
7891 revision 1.2
7892 date: 1994/01/11 10:39:07;  author: yuan;  state: Exp;
7893 Special effects new implementation
7894 ----------------------------
7895 revision 1.1
7896 date: 1994/01/10 10:36:14;  author: yuan;  state: Exp;
7897 Initial revision
7898 =============================================================================
7899 RCS file: /Smoke/miner/source/main/endlevel.c,v
7900 Working file: main/endlevel.c
7901 head: 1.5
7902 description: Code for rendering external scenes
7903 ----------------------------
7904 revision 1.5
7905 date: 1995/10/31 10:24:09;  author: allender;  state: Exp;
7906 shareware stuff
7907 ----------------------------
7908 revision 1.4
7909 date: 1995/09/14 16:33:54;  author: allender;  state: Exp;
7910 fixed function return values for those that didn't
7911 have them...thanks matt!
7912 ----------------------------
7913 revision 1.3
7914 date: 1995/07/28 15:36:26;  author: allender;  state: Exp;
7915 reverse inverse sqrt change
7916 ----------------------------
7917 revision 1.2
7918 date: 1995/07/28 15:17:40;  author: allender;  state: Exp;
7919 inverse magnitude fixup
7920 ----------------------------
7921 revision 1.1
7922 date: 1995/05/16 15:24:32;  author: allender;  state: Exp;
7923 Initial revision
7924 ----------------------------
7925 revision 2.2
7926 date: 1995/03/21 08:40:14;  author: john;  state: Exp;
7927 Ifdef'd out the NETWORK code.
7928 ----------------------------
7929 revision 2.1
7930 date: 1995/03/20 18:15:50;  author: john;  state: Exp;
7931 Added code to not store the normals in the segment structure.
7932 ----------------------------
7933 revision 2.0
7934 date: 1995/02/27 11:30:42;  author: john;  state: Exp;
7935 New version 2.0, which has no anonymous unions, builds with
7936 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
7937 ----------------------------
7938 revision 1.80
7939 date: 1995/02/22 13:24:45;  author: john;  state: Exp;
7940 Removed the vecmat anonymous unions.
7941 ----------------------------
7942 revision 1.79
7943 date: 1995/02/11 12:41:54;  author: john;  state: Exp;
7944 Added new song method, with FM bank switching..
7945 ----------------------------
7946 revision 1.78
7947 date: 1995/02/08 11:37:41;  author: mike;  state: Exp;
7948 Check for failures in call to obj_create.
7949 ----------------------------
7950 revision 1.77
7951 date: 1995/02/05 22:09:49;  author: matt;  state: Exp;
7952 Switch out of rear view when starting endlevel sequence
7953 ----------------------------
7954 revision 1.76
7955 date: 1995/01/30 18:08:28;  author: rob;  state: Exp;
7956 Add palette fade out before ending level on special missions.
7957 ----------------------------
7958 revision 1.75
7959 date: 1995/01/29 16:19:19;  author: rob;  state: Exp;
7960 Fixed endlevel for custom missions.
7961 ----------------------------
7962 revision 1.74
7963 date: 1995/01/26 12:18:10;  author: rob;  state: Exp;
7964 Changed calling convention of network_do_frame.
7965 ----------------------------
7966 revision 1.73
7967 date: 1995/01/21 16:50:03;  author: matt;  state: Exp;
7968 Made endlevel work with new mission stuff
7969 ----------------------------
7970 revision 1.72
7971 date: 1994/12/20 18:22:51;  author: john;  state: Exp;
7972 Added code to support non-looping songs, and put
7973 it in for endlevel and credits.
7974 ----------------------------
7975 revision 1.71
7976 date: 1994/12/15 12:23:58;  author: matt;  state: Exp;
7977 Added check for failure to create camera object
7978 ----------------------------
7979 revision 1.70
7980 date: 1994/12/15 03:05:28;  author: matt;  state: Exp;
7981 Added error checking for NULL return from object_create_explosion()
7982 ----------------------------
7983 revision 1.69
7984 date: 1994/12/12 21:41:38;  author: matt;  state: Exp;
7985 Don't start endlevel if OF_SHOULD_BE_DEAD is set for player
7986 ----------------------------
7987 revision 1.68
7988 date: 1994/12/12 15:44:54;  author: rob;  state: Exp;
7989 Rolled back a change to endlevel_start that caused more bugs than
7990 it fixed.
7991 ----------------------------
7992 revision 1.67
7993 date: 1994/12/12 12:08:33;  author: rob;  state: Exp;
7994 IF a player is dead upon entering the tunnel, make them not dead.  Not perfect solution
7995 but avoids some last-minute weirdness we want to fix.  This should be revisited in new
7996 versions if possible!
7997 ----------------------------
7998 revision 1.66
7999 date: 1994/12/11 22:02:13;  author: allender;  state: Exp;
8000 made endlevel data loading work with .txb encoded format (made with
8001 compbit -i level0?.end -o level0?.txb)
8002 ----------------------------
8003 revision 1.65
8004 date: 1994/12/11 20:32:47;  author: matt;  state: Exp;
8005 Made camera transition happen 1/3 of the way through exit tunnel
8006 ----------------------------
8007 revision 1.64
8008 date: 1994/12/08 20:56:27;  author: john;  state: Exp;
8009 More cfile stuff.
8010 ----------------------------
8011 revision 1.63
8012 date: 1994/12/07 17:00:52;  author: rob;  state: Exp;
8013 Trying to fix homing tone warning when in exit tunnel.
8014 ----------------------------
8015 revision 1.62
8016 date: 1994/12/06 13:24:47;  author: matt;  state: Exp;
8017 Made exit model come out of bitmaps.tbl
8018 ----------------------------
8019 revision 1.61
8020 date: 1994/12/06 12:06:22;  author: matt;  state: Exp;
8021 Fixed/cleaned up satellite (planet/sun) code
8022 ----------------------------
8023 revision 1.60
8024 date: 1994/12/05 13:37:12;  author: adam;  state: Exp;
8025 removed slew-mode
8026 ----------------------------
8027 revision 1.59
8028 date: 1994/12/05 12:49:37;  author: matt;  state: Exp;
8029 Made satellite a rod (instead of a plane old non-rotating bitmap), and
8030 made the size settable in the .end file
8031 ----------------------------
8032 revision 1.58
8033 date: 1994/12/04 21:40:00;  author: matt;  state: Exp;
8034 Added explosion sounds
8035 ----------------------------
8036 revision 1.57
8037 date: 1994/12/04 18:31:41;  author: matt;  state: Exp;
8038 Wasn't coding planet position, causing it to disappear sometimes
8039 ----------------------------
8040 revision 1.56
8041 date: 1994/12/04 14:30:26;  author: john;  state: Exp;
8042 Added hooks for music..
8043 ----------------------------
8044 revision 1.55
8045 date: 1994/12/04 13:53:52;  author: matt;  state: Exp;
8046 Added code to make camera off-centered during lookback
8047 ----------------------------
8048 revision 1.54
8049 date: 1994/12/04 12:30:18;  author: matt;  state: Exp;
8050 Fixed slew for short sequence
8051 ----------------------------
8052 revision 1.53
8053 date: 1994/12/03 19:28:10;  author: matt;  state: Exp;
8054 Added alternate model for exit model after mine destruction
8055 ----------------------------
8056 revision 1.52
8057 date: 1994/12/03 00:17:23;  author: matt;  state: Exp;
8058 Made endlevel sequence cut off early
8059 Made exit model and bit explosion always plot last (after all terrain)
8060 ----------------------------
8061 revision 1.51
8062 date: 1994/12/01 20:15:43;  author: yuan;  state: Exp;
8063 Localization.
8064 ----------------------------
8065 revision 1.50
8066 date: 1994/11/30 23:27:35;  author: adam;  state: Exp;
8067 mucked around carelessly
8068 ----------------------------
8069 revision 1.49
8070 date: 1994/11/28 21:50:37;  author: mike;  state: Exp;
8071 optimizations.
8072 ----------------------------
8073 revision 1.48
8074 date: 1994/11/28 00:12:05;  author: allender;  state: Exp;
8075 took out demo code that was in at one time to record endlevel sequence.
8076 We are _not_ recording endlevel sequence
8077 ----------------------------
8078 revision 1.47
8079 date: 1994/11/27 23:35:54;  author: allender;  state: Exp;
8080 pause demo recording when starting endlevel sequence.  on demo playback,
8081 don't do endlevel at all.
8082 ----------------------------
8083 revision 1.46
8084 date: 1994/11/27 23:13:59;  author: matt;  state: Exp;
8085 Made changes for new mprintf calling convention
8086 ----------------------------
8087 revision 1.45
8088 date: 1994/11/26 23:17:29;  author: matt;  state: Exp;
8089 When camera leaves mine, bank it so it's level with the ground
8090 ----------------------------
8091 revision 1.44
8092 date: 1994/11/23 16:52:13;  author: rob;  state: Exp;
8093 Ended netgame endlevel sequence a bit earlier.
8094 ----------------------------
8095 revision 1.43
8096 date: 1994/11/22 19:20:46;  author: rob;  state: Exp;
8097 Modem support for secret levels.
8098 ----------------------------
8099 revision 1.42
8100 date: 1994/11/22 12:11:03;  author: rob;  state: Exp;
8101 Fixed bug - file handle left open in load_endlevel_data.
8102 ----------------------------
8103 revision 1.41
8104 date: 1994/11/21 17:29:22;  author: matt;  state: Exp;
8105 Cleaned up sequencing & game saving for secret levels
8106 ----------------------------
8107 revision 1.40
8108 date: 1994/11/19 15:14:54;  author: mike;  state: Exp;
8109 remove unused code and data
8110 ----------------------------
8111 revision 1.39
8112 date: 1994/11/19 12:41:32;  author: matt;  state: Exp;
8113 Added system to read endlevel data from file, and to make it work
8114 with any exit tunnel.
8115 ----------------------------
8116 revision 1.38
8117 date: 1994/11/17 15:02:24;  author: mike;  state: Exp;
8118 support new segment validation functions.
8119 ----------------------------
8120 revision 1.37
8121 date: 1994/11/17 13:04:45;  author: allender;  state: Exp;
8122 backout out newdemo changes
8123 ----------------------------
8124 revision 1.35
8125 date: 1994/11/16 14:52:33;  author: rob;  state: Exp;
8126 Commented out SLEW_ON on Matt's direction.
8127 Changed something to fix demo recording.
8128 ----------------------------
8129 revision 1.34
8130 date: 1994/11/16 11:49:29;  author: matt;  state: Exp;
8131 Added code to rotate terrain to match mine
8132 ----------------------------
8133 revision 1.33
8134 date: 1994/11/14 17:54:54;  author: allender;  state: Exp;
8135 on exit sequence during demo recording, force player exited from mine
8136 packet to all other network players
8137 ----------------------------
8138 revision 1.32
8139 date: 1994/11/10 21:27:42;  author: matt;  state: Exp;
8140 Took out printf's
8141 ----------------------------
8142 revision 1.31
8143 date: 1994/11/10 14:02:24;  author: matt;  state: Exp;
8144 Hacked in support for player ships with different textures
8145 ----------------------------
8146 revision 1.30
8147 date: 1994/11/09 10:31:33;  author: matt;  state: Exp;
8148 Don't create explosions if can't find seg to create them in
8149 ----------------------------
8150 revision 1.29
8151 date: 1994/11/05 17:22:37;  author: john;  state: Exp;
8152 Fixed lots of sequencing problems with newdemo stuff.
8153 ----------------------------
8154 revision 1.28
8155 date: 1994/11/03 11:10:39;  author: matt;  state: Exp;
8156 Fixed chase angles code
8157 Maybe other things, too.
8158 ----------------------------
8159 revision 1.27
8160 date: 1994/10/30 20:09:21;  author: matt;  state: Exp;
8161 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
8162 go out; made more explosions on walls.
8163 ----------------------------
8164 revision 1.26
8165 date: 1994/10/28 16:37:50;  author: allender;  state: Exp;
8166 stop demo recording when endlevel sequence activated
8167 ----------------------------
8168 revision 1.25
8169 date: 1994/10/27 21:15:21;  author: matt;  state: Exp;
8170 Added explosions in mine chasing player
8171 ----------------------------
8172 revision 1.24
8173 date: 1994/10/27 01:03:57;  author: matt;  state: Exp;
8174 Fixed several small bugs in flythrough
8175 ----------------------------
8176 revision 1.23
8177 date: 1994/10/22 01:32:30;  author: matt;  state: Exp;
8178 Don't start endlevel sequence if player dead
8179 ----------------------------
8180 revision 1.22
8181 date: 1994/10/22 00:08:06;  author: matt;  state: Exp;
8182 Fixed up problems with bonus & game sequencing
8183 Player doesn't get credit for hostages unless he gets them out alive
8184 =============================================================================
8185 RCS file: /Smoke/miner/source/main/endlevel.h,v
8186 Working file: main/endlevel.h
8187 head: 1.2
8188 description: Header for newfile.c
8189 ----------------------------
8190 revision 1.2
8191 date: 1995/09/14 16:36:34;  author: allender;  state: Exp;
8192 fixed function prototype for those functions that didn't
8193 have them...thanks matt
8194 ----------------------------
8195 revision 1.1
8196 date: 1995/05/16 15:56:16;  author: allender;  state: Exp;
8197 Initial revision
8198 ----------------------------
8199 revision 2.0
8200 date: 1995/02/27 11:31:37;  author: john;  state: Exp;
8201 New version 2.0, which has no anonymous unions, builds with
8202 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
8203 ----------------------------
8204 revision 1.5
8205 date: 1994/12/06 13:24:55;  author: matt;  state: Exp;
8206 Made exit model come out of bitmaps.tbl
8207 ----------------------------
8208 revision 1.4
8209 date: 1994/11/19 12:41:35;  author: matt;  state: Exp;
8210 Added system to read endlevel data from file, and to make it work
8211 with any exit tunnel.
8212 ----------------------------
8213 revision 1.3
8214 date: 1994/10/30 20:09:20;  author: matt;  state: Exp;
8215 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
8216 go out; made more explosions on walls.
8217 ----------------------------
8218 revision 1.2
8219 date: 1994/08/19 20:09:38;  author: matt;  state: Exp;
8220 Added end-of-level cut scene with external scene
8221 ----------------------------
8222 revision 1.1
8223 date: 1994/08/15 19:18:47;  author: matt;  state: Exp;
8224 Initial revision
8225 =============================================================================
8226 RCS file: /Smoke/miner/source/main/fireball.c,v
8227 Working file: main/fireball.c
8228 head: 1.2
8229 description: Code for rendering & otherwise dealing with explosions
8230 ----------------------------
8231 revision 1.2
8232 date: 1995/10/31 10:23:56;  author: allender;  state: Exp;
8233 shareware stuff
8234 ----------------------------
8235 revision 1.1
8236 date: 1995/05/16 15:24:41;  author: allender;  state: Exp;
8237 Initial revision
8238 ----------------------------
8239 revision 2.2
8240 date: 1995/03/21 08:39:57;  author: john;  state: Exp;
8241 Ifdef'd out the NETWORK code.
8242 ----------------------------
8243 revision 2.1
8244 date: 1995/03/20 18:15:47;  author: john;  state: Exp;
8245 Added code to not store the normals in the segment structure.
8246 ----------------------------
8247 revision 2.0
8248 date: 1995/02/27 11:30:34;  author: john;  state: Exp;
8249 New version 2.0, which has no anonymous unions, builds with
8250 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
8251 ----------------------------
8252 revision 1.200
8253 date: 1995/02/22 13:18:41;  author: allender;  state: Exp;
8254 remove anonymous unions from object structure
8255 ----------------------------
8256 revision 1.199
8257 date: 1995/02/14 19:58:32;  author: mike;  state: Exp;
8258 comment out "something bad has happened" int3.
8259 ----------------------------
8260 revision 1.198
8261 date: 1995/02/09 13:11:01;  author: mike;  state: Exp;
8262 remove an annoying mprintf and Int3().
8263 ----------------------------
8264 revision 1.197
8265 date: 1995/02/08 17:10:14;  author: mike;  state: Exp;
8266 don't drop cloaks if one nearby.
8267 ----------------------------
8268 revision 1.196
8269 date: 1995/02/08 13:27:14;  author: rob;  state: Exp;
8270 Give keys dropped by robots 0 velocity in coop game.
8271 ----------------------------
8272 revision 1.195
8273 date: 1995/02/08 11:57:40;  author: mike;  state: Exp;
8274 determine whether debris object failed to create because buffer was
8275 exhausted or because limit was hit.
8276 ----------------------------
8277 revision 1.194
8278 date: 1995/02/08 11:37:58;  author: mike;  state: Exp;
8279 Check for failures in call to obj_create.
8280 ----------------------------
8281 revision 1.193
8282 date: 1995/02/07 21:09:41;  author: mike;  state: Exp;
8283 only replace weapon with energy 1/2 time.
8284 ----------------------------
8285 revision 1.192
8286 date: 1995/01/30 18:21:52;  author: rob;  state: Exp;
8287 Replace extra life powerups in multiplayer to invul when
8288 dropped by robots.
8289 ----------------------------
8290 revision 1.191
8291 date: 1995/01/28 17:40:59;  author: mike;  state: Exp;
8292 fix stupidity in converting quad lasers to energy.
8293 ----------------------------
8294 revision 1.190
8295 date: 1995/01/27 15:05:59;  author: rob;  state: Exp;
8296 Trying to fix a bug with damaging robots with player badass explosions.
8297 ----------------------------
8298 revision 1.189
8299 date: 1995/01/26 18:59:04;  author: rob;  state: Exp;
8300 Powerups were flying too far in robot-cooperative games.
8301 ----------------------------
8302 revision 1.188
8303 date: 1995/01/25 10:53:35;  author: mike;  state: Exp;
8304 make badass damage go through grates.
8305 ----------------------------
8306 revision 1.187
8307 date: 1995/01/25 09:37:23;  author: mike;  state: Exp;
8308 fix objects containing robots, worked for powerups, bad {} placement.
8309 ----------------------------
8310 revision 1.186
8311 date: 1995/01/23 22:51:20;  author: mike;  state: Exp;
8312 drop energy instead of primary weapon if you already have primary weapon.
8313 ----------------------------
8314 revision 1.185
8315 date: 1995/01/20 16:56:37;  author: mike;  state: Exp;
8316 Cut damage done by badass weapons.
8317 ----------------------------
8318 revision 1.184
8319 date: 1995/01/19 17:44:57;  author: mike;  state: Exp;
8320 damage_force removed, that information coming from strength field.
8321 ----------------------------
8322 revision 1.183
8323 date: 1995/01/16 21:06:54;  author: mike;  state: Exp;
8324 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
8325 ----------------------------
8326 revision 1.182
8327 date: 1995/01/16 19:24:04;  author: mike;  state: Exp;
8328 If a gated-in robot and going to drop energy powerup, don't!
8329 ----------------------------
8330 revision 1.181
8331 date: 1995/01/15 20:48:03;  author: mike;  state: Exp;
8332 drop energy in place of quad lasers if player already has quad lasers.
8333 ----------------------------
8334 revision 1.180
8335 date: 1995/01/14 19:32:19;  author: rob;  state: Exp;
8336 Fixed an error.
8337 ----------------------------
8338 revision 1.179
8339 date: 1995/01/14 18:50:55;  author: rob;  state: Exp;
8340 Make robot egg creation suitable for mutliplayer situations.
8341 ----------------------------
8342 revision 1.178
8343 date: 1995/01/14 14:55:07;  author: rob;  state: Exp;
8344 Make weapons/keys/etc never disappear in network mode.
8345 =============================================================================
8346 RCS file: /Smoke/miner/source/main/fireball.h,v
8347 Working file: main/fireball.h
8348 head: 1.1
8349 description: Header for fireball.c
8350 ----------------------------
8351 revision 1.1
8352 date: 1995/05/16 15:56:23;  author: allender;  state: Exp;
8353 Initial revision
8354 ----------------------------
8355 revision 2.0
8356 date: 1995/02/27 11:27:03;  author: john;  state: Exp;
8357 New version 2.0, which has no anonymous unions, builds with
8358 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
8359 ----------------------------
8360 revision 1.13
8361 date: 1995/01/17 12:14:38;  author: john;  state: Exp;
8362 Made walls, object explosion vclips load at level start.
8363 ----------------------------
8364 revision 1.12
8365 date: 1995/01/13 15:41:52;  author: rob;  state: Exp;
8366 Added prototype for maybe_replace_powerup_with_energy
8367 ----------------------------
8368 revision 1.11
8369 date: 1994/11/17 16:28:36;  author: rob;  state: Exp;
8370 Changed maybe_drop_cloak_powerup to maybe_drop_net_powerup (more
8371 generic and useful)
8372 ----------------------------
8373 revision 1.10
8374 date: 1994/10/12 08:03:42;  author: mike;  state: Exp;
8375 Prototype maybe_drop_cloak_powerup.
8376 ----------------------------
8377 revision 1.9
8378 date: 1994/10/11 12:24:39;  author: matt;  state: Exp;
8379 Cleaned up/change badass explosion calls
8380 ----------------------------
8381 revision 1.8
8382 date: 1994/09/07 16:00:34;  author: mike;  state: Exp;
8383 Add object pointer to parameter list of object_create_badass_explosion.
8384 ----------------------------
8385 revision 1.7
8386 date: 1994/09/02 14:00:39;  author: matt;  state: Exp;
8387 Simplified explode_object() & mutliple-stage explosions
8388 ----------------------------
8389 revision 1.6
8390 date: 1994/08/17 16:49:58;  author: john;  state: Exp;
8391 Added damaging fireballs, missiles.
8392 ----------------------------
8393 revision 1.5
8394 date: 1994/07/14 22:39:19;  author: matt;  state: Exp;
8395 Added exploding doors
8396 ----------------------------
8397 revision 1.4
8398 date: 1994/06/08 10:56:36;  author: matt;  state: Exp;
8399 Improved debris: now get submodel size from new POF files; debris now has
8400 limited life; debris can now be blown up.
8401 ----------------------------
8402 revision 1.3
8403 date: 1994/04/01 13:35:44;  author: matt;  state: Exp;
8404 Added multiple-stage explosions
8405 ----------------------------
8406 revision 1.2
8407 date: 1994/02/17 11:33:32;  author: matt;  state: Exp;
8408 Changes in object system
8409 ----------------------------
8410 revision 1.1
8411 date: 1994/02/16 22:41:15;  author: matt;  state: Exp;
8412 Initial revision
8413 =============================================================================
8414 RCS file: /Smoke/miner/source/main/fuelcen.c,v
8415 Working file: main/fuelcen.c
8416 head: 1.2
8417 description: Functions for refueling centers.
8418 ----------------------------
8419 revision 1.2
8420 date: 1995/10/31 10:23:40;  author: allender;  state: Exp;
8421 shareware stuff
8422 ----------------------------
8423 revision 1.1
8424 date: 1995/05/16 15:24:50;  author: allender;  state: Exp;
8425 Initial revision
8426 ----------------------------
8427 revision 2.3
8428 date: 1995/03/21 08:38:40;  author: john;  state: Exp;
8429 Ifdef'd out the NETWORK code.
8430 ----------------------------
8431 revision 2.2
8432 date: 1995/03/06 15:23:09;  author: john;  state: Exp;
8433 New screen techniques.
8434 ----------------------------
8435 revision 2.1
8436 date: 1995/02/27 13:13:26;  author: john;  state: Exp;
8437 Removed floating point.
8438 ----------------------------
8439 revision 2.0
8440 date: 1995/02/27 11:27:20;  author: john;  state: Exp;
8441 New version 2.0, which has no anonymous unions, builds with
8442 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
8443 ----------------------------
8444 revision 1.159
8445 date: 1995/02/22 13:48:10;  author: allender;  state: Exp;
8446 remove anonymous unions in object structure
8447 ----------------------------
8448 revision 1.158
8449 date: 1995/02/08 11:37:48;  author: mike;  state: Exp;
8450 Check for failures in call to obj_create.
8451 ----------------------------
8452 revision 1.157
8453 date: 1995/02/07 20:39:39;  author: mike;  state: Exp;
8454 fix toasters in multiplayer
8455 ----------------------------
8456 revision 1.156
8457 date: 1995/02/02 18:40:10;  author: john;  state: Exp;
8458 Fixed bug with full screen cockpit flashing non-white.
8459 ----------------------------
8460 revision 1.155
8461 date: 1995/01/28 15:27:22;  author: yuan;  state: Exp;
8462 Make sure fuelcen nums are valid.
8463 ----------------------------
8464 revision 1.154
8465 date: 1995/01/03 14:26:23;  author: rob;  state: Exp;
8466 Better ifdef for robot centers.
8467 ----------------------------
8468 revision 1.153
8469 date: 1995/01/03 11:27:49;  author: rob;  state: Exp;
8470 Added include of fuelcen.c
8471 ----------------------------
8472 revision 1.152
8473 date: 1995/01/03 09:47:22;  author: john;  state: Exp;
8474 Some ifdef SHAREWARE lines.
8475 ----------------------------
8476 revision 1.151
8477 date: 1995/01/02 21:02:07;  author: rob;  state: Exp;
8478 added matcen support for coop/multirobot.
8479 ----------------------------
8480 revision 1.150
8481 date: 1994/12/15 18:31:22;  author: mike;  state: Exp;
8482 fix confusing precedence problems.
8483 ----------------------------
8484 revision 1.149
8485 date: 1994/12/15 13:04:22;  author: mike;  state: Exp;
8486 Replace Players[Player_num].time_total references with GameTime.
8487 ----------------------------
8488 revision 1.148
8489 date: 1994/12/15 03:05:18;  author: matt;  state: Exp;
8490 Added error checking for NULL return from object_create_explosion()
8491 ----------------------------
8492 revision 1.147
8493 date: 1994/12/13 19:49:12;  author: rob;  state: Exp;
8494 Made the fuelcen noise quieter.
8495 ----------------------------
8496 revision 1.146
8497 date: 1994/12/13 12:03:18;  author: john;  state: Exp;
8498 Made the warning sirens not start until after "desccruction
8499 secquence activated voice".
8500 ----------------------------
8501 revision 1.145
8502 date: 1994/12/12 17:18:30;  author: mike;  state: Exp;
8503 make warning siren louder.
8504 ----------------------------
8505 revision 1.144
8506 date: 1994/12/11 23:18:04;  author: john;  state: Exp;
8507 Added -nomusic.
8508 Added RealFrameTime.
8509 Put in a pause when sound initialization error.
8510 Made controlcen countdown and framerate use RealFrameTime.
8511 ----------------------------
8512 revision 1.143
8513 date: 1994/12/11 14:10:16;  author: mike;  state: Exp;
8514 louder sounds.
8515 ----------------------------
8516 revision 1.142
8517 date: 1994/12/06 11:33:19;  author: yuan;  state: Exp;
8518 Fixed bug with fueling when above 100.
8519 ----------------------------
8520 revision 1.141
8521 date: 1994/12/05 23:37:14;  author: matt;  state: Exp;
8522 Took out calls to warning() function
8523 ----------------------------
8524 revision 1.140
8525 date: 1994/12/05 23:19:18;  author: yuan;  state: Exp;
8526 Fixed fuel center refuelers..
8527 ----------------------------
8528 revision 1.139
8529 date: 1994/12/03 12:48:12;  author: mike;  state: Exp;
8530 diminish rocking due to control center destruction.
8531 ----------------------------
8532 revision 1.138
8533 date: 1994/12/02 23:30:32;  author: mike;  state: Exp;
8534 fix bumpiness after toasting control center.
8535 ----------------------------
8536 revision 1.137
8537 date: 1994/12/02 22:48:14;  author: mike;  state: Exp;
8538 rock the ship after toasting the control center!
8539 ----------------------------
8540 revision 1.136
8541 date: 1994/12/02 17:12:11;  author: rob;  state: Exp;
8542 Fixed countdown sounds.
8543 ----------------------------
8544 revision 1.135
8545 date: 1994/11/29 20:59:43;  author: rob;  state: Exp;
8546 Don't run out of fuel in net games (don't want to sync it between machines)
8547 ----------------------------
8548 revision 1.134
8549 date: 1994/11/29 19:10:57;  author: john;  state: Exp;
8550 Took out debugging mprintf.
8551 ----------------------------
8552 revision 1.133
8553 date: 1994/11/29 13:19:40;  author: john;  state: Exp;
8554 Made voice for "destruction actived in t-"
8555 be at 12.75 secs.
8556 ----------------------------
8557 revision 1.132
8558 date: 1994/11/29 12:19:46;  author: john;  state: Exp;
8559 MAde the "Mine desctruction will commence"
8560 voice play at 12.5 secs.
8561 ----------------------------
8562 revision 1.131
8563 date: 1994/11/29 12:12:54;  author: adam;  state: Exp;
8564 *** empty log message ***
8565 ----------------------------
8566 revision 1.130
8567 date: 1994/11/28 21:04:26;  author: rob;  state: Exp;
8568 Added code to cast noise when player refuels.
8569 ----------------------------
8570 revision 1.129
8571 date: 1994/11/27 23:15:04;  author: matt;  state: Exp;
8572 Made changes for new mprintf calling convention
8573 ----------------------------
8574 revision 1.128
8575 date: 1994/11/21 16:27:51;  author: mike;  state: Exp;
8576 debug code for morphing.
8577 ----------------------------
8578 revision 1.127
8579 date: 1994/11/21 12:33:50;  author: matt;  state: Exp;
8580 For control center explosions, use small fireball, not pseudo-random vclip
8581 ----------------------------
8582 revision 1.126
8583 date: 1994/11/20 22:12:15;  author: mike;  state: Exp;
8584 Fix bug in initializing materialization centers.
8585 ----------------------------
8586 revision 1.125
8587 date: 1994/11/19 15:18:22;  author: mike;  state: Exp;
8588 rip out unused code and data.
8589 ----------------------------
8590 revision 1.124
8591 date: 1994/11/08 12:18:59;  author: mike;  state: Exp;
8592 Initialize Fuelcen_seconds_left.
8593 ----------------------------
8594 revision 1.123
8595 date: 1994/10/30 14:12:33;  author: mike;  state: Exp;
8596 rip out repair center stuff
8597 ----------------------------
8598 revision 1.122
8599 date: 1994/10/28 14:42:45;  author: john;  state: Exp;
8600 Added sound volumes to all sound calls.
8601 ----------------------------
8602 revision 1.121
8603 date: 1994/10/16 12:44:02;  author: mike;  state: Exp;
8604 Make time to exit mine after control center destruction diff level dependent.
8605 ----------------------------
8606 revision 1.120
8607 date: 1994/10/09 22:03:26;  author: mike;  state: Exp;
8608 Adapt to new create_n_segment_path parameters.
8609 ----------------------------
8610 revision 1.119
8611 date: 1994/10/06 14:52:42;  author: mike;  state: Exp;
8612 Remove last of ability to damage fuel centers.
8613 ----------------------------
8614 revision 1.118
8615 date: 1994/10/06 14:08:45;  author: matt;  state: Exp;
8616 Made morph flash effect get orientation from segment
8617 ----------------------------
8618 revision 1.117
8619 date: 1994/10/05 16:09:03;  author: mike;  state: Exp;
8620 Put debugging code into matcen/fuelcen synchronization problem.
8621 ----------------------------
8622 revision 1.116
8623 date: 1994/10/04 15:32:41;  author: john;  state: Exp;
8624 Took out the old PLAY_SOUND??? code and replaced it
8625 with direct calls into digi_link_??? so that all sounds
8626 can be made 3d.
8627 ----------------------------
8628 revision 1.115
8629 date: 1994/10/03 23:37:57;  author: mike;  state: Exp;
8630 Clean up this mess of confusion to the point where maybe matcens actually work.
8631 ----------------------------
8632 revision 1.114
8633 date: 1994/10/03 13:34:40;  author: matt;  state: Exp;
8634 Added new (and hopefully better) game sequencing functions
8635 ----------------------------
8636 revision 1.113
8637 date: 1994/09/30 14:41:57;  author: matt;  state: Exp;
8638 Fixed bug as per Mike's instructions
8639 ----------------------------
8640 revision 1.112
8641 date: 1994/09/30 00:37:33;  author: mike;  state: Exp;
8642 Balance materialization centers.
8643 ----------------------------
8644 revision 1.111
8645 date: 1994/09/28 23:12:52;  author: matt;  state: Exp;
8646 Macroized palette flash system
8647 ----------------------------
8648 revision 1.110
8649 date: 1994/09/27 15:42:31;  author: mike;  state: Exp;
8650 Add names of Specials.
8651 ----------------------------
8652 revision 1.109
8653 date: 1994/09/27 00:02:23;  author: mike;  state: Exp;
8654 Yet more materialization center stuff.
8655 ----------------------------
8656 revision 1.108
8657 date: 1994/09/26 11:26:23;  author: mike;  state: Exp;
8658 Balance materialization centers.
8659 ----------------------------
8660 revision 1.107
8661 date: 1994/09/25 23:40:47;  author: matt;  state: Exp;
8662 Changed the object load & save code to read/write the structure fields one
8663 at a time (rather than the whole structure at once).  This mean that the
8664 object structure can be changed without breaking the load/save functions.
8665 As a result of this change, the local_object data can be and has been 
8666 incorporated into the object array.  Also, timeleft is now a property 
8667 of all objects, and the object structure has been otherwise cleaned up.
8668 ----------------------------
8669 revision 1.106
8670 date: 1994/09/25 15:55:58;  author: mike;  state: Exp;
8671 Balance materialization centers, make them emit light, make them re-triggerable after awhile.
8672 ----------------------------
8673 revision 1.105
8674 date: 1994/09/24 17:42:33;  author: mike;  state: Exp;
8675 Making materialization centers be activated by triggers and balancing them.
8676 ----------------------------
8677 revision 1.104
8678 date: 1994/09/24 14:16:06;  author: mike;  state: Exp;
8679 Support new network constants.
8680 ----------------------------
8681 revision 1.103
8682 date: 1994/09/20 19:14:40;  author: john;  state: Exp;
8683 Massaged the sound system; used a better formula for determining
8684 which l/r balance, also, put in Mike's stuff that searches for a connection
8685 between the 2 sounds' segments, stopping for closed doors, etc.
8686 ----------------------------
8687 revision 1.102
8688 date: 1994/09/17 01:40:51;  author: matt;  state: Exp;
8689 Added status bar/sizable window mode, and in the process revamped the
8690 whole cockpit mode system.
8691 ----------------------------
8692 revision 1.101
8693 date: 1994/08/31 20:57:25;  author: matt;  state: Exp;
8694 Cleaned up endlevel/death code
8695 ----------------------------
8696 revision 1.100
8697 date: 1994/08/30 17:54:20;  author: mike;  state: Exp;
8698 Slow down rate of creation of objects by materialization centers.
8699 ----------------------------
8700 revision 1.99
8701 date: 1994/08/29 11:47:01;  author: john;  state: Exp;
8702 Added warning if no control centers in mine.
8703 =============================================================================
8704 RCS file: /Smoke/miner/source/main/fuelcen.h,v
8705 Working file: main/fuelcen.h
8706 head: 1.1
8707 description: Definitions for fueling centers.
8708 ----------------------------
8709 revision 1.1
8710 date: 1995/05/16 15:56:31;  author: allender;  state: Exp;
8711 Initial revision
8712 ----------------------------
8713 revision 2.0
8714 date: 1995/02/27 11:28:43;  author: john;  state: Exp;
8715 New version 2.0, which has no anonymous unions, builds with
8716 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
8717 ----------------------------
8718 revision 1.26
8719 date: 1995/01/26 12:19:16;  author: rob;  state: Exp;
8720 Added externs of things needed for multiplayer.
8721 ----------------------------
8722 revision 1.25
8723 date: 1994/10/30 14:11:10;  author: mike;  state: Exp;
8724 rip out repair center stuff.
8725 ----------------------------
8726 revision 1.24
8727 date: 1994/10/03 23:36:36;  author: mike;  state: Exp;
8728 Add segnum and fuelcen_num (renaming dest_seg and *path) in matcen_info struct.
8729 ----------------------------
8730 revision 1.23
8731 date: 1994/09/30 00:37:44;  author: mike;  state: Exp;
8732 Change FuelCenter struct.
8733 ----------------------------
8734 revision 1.22
8735 date: 1994/09/27 15:42:49;  author: mike;  state: Exp;
8736 Kill some obsolete matcen constants, Prototype Special_names.
8737 ----------------------------
8738 revision 1.21
8739 date: 1994/09/27 00:04:30;  author: mike;  state: Exp;
8740 Moved FuelCenter struct here from fuelcen.c
8741 ----------------------------
8742 revision 1.20
8743 date: 1994/09/25 15:55:37;  author: mike;  state: Exp;
8744 Prototype function disable_matcens.
8745 ----------------------------
8746 revision 1.19
8747 date: 1994/09/24 17:41:34;  author: mike;  state: Exp;
8748 Prototype trigger_matcen.
8749 ----------------------------
8750 revision 1.18
8751 date: 1994/08/03 17:52:19;  author: matt;  state: Exp;
8752 Tidied up repair centers a bit
8753 ----------------------------
8754 revision 1.17
8755 date: 1994/08/02 12:16:01;  author: mike;  state: Exp;
8756 *** empty log message ***
8757 ----------------------------
8758 revision 1.16
8759 date: 1994/08/01 11:04:03;  author: yuan;  state: Exp;
8760 New materialization centers.
8761 ----------------------------
8762 revision 1.15
8763 date: 1994/07/21 19:02:15;  author: mike;  state: Exp;
8764 break repair centers.
8765 ----------------------------
8766 revision 1.14
8767 date: 1994/07/14 11:25:22;  author: john;  state: Exp;
8768 Made control centers destroy better; made automap use Tab key.
8769 ----------------------------
8770 revision 1.13
8771 date: 1994/07/13 10:45:33;  author: john;  state: Exp;
8772 Made control center object switch when dead.
8773 ----------------------------
8774 revision 1.12
8775 date: 1994/07/09 17:36:44;  author: mike;  state: Exp;
8776 Add extern for find_connected_repair_seg.
8777 ----------------------------
8778 revision 1.11
8779 date: 1994/06/15 19:00:32;  author: john;  state: Exp;
8780 Show timer in on top of 3d with mine destroyed...
8781 ----------------------------
8782 revision 1.10
8783 date: 1994/05/31 16:49:46;  author: john;  state: Exp;
8784 Begin to add robot materialization centers.
8785 ----------------------------
8786 revision 1.9
8787 date: 1994/05/30 20:22:03;  author: yuan;  state: Exp;
8788 New triggers.
8789 ----------------------------
8790 revision 1.8
8791 date: 1994/05/05 16:41:14;  author: matt;  state: Exp;
8792 Cleaned up repair center code, and moved some from object.c to fuelcen.c
8793 ----------------------------
8794 revision 1.7
8795 date: 1994/04/21 20:41:21;  author: yuan;  state: Exp;
8796 Added extern.
8797 ----------------------------
8798 revision 1.6
8799 date: 1994/04/21 20:28:32;  author: john;  state: Exp;
8800 Added flag for Yuan to tell when a fuel center is destroyed.
8801 ----------------------------
8802 revision 1.5
8803 date: 1994/04/14 17:00:59;  author: john;  state: Exp;
8804 Made repair cen's work properly; added reset_all_fuelcens.
8805 ----------------------------
8806 revision 1.4
8807 date: 1994/04/12 20:28:04;  author: john;  state: Exp;
8808 Added control center.
8809 ----------------------------
8810 revision 1.3
8811 date: 1994/04/08 15:37:10;  author: john;  state: Exp;
8812 Added repair centers.
8813 ----------------------------
8814 revision 1.2
8815 date: 1994/04/06 19:10:38;  author: john;  state: Exp;
8816 NEw version.
8817 ----------------------------
8818 revision 1.1
8819 date: 1994/04/06 12:39:02;  author: john;  state: Exp;
8820 Initial revision
8821 =============================================================================
8822 RCS file: /Smoke/miner/source/main/fvi.c,v
8823 Working file: main/fvi.c
8824 head: 1.7
8825 description: New home for find_vector_intersection()
8826 ----------------------------
8827 revision 1.7
8828 date: 1995/10/21 23:52:18;  author: allender;  state: Exp;
8829 #ifdef'ed out stack debug stuff
8830 ----------------------------
8831 revision 1.6
8832 date: 1995/10/10 12:07:42;  author: allender;  state: Exp;
8833 add forgotten ;
8834 ----------------------------
8835 revision 1.5
8836 date: 1995/10/10 11:47:27;  author: allender;  state: Exp;
8837 put in stack space check
8838 ----------------------------
8839 revision 1.4
8840 date: 1995/08/23 21:34:08;  author: allender;  state: Exp;
8841 fix mcc compiler warning
8842 ----------------------------
8843 revision 1.3
8844 date: 1995/08/14 14:35:18;  author: allender;  state: Exp;
8845 changed transparency to 0
8846 ----------------------------
8847 revision 1.2
8848 date: 1995/07/05 16:50:51;  author: allender;  state: Exp;
8849 transparency/kitchen change
8850 ----------------------------
8851 revision 1.1
8852 date: 1995/05/16 15:24:59;  author: allender;  state: Exp;
8853 Initial revision
8854 ----------------------------
8855 revision 2.3
8856 date: 1995/03/24 14:49:04;  author: john;  state: Exp;
8857 Added cheat for player to go thru walls.
8858 ----------------------------
8859 revision 2.2
8860 date: 1995/03/21 17:58:32;  author: john;  state: Exp;
8861 Fixed bug with normals..
8862 ----------------------------
8863 revision 2.1
8864 date: 1995/03/20 18:15:37;  author: john;  state: Exp;
8865 Added code to not store the normals in the segment structure.
8866 ----------------------------
8867 revision 2.0
8868 date: 1995/02/27 11:27:41;  author: john;  state: Exp;
8869 New version 2.0, which has no anonymous unions, builds with
8870 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
8871 ----------------------------
8872 revision 1.49
8873 date: 1995/02/22 14:45:47;  author: allender;  state: Exp;
8874 remove anonymous unions from object structure
8875 ----------------------------
8876 revision 1.48
8877 date: 1995/02/22 13:24:50;  author: john;  state: Exp;
8878 Removed the vecmat anonymous unions.
8879 ----------------------------
8880 revision 1.47
8881 date: 1995/02/07 16:17:26;  author: matt;  state: Exp;
8882 Disabled all robot-robot collisions except those involving two green
8883 guys.  Used to do collisions if either robot was green guy.
8884 ----------------------------
8885 revision 1.46
8886 date: 1995/02/02 14:07:53;  author: matt;  state: Exp;
8887 Fixed confusion about which segment you are touching when you're 
8888 touching a wall.  This manifested itself in spurious lava burns.
8889 ----------------------------
8890 revision 1.45
8891 date: 1995/02/02 13:45:53;  author: matt;  state: Exp;
8892 Made a bunch of lint-inspired changes
8893 ----------------------------
8894 revision 1.44
8895 date: 1995/01/24 12:10:17;  author: matt;  state: Exp;
8896 Fudged collisions for player/player, and player weapon/other player in
8897 coop games.
8898 ----------------------------
8899 revision 1.43
8900 date: 1995/01/14 19:16:45;  author: john;  state: Exp;
8901 First version of new bitmap paging code.
8902 ----------------------------
8903 revision 1.42
8904 date: 1994/12/15 12:22:40;  author: matt;  state: Exp;
8905 Small change which may or may not help
8906 ----------------------------
8907 revision 1.41
8908 date: 1994/12/14 11:45:51;  author: matt;  state: Exp;
8909 Fixed (hopefully) little bug with invalid segnum
8910 ----------------------------
8911 revision 1.40
8912 date: 1994/12/13 17:12:01;  author: matt;  state: Exp;
8913 Increased edge tolerance a bunch more
8914 ----------------------------
8915 revision 1.39
8916 date: 1994/12/13 14:37:59;  author: matt;  state: Exp;
8917 Fixed another stupid little bug
8918 ----------------------------
8919 revision 1.38
8920 date: 1994/12/13 13:25:44;  author: matt;  state: Exp;
8921 Increased tolerance massively to avoid catching on corners
8922 ----------------------------
8923 revision 1.37
8924 date: 1994/12/13 12:02:20;  author: matt;  state: Exp;
8925 Fixed small bug
8926 ----------------------------
8927 revision 1.36
8928 date: 1994/12/13 11:17:35;  author: matt;  state: Exp;
8929 Lots of changes to hopefully fix objects leaving the mine.  Note that
8930 this code should be considered somewhat experimental - one problem I
8931 know about is that you can get stuck on edges more easily than before.
8932 There may be other problems I don't know about yet.
8933 ----------------------------
8934 revision 1.35
8935 date: 1994/12/12 01:20:57;  author: matt;  state: Exp;
8936 Added hack in object-object collisions that treats claw guys as
8937 if they have 3/4 of their actual radius.
8938 ----------------------------
8939 revision 1.34
8940 date: 1994/12/04 22:48:39;  author: matt;  state: Exp;
8941 Physics & FVI now only build seglist for player objects, and they 
8942 responsilby deal with buffer full conditions
8943 ----------------------------
8944 revision 1.33
8945 date: 1994/12/04 22:07:05;  author: matt;  state: Exp;
8946 Added better handing of buffer full condition
8947 ----------------------------
8948 revision 1.32
8949 date: 1994/12/01 21:06:33;  author: matt;  state: Exp;
8950 Several important changes:
8951  (1) Checking against triangulated sides has been standardized a bit
8952  (2) Code has been added to de-triangulate some sides
8953  (3) BIG ONE: the tolerance for checking a point against a plane has
8954      been drastically relaxed
8955 ----------------------------
8956 revision 1.31
8957 date: 1994/11/27 23:15:03;  author: matt;  state: Exp;
8958 Made changes for new mprintf calling convention
8959 ----------------------------
8960 revision 1.30
8961 date: 1994/11/19 15:20:30;  author: mike;  state: Exp;
8962 rip out unused code and data
8963 ----------------------------
8964 revision 1.29
8965 date: 1994/11/16 12:18:17;  author: mike;  state: Exp;
8966 hack for green_guy:green_guy collision detection.
8967 ----------------------------
8968 revision 1.28
8969 date: 1994/11/10 13:08:54;  author: matt;  state: Exp;
8970 Added support for new run-length-encoded bitmaps
8971 ----------------------------
8972 revision 1.27
8973 date: 1994/10/31 12:27:51;  author: matt;  state: Exp;
8974 Added new function object_intersects_wall()
8975 ----------------------------
8976 revision 1.26
8977 date: 1994/10/20 13:59:27;  author: matt;  state: Exp;
8978 Added assert
8979 ----------------------------
8980 revision 1.25
8981 date: 1994/10/09 23:51:09;  author: matt;  state: Exp;
8982 Made find_hitpoint_uv() work with triangulated sides
8983 ----------------------------
8984 revision 1.24
8985 date: 1994/09/25 00:39:29;  author: matt;  state: Exp;
8986 Took out mprintf's
8987 ----------------------------
8988 revision 1.23
8989 date: 1994/09/25 00:37:53;  author: matt;  state: Exp;
8990 Made the 'find the point in the bitmap where something hit' system
8991 publicly accessible.
8992 ----------------------------
8993 revision 1.22
8994 date: 1994/09/21 16:58:22;  author: matt;  state: Exp;
8995 Fixed bug in trans wall check that was checking against verically 
8996 flipped bitmap (i.e., the y coord was negative when checking).
8997 ----------------------------
8998 revision 1.21
8999 date: 1994/09/02 11:31:40;  author: matt;  state: Exp;
9000 Fixed object/object collisions, so you can't fly through robots anymore.
9001 Cleaned up object damage system.
9002 ----------------------------
9003 revision 1.20
9004 date: 1994/08/26 09:42:03;  author: matt;  state: Exp;
9005 Increased the size of a buffer
9006 ----------------------------
9007 revision 1.19
9008 date: 1994/08/11 18:57:53;  author: mike;  state: Exp;
9009 Convert shorts to ints for optimization.
9010 ----------------------------
9011 revision 1.18
9012 date: 1994/08/08 21:38:24;  author: matt;  state: Exp;
9013 Put in small optimization
9014 ----------------------------
9015 revision 1.17
9016 date: 1994/08/08 12:21:52;  author: yuan;  state: Exp;
9017 Fixed assert
9018 ----------------------------
9019 revision 1.16
9020 date: 1994/08/08 11:47:04;  author: matt;  state: Exp;
9021 Cleaned up fvi and physics a little
9022 ----------------------------
9023 revision 1.15
9024 date: 1994/08/04 00:21:04;  author: matt;  state: Exp;
9025 Cleaned up fvi & physics error handling; put in code to make sure objects
9026 are in correct segment; simplified segment finding for objects and points
9027 ----------------------------
9028 revision 1.14
9029 date: 1994/08/02 19:04:26;  author: matt;  state: Exp;
9030 Cleaned up vertex list functions
9031 ----------------------------
9032 revision 1.13
9033 date: 1994/08/02 09:56:28;  author: matt;  state: Exp;
9034 Put in check for bad value find_plane_line_intersection()
9035 ----------------------------
9036 revision 1.12
9037 date: 1994/08/01 17:27:26;  author: matt;  state: Exp;
9038 Added support for triangulated walls in trans point check
9039 ----------------------------
9040 revision 1.11
9041 date: 1994/08/01 13:30:40;  author: matt;  state: Exp;
9042 Made fvi() check holes in transparent walls, and changed fvi() calling
9043 parms to take all input data in query structure.
9044 ----------------------------
9045 revision 1.10
9046 date: 1994/07/13 21:47:17;  author: matt;  state: Exp;
9047 FVI() and physics now keep lists of segments passed through which the
9048 trigger code uses.
9049 ----------------------------
9050 revision 1.9
9051 date: 1994/07/09 21:21:40;  author: matt;  state: Exp;
9052 Fixed, hopefull, bugs in sphere-to-vector intersection code
9053 ----------------------------
9054 revision 1.8
9055 date: 1994/07/08 14:26:42;  author: matt;  state: Exp;
9056 Non-needed powerups don't get picked up now; this required changing FVI to
9057 take a list of ingore objects rather than just one ignore object.
9058 ----------------------------
9059 revision 1.7
9060 date: 1994/07/06 20:02:37;  author: matt;  state: Exp;
9061 Made change to match gameseg that uses lowest point number as reference
9062 point when checking against a plane
9063 ----------------------------
9064 revision 1.6
9065 date: 1994/06/29 15:43:58;  author: matt;  state: Exp;
9066 When computing intersection of vector and sphere, use the radii of both
9067 objects.
9068 ----------------------------
9069 revision 1.5
9070 date: 1994/06/14 15:57:58;  author: matt;  state: Exp;
9071 Took out asserts, and added other hacks, pending real bug fixes
9072 ----------------------------
9073 revision 1.4
9074 date: 1994/06/13 23:10:08;  author: matt;  state: Exp;
9075 Fixed problems with triangulated sides
9076 ----------------------------
9077 revision 1.3
9078 date: 1994/06/09 12:11:14;  author: matt;  state: Exp;
9079 Fixed confusing use of two variables, hit_objnum & fvi_hit_object, to
9080 keep the same information in different ways.
9081 ----------------------------
9082 revision 1.2
9083 date: 1994/06/09 09:58:38;  author: matt;  state: Exp;
9084 Moved find_vector_intersection() from physics.c to new file fvi.c
9085 ----------------------------
9086 revision 1.1
9087 date: 1994/06/09 09:25:57;  author: matt;  state: Exp;
9088 Initial revision
9089 =============================================================================
9090 RCS file: /Smoke/miner/source/main/fvi.h,v
9091 Working file: main/fvi.h
9092 head: 1.2
9093 description: Header for fvi.c
9094 ----------------------------
9095 revision 1.2
9096 date: 1995/08/23 21:34:29;  author: allender;  state: Exp;
9097 fix mcc compiler warning
9098 ----------------------------
9099 revision 1.1
9100 date: 1995/05/16 15:56:38;  author: allender;  state: Exp;
9101 Initial revision
9102 ----------------------------
9103 revision 2.1
9104 date: 1995/03/20 12:15:58;  author: john;  state: Exp;
9105 Added code to not store the normals in the segment structure.
9106 ----------------------------
9107 revision 2.0
9108 date: 1995/02/27 11:32:02;  author: john;  state: Exp;
9109 New version 2.0, which has no anonymous unions, builds with
9110 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
9111 ----------------------------
9112 revision 1.10
9113 date: 1995/02/02 14:07:58;  author: matt;  state: Exp;
9114 Fixed confusion about which segment you are touching when you're 
9115 touching a wall.  This manifested itself in spurious lava burns.
9116 ----------------------------
9117 revision 1.9
9118 date: 1994/12/04 22:48:04;  author: matt;  state: Exp;
9119 Physics & FVI now only build seglist for player objects, and they 
9120 responsilby deal with buffer full conditions
9121 ----------------------------
9122 revision 1.8
9123 date: 1994/10/31 12:28:01;  author: matt;  state: Exp;
9124 Added new function object_intersects_wall()
9125 ----------------------------
9126 revision 1.7
9127 date: 1994/10/10 13:10:00;  author: matt;  state: Exp;
9128 Increased max_fvi_segs
9129 ----------------------------
9130 revision 1.6
9131 date: 1994/09/25 00:38:29;  author: matt;  state: Exp;
9132 Made the 'find the point in the bitmap where something hit' system
9133 publicly accessible.
9134 ----------------------------
9135 revision 1.5
9136 date: 1994/08/01 13:30:35;  author: matt;  state: Exp;
9137 Made fvi() check holes in transparent walls, and changed fvi() calling
9138 parms to take all input data in query structure.
9139 ----------------------------
9140 revision 1.4
9141 date: 1994/07/13 21:47:59;  author: matt;  state: Exp;
9142 FVI() and physics now keep lists of segments passed through which the
9143 trigger code uses.
9144 ----------------------------
9145 revision 1.3
9146 date: 1994/07/08 14:27:26;  author: matt;  state: Exp;
9147 Non-needed powerups don't get picked up now; this required changing FVI to
9148 take a list of ingore objects rather than just one ignore object.
9149 ----------------------------
9150 revision 1.2
9151 date: 1994/06/09 09:58:39;  author: matt;  state: Exp;
9152 Moved find_vector_intersection() from physics.c to new file fvi.c
9153 ----------------------------
9154 revision 1.1
9155 date: 1994/06/09 09:26:14;  author: matt;  state: Exp;
9156 Initial revision
9157 =============================================================================
9158 RCS file: /BigRed/miner/source/main/game.c,v
9159 Working file: main/game.c
9160 head: 1.1
9161 description: Game loop for Inferno
9162 ----------------------------
9163 revision 1.1
9164 date: 1995/12/05 16:01:09;  author: allender;  state: Exp;
9165 Initial revision
9166 ----------------------------
9167 revision 1.38
9168 date: 1995/11/13 13:02:35;  author: allender;  state: Exp;
9169 put up HUD message when player starts tournament
9170 ----------------------------
9171 revision 1.37
9172 date: 1995/11/13 09:21:05;  author: allender;  state: Exp;
9173 ved and shorted tournament mode messages
9174 ----------------------------
9175 revision 1.36
9176 date: 1995/11/09 17:27:00;  author: allender;  state: Exp;
9177 took out cheats during demo playback
9178 ----------------------------
9179 revision 1.35
9180 date: 1995/11/07 17:05:41;  author: allender;  state: Exp;
9181 move registered cheats
9182 ----------------------------
9183 revision 1.34
9184 date: 1995/11/03 12:55:45;  author: allender;  state: Exp;
9185 shareware changes
9186 ----------------------------
9187 revision 1.33
9188 date: 1995/10/29 20:15:00;  author: allender;  state: Exp;
9189 took out frame rate cheat.  Pause for at least a second because
9190 of cmd-P problem
9191 ----------------------------
9192 revision 1.32
9193 date: 1995/10/26 14:11:26;  author: allender;  state: Exp;
9194 fix up message box stuff to align correctly
9195 ----------------------------
9196 revision 1.31
9197 date: 1995/10/24 18:09:41;  author: allender;  state: Exp;
9198 ixed cockpit weirdness -- don't update cockpit when do_appl_quit
9199 is called -- screen saved in mevent.c
9200 ----------------------------
9201 revision 1.30
9202 date: 1995/10/21 23:39:10;  author: allender;  state: Exp;
9203 ruise marking indicator
9204 ----------------------------
9205 revision 1.29
9206 date: 1995/10/21 22:52:27;  author: allender;  state: Exp;
9207 bald guy cheat -- print screen stuff
9208 ----------------------------
9209 revision 1.28
9210 date: 1995/10/20 00:54:28;  author: allender;  state: Exp;
9211 new help menus and redbook checking in outer game loop
9212 ----------------------------
9213 revision 1.27
9214 date: 1995/10/17 15:34:19;  author: allender;  state: Exp;
9215 pixel double is now default mode
9216 ----------------------------
9217 revision 1.26
9218 date: 1995/10/12 17:34:44;  author: allender;  state: Exp;
9219 bigger message box -- command key equivs for function keys
9220 ----------------------------
9221 revision 1.25
9222 date: 1995/10/11 12:17:14;  author: allender;  state: Exp;
9223 removed event loop processing
9224 ----------------------------
9225 revision 1.24
9226 date: 1995/10/11 00:58:47;  author: allender;  state: Exp;
9227 removed debugging code
9228 ----------------------------
9229 revision 1.23
9230 date: 1995/10/10 11:50:32;  author: allender;  state: Exp;
9231 fixed boxed message to align on 8 byte boundry,
9232 and some debug code
9233 ----------------------------
9234 revision 1.22
9235 date: 1995/09/24 10:51:26;  author: allender;  state: Exp;
9236 cannot go to finder in network..added cmd-q for quit
9237 ----------------------------
9238 revision 1.21
9239 date: 1995/09/22 15:05:18;  author: allender;  state: Exp;
9240 *more* hud and font type stuff (messages)
9241 ----------------------------
9242 revision 1.20
9243 date: 1995/09/22 14:39:57;  author: allender;  state: Exp;
9244 ved framerate counter up
9245 ----------------------------
9246 revision 1.19
9247 date: 1995/09/18 17:01:28;  author: allender;  state: Exp;
9248 start of compatibility stuff
9249 ----------------------------
9250 revision 1.18
9251 date: 1995/09/15 15:53:13;  author: allender;  state: Exp;
9252 better handling of PICT screen shots
9253 ----------------------------
9254 revision 1.17
9255 date: 1995/09/14 15:27:41;  author: allender;  state: Exp;
9256 fixed function type on message_box routiens
9257 ----------------------------
9258 revision 1.16
9259 date: 1995/09/13 11:37:47;  author: allender;  state: Exp;
9260 put in call to dump PICT file instead of PCX
9261 ----------------------------
9262 revision 1.15
9263 date: 1995/09/08 17:13:28;  author: allender;  state: Exp;
9264 put back in ibitblt.h and start of PICT picture dump
9265 ----------------------------
9266 revision 1.14
9267 date: 1995/09/07 10:20:58;  author: allender;  state: Exp;
9268 make cockpit mode default
9269 ----------------------------
9270 revision 1.13
9271 date: 1995/09/07 10:17:34;  author: allender;  state: Exp;
9272 added command key equivalents for function keys
9273 ----------------------------
9274 revision 1.12
9275 date: 1995/09/04 11:36:47;  author: allender;  state: Exp;
9276 fixed pixel double mode to have correct number of rendered
9277 lines
9278 ----------------------------
9279 revision 1.11
9280 date: 1995/09/01 15:47:07;  author: allender;  state: Exp;
9281 cap frame rate at 60 fps
9282 ----------------------------
9283 revision 1.10
9284 date: 1995/08/26 16:25:59;  author: allender;  state: Exp;
9285 whole buncha' stuff!!!!
9286 ----------------------------
9287 revision 1.9
9288 date: 1995/08/01 16:04:47;  author: allender;  state: Exp;
9289 put in ctrl_esc sequence to go to menubar
9290 ----------------------------
9291 revision 1.8
9292 date: 1995/07/28 14:15:11;  author: allender;  state: Exp;
9293 added FRAME cheat to display frame rate
9294 ----------------------------
9295 revision 1.7
9296 date: 1995/07/17 08:54:19;  author: allender;  state: Exp;
9297 *** empty log message ***
9298 ----------------------------
9299 revision 1.6
9300 date: 1995/07/12 12:54:06;  author: allender;  state: Exp;
9301 removed some debug keys
9302 ----------------------------
9303 revision 1.5
9304 date: 1995/07/05 16:44:35;  author: allender;  state: Exp;
9305 changed some debug keys
9306 ----------------------------
9307 revision 1.4
9308 date: 1995/06/23 10:24:57;  author: allender;  state: Exp;
9309 added scanline doubling routine
9310 ----------------------------
9311 revision 1.3
9312 date: 1995/06/13 13:08:26;  author: allender;  state: Exp;
9313 added special debug key to move window into upper left corner.
9314 also added debug key to put game in 640x480 mode
9315 ----------------------------
9316 revision 1.2
9317 date: 1995/06/12 11:10:31;  author: allender;  state: Exp;
9318 added DEL_SHIFT_M to move window to corner of screen
9319 ----------------------------
9320 revision 1.1
9321 date: 1995/05/16 15:25:08;  author: allender;  state: Exp;
9322 Initial revision
9323 ----------------------------
9324 revision 2.29
9325 date: 1995/04/06 13:47:39;  author: yuan;  state: Exp;
9326 Restored rear view to original.
9327 ----------------------------
9328 revision 2.28
9329 date: 1995/04/06 12:13:07;  author: john;  state: Exp;
9330 Fixed some bugs with 3dmax.
9331 ----------------------------
9332 revision 2.27
9333 date: 1995/04/05 13:18:18;  author: mike;  state: Exp;
9334 decrease energy usage on fusion cannon
9335 ----------------------------
9336 revision 2.26
9337 date: 1995/03/30 16:36:32;  author: mike;  state: Exp;
9338 text localization.
9339 ----------------------------
9340 revision 2.25
9341 date: 1995/03/27 16:45:26;  author: john;  state: Exp;
9342 Fixed some cheat bugs.  Added astral cheat.
9343 ----------------------------
9344 revision 2.24
9345 date: 1995/03/27 15:37:11;  author: mike;  state: Exp;
9346 boost fusion cannon for non-multiplayer modes.
9347 ----------------------------
9348 revision 2.23
9349 date: 1995/03/24 17:48:04;  author: john;  state: Exp;
9350 Fixed bug with menus and 320x100.
9351 ----------------------------
9352 revision 2.22
9353 date: 1995/03/24 15:34:02;  author: mike;  state: Exp;
9354 cheats.
9355 ----------------------------
9356 revision 2.21
9357 date: 1995/03/24 13:11:39;  author: john;  state: Exp;
9358 Added save game during briefing screens.
9359 ----------------------------
9360 revision 2.20
9361 date: 1995/03/21 14:40:50;  author: john;  state: Exp;
9362 Ifdef'd out the NETWORK code.
9363 ----------------------------
9364 revision 2.19
9365 date: 1995/03/16 22:07:16;  author: john;  state: Exp;
9366 Made so only for screen can be used for anything other
9367 than mode 13.
9368 ----------------------------
9369 revision 2.18
9370 date: 1995/03/16 21:45:35;  author: john;  state: Exp;
9371 Made all paged modes have incompatible menus!
9372 ----------------------------
9373 revision 2.17
9374 date: 1995/03/16 18:30:35;  author: john;  state: Exp;
9375 Made wider than 320 screens not have
9376 a status bar mode.
9377 ----------------------------
9378 revision 2.16
9379 date: 1995/03/16 10:53:34;  author: john;  state: Exp;
9380 Move VFX center to Shift+Z instead of Enter because
9381 it conflicted with toggling HUD on/off.
9382 ----------------------------
9383 revision 2.15
9384 date: 1995/03/16 10:18:33;  author: john;  state: Exp;
9385 Fixed bug with VFX mode not working. also made warning
9386 when it can't set VESA mode.
9387 ----------------------------
9388 revision 2.14
9389 date: 1995/03/14 16:22:39;  author: john;  state: Exp;
9390 Added cdrom alternate directory stuff.
9391 ----------------------------
9392 revision 2.13
9393 date: 1995/03/14 12:14:17;  author: john;  state: Exp;
9394 Made VR helmets have 4 resolutions to choose from.
9395 ----------------------------
9396 revision 2.12
9397 date: 1995/03/10 13:47:33;  author: john;  state: Exp;
9398 Added head tracking sensitivity.
9399 ----------------------------
9400 revision 2.11
9401 date: 1995/03/10 13:13:47;  author: john;  state: Exp;
9402 Added code to show T-xx on iglasses.
9403 ----------------------------
9404 revision 2.10
9405 date: 1995/03/09 18:07:29;  author: john;  state: Exp;
9406 Fixed bug with iglasses tracking not "centering" right.
9407 Made VFX have bright headlight lighting.
9408 ----------------------------
9409 revision 2.9
9410 date: 1995/03/09 11:48:02;  author: john;  state: Exp;
9411 Added HUD for VR helmets.
9412 ----------------------------
9413 revision 2.8
9414 date: 1995/03/07 15:12:53;  author: john;  state: Exp;
9415 Fixed VFX,3dmax support.
9416 ----------------------------
9417 revision 2.7
9418 date: 1995/03/07 11:35:03;  author: john;  state: Exp;
9419 Fixed bug with cockpit in rear view.
9420 ----------------------------
9421 revision 2.6
9422 date: 1995/03/06 18:40:17;  author: john;  state: Exp;
9423 Added some ifdef EDITOR stuff.
9424 ----------------------------
9425 revision 2.5
9426 date: 1995/03/06 18:31:21;  author: john;  state: Exp;
9427 Fixed bug with nmenu popping up on editor screen.
9428 ----------------------------
9429 revision 2.4
9430 date: 1995/03/06 17:28:33;  author: john;  state: Exp;
9431 Fixed but with cockpit toggling wrong.
9432 ----------------------------
9433 revision 2.3
9434 date: 1995/03/06 16:08:10;  author: mike;  state: Exp;
9435 Fix compile errors if building without editor.
9436 ----------------------------
9437 revision 2.2
9438 date: 1995/03/06 15:24:10;  author: john;  state: Exp;
9439 New screen techniques.
9440 ----------------------------
9441 revision 2.1
9442 date: 1995/02/27 13:41:03;  author: john;  state: Exp;
9443 Removed floating point from frame rate calculations.
9444 ----------------------------
9445 revision 2.0
9446 date: 1995/02/27 11:31:54;  author: john;  state: Exp;
9447 New version 2.0, which has no anonymous unions, builds with
9448 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
9449 ----------------------------
9450 revision 1.770
9451 date: 1995/02/22 12:45:15;  author: allender;  state: Exp;
9452 remove anonymous unions from object structure
9453 ----------------------------
9454 revision 1.769
9455 date: 1995/02/15 10:06:25;  author: allender;  state: Exp;
9456 make pause pause game during demo playback
9457 ----------------------------
9458 revision 1.768
9459 date: 1995/02/13 20:35:11;  author: john;  state: Exp;
9460 Lintized
9461 ----------------------------
9462 revision 1.767
9463 date: 1995/02/13 19:40:29;  author: allender;  state: Exp;
9464 added place to demo record restoration from rear view in place that
9465 I forgot before
9466 ----------------------------
9467 revision 1.766
9468 date: 1995/02/13 10:29:27;  author: john;  state: Exp;
9469 Fixed bug with cheats not restoreing across save games.
9470 ----------------------------
9471 revision 1.765
9472 date: 1995/02/11 22:54:33;  author: john;  state: Exp;
9473 Made loading for pig not show up for demos.
9474 ----------------------------
9475 revision 1.764
9476 date: 1995/02/11 17:30:08;  author: allender;  state: Exp;
9477 ifndef NDEBUG around strip frame stuff
9478 ----------------------------
9479 revision 1.763
9480 date: 1995/02/11 17:13:01;  author: rob;  state: Exp;
9481 Took out modem.c code fille stuff.
9482 ----------------------------
9483 revision 1.762
9484 date: 1995/02/11 16:36:47;  author: allender;  state: Exp;
9485 debug key to strip frames from end of demo
9486 ----------------------------
9487 revision 1.761
9488 date: 1995/02/11 14:29:16;  author: john;  state: Exp;
9489 Turned off cheats when going into game.
9490 ----------------------------
9491 revision 1.760
9492 date: 1995/02/11 13:46:54;  author: mike;  state: Exp;
9493 fix cheats.
9494 ----------------------------
9495 revision 1.759
9496 date: 1995/02/11 12:36:09;  author: matt;  state: Exp;
9497 Cleaned up cheats
9498 ----------------------------
9499 revision 1.758
9500 date: 1995/02/11 12:27:04;  author: mike;  state: Exp;
9501 fix path-to-exit cheat.
9502 ----------------------------
9503 revision 1.757
9504 date: 1995/02/11 01:56:24;  author: mike;  state: Exp;
9505 robots don't fire cheat.
9506 ----------------------------
9507 revision 1.756
9508 date: 1995/02/10 16:38:40;  author: mike;  state: Exp;
9509 illuminate path to exit cheat.
9510 ----------------------------
9511 revision 1.755
9512 date: 1995/02/10 16:19:40;  author: mike;  state: Exp;
9513 new show-path-to-exit system, still buggy, compiled out.
9514 ----------------------------
9515 revision 1.754
9516 date: 1995/02/10 15:54:46;  author: matt;  state: Exp;
9517 Added new cheats
9518 ----------------------------
9519 revision 1.753
9520 date: 1995/02/09 12:25:42;  author: matt;  state: Exp;
9521 Made mem_fill() test routines not be called if RELEASE
9522 ----------------------------
9523 revision 1.752
9524 date: 1995/02/09 08:49:32;  author: mike;  state: Exp;
9525 change fill opcode value to 0xcc, int 3 value.
9526 ----------------------------
9527 revision 1.751
9528 date: 1995/02/09 02:59:26;  author: mike;  state: Exp;
9529 check code for 00066xxx bugs.
9530 ----------------------------
9531 revision 1.750
9532 date: 1995/02/08 17:10:02;  author: mike;  state: Exp;
9533 add, but don't call, debug code.
9534 ----------------------------
9535 revision 1.749
9536 date: 1995/02/07 11:07:27;  author: john;  state: Exp;
9537 Added hooks for confirm on game state restore.
9538 ----------------------------
9539 revision 1.748
9540 date: 1995/02/06 15:52:45;  author: mike;  state: Exp;
9541 add mini megawow powerup for giving reasonable weapons.
9542 ----------------------------
9543 revision 1.747
9544 date: 1995/02/06 12:53:35;  author: allender;  state: Exp;
9545 force endlevel_sequence to 0 to fix weird bug
9546 ----------------------------
9547 revision 1.746
9548 date: 1995/02/04 10:03:30;  author: mike;  state: Exp;
9549 Fly to exit cheat.
9550 ----------------------------
9551 revision 1.745
9552 date: 1995/02/02 15:57:52;  author: john;  state: Exp;
9553 Added turbo mode cheat.
9554 ----------------------------
9555 revision 1.744
9556 date: 1995/02/02 14:43:39;  author: john;  state: Exp;
9557 Uppped frametime limit to 150 Hz.
9558 ----------------------------
9559 revision 1.743
9560 date: 1995/02/02 13:37:16;  author: mike;  state: Exp;
9561 move T-?? message down in certain modes.
9562 ----------------------------
9563 revision 1.742
9564 date: 1995/02/02 01:26:59;  author: john;  state: Exp;
9565 Took out no key repeating.
9566 ----------------------------
9567 revision 1.741
9568 date: 1995/01/29 21:36:44;  author: mike;  state: Exp;
9569 make fusion cannon not make pitching slow.
9570 ----------------------------
9571 revision 1.740
9572 date: 1995/01/28 15:57:57;  author: john;  state: Exp;
9573 Made joystick calibration be only when wrong detected in
9574 menu or joystick axis changed.
9575 ----------------------------
9576 revision 1.739
9577 date: 1995/01/28 15:21:03;  author: yuan;  state: Exp;
9578 Added X-tra life cheat.
9579 ----------------------------
9580 revision 1.738
9581 date: 1995/01/27 14:08:31;  author: rob;  state: Exp;
9582 Fixed a bug.
9583 ----------------------------
9584 revision 1.737
9585 date: 1995/01/27 14:04:59;  author: rob;  state: Exp;
9586 Its not my fault, Mark told me to do it!
9587 ----------------------------
9588 revision 1.736
9589 date: 1995/01/27 13:12:18;  author: rob;  state: Exp;
9590 Added charging noises to play across net.
9591 ----------------------------
9592 revision 1.735
9593 date: 1995/01/27 11:48:28;  author: allender;  state: Exp;
9594 check for newdemo_state to be paused and stop recording.  We might be
9595 in between levels
9596 ----------------------------
9597 revision 1.734
9598 date: 1995/01/26 22:11:41;  author: mike;  state: Exp;
9599 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
9600 ----------------------------
9601 revision 1.733
9602 date: 1995/01/26 17:03:04;  author: mike;  state: Exp;
9603 make fusion cannon have more chrome, make fusion, mega rock you!
9604 ----------------------------
9605 revision 1.732
9606 date: 1995/01/25 14:37:25;  author: john;  state: Exp;
9607 Made joystick only prompt for calibration once...
9608 ----------------------------
9609 revision 1.731
9610 date: 1995/01/24 15:49:14;  author: john;  state: Exp;
9611 Made typeing in long net messages wrap on 
9612 small screen sizes.
9613 ----------------------------
9614 revision 1.730
9615 date: 1995/01/24 15:23:42;  author: mike;  state: Exp;
9616 network message tweaking.
9617 ----------------------------
9618 revision 1.729
9619 date: 1995/01/24 12:00:47;  author: john;  state: Exp;
9620 Fixed bug with defing macro passing keys to controls.
9621 ----------------------------
9622 revision 1.728
9623 date: 1995/01/24 11:53:35;  author: john;  state: Exp;
9624 Added better macro defining code.
9625 ----------------------------
9626 revision 1.727
9627 date: 1995/01/23 22:17:15;  author: john;  state: Exp;
9628 Fixed bug with not clearing key buffer when leaving f8.
9629 ----------------------------
9630 revision 1.726
9631 date: 1995/01/23 22:07:09;  author: john;  state: Exp;
9632 Added flush to game inputs during F8.
9633 =============================================================================
9634 RCS file: /Smoke/miner/source/main/game.h,v
9635 Working file: main/game.h
9636 head: 1.3
9637 description: Constants & prototypes which pertain to the game only
9638 ----------------------------
9639 revision 1.3
9640 date: 1995/09/14 13:44:34;  author: allender;  state: Exp;
9641 fixed function prototypes to have void return value to satify
9642 moto compiler
9643 ----------------------------
9644 revision 1.2
9645 date: 1995/08/17 09:25:05;  author: allender;  state: Exp;
9646 externed Scanline_double variable
9647 ----------------------------
9648 revision 1.1
9649 date: 1995/05/16 15:56:46;  author: allender;  state: Exp;
9650 Initial revision
9651 ----------------------------
9652 revision 2.1
9653 date: 1995/03/06 15:23:22;  author: john;  state: Exp;
9654 New screen techniques.
9655 ----------------------------
9656 revision 2.0
9657 date: 1995/02/27 11:28:21;  author: john;  state: Exp;
9658 New version 2.0, which has no anonymous unions, builds with
9659 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
9660 ----------------------------
9661 revision 1.79
9662 date: 1995/02/13 10:37:17;  author: john;  state: Exp;
9663 Saved Buggin' cheat mode to save file.
9664 ----------------------------
9665 revision 1.78
9666 date: 1995/02/01 16:34:12;  author: john;  state: Exp;
9667 Linted.
9668 ----------------------------
9669 revision 1.77
9670 date: 1995/01/29 21:37:14;  author: mike;  state: Exp;
9671 initialize variables on game load so you don't drain your energy when you fire.
9672 ----------------------------
9673 revision 1.76
9674 date: 1995/01/26 22:11:36;  author: mike;  state: Exp;
9675 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
9676 ----------------------------
9677 revision 1.75
9678 date: 1995/01/26 16:45:31;  author: mike;  state: Exp;
9679 Add autofire fusion cannon stuff.
9680 ----------------------------
9681 revision 1.74
9682 date: 1994/12/11 23:18:06;  author: john;  state: Exp;
9683 Added -nomusic.
9684 Added RealFrameTime.
9685 Put in a pause when sound initialization error.
9686 Made controlcen countdown and framerate use RealFrameTime.
9687 ----------------------------
9688 revision 1.73
9689 date: 1994/12/09 00:41:24;  author: mike;  state: Exp;
9690 fix hang in automap print screen
9691 ----------------------------
9692 revision 1.72
9693 date: 1994/12/04 13:47:00;  author: mike;  state: Exp;
9694 enhance custom detail level support.
9695 ----------------------------
9696 revision 1.71
9697 date: 1994/12/02 15:05:44;  author: matt;  state: Exp;
9698 Added new "official" cheats
9699 ----------------------------
9700 revision 1.70
9701 date: 1994/11/28 18:14:09;  author: rob;  state: Exp;
9702 Added game_mode flag for team games.
9703 ----------------------------
9704 revision 1.69
9705 date: 1994/11/15 16:51:13;  author: matt;  state: Exp;
9706 Made rear view only switch to rear cockpit if cockpit on in front view
9707 ----------------------------
9708 revision 1.68
9709 date: 1994/11/04 16:26:10;  author: john;  state: Exp;
9710 Fixed bug with letterbox mode game after you finish a game.
9711 ----------------------------
9712 revision 1.67
9713 date: 1994/11/02 11:59:48;  author: john;  state: Exp;
9714 Moved menu out of game into inferno main loop.
9715 ----------------------------
9716 revision 1.66
9717 date: 1994/10/26 23:02:19;  author: matt;  state: Exp;
9718 Made palette flash saturate negative values
9719 ----------------------------
9720 revision 1.65
9721 date: 1994/10/26 15:21:05;  author: mike;  state: Exp;
9722 Detail level stuff.  Make Render_depth public.
9723 ----------------------------
9724 revision 1.64
9725 date: 1994/10/19 00:13:01;  author: matt;  state: Exp;
9726 Added prototypes
9727 ----------------------------
9728 revision 1.63
9729 date: 1994/10/09 14:54:39;  author: matt;  state: Exp;
9730 Made player cockpit state & window size save/restore with saved games & automap
9731 ----------------------------
9732 revision 1.62
9733 date: 1994/10/08 19:56:32;  author: matt;  state: Exp;
9734 Added prototype
9735 ----------------------------
9736 revision 1.61
9737 date: 1994/10/07 22:19:32;  author: mike;  state: Exp;
9738 Increase number of difficulty levels from 4 to 5.
9739 ----------------------------
9740 revision 1.60
9741 date: 1994/10/06 14:14:11;  author: matt;  state: Exp;
9742 Added new function to reset time (to prevent big FrameTime) at start of level
9743 ----------------------------
9744 revision 1.59
9745 date: 1994/10/05 17:08:43;  author: matt;  state: Exp;
9746 Changed order of cockpit bitmaps, since there's no longer a full-screen cockpit
9747 ----------------------------
9748 revision 1.58
9749 date: 1994/10/03 23:44:13;  author: matt;  state: Exp;
9750 Save & restore palette effect around menus & pause message
9751 ----------------------------
9752 revision 1.57
9753 date: 1994/09/29 17:42:12;  author: matt;  state: Exp;
9754 Cleaned up game_mode a little
9755 ----------------------------
9756 revision 1.56
9757 date: 1994/09/28 23:12:01;  author: matt;  state: Exp;
9758 Macroized palette flash system
9759 ----------------------------
9760 revision 1.55
9761 date: 1994/09/24 16:56:13;  author: rob;  state: Exp;
9762 Added new fields for the Game_mode bitvector for modem play.
9763 ----------------------------
9764 revision 1.54
9765 date: 1994/09/24 14:16:20;  author: mike;  state: Exp;
9766 Added new game mode constants.
9767 ----------------------------
9768 revision 1.53
9769 date: 1994/09/22 19:00:57;  author: mike;  state: Exp;
9770 Move NDL from robot.h to here.
9771 ----------------------------
9772 revision 1.52
9773 date: 1994/09/22 10:46:51;  author: mike;  state: Exp;
9774 Add difficulty levels.
9775 ----------------------------
9776 revision 1.51
9777 date: 1994/09/17 01:39:52;  author: matt;  state: Exp;
9778 Added status bar/sizable window mode, and in the process revamped the
9779 whole cockpit mode system.
9780 ----------------------------
9781 revision 1.50
9782 date: 1994/09/15 21:23:10;  author: matt;  state: Exp;
9783 Changed system to keep track of whether & what cockpit is up
9784 ----------------------------
9785 revision 1.49
9786 date: 1994/09/15 16:11:33;  author: john;  state: Exp;
9787 Added support for VFX1 head tracking. Fixed bug with memory over-
9788 write when using stereo mode.
9789 ----------------------------
9790 revision 1.48
9791 date: 1994/09/13 16:40:10;  author: mike;  state: Exp;
9792 Prototype Global_missile_firing_count.
9793 ----------------------------
9794 revision 1.47
9795 date: 1994/09/13 11:19:05;  author: mike;  state: Exp;
9796 Add Next_missile_fire_time.
9797 ----------------------------
9798 revision 1.46
9799 date: 1994/09/12 09:52:50;  author: john;  state: Exp;
9800 Made global flush function that flushes keyboard,mouse, and joystick.
9801 ----------------------------
9802 revision 1.45
9803 date: 1994/09/03 15:24:14;  author: mike;  state: Exp;
9804 Make global Global_laser_firing_count.
9805 ----------------------------
9806 revision 1.44
9807 date: 1994/08/31 19:26:57;  author: mike;  state: Exp;
9808 Prototypes for Next_laser_fire_time, Laser_delay_time.
9809 ----------------------------
9810 revision 1.43
9811 date: 1994/08/18 10:47:22;  author: john;  state: Exp;
9812 Cleaned up game sequencing and player death stuff
9813 in preparation for making the player explode into
9814 pieces when dead.
9815 ----------------------------
9816 revision 1.42
9817 date: 1994/08/11 18:03:53;  author: matt;  state: Exp;
9818 Added prototype
9819 ----------------------------
9820 revision 1.41
9821 date: 1994/06/29 20:41:38;  author: matt;  state: Exp;
9822 Added new pause mode; cleaned up countdown & game startup code
9823 ----------------------------
9824 revision 1.40
9825 date: 1994/06/24 17:03:49;  author: john;  state: Exp;
9826 Added VFX support. Also took all game sequencing stuff like
9827 EndGame out and put it into gameseq.c
9828 ----------------------------
9829 revision 1.39
9830 date: 1994/06/20 15:01:08;  author: yuan;  state: Exp;
9831 Added death when mine blows up...
9832 Continues onto next level.
9833 ----------------------------
9834 revision 1.38
9835 date: 1994/06/17 18:07:20;  author: matt;  state: Exp;
9836 Moved some vars out of ifdef
9837 ----------------------------
9838 revision 1.37
9839 date: 1994/06/15 11:09:22;  author: yuan;  state: Exp;
9840 Moved gauge_message to mono screen for now.
9841 ----------------------------
9842 revision 1.36
9843 date: 1994/05/30 20:22:11;  author: yuan;  state: Exp;
9844 New triggers.
9845 ----------------------------
9846 revision 1.35
9847 date: 1994/05/27 10:32:48;  author: yuan;  state: Exp;
9848 New dialog boxes (Walls and Triggers) added.
9849 ----------------------------
9850 revision 1.34
9851 date: 1994/05/20 11:56:45;  author: matt;  state: Exp;
9852 Cleaned up find_vector_intersection() interface
9853 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
9854 ----------------------------
9855 revision 1.33
9856 date: 1994/05/19 21:45:21;  author: matt;  state: Exp;
9857 Removed unused prototypes
9858 ----------------------------
9859 revision 1.32
9860 date: 1994/05/19 18:53:17;  author: yuan;  state: Exp;
9861 Changing player structure...
9862 ----------------------------
9863 revision 1.31
9864 date: 1994/05/16 16:38:35;  author: yuan;  state: Exp;
9865 Fixed palette add so it doesn't show up in the menu.
9866 ----------------------------
9867 revision 1.30
9868 date: 1994/05/16 09:28:17;  author: matt;  state: Exp;
9869 Renamed init_player() to be init_player_stats(), added new funtion
9870 init_player_object()
9871 ----------------------------
9872 revision 1.29
9873 date: 1994/05/14 17:14:57;  author: matt;  state: Exp;
9874 Got rid of externs in source (non-header) files
9875 =============================================================================
9876 RCS file: /Smoke/miner/source/main/gamefont.c,v
9877 Working file: main/gamefont.c
9878 head: 1.2
9879 description: Fonts for the game.
9880 ----------------------------
9881 revision 1.2
9882 date: 1995/08/18 10:23:25;  author: allender;  state: Exp;
9883 remove refernce to big font -- add PC small font for pixel
9884 doubling display
9885 ----------------------------
9886 revision 1.1
9887 date: 1995/05/16 15:25:22;  author: allender;  state: Exp;
9888 Initial revision
9889 ----------------------------
9890 revision 2.0
9891 date: 1995/02/27 11:30:14;  author: john;  state: Exp;
9892 New version 2.0, which has no anonymous unions, builds with
9893 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
9894 ----------------------------
9895 revision 1.8
9896 date: 1994/11/18 16:41:39;  author: adam;  state: Exp;
9897 trimmed some meat
9898 ----------------------------
9899 revision 1.7
9900 date: 1994/11/17 13:07:11;  author: adam;  state: Exp;
9901 removed unused font
9902 ----------------------------
9903 revision 1.6
9904 date: 1994/11/03 21:36:12;  author: john;  state: Exp;
9905 Added code for credit fonts.
9906 ----------------------------
9907 revision 1.5
9908 date: 1994/08/17 20:20:02;  author: matt;  state: Exp;
9909 Took out alternate-color versions of font3, since this is a mono font
9910 ----------------------------
9911 revision 1.4
9912 date: 1994/08/12 12:03:44;  author: adam;  state: Exp;
9913 tweaked fonts.
9914 ----------------------------
9915 revision 1.3
9916 date: 1994/08/11 12:43:40;  author: adam;  state: Exp;
9917 changed font filenames
9918 ----------------------------
9919 revision 1.2
9920 date: 1994/08/10 19:57:15;  author: john;  state: Exp;
9921 Changed font stuff; Took out old menu; messed up lots of
9922 other stuff like game sequencing messages, etc.
9923 ----------------------------
9924 revision 1.1
9925 date: 1994/08/10 17:20:09;  author: john;  state: Exp;
9926 Initial revision
9927 =============================================================================
9928 RCS file: /Smoke/miner/source/main/gamefont.h,v
9929 Working file: main/gamefont.h
9930 head: 1.2
9931 description: Font declarations for the game,.
9932 ----------------------------
9933 revision 1.2
9934 date: 1995/08/18 10:23:54;  author: allender;  state: Exp;
9935 removed large font -- added PC small font
9936 ----------------------------
9937 revision 1.1
9938 date: 1995/05/16 15:56:55;  author: allender;  state: Exp;
9939 Initial revision
9940 ----------------------------
9941 revision 2.0
9942 date: 1995/02/27 11:31:09;  author: john;  state: Exp;
9943 New version 2.0, which has no anonymous unions, builds with
9944 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
9945 ----------------------------
9946 revision 1.7
9947 date: 1994/11/18 16:41:28;  author: adam;  state: Exp;
9948 trimmed meat
9949 ----------------------------
9950 revision 1.6
9951 date: 1994/11/17 13:07:00;  author: adam;  state: Exp;
9952 removed unused font
9953 ----------------------------
9954 revision 1.5
9955 date: 1994/11/03 21:36:02;  author: john;  state: Exp;
9956 Added code for credit fonts.
9957 ----------------------------
9958 revision 1.4
9959 date: 1994/08/17 20:20:25;  author: matt;  state: Exp;
9960 Took out alternate-color versions of font3, since this is a mono font
9961 ----------------------------
9962 revision 1.3
9963 date: 1994/08/11 12:44:32;  author: adam;  state: Exp;
9964 killed a #define
9965 ----------------------------
9966 revision 1.2
9967 date: 1994/08/10 19:57:16;  author: john;  state: Exp;
9968 Changed font stuff; Took out old menu; messed up lots of
9969 other stuff like game sequencing messages, etc.
9970 ----------------------------
9971 revision 1.1
9972 date: 1994/08/10 17:20:22;  author: john;  state: Exp;
9973 Initial revision
9974 =============================================================================
9975 RCS file: /Smoke/miner/source/main/gamemine.c,v
9976 Working file: main/gamemine.c
9977 head: 1.2
9978 description: Functions for loading mines in the game
9979 ----------------------------
9980 revision 1.2
9981 date: 1995/10/31 10:15:58;  author: allender;  state: Exp;
9982 code for shareware levels
9983 ----------------------------
9984 revision 1.1
9985 date: 1995/05/16 15:25:29;  author: allender;  state: Exp;
9986 Initial revision
9987 ----------------------------
9988 revision 2.2
9989 date: 1995/03/06 15:23:14;  author: john;  state: Exp;
9990 New screen techniques.
9991 ----------------------------
9992 revision 2.1
9993 date: 1995/02/27 13:13:37;  author: john;  state: Exp;
9994 Removed floating point.
9995 ----------------------------
9996 revision 2.0
9997 date: 1995/02/27 11:27:45;  author: john;  state: Exp;
9998 New version 2.0, which has no anonymous unions, builds with
9999 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
10000 ----------------------------
10001 revision 1.70
10002 date: 1995/02/13 20:35:09;  author: john;  state: Exp;
10003 Lintized
10004 ----------------------------
10005 revision 1.69
10006 date: 1995/02/07 17:12:03;  author: rob;  state: Exp;
10007 Added ifdef's for Editor.
10008 ----------------------------
10009 revision 1.68
10010 date: 1995/02/07 16:51:48;  author: mike;  state: Exp;
10011 fix gray rock josh problem.
10012 ----------------------------
10013 revision 1.67
10014 date: 1995/02/01 15:46:26;  author: yuan;  state: Exp;
10015 Fixed matcen_nums.
10016 ----------------------------
10017 revision 1.66
10018 date: 1995/01/19 15:19:28;  author: mike;  state: Exp;
10019 new super-compressed registered file format.
10020 ----------------------------
10021 revision 1.65
10022 date: 1994/12/10 16:44:59;  author: matt;  state: Exp;
10023 Added debugging code to track down door that turns into rock
10024 ----------------------------
10025 revision 1.64
10026 date: 1994/12/10 14:58:24;  author: yuan;  state: Exp;
10027 *** empty log message ***
10028 ----------------------------
10029 revision 1.63
10030 date: 1994/12/08 17:19:10;  author: yuan;  state: Exp;
10031 Cfiling stuff.
10032 ----------------------------
10033 revision 1.62
10034 date: 1994/12/07 14:05:33;  author: yuan;  state: Exp;
10035 Fixed wall assert problem... Bashed highest_segment
10036 _index before WALL_IS_DOORWAY check.
10037 ----------------------------
10038 revision 1.61
10039 date: 1994/11/27 23:14:52;  author: matt;  state: Exp;
10040 Made changes for new mprintf calling convention
10041 ----------------------------
10042 revision 1.60
10043 date: 1994/11/27 18:05:20;  author: matt;  state: Exp;
10044 Compile out LVL reader when editor compiled out
10045 ----------------------------
10046 revision 1.59
10047 date: 1994/11/26 22:51:45;  author: matt;  state: Exp;
10048 Removed editor-only fields from segment structure when editor is compiled
10049 out, and padded segment structure to even multiple of 4 bytes.
10050 ----------------------------
10051 revision 1.58
10052 date: 1994/11/26 21:48:02;  author: matt;  state: Exp;
10053 Fixed saturation in short light value 
10054 ----------------------------
10055 revision 1.57
10056 date: 1994/11/20 22:11:49;  author: mike;  state: Exp;
10057 comment out an apparently unnecessary call to fuelcen_reset().
10058 ----------------------------
10059 revision 1.56
10060 date: 1994/11/18 21:56:42;  author: john;  state: Exp;
10061 Added a better, leaner pig format.
10062 ----------------------------
10063 revision 1.55
10064 date: 1994/11/17 20:09:18;  author: john;  state: Exp;
10065 Added new compiled level format.
10066 ----------------------------
10067 revision 1.54
10068 date: 1994/11/17 15:40:17;  author: mike;  state: Exp;
10069 Comment out mprintf which was causing important information to scroll away.
10070 ----------------------------
10071 revision 1.53
10072 date: 1994/11/17 14:56:37;  author: mike;  state: Exp;
10073 moved segment validation functions from editor to main.
10074 ----------------------------
10075 revision 1.52
10076 date: 1994/11/17 11:39:35;  author: matt;  state: Exp;
10077 Ripped out code to load old mines
10078 ----------------------------
10079 revision 1.51
10080 date: 1994/11/14 20:47:53;  author: john;  state: Exp;
10081 Attempted to strip out all the code in the game 
10082 directory that uses any ui code.
10083 ----------------------------
10084 revision 1.50
10085 date: 1994/11/14 16:05:38;  author: matt;  state: Exp;
10086 Fixed, maybe, again, errors when can't find texture during remap
10087 ----------------------------
10088 revision 1.49
10089 date: 1994/11/14 14:34:03;  author: matt;  state: Exp;
10090 Fixed up handling when textures can't be found during remap
10091 ----------------------------
10092 revision 1.48
10093 date: 1994/11/14 13:01:55;  author: matt;  state: Exp;
10094 Added Int3() when can't find texture
10095 ----------------------------
10096 revision 1.47
10097 date: 1994/10/30 14:12:21;  author: mike;  state: Exp;
10098 rip out local segments stuff.
10099 ----------------------------
10100 revision 1.46
10101 date: 1994/10/27 19:43:07;  author: john;  state: Exp;
10102 Disable the piglet option.
10103 ----------------------------
10104 revision 1.45
10105 date: 1994/10/27 18:51:42;  author: john;  state: Exp;
10106 Added -piglet option that only loads needed textures for a 
10107 mine.  Only saved ~1MB, and code still doesn't free textures
10108 before you load a new mine.
10109 ----------------------------
10110 revision 1.44
10111 date: 1994/10/20 12:47:22;  author: matt;  state: Exp;
10112 Replace old save files (MIN/SAV/HOT) with new LVL files
10113 ----------------------------
10114 revision 1.43
10115 date: 1994/10/19 16:46:40;  author: matt;  state: Exp;
10116 Made tmap overrides for robots remap texture numbers
10117 ----------------------------
10118 revision 1.42
10119 date: 1994/10/03 23:37:01;  author: mike;  state: Exp;
10120 Adapt to changed fuelcen_activate parameters.
10121 ----------------------------
10122 revision 1.41
10123 date: 1994/09/23 22:14:49;  author: matt;  state: Exp;
10124 Took out obsolete structure fields
10125 ----------------------------
10126 revision 1.40
10127 date: 1994/08/01 11:04:11;  author: yuan;  state: Exp;
10128 New materialization centers.
10129 ----------------------------
10130 revision 1.39
10131 date: 1994/07/21 19:01:47;  author: mike;  state: Exp;
10132 Call Lsegment stuff.
10133 =============================================================================
10134 RCS file: /Smoke/miner/source/main/gamemine.h,v
10135 Working file: main/gamemine.h
10136 head: 1.1
10137 description: Header for gamemine.c
10138 ----------------------------
10139 revision 1.1
10140 date: 1995/05/16 15:57:02;  author: allender;  state: Exp;
10141 Initial revision
10142 ----------------------------
10143 revision 2.0
10144 date: 1995/02/27 11:28:50;  author: john;  state: Exp;
10145 New version 2.0, which has no anonymous unions, builds with
10146 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
10147 ----------------------------
10148 revision 1.15
10149 date: 1994/11/17 11:39:34;  author: matt;  state: Exp;
10150 Ripped out code to load old mines
10151 ----------------------------
10152 revision 1.14
10153 date: 1994/10/19 16:46:40;  author: matt;  state: Exp;
10154 Made tmap overrides for robots remap texture numbers
10155 ----------------------------
10156 revision 1.13
10157 date: 1994/09/23 22:14:37;  author: matt;  state: Exp;
10158 Took out obsolete structure fields
10159 ----------------------------
10160 revision 1.12
10161 date: 1994/07/22 12:36:32;  author: matt;  state: Exp;
10162 Cleaned up editor/game interactions some more.
10163 ----------------------------
10164 revision 1.11
10165 date: 1994/06/01 11:21:37;  author: yuan;  state: Exp;
10166 Added controlcentertriggers to the gamesave.
10167 ----------------------------
10168 revision 1.10
10169 date: 1994/05/10 12:14:26;  author: yuan;  state: Exp;
10170 Game save/load... Demo levels 1-5 added...
10171 High scores fixed...
10172 ----------------------------
10173 revision 1.9
10174 date: 1994/05/04 18:25:05;  author: yuan;  state: Exp;
10175 Working on gamesave.
10176 ----------------------------
10177 revision 1.8
10178 date: 1994/05/03 15:53:27;  author: yuan;  state: Exp;
10179 Readded structure field groups for backward compatibility...
10180 ----------------------------
10181 revision 1.7
10182 date: 1994/05/03 11:36:26;  author: yuan;  state: Exp;
10183 Stabilizing gamesave stuff.
10184 ----------------------------
10185 revision 1.6
10186 date: 1994/04/28 11:01:32;  author: yuan;  state: Exp;
10187 Added objects in structure.
10188 ----------------------------
10189 revision 1.5
10190 date: 1994/04/06 18:30:03;  author: john;  state: Exp;
10191 Added Refueling segments.
10192 ----------------------------
10193 revision 1.4
10194 date: 1994/03/17 18:06:53;  author: yuan;  state: Exp;
10195 Removed switch code... Now we just have Walls, Triggers, and Links...
10196 ----------------------------
10197 revision 1.3
10198 date: 1994/03/01 18:12:24;  author: yuan;  state: Exp;
10199 Wallswitches, triggers, and more!
10200 ----------------------------
10201 revision 1.2
10202 date: 1994/02/10 15:36:01;  author: matt;  state: Exp;
10203 Various changes to make editor compile out.
10204 ----------------------------
10205 revision 1.1
10206 date: 1994/02/09 17:11:45;  author: matt;  state: Exp;
10207 Initial revision
10208 =============================================================================
10209 RCS file: /BigRed/miner/source/main/gamesave.c,v
10210 Working file: main/gamesave.c
10211 head: 1.3
10212 description: Save game information
10213 ----------------------------
10214 revision 1.3
10215 date: 1996/02/21 13:59:17;  author: allender;  state: Exp;
10216 check Data folder when can't open a level file from a hog
10217 ----------------------------
10218 revision 1.2
10219 date: 1995/10/31 10:23:23;  author: allender;  state: Exp;
10220 shareware stuff
10221 ----------------------------
10222 revision 1.1
10223 date: 1995/05/16 15:25:37;  author: allender;  state: Exp;
10224 Initial revision
10225 ----------------------------
10226 revision 2.1
10227 date: 1995/03/20 18:15:43;  author: john;  state: Exp;
10228 Added code to not store the normals in the segment structure.
10229 ----------------------------
10230 revision 2.0
10231 date: 1995/02/27 11:29:50;  author: john;  state: Exp;
10232 New version 2.0, which has no anonymous unions, builds with
10233 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
10234 ----------------------------
10235 revision 1.207
10236 date: 1995/02/23 10:17:36;  author: allender;  state: Exp;
10237 fixed parameter mismatch with compute_segment_center
10238 ----------------------------
10239 revision 1.206
10240 date: 1995/02/22 14:51:17;  author: allender;  state: Exp;
10241 fixed some things that I missed
10242 ----------------------------
10243 revision 1.205
10244 date: 1995/02/22 13:31:38;  author: allender;  state: Exp;
10245 remove anonymous unions from object structure
10246 ----------------------------
10247 revision 1.204
10248 date: 1995/02/01 20:58:08;  author: john;  state: Exp;
10249 Made editor check hog.
10250 ----------------------------
10251 revision 1.203
10252 date: 1995/01/28 17:40:34;  author: mike;  state: Exp;
10253 correct level names (use rdl, sdl) for dumpmine stuff.
10254 ----------------------------
10255 revision 1.202
10256 date: 1995/01/25 20:03:46;  author: matt;  state: Exp;
10257 Moved matrix check to avoid orthogonalizing an uninitialize matrix
10258 ----------------------------
10259 revision 1.201
10260 date: 1995/01/20 16:56:53;  author: mike;  state: Exp;
10261 remove some mprintfs.
10262 ----------------------------
10263 revision 1.200
10264 date: 1995/01/15 19:42:13;  author: matt;  state: Exp;
10265 Ripped out hostage faces for registered version
10266 ----------------------------
10267 revision 1.199
10268 date: 1995/01/05 16:59:09;  author: yuan;  state: Exp;
10269 Make it so if editor is loaded, don't get error from typo
10270 in filename.
10271 ----------------------------
10272 revision 1.198
10273 date: 1994/12/19 12:49:46;  author: mike;  state: Exp;
10274 Change fgets to cfgets.  fgets was getting a pointer mismatch warning.
10275 ----------------------------
10276 revision 1.197
10277 date: 1994/12/12 01:20:03;  author: matt;  state: Exp;
10278 Took out object size hack for green claw guys
10279 ----------------------------
10280 revision 1.196
10281 date: 1994/12/11 13:19:37;  author: matt;  state: Exp;
10282 Restored calls to fix_object_segs() when debugging is turned off, since
10283 it's not a big routine, and could fix some possibly bad problems.
10284 ----------------------------
10285 revision 1.195
10286 date: 1994/12/10 16:17:24;  author: mike;  state: Exp;
10287 fix editor bug that was converting transparent walls into rock.
10288 ----------------------------
10289 revision 1.194
10290 date: 1994/12/09 14:59:27;  author: matt;  state: Exp;
10291 Added system to attach a fireball to another object for rendering purposes,
10292 so the fireball always renders on top of (after) the object.
10293 ----------------------------
10294 revision 1.193
10295 date: 1994/12/08 17:19:02;  author: yuan;  state: Exp;
10296 Cfiling stuff.
10297 ----------------------------
10298 revision 1.192
10299 date: 1994/12/02 20:01:05;  author: matt;  state: Exp;
10300 Always give vulcan cannon powerup same amount of ammo, regardless of
10301 how much it was saved with
10302 ----------------------------
10303 revision 1.191
10304 date: 1994/11/30 17:45:57;  author: yuan;  state: Exp;
10305 Saving files now creates RDL/SDLs instead of CDLs.
10306 ----------------------------
10307 revision 1.190
10308 date: 1994/11/30 17:22:14;  author: matt;  state: Exp;
10309 Ripped out hostage faces in shareware version
10310 ----------------------------
10311 revision 1.189
10312 date: 1994/11/28 00:09:30;  author: allender;  state: Exp;
10313 commented out call to newdemo_record_start_demo in load_level...what is
10314 this doing here anyway?????
10315 ----------------------------
10316 revision 1.188
10317 date: 1994/11/27 23:13:48;  author: matt;  state: Exp;
10318 Made changes for new mprintf calling convention
10319 ----------------------------
10320 revision 1.187
10321 date: 1994/11/27 18:06:20;  author: matt;  state: Exp;
10322 Cleaned up LVL/CDL file loading
10323 ----------------------------
10324 revision 1.186
10325 date: 1994/11/25 22:46:29;  author: matt;  state: Exp;
10326 Allow ESC out of compiled/normal menu (esc=compiled).
10327 ----------------------------
10328 revision 1.185
10329 date: 1994/11/23 12:18:35;  author: mike;  state: Exp;
10330 move level names here...a more logical place than dumpmine.
10331 ----------------------------
10332 revision 1.184
10333 date: 1994/11/21 20:29:19;  author: matt;  state: Exp;
10334 If hostage info is bad, fix it.
10335 ----------------------------
10336 revision 1.183
10337 date: 1994/11/21 20:26:07;  author: matt;  state: Exp;
10338 Fixed bug, I hope
10339 ----------------------------
10340 revision 1.182
10341 date: 1994/11/21 20:20:37;  author: matt;  state: Exp;
10342 Fixed stupid mistake
10343 ----------------------------
10344 revision 1.181
10345 date: 1994/11/21 20:18:40;  author: matt;  state: Exp;
10346 Fixed (hopefully) totally bogus writing of hostage data
10347 ----------------------------
10348 revision 1.180
10349 date: 1994/11/20 14:11:56;  author: matt;  state: Exp;
10350 Gracefully handle two hostages having same id
10351 ----------------------------
10352 revision 1.179
10353 date: 1994/11/19 23:55:05;  author: mike;  state: Exp;
10354 remove Assert, put in comment for Matt.
10355 ----------------------------
10356 revision 1.178
10357 date: 1994/11/19 19:53:24;  author: matt;  state: Exp;
10358 Added code to full support different hostage head clip & message for
10359 each hostage.
10360 ----------------------------
10361 revision 1.177
10362 date: 1994/11/19 15:15:21;  author: mike;  state: Exp;
10363 remove unused code and data
10364 ----------------------------
10365 revision 1.176
10366 date: 1994/11/19 10:28:28;  author: matt;  state: Exp;
10367 Took out write routines when editor compiled out
10368 ----------------------------
10369 revision 1.175
10370 date: 1994/11/17 20:38:25;  author: john;  state: Exp;
10371 Took out warning.
10372 ----------------------------
10373 revision 1.174
10374 date: 1994/11/17 20:36:34;  author: john;  state: Exp;
10375 Made it so that saving a mine will write the .cdl even
10376 if .lvl gets error.
10377 ----------------------------
10378 revision 1.173
10379 date: 1994/11/17 20:26:19;  author: john;  state: Exp;
10380 Made the game load whichever of .cdl or .lvl exists,
10381 and if they both exist, prompt the user for which one.
10382 ----------------------------
10383 revision 1.172
10384 date: 1994/11/17 20:11:20;  author: john;  state: Exp;
10385 Fixed warning.
10386 ----------------------------
10387 revision 1.171
10388 date: 1994/11/17 20:09:26;  author: john;  state: Exp;
10389 Added new compiled level format.
10390 ----------------------------
10391 revision 1.170
10392 date: 1994/11/17 14:57:21;  author: mike;  state: Exp;
10393 moved segment validation functions from editor to main.
10394 ----------------------------
10395 revision 1.169
10396 date: 1994/11/17 11:39:21;  author: matt;  state: Exp;
10397 Ripped out code to load old mines
10398 ----------------------------
10399 revision 1.168
10400 date: 1994/11/16 11:24:53;  author: matt;  state: Exp;
10401 Made attack-type robots have smaller radius, so they get closer to player
10402 ----------------------------
10403 revision 1.167
10404 date: 1994/11/15 21:42:47;  author: mike;  state: Exp;
10405 better error messages.
10406 ----------------------------
10407 revision 1.166
10408 date: 1994/11/15 15:30:41;  author: matt;  state: Exp;
10409 Save ptr to name of level being loaded
10410 ----------------------------
10411 revision 1.165
10412 date: 1994/11/14 20:47:46;  author: john;  state: Exp;
10413 Attempted to strip out all the code in the game 
10414 directory that uses any ui code.
10415 ----------------------------
10416 revision 1.164
10417 date: 1994/11/14 14:34:23;  author: matt;  state: Exp;
10418 Fixed up handling when textures can't be found during remap
10419 ----------------------------
10420 revision 1.163
10421 date: 1994/11/10 14:02:49;  author: matt;  state: Exp;
10422 Hacked in support for player ships with different textures
10423 ----------------------------
10424 revision 1.162
10425 date: 1994/11/06 14:38:17;  author: mike;  state: Exp;
10426 Remove an apparently unnecessary mprintf.
10427 ----------------------------
10428 revision 1.161
10429 date: 1994/10/30 14:11:28;  author: mike;  state: Exp;
10430 ripout local segments stuff.
10431 ----------------------------
10432 revision 1.160
10433 date: 1994/10/28 12:10:41;  author: matt;  state: Exp;
10434 Check that was supposed to happen only when editor was in was happening
10435 only when editor was out.
10436 ----------------------------
10437 revision 1.159
10438 date: 1994/10/27 11:25:32;  author: matt;  state: Exp;
10439 Only do connectivity error check when editor in
10440 ----------------------------
10441 revision 1.158
10442 date: 1994/10/27 10:54:00;  author: matt;  state: Exp;
10443 Made connectivity error checking put up warning if errors found
10444 ----------------------------
10445 revision 1.157
10446 date: 1994/10/25 10:50:54;  author: matt;  state: Exp;
10447 Vulcan cannon powerups now contain ammo count
10448 ----------------------------
10449 revision 1.156
10450 date: 1994/10/23 02:10:43;  author: matt;  state: Exp;
10451 Got rid of obsolete hostage_info stuff
10452 ----------------------------
10453 revision 1.155
10454 date: 1994/10/22 18:57:26;  author: matt;  state: Exp;
10455 Added call to check_segment_connections()
10456 ----------------------------
10457 revision 1.154
10458 date: 1994/10/21 12:19:23;  author: matt;  state: Exp;
10459 Clear transient objects when saving (& loading) games
10460 ----------------------------
10461 revision 1.153
10462 date: 1994/10/21 11:25:10;  author: mike;  state: Exp;
10463 Use new constant IMMORTAL_TIME.
10464 ----------------------------
10465 revision 1.152
10466 date: 1994/10/20 12:46:59;  author: matt;  state: Exp;
10467 Replace old save files (MIN/SAV/HOT) with new LVL files
10468 ----------------------------
10469 revision 1.151
10470 date: 1994/10/19 19:26:32;  author: matt;  state: Exp;
10471 Fixed stupid bug
10472 ----------------------------
10473 revision 1.150
10474 date: 1994/10/19 16:46:21;  author: matt;  state: Exp;
10475 Made tmap overrides for robots remap texture numbers
10476 ----------------------------
10477 revision 1.149
10478 date: 1994/10/18 08:50:27;  author: yuan;  state: Exp;
10479 Fixed correct variable this time.
10480 ----------------------------
10481 revision 1.148
10482 date: 1994/10/18 08:45:02;  author: yuan;  state: Exp;
10483 Oops. forgot load function.
10484 ----------------------------
10485 revision 1.147
10486 date: 1994/10/18 08:42:10;  author: yuan;  state: Exp;
10487 Avoid the int3.
10488 ----------------------------
10489 revision 1.146
10490 date: 1994/10/17 21:34:57;  author: matt;  state: Exp;
10491 Added support for new Control Center/Main Reactor
10492 ----------------------------
10493 revision 1.145
10494 date: 1994/10/15 19:06:34;  author: mike;  state: Exp;
10495 Fix bug, maybe, having to do with something or other, ...
10496 ----------------------------
10497 revision 1.144
10498 date: 1994/10/12 21:07:33;  author: matt;  state: Exp;
10499 Killed unused field in object structure
10500 ----------------------------
10501 revision 1.143
10502 date: 1994/10/06 14:52:55;  author: mike;  state: Exp;
10503 Put check in to detect possibly bogus walls in last segment which leaked through an earlier check
10504 due to misuse of Highest_segment_index.
10505 ----------------------------
10506 revision 1.142
10507 date: 1994/10/05 22:12:44;  author: mike;  state: Exp;
10508 Put in cleanup for matcen/fuelcen links.
10509 ----------------------------
10510 revision 1.141
10511 date: 1994/10/03 11:30:05;  author: matt;  state: Exp;
10512 Make sure player in a valid segment before saving
10513 ----------------------------
10514 revision 1.140
10515 date: 1994/09/28 11:14:41;  author: mike;  state: Exp;
10516 Better error messaging on bogus mines: Only bring up dialog box if a "real" (level??.*) level.
10517 ----------------------------
10518 revision 1.139
10519 date: 1994/09/28 09:22:58;  author: mike;  state: Exp;
10520 Comment out a mprintf.
10521 ----------------------------
10522 revision 1.138
10523 date: 1994/09/27 17:08:36;  author: mike;  state: Exp;
10524 Message boxes when you load bogus mines.
10525 ----------------------------
10526 revision 1.137
10527 date: 1994/09/27 15:43:45;  author: mike;  state: Exp;
10528 Move the dump stuff to dumpmine.
10529 ----------------------------
10530 revision 1.136
10531 date: 1994/09/27 00:02:31;  author: mike;  state: Exp;
10532 Dump text files (".txm") when loading a mine, showing all kinds of useful mine info.
10533 ----------------------------
10534 revision 1.135
10535 date: 1994/09/26 11:30:41;  author: matt;  state: Exp;
10536 Took out code which loaded bogus player structure
10537 ----------------------------
10538 revision 1.134
10539 date: 1994/09/26 11:18:44;  author: john;  state: Exp;
10540 Fixed some conflicts with newseg.
10541 ----------------------------
10542 revision 1.133
10543 date: 1994/09/26 10:56:58;  author: matt;  state: Exp;
10544 Fixed inconsistancies in lifeleft for immortal objects
10545 ----------------------------
10546 revision 1.132
10547 date: 1994/09/25 23:41:10;  author: matt;  state: Exp;
10548 Changed the object load & save code to read/write the structure fields one
10549 at a time (rather than the whole structure at once).  This mean that the
10550 object structure can be changed without breaking the load/save functions.
10551 As a result of this change, the local_object data can be and has been 
10552 incorporated into the object array.  Also, timeleft is now a property 
10553 of all objects, and the object structure has been otherwise cleaned up.
10554 =============================================================================
10555 RCS file: /Smoke/miner/source/main/gamesave.h,v
10556 Working file: main/gamesave.h
10557 head: 1.1
10558 description: Headers for gamesave.c
10559 ----------------------------
10560 revision 1.1
10561 date: 1995/05/16 15:57:10;  author: allender;  state: Exp;
10562 Initial revision
10563 ----------------------------
10564 revision 2.0
10565 date: 1995/02/27 11:30:25;  author: john;  state: Exp;
10566 New version 2.0, which has no anonymous unions, builds with
10567 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
10568 ----------------------------
10569 revision 1.11
10570 date: 1994/11/23 12:19:32;  author: mike;  state: Exp;
10571 detail level menu.
10572 ----------------------------
10573 revision 1.10
10574 date: 1994/10/20 12:47:30;  author: matt;  state: Exp;
10575 Replace old save files (MIN/SAV/HOT) with new LVL files
10576 ----------------------------
10577 revision 1.9
10578 date: 1994/09/27 17:08:47;  author: mike;  state: Exp;
10579 Message boxes when you load bogus mines.
10580 ----------------------------
10581 revision 1.8
10582 date: 1994/09/27 15:43:05;  author: mike;  state: Exp;
10583 Prototype write_game_text.
10584 ----------------------------
10585 revision 1.7
10586 date: 1994/09/14 15:46:39;  author: matt;  state: Exp;
10587 Added function load_mine_only()
10588 ----------------------------
10589 revision 1.6
10590 date: 1994/07/22 12:36:28;  author: matt;  state: Exp;
10591 Cleaned up editor/game interactions some more.
10592 ----------------------------
10593 revision 1.5
10594 date: 1994/07/20 13:38:14;  author: matt;  state: Exp;
10595 Added get_level_name() prototype
10596 ----------------------------
10597 revision 1.4
10598 date: 1994/06/20 22:19:41;  author: john;  state: Exp;
10599 Added Gamesave_num_org_robots.
10600 ----------------------------
10601 revision 1.3
10602 date: 1994/06/14 11:32:49;  author: john;  state: Exp;
10603 Made Newdemo record & restore the current mine.
10604 ----------------------------
10605 revision 1.2
10606 date: 1994/05/14 17:16:25;  author: matt;  state: Exp;
10607 Got rid of externs in source (non-header) files
10608 ----------------------------
10609 revision 1.1
10610 date: 1994/05/14 16:01:26;  author: matt;  state: Exp;
10611 Initial revision
10612 =============================================================================
10613 RCS file: /Smoke/miner/source/main/gameseg.c,v
10614 Working file: main/gameseg.c
10615 head: 1.9
10616 description: Functions moved from segment.c to make editor separable from game.
10617 ----------------------------
10618 revision 1.9
10619 date: 1995/11/08 16:26:04;  author: allender;  state: Exp;
10620 minor bug fix in find_connected_distance
10621 ----------------------------
10622 revision 1.8
10623 date: 1995/10/12 17:36:55;  author: allender;  state: Exp;
10624 made trace_segs only recurse 100 times max
10625 ----------------------------
10626 revision 1.7
10627 date: 1995/10/11 18:29:01;  author: allender;  state: Exp;
10628 removed Int3 from trace_segs
10629 ----------------------------
10630 revision 1.6
10631 date: 1995/10/11 14:13:54;  author: allender;  state: Exp;
10632 put in stack check code into trace-segs
10633 ----------------------------
10634 revision 1.5
10635 date: 1995/09/23 09:40:25;  author: allender;  state: Exp;
10636 put in casts in extract_shortpos to try and solve shortpos problem
10637 with appletalk
10638 ----------------------------
10639 revision 1.4
10640 date: 1995/09/20 14:26:50;  author: allender;  state: Exp;
10641 added flag to swap bytes on extract shortpot
10642 ----------------------------
10643 revision 1.3
10644 date: 1995/08/12 12:01:27;  author: allender;  state: Exp;
10645 added flag to create_shortpos to swap bytes
10646 ----------------------------
10647 revision 1.2
10648 date: 1995/06/06 10:42:07;  author: allender;  state: Exp;
10649 made shortpos routines swap bytes when extracting and making shortpos structures
10650 ----------------------------
10651 revision 1.1
10652 date: 1995/05/16 15:25:46;  author: allender;  state: Exp;
10653 Initial revision
10654 ----------------------------
10655 revision 2.2
10656 date: 1995/03/20 12:15:39;  author: john;  state: Exp;
10657 Added code to not store the normals in the segment structure.
10658 ----------------------------
10659 revision 2.1
10660 date: 1995/03/08 12:11:39;  author: allender;  state: Exp;
10661 fix shortpos reading/writing
10662 ----------------------------
10663 revision 2.0
10664 date: 1995/02/27 11:29:21;  author: john;  state: Exp;
10665 New version 2.0, which has no anonymous unions, builds with
10666 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
10667 ----------------------------
10668 revision 1.78
10669 date: 1995/02/22 13:52:22;  author: allender;  state: Exp;
10670 remove anonymous unions from object structure
10671 ----------------------------
10672 revision 1.77
10673 date: 1995/02/22 13:24:47;  author: john;  state: Exp;
10674 Removed the vecmat anonymous unions.
10675 ----------------------------
10676 revision 1.76
10677 date: 1995/02/13 20:35:01;  author: john;  state: Exp;
10678 Lintized
10679 ----------------------------
10680 revision 1.75
10681 date: 1995/02/09 13:10:51;  author: mike;  state: Exp;
10682 remove an annoying mprintf.
10683 ----------------------------
10684 revision 1.74
10685 date: 1995/02/05 17:49:28;  author: rob;  state: Exp;
10686 Added assert to gameseg.c.
10687 ----------------------------
10688 revision 1.73
10689 date: 1995/02/02 00:49:26;  author: mike;  state: Exp;
10690 new automap segment-depth functionality.
10691 ----------------------------
10692 revision 1.72
10693 date: 1995/01/16 21:06:51;  author: mike;  state: Exp;
10694 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
10695 ----------------------------
10696 revision 1.71
10697 date: 1994/12/21 19:54:32;  author: matt;  state: Exp;
10698 Added error checking
10699 ----------------------------
10700 revision 1.70
10701 date: 1994/12/11 21:34:09;  author: matt;  state: Exp;
10702 Changed assert() to int3()
10703 ----------------------------
10704 revision 1.69
10705 date: 1994/12/01 21:04:37;  author: matt;  state: Exp;
10706 Several important changes:
10707  (1) Checking against triangulated sides has been standardized a bit
10708  (2) Code has been added to de-triangulate some sides
10709  (3) BIG ONE: the tolerance for checking a point against a plane has
10710      been drastically relaxed
10711 ----------------------------
10712 revision 1.67
10713 date: 1994/11/27 23:12:21;  author: matt;  state: Exp;
10714 Made changes for new mprintf calling convention
10715 ----------------------------
10716 revision 1.66
10717 date: 1994/11/26 22:51:40;  author: matt;  state: Exp;
10718 Removed editor-only fields from segment structure when editor is compiled
10719 out, and padded segment structure to even multiple of 4 bytes.
10720 ----------------------------
10721 revision 1.65
10722 date: 1994/11/22 16:55:38;  author: mike;  state: Exp;
10723 use memset in place of loop to clear array.
10724 ----------------------------
10725 revision 1.64
10726 date: 1994/11/19 15:20:37;  author: mike;  state: Exp;
10727 rip out unused code and data
10728 ----------------------------
10729 revision 1.63
10730 date: 1994/11/18 18:31:48;  author: matt;  state: Exp;
10731 Fixed code again (and maybe for real)
10732 ----------------------------
10733 revision 1.62
10734 date: 1994/11/18 16:54:24;  author: matt;  state: Exp;
10735 Fixed extract_orient_from_segment()
10736 ----------------------------
10737 revision 1.61
10738 date: 1994/11/17 14:56:50;  author: mike;  state: Exp;
10739 moved segment validation functions from editor to main.
10740 ----------------------------
10741 revision 1.60
10742 date: 1994/11/16 23:38:53;  author: mike;  state: Exp;
10743 new improved boss teleportation behavior.
10744 ----------------------------
10745 revision 1.59
10746 date: 1994/10/30 14:12:46;  author: mike;  state: Exp;
10747 rip out local segments stuff.
10748 ----------------------------
10749 revision 1.58
10750 date: 1994/10/27 10:53:39;  author: matt;  state: Exp;
10751 Made connectivity error checking put up warning if errors found
10752 ----------------------------
10753 revision 1.57
10754 date: 1994/10/25 21:19:26;  author: mike;  state: Exp;
10755 debugging code.
10756 ----------------------------
10757 revision 1.56
10758 date: 1994/10/25 11:26:09;  author: mike;  state: Exp;
10759 *** empty log message ***
10760 ----------------------------
10761 revision 1.55
10762 date: 1994/10/22 22:36:08;  author: matt;  state: Exp;
10763 Improved error finding routine
10764 ----------------------------
10765 revision 1.54
10766 date: 1994/10/22 18:56:51;  author: matt;  state: Exp;
10767 Fixed obscure bug in segment trace code
10768 Added error find routine, check_segment_connections()
10769 ----------------------------
10770 revision 1.53
10771 date: 1994/10/17 14:05:19;  author: matt;  state: Exp;
10772 Don't give recursion assert if doing lighting
10773 ----------------------------
10774 revision 1.52
10775 date: 1994/10/15 19:03:48;  author: mike;  state: Exp;
10776 Don't do exhaustive search in smooth lighting.
10777 ----------------------------
10778 revision 1.51
10779 date: 1994/10/12 09:46:44;  author: mike;  state: Exp;
10780 Add debug code for trapping exhaustive searches.
10781 ----------------------------
10782 revision 1.50
10783 date: 1994/10/11 20:50:41;  author: matt;  state: Exp;
10784 Made find_point_seg() take -1 as segnum, meaning to search all segments
10785 ----------------------------
10786 revision 1.49
10787 date: 1994/10/11 17:40:31;  author: matt;  state: Exp;
10788 Fixed bug that caused segment trace to only go through sides you can fly through
10789 ----------------------------
10790 revision 1.48
10791 date: 1994/10/10 14:48:16;  author: matt;  state: Exp;
10792 Fixed mistake that caused odd pauses and occasional int3's
10793 ----------------------------
10794 revision 1.47
10795 date: 1994/10/09 23:50:41;  author: matt;  state: Exp;
10796 Made find_hitpoint_uv() work with triangulated sides
10797 ----------------------------
10798 revision 1.46
10799 date: 1994/10/08 23:06:52;  author: matt;  state: Exp;
10800 trace_segs() didn't know about external walls
10801 ----------------------------
10802 revision 1.45
10803 date: 1994/10/07 22:18:57;  author: mike;  state: Exp;
10804 Put in asserts to trap bad segnums.
10805 ----------------------------
10806 revision 1.44
10807 date: 1994/10/06 14:08:07;  author: matt;  state: Exp;
10808 Added new function, extract_orient_from_segment()
10809 ----------------------------
10810 revision 1.43
10811 date: 1994/10/04 16:24:11;  author: mike;  state: Exp;
10812 Set global Connected_segment_distance for debug reasons for aipath.c.
10813 ----------------------------
10814 revision 1.42
10815 date: 1994/10/04 09:18:42;  author: mike;  state: Exp;
10816 Comment out a variable definition, preventing a warning message.
10817 ----------------------------
10818 revision 1.41
10819 date: 1994/10/03 23:43:42;  author: mike;  state: Exp;
10820 Put in a warning for overrunning point_segs buffer.
10821 ----------------------------
10822 revision 1.40
10823 date: 1994/10/03 20:55:43;  author: rob;  state: Exp;
10824 Added velocity to shortpos.
10825 ----------------------------
10826 revision 1.39
10827 date: 1994/09/27 11:46:06;  author: rob;  state: Exp;
10828 re-fixed that same bug (ugh).
10829 ----------------------------
10830 revision 1.38
10831 date: 1994/09/27 10:10:51;  author: rob;  state: Exp;
10832 Fixed bug in extract_shortpos (obj_relink added).
10833 ----------------------------
10834 revision 1.37
10835 date: 1994/09/25 23:41:02;  author: matt;  state: Exp;
10836 Changed the object load & save code to read/write the structure fields one
10837 at a time (rather than the whole structure at once).  This mean that the
10838 object structure can be changed without breaking the load/save functions.
10839 As a result of this change, the local_object data can be and has been 
10840 incorporated into the object array.  Also, timeleft is now a property 
10841 of all objects, and the object structure has been otherwise cleaned up.
10842 ----------------------------
10843 revision 1.36
10844 date: 1994/09/22 19:03:05;  author: mike;  state: Exp;
10845 Add shortpos manipulation functions create_shortpos and extract_shortpos.
10846 ----------------------------
10847 revision 1.35
10848 date: 1994/09/19 21:21:16;  author: mike;  state: Exp;
10849 Minor optimization to find_connected_distance.
10850 ----------------------------
10851 revision 1.34
10852 date: 1994/09/19 21:05:25;  author: mike;  state: Exp;
10853 Write function find_connected_distance,
10854 returns distance between two points as travellable through the mine.
10855 ----------------------------
10856 revision 1.33
10857 date: 1994/08/30 15:07:15;  author: matt;  state: Exp;
10858 Changed find_point_seg() to deal with some infinite recursion problems.
10859 ----------------------------
10860 revision 1.32
10861 date: 1994/08/11 18:58:32;  author: mike;  state: Exp;
10862 Use ints in place of shorts for optimization.
10863 ----------------------------
10864 revision 1.31
10865 date: 1994/08/04 00:20:09;  author: matt;  state: Exp;
10866 Cleaned up fvi & physics error handling; put in code to make sure objects
10867 are in correct segment; simplified segment finding for objects and points
10868 ----------------------------
10869 revision 1.30
10870 date: 1994/08/03 16:46:12;  author: mike;  state: Exp;
10871 not much...
10872 ----------------------------
10873 revision 1.29
10874 date: 1994/08/02 20:41:31;  author: matt;  state: Exp;
10875 Fixed bug in get_side_verts()
10876 ----------------------------
10877 revision 1.28
10878 date: 1994/08/02 19:04:25;  author: matt;  state: Exp;
10879 Cleaned up vertex list functions
10880 ----------------------------
10881 revision 1.27
10882 date: 1994/08/01 10:39:44;  author: matt;  state: Exp;
10883 find_new_seg() now will look through any kind of wall but a totally solid one
10884 ----------------------------
10885 revision 1.26
10886 date: 1994/07/28 19:15:59;  author: matt;  state: Exp;
10887 Fixed yet another bug in get_seg_masks()
10888 =============================================================================
10889 RCS file: /Smoke/miner/source/main/gameseg.h,v
10890 Working file: main/gameseg.h
10891 head: 1.1
10892 description: Header file for stuff moved from segment.c to gameseg.c.
10893 ----------------------------
10894 revision 1.1
10895 date: 1995/05/16 15:57:18;  author: allender;  state: Exp;
10896 Initial revision
10897 ----------------------------
10898 revision 2.0
10899 date: 1995/02/27 11:31:20;  author: john;  state: Exp;
10900 New version 2.0, which has no anonymous unions, builds with
10901 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
10902 ----------------------------
10903 revision 1.24
10904 date: 1995/02/01 16:34:03;  author: john;  state: Exp;
10905 Linted.
10906 ----------------------------
10907 revision 1.23
10908 date: 1995/01/16 21:06:36;  author: mike;  state: Exp;
10909 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
10910 ----------------------------
10911 revision 1.22
10912 date: 1994/11/23 12:18:59;  author: mike;  state: Exp;
10913 prototype for level names.
10914 ----------------------------
10915 revision 1.21
10916 date: 1994/11/17 14:56:59;  author: mike;  state: Exp;
10917 moved segment validation functions from editor to main.
10918 ----------------------------
10919 revision 1.20
10920 date: 1994/11/16 23:38:46;  author: mike;  state: Exp;
10921 new improved boss teleportation behavior.
10922 ----------------------------
10923 revision 1.19
10924 date: 1994/10/30 14:12:14;  author: mike;  state: Exp;
10925 rip out local segments stuff.
10926 ----------------------------
10927 revision 1.18
10928 date: 1994/10/09 23:51:07;  author: matt;  state: Exp;
10929 Made find_hitpoint_uv() work with triangulated sides
10930 ----------------------------
10931 revision 1.17
10932 date: 1994/10/06 14:08:22;  author: matt;  state: Exp;
10933 Added new function, extract_orient_from_segment()
10934 ----------------------------
10935 revision 1.16
10936 date: 1994/09/19 21:05:52;  author: mike;  state: Exp;
10937 Prototype for find_connected_distance.
10938 ----------------------------
10939 revision 1.15
10940 date: 1994/08/11 18:58:45;  author: mike;  state: Exp;
10941 Change shorts to ints.
10942 ----------------------------
10943 revision 1.14
10944 date: 1994/08/04 00:21:09;  author: matt;  state: Exp;
10945 Cleaned up fvi & physics error handling; put in code to make sure objects
10946 are in correct segment; simplified segment finding for objects and points
10947 ----------------------------
10948 revision 1.13
10949 date: 1994/08/02 19:04:25;  author: matt;  state: Exp;
10950 Cleaned up vertex list functions
10951 ----------------------------
10952 revision 1.12
10953 date: 1994/07/21 19:01:53;  author: mike;  state: Exp;
10954 lsegment stuff.
10955 ----------------------------
10956 revision 1.11
10957 date: 1994/07/07 09:31:13;  author: matt;  state: Exp;
10958 Added comments
10959 ----------------------------
10960 revision 1.10
10961 date: 1994/06/14 12:21:20;  author: matt;  state: Exp;
10962 Added new function, find_point_seg()
10963 ----------------------------
10964 revision 1.9
10965 date: 1994/05/29 23:17:38;  author: matt;  state: Exp;
10966 Move find_object_seg() from physics.c to gameseg.c
10967 Killed unused find_point_seg()
10968 ----------------------------
10969 revision 1.8
10970 date: 1994/05/20 11:56:57;  author: matt;  state: Exp;
10971 Cleaned up find_vector_intersection() interface
10972 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
10973 ----------------------------
10974 revision 1.7
10975 date: 1994/03/17 18:07:38;  author: yuan;  state: Exp;
10976 Removed switch code... Now we just have Walls, Triggers, and Links...
10977 ----------------------------
10978 revision 1.6
10979 date: 1994/02/22 18:14:44;  author: yuan;  state: Exp;
10980 Added new wall system
10981 ----------------------------
10982 revision 1.5
10983 date: 1994/02/17 11:33:22;  author: matt;  state: Exp;
10984 Changes in object system
10985 ----------------------------
10986 revision 1.4
10987 date: 1994/02/16 13:48:33;  author: mike;  state: Exp;
10988 enable editor to compile out.
10989 ----------------------------
10990 revision 1.3
10991 date: 1994/02/14 12:05:07;  author: mike;  state: Exp;
10992 change segment data structure.
10993 ----------------------------
10994 revision 1.2
10995 date: 1994/02/10 16:07:20;  author: mike;  state: Exp;
10996 separate editor from game based on EDITOR flag.
10997 ----------------------------
10998 revision 1.1
10999 date: 1994/02/09 15:45:38;  author: mike;  state: Exp;
11000 Initial revision
11001 =============================================================================
11002 RCS file: /BigRed/miner/source/main/gameseq.c,v
11003 Working file: main/gameseq.c
11004 head: 1.1
11005 description: Routines for EndGame, EndLevel, etc.
11006 ----------------------------
11007 revision 1.1
11008 date: 1995/12/05 16:02:05;  author: allender;  state: Exp;
11009 Initial revision
11010 ----------------------------
11011 revision 1.14
11012 date: 1995/11/03 12:55:30;  author: allender;  state: Exp;
11013 shareware changes
11014 ----------------------------
11015 revision 1.13
11016 date: 1995/10/31 10:23:07;  author: allender;  state: Exp;
11017 shareware stuff
11018 ----------------------------
11019 revision 1.12
11020 date: 1995/10/18 18:25:02;  author: allender;  state: Exp;
11021 call auto_select_weapon after initing ammo since that may
11022 change the secondary weapon status
11023 ----------------------------
11024 revision 1.11
11025 date: 1995/10/17 13:17:11;  author: allender;  state: Exp;
11026 added closebox when entering pilot name
11027 ----------------------------
11028 revision 1.10
11029 date: 1995/09/24 10:56:59;  author: allender;  state: Exp;
11030 new players must be looked for in Players directory
11031 ----------------------------
11032 revision 1.9
11033 date: 1995/09/18 08:08:08;  author: allender;  state: Exp;
11034 remove netgame binding if at endgame
11035 ----------------------------
11036 revision 1.8
11037 date: 1995/09/14 14:13:01;  author: allender;  state: Exp;
11038 initplayerobject have void return
11039 ----------------------------
11040 revision 1.7
11041 date: 1995/08/31 12:54:42;  author: allender;  state: Exp;
11042 try and fix bug
11043 ----------------------------
11044 revision 1.6
11045 date: 1995/08/26 16:25:40;  author: allender;  state: Exp;
11046 put return values on needed functions
11047 ----------------------------
11048 revision 1.5
11049 date: 1995/08/14 09:26:28;  author: allender;  state: Exp;
11050 added byteswap header files
11051 ----------------------------
11052 revision 1.4
11053 date: 1995/08/01 13:57:42;  author: allender;  state: Exp;
11054 macified player file stuff -- players stored in seperate folder
11055 ----------------------------
11056 revision 1.3
11057 date: 1995/06/08 12:54:37;  author: allender;  state: Exp;
11058 new function for calculating a segment based checksum since the old way
11059 is byte order dependent
11060 ----------------------------
11061 revision 1.2
11062 date: 1995/06/02 07:42:10;  author: allender;  state: Exp;
11063 removed duplicate extern for network_endlevel_poll2
11064 ----------------------------
11065 revision 1.1
11066 date: 1995/05/16 15:25:56;  author: allender;  state: Exp;
11067 Initial revision
11068 ----------------------------
11069 revision 2.6
11070 date: 1995/03/24 13:11:20;  author: john;  state: Exp;
11071 Added save game during briefing screens.
11072 ----------------------------
11073 revision 2.5
11074 date: 1995/03/23 17:56:20;  author: allender;  state: Exp;
11075 added code to record old laser level and weapons when player gets
11076 new ship
11077 ----------------------------
11078 revision 2.4
11079 date: 1995/03/21 08:39:14;  author: john;  state: Exp;
11080 Ifdef'd out the NETWORK code.
11081 ----------------------------
11082 revision 2.3
11083 date: 1995/03/15 14:33:33;  author: john;  state: Exp;
11084 Added code to force the Descent CD-rom in the drive.
11085 ----------------------------
11086 revision 2.2
11087 date: 1995/03/06 16:47:26;  author: mike;  state: Exp;
11088 destination saturn
11089 ----------------------------
11090 revision 2.1
11091 date: 1995/03/06 15:23:23;  author: john;  state: Exp;
11092 New screen techniques.
11093 ----------------------------
11094 revision 2.0
11095 date: 1995/02/27 11:28:53;  author: john;  state: Exp;
11096 New version 2.0, which has no anonymous unions, builds with
11097 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
11098 ----------------------------
11099 revision 1.310
11100 date: 1995/02/14 10:48:09;  author: mike;  state: Exp;
11101 zero bonus if you are a cheater.
11102 ----------------------------
11103 revision 1.309
11104 date: 1995/02/11 19:17:08;  author: rob;  state: Exp;
11105 Fixed bug in laser fire rate after demo playback.
11106 ----------------------------
11107 revision 1.308
11108 date: 1995/02/11 14:34:08;  author: rob;  state: Exp;
11109 Added include of netmisc.c
11110 ----------------------------
11111 revision 1.307
11112 date: 1995/02/11 14:29:04;  author: rob;  state: Exp;
11113 Fixes for invul. controlcen.
11114 ----------------------------
11115 revision 1.306
11116 date: 1995/02/11 13:47:00;  author: mike;  state: Exp;
11117 fix cheats.
11118 ----------------------------
11119 revision 1.305
11120 date: 1995/02/11 13:10:52;  author: rob;  state: Exp;
11121 Fixed end of anarchy mission problems.
11122 ----------------------------
11123 revision 1.304
11124 date: 1995/02/11 12:46:12;  author: mike;  state: Exp;
11125 initialize Robot_firing_enabled, part of AHIMSA cheat.
11126 ----------------------------
11127 revision 1.303
11128 date: 1995/02/11 12:42:03;  author: john;  state: Exp;
11129 Added new song method, with FM bank switching..
11130 ----------------------------
11131 revision 1.302
11132 date: 1995/02/10 17:39:29;  author: matt;  state: Exp;
11133 Changed secret exit message to be centered
11134 ----------------------------
11135 revision 1.301
11136 date: 1995/02/10 16:17:33;  author: mike;  state: Exp;
11137 init Last_level_path_shown.
11138 ----------------------------
11139 revision 1.300
11140 date: 1995/02/09 22:18:22;  author: john;  state: Exp;
11141 Took out between level saves.
11142 ----------------------------
11143 revision 1.299
11144 date: 1995/02/09 12:11:42;  author: rob;  state: Exp;
11145 Get rid of high scores thing for multiplayer games.
11146 ----------------------------
11147 revision 1.298
11148 date: 1995/02/08 20:34:24;  author: rob;  state: Exp;
11149 Took briefing screens back OUT of coop games (per Interplay request)
11150 ----------------------------
11151 revision 1.297
11152 date: 1995/02/08 19:20:09;  author: rob;  state: Exp;
11153 Moved checksum calc.
11154 ----------------------------
11155 revision 1.296
11156 date: 1995/02/05 14:39:24;  author: rob;  state: Exp;
11157 Changed object mapping to be more efficient.
11158 ----------------------------
11159 revision 1.295
11160 date: 1995/02/02 19:05:38;  author: john;  state: Exp;
11161 Made end level menu for 27 not overwrite descent title..
11162 ----------------------------
11163 revision 1.294
11164 date: 1995/02/02 16:36:42;  author: adam;  state: Exp;
11165 *** empty log message ***
11166 ----------------------------
11167 revision 1.293
11168 date: 1995/02/02 15:58:02;  author: john;  state: Exp;
11169 Added turbo mode cheat.
11170 ----------------------------
11171 revision 1.292
11172 date: 1995/02/02 15:29:34;  author: matt;  state: Exp;
11173 Changed & localized secret level text
11174 ----------------------------
11175 revision 1.291
11176 date: 1995/02/02 10:50:03;  author: adam;  state: Exp;
11177 messed with secret level message
11178 ----------------------------
11179 revision 1.290
11180 date: 1995/02/02 01:20:28;  author: adam;  state: Exp;
11181 changed endgame song temporarily.
11182 ----------------------------
11183 revision 1.289
11184 date: 1995/02/01 23:19:43;  author: rob;  state: Exp;
11185 Fixed up endlevel stuff for multiplayer.
11186 Put in palette fades around areas that didn't have them before.
11187 ----------------------------
11188 revision 1.288
11189 date: 1995/02/01 17:12:34;  author: mike;  state: Exp;
11190 Make score come after endgame screens.
11191 ----------------------------
11192 revision 1.287
11193 date: 1995/01/30 18:34:30;  author: rob;  state: Exp;
11194 Put briefing screens back into coop games.
11195 ----------------------------
11196 revision 1.286
11197 date: 1995/01/27 13:07:59;  author: rob;  state: Exp;
11198 Removed erroneous warning message.
11199 ----------------------------
11200 revision 1.285
11201 date: 1995/01/27 11:47:43;  author: rob;  state: Exp;
11202 Removed new secret level menu from multiplayer games.
11203 ----------------------------
11204 revision 1.284
11205 date: 1995/01/26 22:11:11;  author: mike;  state: Exp;
11206 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
11207 ----------------------------
11208 revision 1.283
11209 date: 1995/01/26 16:55:13;  author: rob;  state: Exp;
11210 Removed ship bonus from cooperative endgame.
11211 ----------------------------
11212 revision 1.282
11213 date: 1995/01/26 16:45:24;  author: mike;  state: Exp;
11214 Add autofire fusion cannon stuff.
11215 ----------------------------
11216 revision 1.281
11217 date: 1995/01/26 14:44:44;  author: rob;  state: Exp;
11218 Removed unnecessary #ifdefs around mprintfs.
11219 Changed NumNetPlayerPositions to be independant of MaxNumNetPlayers to
11220 accomodate 4-player robo-archy games with 8 start positions.
11221 ----------------------------
11222 revision 1.280
11223 date: 1995/01/26 12:19:01;  author: rob;  state: Exp;
11224 Changed network_do_frame call.
11225 ----------------------------
11226 revision 1.279
11227 date: 1995/01/26 00:35:03;  author: matt;  state: Exp;
11228 Changed numbering convention for HMP files for levels
11229 ----------------------------
11230 revision 1.278
11231 date: 1995/01/25 16:07:59;  author: matt;  state: Exp;
11232 Added message (prototype) when going to secret level
11233 ----------------------------
11234 revision 1.277
11235 date: 1995/01/22 18:57:23;  author: matt;  state: Exp;
11236 Made player highest level work with missions
11237 ----------------------------
11238 revision 1.276
11239 date: 1995/01/21 23:13:08;  author: matt;  state: Exp;
11240 Made high scores with (not work, really) with loaded missions
11241 Don't give player high score when quit game
11242 ----------------------------
11243 revision 1.275
11244 date: 1995/01/21 17:17:39;  author: john;  state: Exp;
11245 *** empty log message ***
11246 ----------------------------
11247 revision 1.274
11248 date: 1995/01/21 17:15:38;  author: john;  state: Exp;
11249 Added include for state.h
11250 ----------------------------
11251 revision 1.273
11252 date: 1995/01/21 16:21:14;  author: matt;  state: Exp;
11253 Fixed bugs in secret level sequencing
11254 ----------------------------
11255 revision 1.272
11256 date: 1995/01/20 22:47:29;  author: matt;  state: Exp;
11257 Mission system implemented, though imcompletely
11258 ----------------------------
11259 revision 1.271
11260 date: 1995/01/19 17:00:48;  author: john;  state: Exp;
11261 Made save game work between levels.
11262 ----------------------------
11263 revision 1.270
11264 date: 1995/01/17 17:49:10;  author: rob;  state: Exp;
11265 Added key syncing for coop.
11266 ----------------------------
11267 revision 1.269
11268 date: 1995/01/17 14:27:37;  author: john;  state: Exp;
11269 y
11270 ----------------------------
11271 revision 1.268
11272 date: 1995/01/17 13:36:33;  author: john;  state: Exp;
11273 Moved pig loading into StartNewLevelSub.
11274 ----------------------------
11275 revision 1.267
11276 date: 1995/01/16 16:53:55;  author: john;  state: Exp;
11277 Added code to save cheat state during save game.
11278 ----------------------------
11279 revision 1.266
11280 date: 1995/01/15 19:42:10;  author: matt;  state: Exp;
11281 Ripped out hostage faces for registered version
11282 ----------------------------
11283 revision 1.265
11284 date: 1995/01/15 16:55:06;  author: john;  state: Exp;
11285 Improved mine texture parsing.
11286 ----------------------------
11287 revision 1.264
11288 date: 1995/01/15 11:56:24;  author: john;  state: Exp;
11289 Working version of paging.
11290 ----------------------------
11291 revision 1.263
11292 date: 1995/01/14 19:16:40;  author: john;  state: Exp;
11293 First version of new bitmap paging code.
11294 ----------------------------
11295 revision 1.262
11296 date: 1995/01/13 17:38:58;  author: yuan;  state: Exp;
11297 Removed Int3() for number players check.
11298 ----------------------------
11299 revision 1.261
11300 date: 1995/01/12 12:09:52;  author: yuan;  state: Exp;
11301 Added coop object capability.
11302 ----------------------------
11303 revision 1.260
11304 date: 1995/01/05 17:16:08;  author: yuan;  state: Exp;
11305 Removed Int3s.
11306 ----------------------------
11307 revision 1.259
11308 date: 1995/01/05 11:34:29;  author: john;  state: Exp;
11309 Took out endlevel save stuff for registered.
11310 ----------------------------
11311 revision 1.258
11312 date: 1995/01/04 19:00:16;  author: rob;  state: Exp;
11313 Added some debugging for two bugs.
11314 ----------------------------
11315 revision 1.257
11316 date: 1995/01/04 13:18:18;  author: john;  state: Exp;
11317 Added cool 6 game save.
11318 ----------------------------
11319 revision 1.256
11320 date: 1995/01/04 08:46:18;  author: rob;  state: Exp;
11321 JOHN CHECKED IN FOR ROB !!!
11322 ----------------------------
11323 revision 1.255
11324 date: 1995/01/02 20:07:35;  author: rob;  state: Exp;
11325 Added score syncing.
11326 Get rid of endlevel score for coop games (put it back in elsewhere)
11327 ----------------------------
11328 revision 1.254
11329 date: 1995/01/02 16:17:43;  author: mike;  state: Exp;
11330 init super boss.
11331 ----------------------------
11332 revision 1.253
11333 date: 1994/12/21 21:08:47;  author: rob;  state: Exp;
11334 fixed a bug in coop player ship positions.
11335 ----------------------------
11336 revision 1.252
11337 date: 1994/12/21 12:57:08;  author: rob;  state: Exp;
11338 Handle additional player ships in mines.
11339 =============================================================================
11340 RCS file: /Smoke/miner/source/main/gameseq.h,v
11341 Working file: main/gameseq.h
11342 head: 1.4
11343 description: Prototypes for functions for game sequencing.
11344 ----------------------------
11345 revision 1.4
11346 date: 1995/10/31 10:22:55;  author: allender;  state: Exp;
11347 shareware stuff
11348 ----------------------------
11349 revision 1.3
11350 date: 1995/09/14 14:13:14;  author: allender;  state: Exp;
11351 initplayerobject have void return
11352 ----------------------------
11353 revision 1.2
11354 date: 1995/08/24 15:36:17;  author: allender;  state: Exp;
11355 fixed prototypes warnings
11356 ----------------------------
11357 revision 1.1
11358 date: 1995/05/16 15:57:26;  author: allender;  state: Exp;
11359 Initial revision
11360 ----------------------------
11361 revision 2.0
11362 date: 1995/02/27 11:32:03;  author: john;  state: Exp;
11363 New version 2.0, which has no anonymous unions, builds with
11364 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
11365 ----------------------------
11366 revision 1.41
11367 date: 1995/02/07 10:51:54;  author: rob;  state: Exp;
11368 fix typo.
11369 ----------------------------
11370 revision 1.40
11371 date: 1995/02/06 20:10:16;  author: rob;  state: Exp;
11372 Extern'ed DoEndLevelScoreGlitz.
11373 ----------------------------
11374 revision 1.39
11375 date: 1995/02/01 16:34:13;  author: john;  state: Exp;
11376 Linted.
11377 ----------------------------
11378 revision 1.38
11379 date: 1995/01/27 11:15:03;  author: rob;  state: Exp;
11380 Added extern for player position vars.
11381 ----------------------------
11382 revision 1.37
11383 date: 1995/01/20 22:47:38;  author: matt;  state: Exp;
11384 Mission system implemented, though imcompletely
11385 ----------------------------
11386 revision 1.36
11387 date: 1995/01/17 13:36:08;  author: john;  state: Exp;
11388 Moved pig loading into StartNewLevelSub.
11389 ----------------------------
11390 revision 1.35
11391 date: 1995/01/04 12:21:28;  author: john;  state: Exp;
11392 *** empty log message ***
11393 ----------------------------
11394 revision 1.34
11395 date: 1995/01/04 12:20:47;  author: john;  state: Exp;
11396 Declearations to work better with game state save.
11397 ----------------------------
11398 revision 1.33
11399 date: 1994/12/08 09:46:35;  author: matt;  state: Exp;
11400 Made level name len a multiple of 4 for alignment
11401 ----------------------------
11402 revision 1.32
11403 date: 1994/11/29 16:33:29;  author: rob;  state: Exp;
11404 Added new defines for last_secret_level based on shareware or not shareware.
11405 ----------------------------
11406 revision 1.31
11407 date: 1994/11/26 15:30:20;  author: matt;  state: Exp;
11408 Allow escape out of change pilot menu
11409 ----------------------------
11410 revision 1.30
11411 date: 1994/11/21 17:29:38;  author: matt;  state: Exp;
11412 Cleaned up sequencing & game saving for secret levels
11413 ----------------------------
11414 revision 1.29
11415 date: 1994/11/21 15:55:03;  author: matt;  state: Exp;
11416 Corrected LAST_LEVEL
11417 ----------------------------
11418 revision 1.28
11419 date: 1994/11/20 22:12:43;  author: mike;  state: Exp;
11420 set LAST_LEVEL based on SHAREWARE.
11421 ----------------------------
11422 revision 1.27
11423 date: 1994/11/09 10:55:51;  author: matt;  state: Exp;
11424 Cleaned up initialization for editor -> game transitions
11425 ----------------------------
11426 revision 1.26
11427 date: 1994/11/08 17:50:48;  author: rob;  state: Exp;
11428 ADded prototype for StartNewLEvel.
11429 ----------------------------
11430 revision 1.25
11431 date: 1994/11/07 17:50:57;  author: rob;  state: Exp;
11432 Added extern prototype for init_player_stats_level called for
11433 network games.
11434 ----------------------------
11435 revision 1.24
11436 date: 1994/10/25 15:40:03;  author: yuan;  state: Exp;
11437 *** empty log message ***
11438 ----------------------------
11439 revision 1.23
11440 date: 1994/10/22 00:08:52;  author: matt;  state: Exp;
11441 Fixed up problems with bonus & game sequencing
11442 Player doesn't get credit for hostages unless he gets them out alive
11443 ----------------------------
11444 revision 1.22
11445 date: 1994/10/18 18:57:08;  author: matt;  state: Exp;
11446 Added main menu option to enter new player name
11447 ----------------------------
11448 revision 1.21
11449 date: 1994/10/07 23:37:32;  author: matt;  state: Exp;
11450 Added prototype
11451 ----------------------------
11452 revision 1.20
11453 date: 1994/10/07 16:02:53;  author: matt;  state: Exp;
11454 Loading saved game no longer clears players weapons & other stats
11455 ----------------------------
11456 revision 1.19
11457 date: 1994/10/06 14:12:46;  author: matt;  state: Exp;
11458 Added flash effect when player appears
11459 ----------------------------
11460 revision 1.18
11461 date: 1994/10/03 13:34:44;  author: matt;  state: Exp;
11462 Added new (and hopefully better) game sequencing functions
11463 ----------------------------
11464 revision 1.17
11465 date: 1994/09/30 15:19:53;  author: matt;  state: Exp;
11466 Added new game sequencing functions, but left them disabled for now.
11467 ----------------------------
11468 revision 1.16
11469 date: 1994/09/28 17:24:34;  author: matt;  state: Exp;
11470 Added first draft of game save/load system
11471 ----------------------------
11472 revision 1.15
11473 date: 1994/09/27 12:29:42;  author: matt;  state: Exp;
11474 Changed level naming
11475 ----------------------------
11476 revision 1.14
11477 date: 1994/09/02 11:53:55;  author: mike;  state: Exp;
11478 Rename init_player_stats to init_player_stats_game.
11479 ----------------------------
11480 revision 1.13
11481 date: 1994/08/31 20:57:34;  author: matt;  state: Exp;
11482 Cleaned up endlevel/death code
11483 ----------------------------
11484 revision 1.12
11485 date: 1994/08/23 18:45:06;  author: yuan;  state: Exp;
11486 Added level 10 capability.. (LEDGES)
11487 ----------------------------
11488 revision 1.11
11489 date: 1994/08/18 10:47:38;  author: john;  state: Exp;
11490 Cleaned up game sequencing and player death stuff
11491 in preparation for making the player explode into
11492 pieces when dead.
11493 ----------------------------
11494 revision 1.10
11495 date: 1994/08/15 15:24:45;  author: john;  state: Exp;
11496 Made players know who killed them; Disabled cheat menu
11497 during net player; fixed bug with not being able to turn
11498 of invulnerability; Made going into edit/starting new leve
11499 l drop you out of a net game; made death dialog box.
11500 ----------------------------
11501 revision 1.9
11502 date: 1994/08/13 12:20:56;  author: john;  state: Exp;
11503 Made the networking uise the Players array.
11504 ----------------------------
11505 revision 1.8
11506 date: 1994/07/22 12:36:24;  author: matt;  state: Exp;
11507 Cleaned up editor/game interactions some more.
11508 ----------------------------
11509 revision 1.7
11510 date: 1994/07/19 20:15:33;  author: matt;  state: Exp;
11511 Name for each level now saved in the .SAV file & stored in Current_level_name
11512 ----------------------------
11513 revision 1.6
11514 date: 1994/07/02 13:49:33;  author: matt;  state: Exp;
11515 Cleaned up includes
11516 ----------------------------
11517 revision 1.5
11518 date: 1994/07/02 13:09:52;  author: matt;  state: Exp;
11519 Moved player stats struct from gameseq.h to player.h
11520 ----------------------------
11521 revision 1.4
11522 date: 1994/07/01 16:35:35;  author: yuan;  state: Exp;
11523 Added key system
11524 ----------------------------
11525 revision 1.3
11526 date: 1994/06/26 14:07:35;  author: matt;  state: Exp;
11527 Added prototypes
11528 ----------------------------
11529 revision 1.2
11530 date: 1994/06/24 17:03:56;  author: john;  state: Exp;
11531 Added VFX support. Also took all game sequencing stuff like
11532 EndGame out and put it into gameseq.c
11533 ----------------------------
11534 revision 1.1
11535 date: 1994/06/24 14:13:53;  author: john;  state: Exp;
11536 Initial revision
11537 =============================================================================
11538 RCS file: /Smoke/miner/source/main/gauges.c,v
11539 Working file: main/gauges.c
11540 head: 1.15
11541 description: Inferno gauge drivers
11542 ----------------------------
11543 revision 1.15
11544 date: 1995/10/31 10:22:37;  author: allender;  state: Exp;
11545 shareware stuff
11546 ----------------------------
11547 revision 1.14
11548 date: 1995/10/26 14:11:05;  author: allender;  state: Exp;
11549 do copy of weapon boxes in cockpit correctly
11550 ----------------------------
11551 revision 1.13
11552 date: 1995/10/21 22:54:56;  author: allender;  state: Exp;
11553 fixed up player names on hud
11554 ----------------------------
11555 revision 1.12
11556 date: 1995/10/12 17:39:27;  author: allender;  state: Exp;
11557 fixed status bar lives display
11558 ----------------------------
11559 revision 1.11
11560 date: 1995/09/22 15:21:46;  author: allender;  state: Exp;
11561 fixed hud problems (reticle and kill lists) for
11562 non pixel doubled mode
11563 ----------------------------
11564 revision 1.10
11565 date: 1995/09/13 11:38:47;  author: allender;  state: Exp;
11566 show KB left in heap instead of piggy cache
11567 ----------------------------
11568 revision 1.9
11569 date: 1995/09/04 15:52:28;  author: allender;  state: Exp;
11570 fix vulcan ammo count to update without overwritting itself
11571 ----------------------------
11572 revision 1.8
11573 date: 1995/08/31 14:11:20;  author: allender;  state: Exp;
11574 worked on hud kill list for non pixel doubled mode
11575 ----------------------------
11576 revision 1.7
11577 date: 1995/08/24 16:05:05;  author: allender;  state: Exp;
11578 more gauge placement -- still not done!
11579 ----------------------------
11580 revision 1.6
11581 date: 1995/08/18 15:44:56;  author: allender;  state: Exp;
11582 put in PC gauges for keys, lives, and reticle when pixel doubling
11583 ----------------------------
11584 revision 1.5
11585 date: 1995/08/18 10:24:47;  author: allender;  state: Exp;
11586 added proper support for cockpit mode -- still needs
11587 ----------------------------
11588 revision 1.4
11589 date: 1995/07/26 16:56:34;  author: allender;  state: Exp;
11590 more gauge stuff for status bar.  still problem
11591 with ship
11592 ----------------------------
11593 revision 1.3
11594 date: 1995/07/17 08:55:57;  author: allender;  state: Exp;
11595 fix up for large status bar.  Still needs some work though
11596 ----------------------------
11597 revision 1.2
11598 date: 1995/06/20 09:54:29;  author: allender;  state: Exp;
11599 stopgap measure to get status bar "working" until real mac
11600 status bar gets added
11601 ----------------------------
11602 revision 1.1
11603 date: 1995/05/16 15:26:05;  author: allender;  state: Exp;
11604 Initial revision
11605 ----------------------------
11606 revision 2.6
11607 date: 1995/03/21 08:39:25;  author: john;  state: Exp;
11608 Ifdef'd out the NETWORK code.
11609 ----------------------------
11610 revision 2.5
11611 date: 1995/03/14 12:31:25;  author: john;  state: Exp;
11612 Prevent negative shields from printing.
11613 ----------------------------
11614 revision 2.4
11615 date: 1995/03/10 12:57:58;  author: allender;  state: Exp;
11616 move rear view text up four pixels up when playing back demo
11617 ----------------------------
11618 revision 2.3
11619 date: 1995/03/09 11:47:51;  author: john;  state: Exp;
11620 Added HUD for VR helmets.
11621 ----------------------------
11622 revision 2.2
11623 date: 1995/03/06 15:23:26;  author: john;  state: Exp;
11624 New screen techniques.
11625 ----------------------------
11626 revision 2.1
11627 date: 1995/02/27 13:13:45;  author: john;  state: Exp;
11628 Removed floating point.
11629 ----------------------------
11630 revision 2.0
11631 date: 1995/02/27 11:29:06;  author: john;  state: Exp;
11632 New version 2.0, which has no anonymous unions, builds with
11633 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
11634 ----------------------------
11635 revision 1.203
11636 date: 1995/02/11 01:56:45;  author: mike;  state: Exp;
11637 move up weapons text on fullscreen hud, missiles was offscreen.
11638 ----------------------------
11639 revision 1.202
11640 date: 1995/02/09 13:23:34;  author: rob;  state: Exp;
11641 Added reticle names in demo playback.
11642 ----------------------------
11643 revision 1.201
11644 date: 1995/02/08 19:20:46;  author: rob;  state: Exp;
11645 Show cloaked teammates on H
11646 UD.  Get rid of show ID's in anarchy option.
11647 ----------------------------
11648 revision 1.200
11649 date: 1995/02/07 21:09:00;  author: mike;  state: Exp;
11650 add flashing to invulnerability and cloak on fullscreen.
11651 ----------------------------
11652 revision 1.199
11653 date: 1995/02/02 21:55:57;  author: matt;  state: Exp;
11654 Added new colored key icons for fullscreen
11655 ----------------------------
11656 revision 1.198
11657 date: 1995/01/30 17:17:07;  author: rob;  state: Exp;
11658 Fixed teammate names on hud.
11659 ----------------------------
11660 revision 1.197
11661 date: 1995/01/28 17:40:49;  author: mike;  state: Exp;
11662 fix gauge fontcolor.
11663 ----------------------------
11664 revision 1.196
11665 date: 1995/01/27 17:03:14;  author: mike;  state: Exp;
11666 fix placement of weapon info in multiplayer fullscreen, as per AP request.
11667 ----------------------------
11668 revision 1.195
11669 date: 1995/01/27 11:51:23;  author: rob;  state: Exp;
11670 Put deaths tally into cooperative mode
11671 ----------------------------
11672 revision 1.194
11673 date: 1995/01/27 11:43:24;  author: adam;  state: Exp;
11674 fiddled with key display
11675 ----------------------------
11676 revision 1.193
11677 date: 1995/01/25 23:38:35;  author: mike;  state: Exp;
11678 fix keys on fullscreen.
11679 ----------------------------
11680 revision 1.192
11681 date: 1995/01/24 22:03:28;  author: mike;  state: Exp;
11682 Lotsa hud stuff, put a lot of messages up.
11683 ----------------------------
11684 revision 1.191
11685 date: 1995/01/23 16:47:21;  author: rob;  state: Exp;
11686 Fixed problem with playing extra life noise in coop.
11687 ----------------------------
11688 revision 1.190
11689 date: 1995/01/22 16:00:46;  author: mike;  state: Exp;
11690 remove unneeded string.
11691 ----------------------------
11692 revision 1.189
11693 date: 1995/01/22 15:58:22;  author: mike;  state: Exp;
11694 localization
11695 ----------------------------
11696 revision 1.188
11697 date: 1995/01/20 17:19:45;  author: rob;  state: Exp;
11698 Fixing colors of hud kill list players.
11699 ----------------------------
11700 revision 1.187
11701 date: 1995/01/20 09:19:18;  author: allender;  state: Exp;
11702 record player flags when in CM_FULL_SCREEN
11703 ----------------------------
11704 revision 1.186
11705 date: 1995/01/19 16:29:09;  author: allender;  state: Exp;
11706 made demo recording of weapon change be in this file for shareware only
11707 ----------------------------
11708 revision 1.185
11709 date: 1995/01/19 15:00:33;  author: allender;  state: Exp;
11710 code to record shield, energy, and ammo in fullscreen
11711 ----------------------------
11712 revision 1.184
11713 date: 1995/01/19 13:43:13;  author: matt;  state: Exp;
11714 Fixed "cheater" message on HUD
11715 ----------------------------
11716 revision 1.183
11717 date: 1995/01/18 16:11:58;  author: mike;  state: Exp;
11718 Don't show added scores of 0.
11719 ----------------------------
11720 revision 1.182
11721 date: 1995/01/17 17:42:39;  author: allender;  state: Exp;
11722 do ammo counts in demo recording
11723 ----------------------------
11724 revision 1.181
11725 date: 1995/01/16 17:26:25;  author: rob;  state: Exp;
11726 Fixed problem with coloration of team kill list.
11727 ----------------------------
11728 revision 1.180
11729 date: 1995/01/16 17:22:39;  author: john;  state: Exp;
11730 Made so that KB and framerate don't collide.
11731 ----------------------------
11732 revision 1.179
11733 date: 1995/01/16 14:58:31;  author: matt;  state: Exp;
11734 Changed score_added display to print "Cheater!" when cheats enabled
11735 ----------------------------
11736 revision 1.178
11737 date: 1995/01/15 19:42:07;  author: matt;  state: Exp;
11738 Ripped out hostage faces for registered version
11739 ----------------------------
11740 revision 1.177
11741 date: 1995/01/15 19:25:07;  author: mike;  state: Exp;
11742 show vulcan ammo and secondary ammo in fullscreen view.
11743 ----------------------------
11744 revision 1.176
11745 date: 1995/01/15 13:16:12;  author: john;  state: Exp;
11746 Made so that paging always happens, lowmem just loads less.
11747 Also, make KB load print to hud.
11748 ----------------------------
11749 revision 1.175
11750 date: 1995/01/14 19:17:32;  author: john;  state: Exp;
11751 First version of piggy paging.
11752 ----------------------------
11753 revision 1.174
11754 date: 1995/01/05 21:25:23;  author: rob;  state: Exp;
11755 Re-did some changes lost due to RCS weirdness.
11756 ----------------------------
11757 revision 1.173
11758 date: 1995/01/05 12:22:34;  author: rob;  state: Exp;
11759 Don't show player names for cloaked players.
11760 ----------------------------
11761 revision 1.172
11762 date: 1995/01/04 17:14:50;  author: allender;  state: Exp;
11763 make init_gauges work properly on demo playback
11764 ----------------------------
11765 revision 1.171
11766 date: 1995/01/04 15:04:42;  author: allender;  state: Exp;
11767 new demo calls for registered version
11768 ----------------------------
11769 revision 1.167
11770 date: 1995/01/03 13:03:57;  author: allender;  state: Exp;
11771 pass score points instead of total points.   Added ifdef for
11772 multi_send_score
11773 ----------------------------
11774 revision 1.166
11775 date: 1995/01/03 11:45:02;  author: allender;  state: Exp;
11776 add hook to record player score
11777 ----------------------------
11778 revision 1.165
11779 date: 1995/01/03 11:25:19;  author: allender;  state: Exp;
11780 remove newdemo stuff around score display
11781 ----------------------------
11782 revision 1.163
11783 date: 1995/01/02 21:03:53;  author: rob;  state: Exp;
11784 Fixing up the hud-score-list for coop games.
11785 ----------------------------
11786 revision 1.162
11787 date: 1994/12/31 20:54:40;  author: rob;  state: Exp;
11788 Added coop mode HUD score list.
11789 Added more generic system for player names on HUD.
11790 ----------------------------
11791 revision 1.161
11792 date: 1994/12/30 20:13:01;  author: rob;  state: Exp;
11793 Ifdef reticle names on shareware.
11794 Added robot reticle naming.
11795 ----------------------------
11796 revision 1.160
11797 date: 1994/12/29 17:53:51;  author: mike;  state: Exp;
11798 move up energy/shield in fullscreen to get out of way of kill list.
11799 ----------------------------
11800 revision 1.159
11801 date: 1994/12/29 16:44:05;  author: mike;  state: Exp;
11802 add energy and shield showing.
11803 ----------------------------
11804 revision 1.158
11805 date: 1994/12/28 16:34:29;  author: mike;  state: Exp;
11806 make warning beep go away on Player_is_dead.
11807 ----------------------------
11808 revision 1.157
11809 date: 1994/12/28 10:00:43;  author: allender;  state: Exp;
11810 change in init_gauges to for multiplayer demo playbacks
11811 ----------------------------
11812 revision 1.156
11813 date: 1994/12/27 11:06:46;  author: allender;  state: Exp;
11814 removed some previous code to for demo playback stuff
11815 ----------------------------
11816 revision 1.155
11817 date: 1994/12/23 14:23:06;  author: john;  state: Exp;
11818 Added floating reticle for VR helments.  
11819 ----------------------------
11820 revision 1.154
11821 date: 1994/12/21 12:56:41;  author: allender;  state: Exp;
11822 on multiplayer demo playback, show kills and deaths
11823 ----------------------------
11824 revision 1.153
11825 date: 1994/12/19 20:28:42;  author: rob;  state: Exp;
11826 Get rid of kill list in coop games.
11827 ----------------------------
11828 revision 1.152
11829 date: 1994/12/14 18:06:44;  author: matt;  state: Exp;
11830 Removed compile warnings
11831 ----------------------------
11832 revision 1.151
11833 date: 1994/12/14 15:21:28;  author: rob;  state: Exp;
11834 Made gauges align in status_bar net game.
11835 ----------------------------
11836 revision 1.150
11837 date: 1994/12/12 17:20:33;  author: matt;  state: Exp;
11838 Don't get bonus points when cheating
11839 ----------------------------
11840 revision 1.149
11841 date: 1994/12/12 16:47:00;  author: matt;  state: Exp;
11842 When cheating, get no score.  Change level cheat to prompt for and 
11843 jump to new level.
11844 ----------------------------
11845 revision 1.148
11846 date: 1994/12/12 12:05:45;  author: rob;  state: Exp;
11847 Grey out players who are disconnected.
11848 ----------------------------
11849 revision 1.147
11850 date: 1994/12/09 16:19:48;  author: yuan;  state: Exp;
11851 kill matrix stuff.
11852 ----------------------------
11853 revision 1.146
11854 date: 1994/12/09 16:12:34;  author: rob;  state: Exp;
11855 Fixed up the status bar kills gauges for net play.
11856 ----------------------------
11857 revision 1.145
11858 date: 1994/12/09 01:55:34;  author: rob;  state: Exp;
11859 Added kills list to HUD/status bar.
11860 Added something for Mark.
11861 ----------------------------
11862 revision 1.144
11863 date: 1994/12/08 21:03:30;  author: allender;  state: Exp;
11864 pass old player flags to record_player_flags
11865 ----------------------------
11866 revision 1.143
11867 date: 1994/12/07 22:49:33;  author: mike;  state: Exp;
11868 no homing missile warning during endlevel sequence.
11869 ----------------------------
11870 revision 1.142
11871 date: 1994/12/06 13:55:31;  author: matt;  state: Exp;
11872 Use new rounding func, f2ir()
11873 ----------------------------
11874 revision 1.141
11875 date: 1994/12/03 19:03:37;  author: matt;  state: Exp;
11876 Fixed vulcan ammo HUD message
11877 ----------------------------
11878 revision 1.140
11879 date: 1994/12/03 18:43:18;  author: matt;  state: Exp;
11880 Fixed (hopefully) claok gauge
11881 ----------------------------
11882 revision 1.139
11883 date: 1994/12/03 14:26:21;  author: yuan;  state: Exp;
11884 Fixed dumb bug
11885 ----------------------------
11886 revision 1.138
11887 date: 1994/12/03 14:17:30;  author: yuan;  state: Exp;
11888 Localization 320
11889 =============================================================================
11890 RCS file: /Smoke/miner/source/main/gauges.h,v
11891 Working file: main/gauges.h
11892 head: 1.3
11893 description: Prototypes and defines for gauges
11894 ----------------------------
11895 revision 1.3
11896 date: 1995/08/23 21:37:13;  author: allender;  state: Exp;
11897 fix mcc compiler warmings
11898 ----------------------------
11899 revision 1.2
11900 date: 1995/08/18 15:45:24;  author: allender;  state: Exp;
11901 upped max gauges
11902 ----------------------------
11903 revision 1.1
11904 date: 1995/05/16 15:57:34;  author: allender;  state: Exp;
11905 Initial revision
11906 ----------------------------
11907 revision 2.0
11908 date: 1995/02/27 11:28:45;  author: john;  state: Exp;
11909 New version 2.0, which has no anonymous unions, builds with
11910 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
11911 ----------------------------
11912 revision 1.27
11913 date: 1994/12/14 18:06:39;  author: matt;  state: Exp;
11914 Added prototype
11915 ----------------------------
11916 revision 1.26
11917 date: 1994/12/09 16:19:52;  author: yuan;  state: Exp;
11918 kill matrix stuff.
11919 ----------------------------
11920 revision 1.25
11921 date: 1994/10/25 11:07:34;  author: mike;  state: Exp;
11922 Prototype play_homing_warning.
11923 ----------------------------
11924 revision 1.24
11925 date: 1994/10/24 16:34:39;  author: mike;  state: Exp;
11926 Increase MAX_GAUGE_BMS from 56 to 80...
11927 ----------------------------
11928 revision 1.23
11929 date: 1994/10/21 20:43:47;  author: mike;  state: Exp;
11930 Prototype add_bonus_points_to_score.
11931 ----------------------------
11932 revision 1.22
11933 date: 1994/10/14 15:56:33;  author: mike;  state: Exp;
11934 Prototype update_laser_weapon_info.
11935 ----------------------------
11936 revision 1.21
11937 date: 1994/10/13 15:17:26;  author: mike;  state: Exp;
11938 Remove afterburner references.
11939 ----------------------------
11940 revision 1.20
11941 date: 1994/10/05 17:09:46;  author: matt;  state: Exp;
11942 Added functional reticle
11943 ----------------------------
11944 revision 1.19
11945 date: 1994/10/04 21:41:29;  author: matt;  state: Exp;
11946 Added cloaked player gauge effect, and different ship bitmap for each player
11947 ----------------------------
11948 revision 1.18
11949 date: 1994/09/26 13:29:40;  author: matt;  state: Exp;
11950 Added extra life each 100,000 points, and show icons on HUD for num lives
11951 ----------------------------
11952 revision 1.17
11953 date: 1994/09/20 11:56:08;  author: matt;  state: Exp;
11954 Added prototype
11955 ----------------------------
11956 revision 1.16
11957 date: 1994/09/20 00:11:03;  author: matt;  state: Exp;
11958 Finished gauges for Status Bar, including hostage video display.
11959 ----------------------------
11960 revision 1.15
11961 date: 1994/09/17 23:57:18;  author: matt;  state: Exp;
11962 Got some, but not all, off the status bar gauges working
11963 ----------------------------
11964 revision 1.14
11965 date: 1994/09/16 13:08:46;  author: mike;  state: Exp;
11966 Prototype say_afterburner_status.
11967 ----------------------------
11968 revision 1.13
11969 date: 1994/09/14 16:27:03;  author: mike;  state: Exp;
11970 Prototype player_dead_message();
11971 ----------------------------
11972 revision 1.12
11973 date: 1994/07/20 17:34:43;  author: yuan;  state: Exp;
11974 Some minor bug fixes and new key gauges...
11975 ----------------------------
11976 revision 1.11
11977 date: 1994/07/14 14:46:02;  author: yuan;  state: Exp;
11978 Added score effect.
11979 ----------------------------
11980 revision 1.10
11981 date: 1994/07/12 16:22:00;  author: yuan;  state: Exp;
11982 Increased number of maximum gauges.
11983 ----------------------------
11984 revision 1.9
11985 date: 1994/07/11 20:10:36;  author: yuan;  state: Exp;
11986 Numerical gauges.
11987 ----------------------------
11988 revision 1.8
11989 date: 1994/07/10 18:01:28;  author: yuan;  state: Exp;
11990 Added new gauges.
11991 ----------------------------
11992 revision 1.7
11993 date: 1994/06/21 15:08:22;  author: john;  state: Exp;
11994 Made demo record HUD message and cleaned up the HUD code.
11995 ----------------------------
11996 revision 1.6
11997 date: 1994/06/21 12:40:46;  author: yuan;  state: Exp;
11998 Fixing HUD message.
11999 ----------------------------
12000 revision 1.5
12001 date: 1994/06/21 12:11:56;  author: yuan;  state: Exp;
12002 Fixed up menus and added HUDisplay messages.
12003 ----------------------------
12004 revision 1.4
12005 date: 1994/04/28 21:34:24;  author: mike;  state: Exp;
12006 prototype check_erase_gauge
12007 ----------------------------
12008 revision 1.3
12009 date: 1994/04/06 14:42:46;  author: yuan;  state: Exp;
12010 Adding new powerups.
12011 ----------------------------
12012 revision 1.2
12013 date: 1993/12/05 22:48:58;  author: matt;  state: Exp;
12014 Reworked include files in an attempt to cut down on build times
12015 ----------------------------
12016 revision 1.1
12017 date: 1993/12/05 21:07:55;  author: matt;  state: Exp;
12018 Initial revision
12019 =============================================================================
12020 RCS file: /Smoke/miner/source/main/hash.c,v
12021 Working file: main/hash.c
12022 head: 1.1
12023 description: Functions to do hash table lookup.
12024 ----------------------------
12025 revision 1.1
12026 date: 1995/05/16 15:26:16;  author: allender;  state: Exp;
12027 Initial revision
12028 ----------------------------
12029 revision 2.0
12030 date: 1995/02/27 11:28:01;  author: john;  state: Exp;
12031 New version 2.0, which has no anonymous unions, builds with
12032 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12033 ----------------------------
12034 revision 1.5
12035 date: 1994/12/05 23:37:06;  author: matt;  state: Exp;
12036 Took out calls to warning() function
12037 ----------------------------
12038 revision 1.4
12039 date: 1994/05/09 20:02:33;  author: john;  state: Exp;
12040 Fixed bug w/ upper/lower case.
12041 ----------------------------
12042 revision 1.3
12043 date: 1994/05/06 15:31:51;  author: john;  state: Exp;
12044 Don't add duplicate names to the hash table.
12045 ----------------------------
12046 revision 1.2
12047 date: 1994/05/03 16:45:35;  author: john;  state: Exp;
12048 Added hash table lookup to speed up loading.
12049 ----------------------------
12050 revision 1.1
12051 date: 1994/05/03 10:36:41;  author: john;  state: Exp;
12052 Initial revision
12053 =============================================================================
12054 RCS file: /Smoke/miner/source/main/hash.h,v
12055 Working file: main/hash.h
12056 head: 1.1
12057 description: .
12058 ----------------------------
12059 revision 1.1
12060 date: 1995/05/16 15:57:42;  author: allender;  state: Exp;
12061 Initial revision
12062 ----------------------------
12063 revision 2.0
12064 date: 1995/02/27 11:26:46;  author: john;  state: Exp;
12065 New version 2.0, which has no anonymous unions, builds with
12066 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12067 ----------------------------
12068 revision 1.2
12069 date: 1994/05/03 16:45:24;  author: john;  state: Exp;
12070 Added hash table lookup to speed up loading.
12071 ----------------------------
12072 revision 1.1
12073 date: 1994/05/03 11:35:16;  author: john;  state: Exp;
12074 Initial revision
12075 =============================================================================
12076 RCS file: /Smoke/miner/source/main/hostage.c,v
12077 Working file: main/hostage.c
12078 head: 1.1
12079 description: Code to render and manipulate hostages
12080 ----------------------------
12081 revision 1.1
12082 date: 1995/05/16 15:26:24;  author: allender;  state: Exp;
12083 Initial revision
12084 ----------------------------
12085 revision 2.0
12086 date: 1995/02/27 11:28:36;  author: john;  state: Exp;
12087 New version 2.0, which has no anonymous unions, builds with
12088 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12089 ----------------------------
12090 revision 1.65
12091 date: 1995/02/22 13:45:54;  author: allender;  state: Exp;
12092 remove anonymous unions from object structure
12093 ----------------------------
12094 revision 1.64
12095 date: 1995/02/13 20:34:57;  author: john;  state: Exp;
12096 Lintized
12097 ----------------------------
12098 revision 1.63
12099 date: 1995/01/15 19:41:48;  author: matt;  state: Exp;
12100 Ripped out hostage faces for registered version
12101 ----------------------------
12102 revision 1.62
12103 date: 1995/01/14 19:16:53;  author: john;  state: Exp;
12104 First version of new bitmap paging code.
12105 ----------------------------
12106 revision 1.61
12107 date: 1994/12/19 16:35:09;  author: john;  state: Exp;
12108 Made hoastage playback end when ship dies.
12109 ----------------------------
12110 revision 1.60
12111 date: 1994/12/06 16:30:41;  author: yuan;  state: Exp;
12112 Localization
12113 ----------------------------
12114 revision 1.59
12115 date: 1994/11/30 17:32:46;  author: matt;  state: Exp;
12116 Put hostage_face_clip array back in so editor would work
12117 ----------------------------
12118 revision 1.58
12119 date: 1994/11/30 17:22:13;  author: matt;  state: Exp;
12120 Ripped out hostage faces in shareware version
12121 ----------------------------
12122 revision 1.57
12123 date: 1994/11/30 16:11:25;  author: matt;  state: Exp;
12124 Use correct constant for hostage voice
12125 ----------------------------
12126 revision 1.56
12127 date: 1994/11/27 23:15:19;  author: matt;  state: Exp;
12128 Made changes for new mprintf calling convention
12129 ----------------------------
12130 revision 1.55
12131 date: 1994/11/19 19:53:44;  author: matt;  state: Exp;
12132 Added code to full support different hostage head clip & message for
12133 each hostage.
12134 ----------------------------
12135 revision 1.54
12136 date: 1994/11/19 16:35:15;  author: matt;  state: Exp;
12137 Got rid of unused code, & made an array smaller
12138 ----------------------------
12139 revision 1.53
12140 date: 1994/11/14 12:42:03;  author: matt;  state: Exp;
12141 Increased palette flash when hostage rescued
12142 ----------------------------
12143 revision 1.52
12144 date: 1994/10/28 14:43:09;  author: john;  state: Exp;
12145 Added sound volumes to all sound calls.
12146 ----------------------------
12147 revision 1.51
12148 date: 1994/10/23 02:10:57;  author: matt;  state: Exp;
12149 Got rid of obsolete hostage_info stuff
12150 ----------------------------
12151 revision 1.50
12152 date: 1994/10/22 00:08:44;  author: matt;  state: Exp;
12153 Fixed up problems with bonus & game sequencing
12154 Player doesn't get credit for hostages unless he gets them out alive
12155 ----------------------------
12156 revision 1.49
12157 date: 1994/10/20 22:52:49;  author: matt;  state: Exp;
12158 Fixed compiler warnings
12159 ----------------------------
12160 revision 1.48
12161 date: 1994/10/20 21:25:44;  author: matt;  state: Exp;
12162 Took out silly scale down/scale up code for hostage anim
12163 ----------------------------
12164 revision 1.47
12165 date: 1994/10/20 12:47:28;  author: matt;  state: Exp;
12166 Replace old save files (MIN/SAV/HOT) with new LVL files
12167 ----------------------------
12168 revision 1.46
12169 date: 1994/10/04 15:33:33;  author: john;  state: Exp;
12170 Took out the old PLAY_SOUND??? code and replaced it
12171 with direct calls into digi_link_??? so that all sounds
12172 can be made 3d.
12173 ----------------------------
12174 revision 1.45
12175 date: 1994/09/28 23:10:46;  author: matt;  state: Exp;
12176 Made hostage rescue do palette flash
12177 ----------------------------
12178 revision 1.44
12179 date: 1994/09/20 00:11:00;  author: matt;  state: Exp;
12180 Finished gauges for Status Bar, including hostage video display.
12181 ----------------------------
12182 revision 1.43
12183 date: 1994/09/15 21:24:19;  author: matt;  state: Exp;
12184 Changed system to keep track of whether & what cockpit is up
12185 Made hostage clip not queue when no cockpit
12186 ----------------------------
12187 revision 1.42
12188 date: 1994/08/25 13:45:19;  author: matt;  state: Exp;
12189 Made hostage vclips queue
12190 ----------------------------
12191 revision 1.41
12192 date: 1994/08/14 23:15:06;  author: matt;  state: Exp;
12193 Added animating bitmap hostages, and cleaned up vclips a bit
12194 ----------------------------
12195 revision 1.40
12196 date: 1994/08/12 22:41:11;  author: john;  state: Exp;
12197 Took away Player_stats; add Players array.
12198 ----------------------------
12199 revision 1.39
12200 date: 1994/07/14 22:06:35;  author: john;  state: Exp;
12201 Fix radar/hostage vclip conflict.
12202 ----------------------------
12203 revision 1.38
12204 date: 1994/07/12 18:40:21;  author: yuan;  state: Exp;
12205 Tweaked location of radar and hostage screen... 
12206 Still needs work.
12207 ----------------------------
12208 revision 1.37
12209 date: 1994/07/07 09:52:17;  author: john;  state: Exp;
12210 Moved hostage screen.
12211 ----------------------------
12212 revision 1.36
12213 date: 1994/07/06 15:23:52;  author: john;  state: Exp;
12214 Revamped hostage sound.
12215 ----------------------------
12216 revision 1.35
12217 date: 1994/07/06 15:14:54;  author: john;  state: Exp;
12218 Added hostage sound effect picking.
12219 ----------------------------
12220 revision 1.34
12221 date: 1994/07/06 13:25:33;  author: john;  state: Exp;
12222 Added compress hostages functions.
12223 ----------------------------
12224 revision 1.33
12225 date: 1994/07/06 12:52:59;  author: john;  state: Exp;
12226 Fixed compiler warnings.
12227 ----------------------------
12228 revision 1.32
12229 date: 1994/07/06 12:43:50;  author: john;  state: Exp;
12230 Made generic messages for hostages.
12231 ----------------------------
12232 revision 1.31
12233 date: 1994/07/06 10:55:07;  author: john;  state: Exp;
12234 New structures for hostages.
12235 ----------------------------
12236 revision 1.30
12237 date: 1994/07/05 12:49:09;  author: john;  state: Exp;
12238 Put functionality of New Hostage spec into code.
12239 ----------------------------
12240 revision 1.29
12241 date: 1994/07/02 13:08:47;  author: matt;  state: Exp;
12242 Increment stats when hostage rescued
12243 ----------------------------
12244 revision 1.28
12245 date: 1994/07/01 18:07:46;  author: john;  state: Exp;
12246 y
12247 ----------------------------
12248 revision 1.27
12249 date: 1994/07/01 18:07:03;  author: john;  state: Exp;
12250 *** empty log message ***
12251 ----------------------------
12252 revision 1.26
12253 date: 1994/07/01 17:55:26;  author: john;  state: Exp;
12254 First version of not-working hostage system.
12255 ----------------------------
12256 revision 1.25
12257 date: 1994/06/27 15:53:21;  author: john;  state: Exp;
12258 #define'd out the newdemo stuff
12259 ----------------------------
12260 revision 1.24
12261 date: 1994/06/20 16:08:52;  author: john;  state: Exp;
12262 Added volume control; made doors 3d sounds.
12263 ----------------------------
12264 revision 1.23
12265 date: 1994/06/16 10:15:32;  author: yuan;  state: Exp;
12266 Fixed location of face.
12267 ----------------------------
12268 revision 1.22
12269 date: 1994/06/15 15:05:33;  author: john;  state: Exp;
12270 *** empty log message ***
12271 ----------------------------
12272 revision 1.21
12273 date: 1994/06/14 21:15:20;  author: matt;  state: Exp;
12274 Made rod objects draw lighted or not depending on a parameter, so the
12275 materialization effect no longer darkens.
12276 ----------------------------
12277 revision 1.20
12278 date: 1994/06/08 18:16:26;  author: john;  state: Exp;
12279 Bunch of new stuff that basically takes constants out of the code
12280 and puts them into bitmaps.tbl.
12281 ----------------------------
12282 revision 1.19
12283 date: 1994/06/02 19:30:08;  author: matt;  state: Exp;
12284 Moved texture-mapped rod drawing stuff (used for hostage & now for the
12285 materialization center) to object.c
12286 =============================================================================
12287 RCS file: /Smoke/miner/source/main/hostage.h,v
12288 Working file: main/hostage.h
12289 head: 1.1
12290 description: Header for hostage.c
12291 ----------------------------
12292 revision 1.1
12293 date: 1995/05/16 15:57:57;  author: allender;  state: Exp;
12294 Initial revision
12295 ----------------------------
12296 revision 2.0
12297 date: 1995/02/27 11:27:50;  author: john;  state: Exp;
12298 New version 2.0, which has no anonymous unions, builds with
12299 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12300 ----------------------------
12301 revision 1.23
12302 date: 1995/01/15 19:42:06;  author: matt;  state: Exp;
12303 Ripped out hostage faces for registered version
12304 ----------------------------
12305 revision 1.22
12306 date: 1994/12/19 16:35:07;  author: john;  state: Exp;
12307 Made hoastage playback end when ship dies.
12308 ----------------------------
12309 revision 1.21
12310 date: 1994/11/30 17:22:12;  author: matt;  state: Exp;
12311 Ripped out hostage faces in shareware version
12312 ----------------------------
12313 revision 1.20
12314 date: 1994/11/19 19:53:43;  author: matt;  state: Exp;
12315 Added code to full support different hostage head clip & message for
12316 each hostage.
12317 ----------------------------
12318 revision 1.19
12319 date: 1994/11/19 16:35:28;  author: matt;  state: Exp;
12320 Got rid of unused code, & made an array smaller
12321 ----------------------------
12322 revision 1.18
12323 date: 1994/10/23 02:10:57;  author: matt;  state: Exp;
12324 Got rid of obsolete hostage_info stuff
12325 ----------------------------
12326 revision 1.17
12327 date: 1994/09/20 00:10:37;  author: matt;  state: Exp;
12328 Finished gauges for Status Bar, including hostage video display.
12329 ----------------------------
12330 revision 1.16
12331 date: 1994/09/01 10:41:24;  author: matt;  state: Exp;
12332 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
12333 correctly if width & height of bitmap are different.
12334 ----------------------------
12335 revision 1.15
12336 date: 1994/08/14 23:15:14;  author: matt;  state: Exp;
12337 Added animating bitmap hostages, and cleaned up vclips a bit
12338 ----------------------------
12339 revision 1.14
12340 date: 1994/07/14 22:06:51;  author: john;  state: Exp;
12341 Fix radar/hostage vclip conflict.
12342 ----------------------------
12343 revision 1.13
12344 date: 1994/07/14 22:05:41;  author: john;  state: Exp;
12345 Made radar display not conflict with hostage
12346 vclip talking.
12347 ----------------------------
12348 revision 1.12
12349 date: 1994/07/06 13:41:46;  author: matt;  state: Exp;
12350 Added support for bitmap hostages
12351 ----------------------------
12352 revision 1.11
12353 date: 1994/07/06 12:43:36;  author: john;  state: Exp;
12354 Made generic messages for hostages.
12355 ----------------------------
12356 revision 1.10
12357 date: 1994/07/06 10:55:09;  author: john;  state: Exp;
12358 New structures for hostages.
12359 ----------------------------
12360 revision 1.9
12361 date: 1994/07/05 12:48:47;  author: john;  state: Exp;
12362 Put functionality of New Hostage spec into code.
12363 ----------------------------
12364 revision 1.8
12365 date: 1994/07/01 17:55:14;  author: john;  state: Exp;
12366 First version of not-working hostage system.
12367 ----------------------------
12368 revision 1.7
12369 date: 1994/06/15 14:57:10;  author: john;  state: Exp;
12370 Added triggers to demo recording.
12371 ----------------------------
12372 revision 1.6
12373 date: 1994/06/08 18:15:49;  author: john;  state: Exp;
12374 Bunch of new stuff that basically takes constants out of the code
12375 and puts them into bitmaps.tbl.
12376 ----------------------------
12377 revision 1.5
12378 date: 1994/05/02 12:43:06;  author: yuan;  state: Exp;
12379 Fixed warnings.
12380 ----------------------------
12381 revision 1.4
12382 date: 1994/04/06 14:42:46;  author: yuan;  state: Exp;
12383 Adding new powerups.
12384 ----------------------------
12385 revision 1.3
12386 date: 1994/04/01 11:15:14;  author: yuan;  state: Exp;
12387 Added multiple bitmap functionality to all objects...
12388 (hostages, powerups, lasers, etc.)  
12389 Hostages and powerups are implemented in the object system,
12390 just need to finish function call to "affect" player.
12391 ----------------------------
12392 revision 1.2
12393 date: 1994/03/31 12:04:35;  author: matt;  state: Exp;
12394 Added prototypes for 2 funcs
12395 ----------------------------
12396 revision 1.1
12397 date: 1994/03/31 11:39:24;  author: matt;  state: Exp;
12398 Initial revision
12399 =============================================================================
12400 RCS file: /Smoke/miner/source/main/hud.c,v
12401 Working file: main/hud.c
12402 head: 1.4
12403 description: Routines for displaying HUD messages...
12404 ----------------------------
12405 revision 1.4
12406 date: 1995/08/24 16:03:09;  author: allender;  state: Exp;
12407 fix up message placement
12408 ----------------------------
12409 revision 1.3
12410 date: 1995/08/18 10:25:21;  author: allender;  state: Exp;
12411 added support for pixel doubling using PC game font
12412 ----------------------------
12413 revision 1.2
12414 date: 1995/08/12 11:33:22;  author: allender;  state: Exp;
12415 removed #ifdef NEWDEMO -- always in
12416 ----------------------------
12417 revision 1.1
12418 date: 1995/05/16 15:26:32;  author: allender;  state: Exp;
12419 Initial revision
12420 ----------------------------
12421 revision 2.2
12422 date: 1995/03/30 16:36:40;  author: mike;  state: Exp;
12423 text localization.
12424 ----------------------------
12425 revision 2.1
12426 date: 1995/03/06 15:23:50;  author: john;  state: Exp;
12427 New screen techniques.
12428 ----------------------------
12429 revision 2.0
12430 date: 1995/02/27 11:30:41;  author: john;  state: Exp;
12431 New version 2.0, which has no anonymous unions, builds with
12432 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12433 ----------------------------
12434 revision 1.27
12435 date: 1995/01/23 16:51:30;  author: mike;  state: Exp;
12436 Show hud messages on 3d if window in three largest sizes.
12437 ----------------------------
12438 revision 1.26
12439 date: 1995/01/17 17:42:45;  author: rob;  state: Exp;
12440 Made message timeout for HUD messages longer.
12441 ----------------------------
12442 revision 1.25
12443 date: 1995/01/04 11:39:03;  author: rob;  state: Exp;
12444 Made HUD text get out of the way of large HUD messages.
12445 ----------------------------
12446 revision 1.24
12447 date: 1995/01/01 14:20:32;  author: rob;  state: Exp;
12448 longer timer for hud messages.
12449 ----------------------------
12450 revision 1.23
12451 date: 1994/12/15 13:04:34;  author: mike;  state: Exp;
12452 Replace Players[Player_num].time_total references with GameTime.
12453 ----------------------------
12454 revision 1.22
12455 date: 1994/12/13 12:55:12;  author: mike;  state: Exp;
12456 move press any key to continue message when you are dead to bottom of window.
12457 ----------------------------
12458 revision 1.21
12459 date: 1994/12/07 17:08:01;  author: rob;  state: Exp;
12460 removed unnecessary debug info.
12461 ----------------------------
12462 revision 1.20
12463 date: 1994/12/07 16:24:16;  author: john;  state: Exp;
12464 Took out code that kept track of messages differently for different
12465 screen modes... I made it so they just draw differently depending on screen mode.
12466 ----------------------------
12467 revision 1.19
12468 date: 1994/12/07 15:42:57;  author: rob;  state: Exp;
12469 Added a bunch of debug stuff to look for HUD message problems in net games...
12470 ----------------------------
12471 revision 1.18
12472 date: 1994/12/06 16:30:35;  author: yuan;  state: Exp;
12473 Localization
12474 ----------------------------
12475 revision 1.17
12476 date: 1994/12/05 00:32:36;  author: mike;  state: Exp;
12477 fix randomness of color on status bar hud messages.
12478 ----------------------------
12479 revision 1.16
12480 date: 1994/11/19 17:05:53;  author: rob;  state: Exp;
12481 Moved dead_player_message down to avoid overwriting HUD messages.
12482 ----------------------------
12483 revision 1.15
12484 date: 1994/11/18 23:37:56;  author: john;  state: Exp;
12485 Changed some shorts to ints.
12486 ----------------------------
12487 revision 1.14
12488 date: 1994/11/12 16:38:25;  author: mike;  state: Exp;
12489 clear some annoying debug messages.
12490 ----------------------------
12491 revision 1.13
12492 date: 1994/11/11 15:36:39;  author: mike;  state: Exp;
12493 write hud messages on background if 3d window small enough
12494 ----------------------------
12495 revision 1.12
12496 date: 1994/10/20 09:49:31;  author: mike;  state: Exp;
12497 Reduce number of messages.
12498 ----------------------------
12499 revision 1.11
12500 date: 1994/10/17 10:49:15;  author: john;  state: Exp;
12501 Took out some warnings.
12502 ----------------------------
12503 revision 1.10
12504 date: 1994/10/17 10:45:13;  author: john;  state: Exp;
12505 Made the player able to abort death by pressing any button or key.
12506 ----------------------------
12507 revision 1.9
12508 date: 1994/10/13 15:17:33;  author: mike;  state: Exp;
12509 Remove afterburner references.
12510 ----------------------------
12511 revision 1.8
12512 date: 1994/10/11 12:06:32;  author: mike;  state: Exp;
12513 Only show message advertising death sequence abort after player exploded.
12514 ----------------------------
12515 revision 1.7
12516 date: 1994/10/10 17:21:53;  author: john;  state: Exp;
12517 Made so instead of saying too many messages, it scrolls off the
12518 oldest message.
12519 ----------------------------
12520 revision 1.6
12521 date: 1994/10/07 23:05:39;  author: john;  state: Exp;
12522 Fixed bug with HUD not drawing stuff sometimes...
12523 ( I had a circular buffer that I was stepping thru
12524 to draw text that went: for (i=first;i<last;i++)...
12525 duh!! last could be less than first.)
12526 /
12527 ----------------------------
12528 revision 1.5
12529 date: 1994/09/16 13:08:20;  author: mike;  state: Exp;
12530 Arcade stuff, afterburner stuff.
12531 ----------------------------
12532 revision 1.4
12533 date: 1994/09/14 16:26:57;  author: mike;  state: Exp;
12534 player_dead_message.
12535 ----------------------------
12536 revision 1.3
12537 date: 1994/08/18 16:35:45;  author: john;  state: Exp;
12538 Made gauges messages stay up a bit longer.
12539 ----------------------------
12540 revision 1.2
12541 date: 1994/08/18 12:10:21;  author: john;  state: Exp;
12542 Made HUD messages scroll.
12543 ----------------------------
12544 revision 1.1
12545 date: 1994/08/18 11:22:09;  author: john;  state: Exp;
12546 Initial revision
12547 =============================================================================
12548 RCS file: /Smoke/miner/source/main/iglasses.h,v
12549 Working file: main/iglasses.h
12550 head: 1.1
12551 description: Routines for the i-glasses VR stuff.
12552 ----------------------------
12553 revision 1.1
12554 date: 1995/05/16 15:58:05;  author: allender;  state: Exp;
12555 Initial revision
12556 ----------------------------
12557 revision 2.0
12558 date: 1995/02/27 11:28:38;  author: john;  state: Exp;
12559 New version 2.0, which has no anonymous unions, builds with
12560 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12561 ----------------------------
12562 revision 1.2
12563 date: 1995/02/09 22:01:01;  author: john;  state: Exp;
12564 Added i-glasses tracking.
12565 ----------------------------
12566 revision 1.1
12567 date: 1995/02/09 15:54:01;  author: john;  state: Exp;
12568 Initial revision
12569 =============================================================================
12570 RCS file: /BigRed/miner/source/main/inferno.c,v
12571 Working file: main/inferno.c
12572 head: 1.1
12573 description: main() for Inferno  
12574 ----------------------------
12575 revision 1.1
12576 date: 1995/12/05 15:57:49;  author: allender;  state: Exp;
12577 Initial revision
12578 ----------------------------
12579 revision 1.19
12580 date: 1995/11/07 17:03:12;  author: allender;  state: Exp;
12581 added splash screen for descent contest
12582 ----------------------------
12583 revision 1.18
12584 date: 1995/10/31 10:22:22;  author: allender;  state: Exp;
12585 shareware stuff
12586 ----------------------------
12587 revision 1.17
12588 date: 1995/10/18 01:53:07;  author: allender;  state: Exp;
12589 mouse click to leave do not distribute screen
12590 ----------------------------
12591 revision 1.16
12592 date: 1995/10/17 12:00:12;  author: allender;  state: Exp;
12593 mouse click gets past endgame screen
12594 ----------------------------
12595 revision 1.15
12596 date: 1995/10/12 17:40:12;  author: allender;  state: Exp;
12597 read config file after digi initialized
12598 ----------------------------
12599 revision 1.14
12600 date: 1995/10/05 10:38:22;  author: allender;  state: Exp;
12601 changed key_getch at exit to be key_inkey and moved
12602 mouse init until after macintosh windowing init call
12603 ----------------------------
12604 revision 1.13
12605 date: 1995/09/18 17:01:04;  author: allender;  state: Exp;
12606 put gr_init call before render buffer stuff
12607 ----------------------------
12608 revision 1.12
12609 date: 1995/08/31 15:50:53;  author: allender;  state: Exp;
12610 call init for appletalk, and change name of intro screens
12611 ----------------------------
12612 revision 1.11
12613 date: 1995/08/26 16:26:19;  author: allender;  state: Exp;
12614 whole bunch 'o stuff!!
12615 ----------------------------
12616 revision 1.10
12617 date: 1995/07/12 21:48:18;  author: allender;  state: Exp;
12618 removed Int3 from beginning of program
12619 ----------------------------
12620 revision 1.9
12621 date: 1995/07/05 16:45:48;  author: allender;  state: Exp;
12622 removed hide_cursor call
12623 ----------------------------
12624 revision 1.8
12625 date: 1995/06/20 16:44:57;  author: allender;  state: Exp;
12626 game now renders in 640x480 at all times.  Changed code
12627 to call game_init_render_buffers with right params
12628 ----------------------------
12629 revision 1.7
12630 date: 1995/06/13 13:07:55;  author: allender;  state: Exp;
12631 change macintosh initialzation.  Mac windows now init'ed through gr_init.
12632 ----------------------------
12633 revision 1.6
12634 date: 1995/06/08 16:36:53;  author: allender;  state: Exp;
12635 "ifdef" profile include
12636 ----------------------------
12637 revision 1.5
12638 date: 1995/06/07 08:08:18;  author: allender;  state: Exp;
12639 dont' make memory info show at end of program
12640 ----------------------------
12641 revision 1.4
12642 date: 1995/06/02 07:47:40;  author: allender;  state: Exp;
12643 removed network initialzation for now
12644 ----------------------------
12645 revision 1.3
12646 date: 1995/05/26 06:54:52;  author: allender;  state: Exp;
12647 put digi_init after timer and key stuff since I was testing stuff
12648 that needed the keyboard handler installed
12649 ----------------------------
12650 revision 1.2
12651 date: 1995/05/19 11:28:09;  author: allender;  state: Exp;
12652 removed printf
12653 ----------------------------
12654 revision 1.1
12655 date: 1995/05/16 15:26:39;  author: allender;  state: Exp;
12656 Initial revision
12657 ----------------------------
12658 revision 2.26
12659 date: 1995/04/12 13:39:26;  author: john;  state: Exp;
12660 Fixed bug with -lowmem not working.
12661 ----------------------------
12662 revision 2.25
12663 date: 1995/04/09 14:43:00;  author: john;  state: Exp;
12664 Made Dynamic sockets not print Msockets for help.
12665 ----------------------------
12666 revision 2.24
12667 date: 1995/04/07 16:11:33;  author: john;  state: Exp;
12668 Fixed problem with VFX display when using setup.
12669 ----------------------------
12670 revision 2.23
12671 date: 1995/04/06 15:40:51;  author: john;  state: Exp;
12672 Synced VFX with setup #'s.
12673 ----------------------------
12674 revision 2.22
12675 date: 1995/04/06 12:12:53;  author: john;  state: Exp;
12676 Fixed some bugs with 3dmax.
12677 ----------------------------
12678 revision 2.21
12679 date: 1995/03/30 16:36:51;  author: mike;  state: Exp;
12680 text localization.
12681 ----------------------------
12682 revision 2.20
12683 date: 1995/03/29 15:33:52;  author: john;  state: Exp;
12684 Added code to parse descent.net file.
12685 ----------------------------
12686 revision 2.19
12687 date: 1995/03/28 20:08:21;  author: john;  state: Exp;
12688 Took away alternate server thing.
12689 ----------------------------
12690 revision 2.18
12691 date: 1995/03/27 09:43:08;  author: john;  state: Exp;
12692 Added VR Settings in config file.
12693 ----------------------------
12694 revision 2.17
12695 date: 1995/03/23 19:02:21;  author: john;  state: Exp;
12696 Added descent.net file use.
12697 ----------------------------
12698 revision 2.16
12699 date: 1995/03/23 12:25:11;  author: john;  state: Exp;
12700 Moved IPX stuff into BIOS lib.
12701 ----------------------------
12702 revision 2.15
12703 date: 1995/03/21 16:52:34;  author: john;  state: Exp;
12704 Added 320x100.
12705 ----------------------------
12706 revision 2.14
12707 date: 1995/03/21 14:40:33;  author: john;  state: Exp;
12708 Ifdef'd out the NETWORK code.
12709 ----------------------------
12710 revision 2.13
12711 date: 1995/03/16 23:13:35;  author: john;  state: Exp;
12712 Fixed bug with piggy paging in bitmap not checking for disk
12713 error, hence bogifying textures if you pull the CD out.
12714 ----------------------------
12715 revision 2.12
12716 date: 1995/03/16 21:45:22;  author: john;  state: Exp;
12717 Made all paged modes have incompatible menus!
12718 ----------------------------
12719 revision 2.11
12720 date: 1995/03/15 15:19:34;  author: john;  state: Exp;
12721 Took out code that changes to exe dir.
12722 ----------------------------
12723 revision 2.10
12724 date: 1995/03/15 14:33:37;  author: john;  state: Exp;
12725 Added code to force the Descent CD-rom in the drive.
12726 ----------------------------
12727 revision 2.9
12728 date: 1995/03/15 11:41:27;  author: john;  state: Exp;
12729 Better Saturn CD-ROM support.
12730 ----------------------------
12731 revision 2.8
12732 date: 1995/03/14 18:24:46;  author: john;  state: Exp;
12733 Force Destination Saturn to use CD-ROM drive.
12734 ----------------------------
12735 revision 2.7
12736 date: 1995/03/14 16:22:35;  author: john;  state: Exp;
12737 Added cdrom alternate directory stuff.
12738 ----------------------------
12739 revision 2.6
12740 date: 1995/03/13 15:17:19;  author: john;  state: Exp;
12741 Added alternate hogfile directory.
12742 ----------------------------
12743 revision 2.5
12744 date: 1995/03/10 13:05:35;  author: john;  state: Exp;
12745 Added code so that palette is correct for VFX1 helmets.
12746 ----------------------------
12747 revision 2.4
12748 date: 1995/03/07 15:12:43;  author: john;  state: Exp;
12749 Fixed VFX,3dmax support.
12750 ----------------------------
12751 revision 2.3
12752 date: 1995/03/07 14:19:35;  author: mike;  state: Exp;
12753 More destination saturn stuff.
12754 ----------------------------
12755 revision 2.2
12756 date: 1995/03/06 16:47:34;  author: mike;  state: Exp;
12757 destination saturn
12758 ----------------------------
12759 revision 2.1
12760 date: 1995/03/06 15:24:06;  author: john;  state: Exp;
12761 New screen techniques.
12762 ----------------------------
12763 revision 2.0
12764 date: 1995/02/27 11:31:29;  author: john;  state: Exp;
12765 New version 2.0, which has no anonymous unions, builds with
12766 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
12767 ----------------------------
12768 revision 1.295
12769 date: 1995/02/23 12:02:14;  author: john;  state: Exp;
12770 Made mono  windows smaller.
12771 ----------------------------
12772 revision 1.294
12773 date: 1995/02/16 17:35:00;  author: john;  state: Exp;
12774 Added code to allow dynamic socket changing.
12775 ----------------------------
12776 revision 1.293
12777 date: 1995/02/14 19:29:29;  author: john;  state: Exp;
12778 Locked down critical error handler.
12779 ----------------------------
12780 revision 1.292
12781 date: 1995/02/14 15:29:20;  author: john;  state: Exp;
12782 Added CR-LF to last line of menu help text.
12783 ----------------------------
12784 revision 1.291
12785 date: 1995/02/14 11:39:01;  author: john;  state: Exp;
12786 Added polled/bios joystick readers.
12787 ----------------------------
12788 revision 1.290
12789 date: 1995/02/13 20:35:03;  author: john;  state: Exp;
12790 Lintized
12791 ----------------------------
12792 revision 1.289
12793 date: 1995/02/11 16:20:02;  author: john;  state: Exp;
12794 Added code to make the default mission be the one last played.
12795 ----------------------------
12796 revision 1.288
12797 date: 1995/02/11 15:54:13;  author: rob;  state: Exp;
12798 changed cinvul to rinvul.
12799 ----------------------------
12800 revision 1.287
12801 date: 1995/02/11 14:48:43;  author: rob;  state: Exp;
12802 Added max of 314 seconds to control invul. times
12803 ----------------------------
12804 revision 1.286
12805 date: 1995/02/11 12:42:01;  author: john;  state: Exp;
12806 Added new song method, with FM bank switching..
12807 ----------------------------
12808 revision 1.285
12809 date: 1995/02/11 11:36:11;  author: rob;  state: Exp;
12810 Added cinvul option.
12811 ----------------------------
12812 revision 1.284
12813 date: 1995/02/10 16:07:45;  author: matt;  state: Exp;
12814 Took 'registered' out of printed info at startup
12815 ----------------------------
12816 revision 1.283
12817 date: 1995/02/09 22:00:59;  author: john;  state: Exp;
12818 Added i-glasses tracking.
12819 ----------------------------
12820 revision 1.282
12821 date: 1995/02/02 11:11:27;  author: john;  state: Exp;
12822 Added -nocyberman switch.
12823 ----------------------------
12824 revision 1.281
12825 date: 1995/02/01 16:35:14;  author: john;  state: Exp;
12826 Linted.
12827 ----------------------------
12828 revision 1.280
12829 date: 1995/01/31 02:04:25;  author: matt;  state: Exp;
12830 Fixed up cmdline help
12831 ----------------------------
12832 revision 1.279
12833 date: 1995/01/30 16:25:55;  author: john;  state: Exp;
12834 Put back in graphical screen at program end.
12835 ----------------------------
12836 revision 1.278
12837 date: 1995/01/28 17:05:50;  author: matt;  state: Exp;
12838 Changed imbedded copyright to use comma instead of hyphen
12839 ----------------------------
12840 revision 1.277
12841 date: 1995/01/28 15:57:26;  author: john;  state: Exp;
12842 Made joystick calibration be only when wrong detected in
12843 menu or joystick axis changed.
12844 ----------------------------
12845 revision 1.276
12846 date: 1995/01/25 14:37:49;  author: john;  state: Exp;
12847 Made joystick only prompt for calibration once...
12848 ----------------------------
12849 revision 1.275
12850 date: 1995/01/24 18:21:00;  author: john;  state: Exp;
12851 Added Adam's text warning.
12852 ----------------------------
12853 revision 1.274
12854 date: 1995/01/22 15:57:20;  author: john;  state: Exp;
12855 Took out code that printed warning out as game exited.
12856 ----------------------------
12857 revision 1.273
12858 date: 1995/01/22 13:31:35;  author: matt;  state: Exp;
12859 Added load of mission 0, so there's always a default mission
12860 ----------------------------
12861 revision 1.272
12862 date: 1995/01/19 17:00:41;  author: john;  state: Exp;
12863 Made save game work between levels.
12864 ----------------------------
12865 revision 1.271
12866 date: 1995/01/18 11:47:57;  author: adam;  state: Exp;
12867 changed copyright notice
12868 ----------------------------
12869 revision 1.270
12870 date: 1995/01/15 13:42:42;  author: john;  state: Exp;
12871 Moved low_mem cutoff higher.
12872 ----------------------------
12873 revision 1.269
12874 date: 1995/01/12 18:53:50;  author: john;  state: Exp;
12875 Put ifdef EDITOR around the code that checked for 
12876 a 800x600 mode, because this trashed some people's
12877 computers (maybe) causing the mem allocation error in
12878 mouse.c that many users reported.
12879 ----------------------------
12880 revision 1.268
12881 date: 1995/01/12 11:41:42;  author: john;  state: Exp;
12882 Added external control reading.
12883 ----------------------------
12884 revision 1.267
12885 date: 1995/01/06 10:26:55;  author: john;  state: Exp;
12886 Added -nodoscheck command line switch.
12887 ----------------------------
12888 revision 1.266
12889 date: 1995/01/05 16:59:30;  author: yuan;  state: Exp;
12890 Don't show orderform in editor version.
12891 ----------------------------
12892 revision 1.265
12893 date: 1994/12/28 15:33:51;  author: john;  state: Exp;
12894 Added -slowjoy option.
12895 ----------------------------
12896 revision 1.264
12897 date: 1994/12/15 16:44:15;  author: matt;  state: Exp;
12898 Added trademark notice
12899 ----------------------------
12900 revision 1.263
12901 date: 1994/12/14 20:13:59;  author: john;  state: Exp;
12902 Reduced physical mem requments to 2 MB.
12903 ----------------------------
12904 revision 1.262
12905 date: 1994/12/14 19:06:17;  author: john;  state: Exp;
12906 Lowered physical memory requments to 2 MB.
12907 ----------------------------
12908 revision 1.261
12909 date: 1994/12/14 09:41:29;  author: allender;  state: Exp;
12910 change to drive and directory (if needed) of command line invocation
12911 so descent can be started from anywhere
12912 ----------------------------
12913 revision 1.260
12914 date: 1994/12/13 19:08:59;  author: john;  state: Exp;
12915 Updated memory requirements.
12916 ----------------------------
12917 revision 1.259
12918 date: 1994/12/13 17:30:33;  author: john;  state: Exp;
12919 Made the timer rate be changed right after initializing it.
12920 ----------------------------
12921 revision 1.258
12922 date: 1994/12/13 02:46:25;  author: matt;  state: Exp;
12923 Added imbedded copyright
12924 ----------------------------
12925 revision 1.257
12926 date: 1994/12/13 02:06:46;  author: john;  state: Exp;
12927 Added code to check stack used by descent... initial
12928 check showed stack used 35k/50k, so we decided it wasn't
12929 worth pursuing any more.
12930 ----------------------------
12931 revision 1.256
12932 date: 1994/12/11 23:17:54;  author: john;  state: Exp;
12933 Added -nomusic.
12934 Added RealFrameTime.
12935 Put in a pause when sound initialization error.
12936 Made controlcen countdown and framerate use RealFrameTime.
12937 ----------------------------
12938 revision 1.255
12939 date: 1994/12/10 00:56:51;  author: matt;  state: Exp;
12940 Added -nomusic to command-line help
12941 ----------------------------
12942 revision 1.254
12943 date: 1994/12/08 11:55:11;  author: john;  state: Exp;
12944 Took out low memory print.
12945 ----------------------------
12946 revision 1.253
12947 date: 1994/12/08 11:51:00;  author: john;  state: Exp;
12948 Made strcpy only copy corect number of chars,.
12949 ----------------------------
12950 revision 1.252
12951 date: 1994/12/08 00:38:29;  author: matt;  state: Exp;
12952 Cleaned up banner messages
12953 ----------------------------
12954 revision 1.251
12955 date: 1994/12/07 19:14:52;  author: matt;  state: Exp;
12956 Cleaned up command-line options and command-line help message
12957 ----------------------------
12958 revision 1.250
12959 date: 1994/12/06 19:33:28;  author: john;  state: Exp;
12960 Fixed text of message to make more sense.
12961 ----------------------------
12962 revision 1.249
12963 date: 1994/12/06 16:30:55;  author: john;  state: Exp;
12964 Neatend mem message,..
12965 ----------------------------
12966 revision 1.248
12967 date: 1994/12/06 16:17:35;  author: john;  state: Exp;
12968 Added better mem checking/printing.
12969 ----------------------------
12970 revision 1.247
12971 date: 1994/12/06 14:14:37;  author: john;  state: Exp;
12972 Added code to set low mem based on memory.
12973 ----------------------------
12974 revision 1.246
12975 date: 1994/12/05 12:29:09;  author: allender;  state: Exp;
12976 removed ifdefs around -norun option
12977 ----------------------------
12978 revision 1.245
12979 date: 1994/12/05 00:03:30;  author: matt;  state: Exp;
12980 Added -norun option to exit after writing pig
12981 ----------------------------
12982 revision 1.244
12983 date: 1994/12/04 14:47:01;  author: john;  state: Exp;
12984 MAde the intro and menu be the same song.
12985 ----------------------------
12986 revision 1.243
12987 date: 1994/12/04 14:36:42;  author: john;  state: Exp;
12988 Added menu music.
12989 ----------------------------
12990 revision 1.242
12991 date: 1994/12/02 13:50:17;  author: yuan;  state: Exp;
12992 Localization.
12993 ----------------------------
12994 revision 1.241
12995 date: 1994/12/01 17:28:30;  author: adam;  state: Exp;
12996 added end-shareware stuff
12997 ----------------------------
12998 revision 1.240
12999 date: 1994/11/30 12:10:57;  author: adam;  state: Exp;
13000 added support for PCX titles/brief screens
13001 ----------------------------
13002 revision 1.239
13003 date: 1994/11/29 15:47:33;  author: matt;  state: Exp;
13004 Moved error_init to start of game, so error message prints last
13005 ----------------------------
13006 revision 1.238
13007 date: 1994/11/29 14:19:22;  author: jasen;  state: Exp;
13008 reduced dos mem requirments.
13009 ----------------------------
13010 revision 1.237
13011 date: 1994/11/29 03:46:35;  author: john;  state: Exp;
13012 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
13013 command line arg.
13014 ----------------------------
13015 revision 1.236
13016 date: 1994/11/29 02:50:18;  author: john;  state: Exp;
13017 Increased the amount a joystick has to be off before
13018 asking if they want to recalibrate their joystick.
13019 ----------------------------
13020 revision 1.235
13021 date: 1994/11/29 02:01:29;  author: john;  state: Exp;
13022 Corrected some of the Descent command line help items.
13023 ----------------------------
13024 revision 1.234
13025 date: 1994/11/29 01:39:56;  author: john;  state: Exp;
13026 Fixed minor bug with vfx_light help not wrapping correctly.
13027 ----------------------------
13028 revision 1.233
13029 date: 1994/11/28 21:34:17;  author: john;  state: Exp;
13030 Reduced dos mem rqment to 70k.
13031 ----------------------------
13032 revision 1.232
13033 date: 1994/11/28 21:20:38;  author: john;  state: Exp;
13034 First version with memory checking.
13035 ----------------------------
13036 revision 1.231
13037 date: 1994/11/28 20:06:21;  author: rob;  state: Exp;
13038 Removed old serial param command line options.
13039 Added -noserial and -nonetwork to help listing.
13040 ----------------------------
13041 revision 1.230
13042 date: 1994/11/27 23:15:24;  author: matt;  state: Exp;
13043 Made changes for new mprintf calling convention
13044 ----------------------------
13045 revision 1.229
13046 date: 1994/11/27 20:50:51;  author: matt;  state: Exp;
13047 Don't set mem stuff if no debug
13048 ----------------------------
13049 revision 1.228
13050 date: 1994/11/27 18:46:21;  author: matt;  state: Exp;
13051 Cleaned up command-line switches a little
13052 ----------------------------
13053 revision 1.227
13054 date: 1994/11/21 17:48:00;  author: matt;  state: Exp;
13055 Added text to specifiy whether shareware or registered version
13056 ----------------------------
13057 revision 1.226
13058 date: 1994/11/21 14:44:20;  author: john;  state: Exp;
13059 Fixed some bugs with setting volumes even when -nosound was used. Duh!
13060 ----------------------------
13061 revision 1.225
13062 date: 1994/11/21 13:53:42;  author: matt;  state: Exp;
13063 Took out dos extender copyright
13064 ----------------------------
13065 revision 1.224
13066 date: 1994/11/21 09:46:54;  author: john;  state: Exp;
13067 Added -showmeminfo parameter.
13068 ----------------------------
13069 revision 1.223
13070 date: 1994/11/20 22:12:05;  author: mike;  state: Exp;
13071 Make some stuff dependent on SHAREWARE.
13072 ----------------------------
13073 revision 1.222
13074 date: 1994/11/20 21:14:09;  author: john;  state: Exp;
13075 Changed -serial to -noserial.  MAde a 1 sec delay 
13076 before leaving title screen.  Clear keyboard buffer
13077 before asking for player name.
13078 ----------------------------
13079 revision 1.221
13080 date: 1994/11/19 15:20:20;  author: mike;  state: Exp;
13081 rip out unused code and data
13082 ----------------------------
13083 revision 1.220
13084 date: 1994/11/17 19:14:29;  author: adam;  state: Exp;
13085 prevented order screen from coming up when -notitles is used
13086 ----------------------------
13087 revision 1.219
13088 date: 1994/11/16 11:34:39;  author: john;  state: Exp;
13089 Added -nottitle switch.
13090 ----------------------------
13091 revision 1.218
13092 date: 1994/11/16 10:05:53;  author: john;  state: Exp;
13093 Added verbose messages.
13094 ----------------------------
13095 revision 1.217
13096 date: 1994/11/15 20:12:34;  author: john;  state: Exp;
13097 Added back in inferno and parallax screens.
13098 ----------------------------
13099 revision 1.216
13100 date: 1994/11/15 18:35:30;  author: john;  state: Exp;
13101 Added verbose setting.
13102 ----------------------------
13103 revision 1.215
13104 date: 1994/11/15 17:47:44;  author: john;  state: Exp;
13105 Added ordering info screen.
13106 ----------------------------
13107 revision 1.214
13108 date: 1994/11/15 08:57:44;  author: john;  state: Exp;
13109 Added MS-DOS version checking and -nonetwork option.
13110 ----------------------------
13111 revision 1.213
13112 date: 1994/11/15 08:34:32;  author: john;  state: Exp;
13113 Added better error messages for IPX init.
13114 ----------------------------
13115 revision 1.212
13116 date: 1994/11/14 20:14:18;  author: john;  state: Exp;
13117 Fixed some warnings.
13118 ----------------------------
13119 revision 1.211
13120 date: 1994/11/14 19:50:49;  author: john;  state: Exp;
13121 Added joystick cal values to descent.cfg.
13122 ----------------------------
13123 revision 1.210
13124 date: 1994/11/14 17:56:44;  author: allender;  state: Exp;
13125 make call to ReadConfigFile at startup
13126 ----------------------------
13127 revision 1.209
13128 date: 1994/11/14 11:41:55;  author: john;  state: Exp;
13129 Fixed bug with editor/game sequencing.
13130 ----------------------------
13131 revision 1.208
13132 date: 1994/11/13 17:05:11;  author: john;  state: Exp;
13133 Made the callsign entry be a list box and gave the ability
13134 to delete players.
13135 ----------------------------
13136 revision 1.207
13137 date: 1994/11/13 15:39:22;  author: john;  state: Exp;
13138 Added critical error handler to game.  Took out -editor command line
13139 option because it didn't work anymore and wasn't worth fixing.  Made scores
13140 not use MINER enviroment variable on release version, and made scores
13141 not print an error if there is no descent.hi.
13142 ----------------------------
13143 revision 1.206
13144 date: 1994/11/10 20:53:29;  author: john;  state: Exp;
13145 Used new sound install parameters.
13146 ----------------------------
13147 revision 1.205
13148 date: 1994/11/10 11:07:52;  author: mike;  state: Exp;
13149 Set default detail level.
13150 ----------------------------
13151 revision 1.204
13152 date: 1994/11/09 13:45:43;  author: matt;  state: Exp;
13153 Made -? work again for help
13154 ----------------------------
13155 revision 1.203
13156 date: 1994/11/09 10:55:58;  author: matt;  state: Exp;
13157 Cleaned up initialization for editor -> game transitions
13158 ----------------------------
13159 revision 1.202
13160 date: 1994/11/07 21:35:47;  author: matt;  state: Exp;
13161 Use new function iff_read_into_bitmap()
13162 ----------------------------
13163 revision 1.201
13164 date: 1994/11/05 17:22:16;  author: john;  state: Exp;
13165 Fixed lots of sequencing problems with newdemo stuff.
13166 ----------------------------
13167 revision 1.200
13168 date: 1994/11/05 14:05:44;  author: john;  state: Exp;
13169 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
13170 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
13171 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
13172 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
13173 ----------------------------
13174 revision 1.199
13175 date: 1994/11/04 14:36:30;  author: allender;  state: Exp;
13176 change Auto_demo meaning to mean autostart from menu only.  Use
13177 FindArgs when searching for AutoDemo from command line.  also,
13178 set N_Players to 1 when starting in editor mode.
13179 ----------------------------
13180 revision 1.198
13181 date: 1994/11/02 11:59:49;  author: john;  state: Exp;
13182 Moved menu out of game into inferno main loop.
13183 ----------------------------
13184 revision 1.197
13185 date: 1994/11/01 17:57:39;  author: mike;  state: Exp;
13186 -noscreens option to bypass all screens.
13187 ----------------------------
13188 revision 1.196
13189 date: 1994/10/28 15:42:34;  author: allender;  state: Exp;
13190 don't register player if Autodemo is on
13191 ----------------------------
13192 revision 1.195
13193 date: 1994/10/28 10:58:01;  author: matt;  state: Exp;
13194 Added copyright notice for DOS4GW
13195 ----------------------------
13196 revision 1.194
13197 date: 1994/10/20 21:26:48;  author: matt;  state: Exp;
13198 Took out old serial name/number code, and put up message if this
13199 is a marked version.
13200 ----------------------------
13201 revision 1.193
13202 date: 1994/10/19 09:52:14;  author: allender;  state: Exp;
13203 Print out who descent.exe belongs to if descent.exe is stamped.
13204 ----------------------------
13205 revision 1.192
13206 date: 1994/10/18 16:43:05;  author: allender;  state: Exp;
13207 Added check for identifier stamp and time after which descent will
13208 no longer run.
13209 ----------------------------
13210 revision 1.191
13211 date: 1994/10/17 13:07:17;  author: john;  state: Exp;
13212 Moved the descent.cfg info into the player config file.
13213 ----------------------------
13214 revision 1.190
13215 date: 1994/10/04 10:26:31;  author: matt;  state: Exp;
13216 Support new menu fade in
13217 ----------------------------
13218 revision 1.189
13219 date: 1994/10/03 22:58:46;  author: matt;  state: Exp;
13220 Changed some values of game_mode
13221 ----------------------------
13222 revision 1.188
13223 date: 1994/10/03 18:55:39;  author: rob;  state: Exp;
13224 Changed defaults for com port settings.
13225 ----------------------------
13226 revision 1.187
13227 date: 1994/10/03 13:34:47;  author: matt;  state: Exp;
13228 Added new (and hopefully better) game sequencing functions
13229 ----------------------------
13230 revision 1.186
13231 date: 1994/09/30 12:37:28;  author: john;  state: Exp;
13232 Added midi,digi volume to configuration.
13233 ----------------------------
13234 revision 1.185
13235 date: 1994/09/30 10:08:48;  author: john;  state: Exp;
13236 Changed sound stuff... made it so the reseting card doesn't hang, 
13237 made volume change only if sound is installed.
13238 ----------------------------
13239 revision 1.184
13240 date: 1994/09/28 17:25:00;  author: matt;  state: Exp;
13241 Added first draft of game save/load system
13242 ----------------------------
13243 revision 1.183
13244 date: 1994/09/28 16:18:23;  author: john;  state: Exp;
13245 Added capability to play midi song.
13246 ----------------------------
13247 revision 1.182
13248 date: 1994/09/28 11:31:18;  author: john;  state: Exp;
13249 Made text output unbuffered.
13250 ----------------------------
13251 revision 1.181
13252 date: 1994/09/27 19:23:44;  author: john;  state: Exp;
13253 Added -nojoystick and -nomouse
13254 ----------------------------
13255 revision 1.180
13256 date: 1994/09/24 16:55:29;  author: rob;  state: Exp;
13257 No longer open COM port immediately upon program start.
13258 No longer set Network_active is serial_active is set.
13259 ----------------------------
13260 revision 1.179
13261 date: 1994/09/24 14:16:30;  author: mike;  state: Exp;
13262 Support new game mode constants.
13263 ----------------------------
13264 revision 1.178
13265 date: 1994/09/22 17:52:31;  author: rob;  state: Exp;
13266 Added Findargs hooks for -serial, -speed, and -com.
13267 ----------------------------
13268 revision 1.177
13269 date: 1994/09/22 16:14:11;  author: john;  state: Exp;
13270 Redid intro sequecing.
13271 ----------------------------
13272 revision 1.176
13273 date: 1994/09/21 16:32:58;  author: john;  state: Exp;
13274 Made mouse and keyboard init after bm_init. Why?
13275 Because it seems to work better under virtual 
13276 memory.
13277 ----------------------------
13278 revision 1.175
13279 date: 1994/09/21 16:27:52;  author: john;  state: Exp;
13280 Added mouse_init
13281 ----------------------------
13282 revision 1.174
13283 date: 1994/09/20 15:14:10;  author: matt;  state: Exp;
13284 New message for new VFX switches
13285 ----------------------------
13286 revision 1.173
13287 date: 1994/09/16 16:14:27;  author: john;  state: Exp;
13288 Added acrade sequencing.
13289 ----------------------------
13290 revision 1.172
13291 date: 1994/09/16 11:49:52;  author: john;  state: Exp;
13292 Added first version of arcade joystick support;
13293 Also fixed some bugs in kconfig.c, such as reading non-present
13294 joysticks, which killed frame rate, and not reading key_down_time
13295 when in slide mode or bank mode.
13296 ----------------------------
13297 revision 1.171
13298 date: 1994/09/15 16:11:35;  author: john;  state: Exp;
13299 Added support for VFX1 head tracking. Fixed bug with memory over-
13300 write when using stereo mode.
13301 ----------------------------
13302 revision 1.170
13303 date: 1994/09/12 19:38:23;  author: john;  state: Exp;
13304 Made some stuff that prints to the DOS screen go to the
13305 mono instead, since it really is debugging info.
13306 ----------------------------
13307 revision 1.169
13308 date: 1994/08/29 21:18:28;  author: john;  state: Exp;
13309 First version of new keyboard/oystick remapping stuff.
13310 ----------------------------
13311 revision 1.168
13312 date: 1994/08/26 13:02:00;  author: john;  state: Exp;
13313 Put high score system in.
13314 ----------------------------
13315 revision 1.167
13316 date: 1994/08/24 19:00:23;  author: john;  state: Exp;
13317 Changed key_down_time to return fixed seconds instead of
13318 milliseconds.
13319 ----------------------------
13320 revision 1.166
13321 date: 1994/08/18 16:24:20;  author: john;  state: Exp;
13322 changed socket to channel in text.
13323 ----------------------------
13324 revision 1.165
13325 date: 1994/08/18 16:16:51;  author: john;  state: Exp;
13326 Added support for different sockets.
13327 ----------------------------
13328 revision 1.164
13329 date: 1994/08/18 10:47:53;  author: john;  state: Exp;
13330 *** empty log message ***
13331 ----------------------------
13332 revision 1.163
13333 date: 1994/08/12 09:15:54;  author: john;  state: Exp;
13334 *** empty log message ***
13335 ----------------------------
13336 revision 1.162
13337 date: 1994/08/12 03:11:19;  author: john;  state: Exp;
13338 Made network be default off; Moved network options into
13339 main menu.  Made starting net game check that mines are the
13340 same.
13341 ----------------------------
13342 revision 1.161
13343 date: 1994/08/10 19:57:05;  author: john;  state: Exp;
13344 Changed font stuff; Took out old menu; messed up lots of
13345 other stuff like game sequencing messages, etc.
13346 ----------------------------
13347 revision 1.160
13348 date: 1994/08/05 16:30:23;  author: john;  state: Exp;
13349 Added capability to turn off network.
13350 ----------------------------
13351 revision 1.159
13352 date: 1994/08/04 19:42:51;  author: matt;  state: Exp;
13353 Moved serial number & name (and version name) from inferno.c to inferno.ini
13354 ----------------------------
13355 revision 1.158
13356 date: 1994/08/03 10:30:23;  author: matt;  state: Exp;
13357 Change cybermaxx switches, updated command-line help, and added serial number system
13358 ----------------------------
13359 revision 1.157
13360 date: 1994/07/29 18:30:10;  author: matt;  state: Exp;
13361 New parms (lack of parms, actually) for g3_init()
13362 ----------------------------
13363 revision 1.156
13364 date: 1994/07/24 00:39:25;  author: matt;  state: Exp;
13365 Added more text to TEX file; make NewGame() take a start level; made game
13366 load/save menus use open/close window funcs.
13367 ----------------------------
13368 revision 1.155
13369 date: 1994/07/21 21:31:27;  author: john;  state: Exp;
13370 First cheapo version of VictorMaxx tracking.
13371 ----------------------------
13372 revision 1.154
13373 date: 1994/07/21 18:15:34;  author: matt;  state: Exp;
13374 Ripped out a bunch of unused stuff
13375 ----------------------------
13376 revision 1.153
13377 date: 1994/07/21 17:59:10;  author: matt;  state: Exp;
13378 Cleaned up initial mode game/editor code
13379 ----------------------------
13380 revision 1.152
13381 date: 1994/07/21 13:11:19;  author: matt;  state: Exp;
13382 Ripped out remants of old demo system, and added demo only system that
13383 disables object movement and game options from menu.
13384 ----------------------------
13385 revision 1.151
13386 date: 1994/07/20 15:58:27;  author: john;  state: Exp;
13387 First installment of ipx stuff.
13388 ----------------------------
13389 revision 1.150
13390 date: 1994/07/15 16:04:24;  author: matt;  state: Exp;
13391 Changed comment for milestone 3 version
13392 ----------------------------
13393 revision 1.149
13394 date: 1994/07/15 13:59:24;  author: matt;  state: Exp;
13395 Fixed stupid mistake I make in the last revision
13396 ----------------------------
13397 revision 1.148
13398 date: 1994/07/15 13:20:15;  author: matt;  state: Exp;
13399 Updated comand-line help
13400 ----------------------------
13401 revision 1.147
13402 date: 1994/07/14 23:29:43;  author: matt;  state: Exp;
13403 Open two mono debug messages, one for errors & one for spew
13404 ----------------------------
13405 revision 1.146
13406 date: 1994/07/09 22:48:05;  author: matt;  state: Exp;
13407 Added localizable text
13408 ----------------------------
13409 revision 1.145
13410 date: 1994/07/02 13:49:47;  author: matt;  state: Exp;
13411 Cleaned up includes
13412 ----------------------------
13413 revision 1.144
13414 date: 1994/06/30 20:04:43;  author: john;  state: Exp;
13415 Added -joydef support.
13416 ----------------------------
13417 revision 1.143
13418 date: 1994/06/24 17:01:44;  author: john;  state: Exp;
13419 Add VFX support; Took Game Sequencing, like EndGame and stuff and
13420 took it out of game.c and into gameseq.c
13421 =============================================================================
13422 RCS file: /Smoke/miner/source/main/inferno.h,v
13423 Working file: main/inferno.h
13424 head: 1.1
13425 description: Header file for Inferno.  Should be included in all source files. 
13426 =============================================================================
13427 RCS file: /Smoke/miner/source/main/joydefs.c,v
13428 Working file: main/joydefs.c
13429 head: 1.10
13430 description: .
13431 ----------------------------
13432 revision 1.10
13433 date: 1995/10/18 22:21:21;  author: allender;  state: Exp;
13434 fixed bug with gravis mousestick and call key_flush when
13435 calibrating joystick since it used keystrokes for the trigger
13436 (at least most of them do)
13437 ----------------------------
13438 revision 1.9
13439 date: 1995/10/17 13:12:32;  author: allender;  state: Exp;
13440 fixed up controller support for mac world
13441 ----------------------------
13442 revision 1.8
13443 date: 1995/10/15 19:27:04;  author: allender;  state: Exp;
13444 new Dave Denhart controller code
13445 ----------------------------
13446 revision 1.7
13447 date: 1995/10/15 16:14:59;  author: allender;  state: Exp;
13448 fixed axis value for Thrustmaster rudders
13449 ----------------------------
13450 revision 1.6
13451 date: 1995/09/13 11:39:39;  author: allender;  state: Exp;
13452 made joystick cal menu all text so buttons will work properly
13453 ----------------------------
13454 revision 1.5
13455 date: 1995/09/01 13:13:13;  author: allender;  state: Exp;
13456 added close box on controls menu
13457 ----------------------------
13458 revision 1.4
13459 date: 1995/08/18 10:22:47;  author: allender;  state: Exp;
13460 if thrustmaster choosen, set joystick at thrustmaster type
13461 for proper reading in joyc.c
13462 ----------------------------
13463 revision 1.3
13464 date: 1995/07/26 17:00:34;  author: allender;  state: Exp;
13465 put back in code to make joysticks work
13466 ----------------------------
13467 revision 1.2
13468 date: 1995/07/17 08:52:21;  author: allender;  state: Exp;
13469 put back in code that was taken out previously
13470 ----------------------------
13471 revision 1.1
13472 date: 1995/05/16 15:26:48;  author: allender;  state: Exp;
13473 Initial revision
13474 ----------------------------
13475 revision 2.1
13476 date: 1995/04/06 12:13:20;  author: john;  state: Exp;
13477 Made so you can calibrate Gravis Gamepad.
13478 ----------------------------
13479 revision 2.0
13480 date: 1995/02/27 11:30:27;  author: john;  state: Exp;
13481 New version 2.0, which has no anonymous unions, builds with
13482 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
13483 ----------------------------
13484 revision 1.71
13485 date: 1995/02/12 02:06:10;  author: john;  state: Exp;
13486 Fixed bug with joystick incorrectly asking for
13487 calibration.
13488 ----------------------------
13489 revision 1.70
13490 date: 1995/01/28 15:58:07;  author: john;  state: Exp;
13491 Made joystick calibration be only when wrong detected in
13492 menu or joystick axis changed.
13493 ----------------------------
13494 revision 1.69
13495 date: 1995/01/25 14:37:55;  author: john;  state: Exp;
13496 Made joystick only prompt for calibration once...
13497 ----------------------------
13498 revision 1.68
13499 date: 1995/01/24 16:34:29;  author: john;  state: Exp;
13500 Made so that if you reconfigure joystick and
13501 add or subtract an axis, it asks for a recalibration
13502 upon leaving.
13503 ----------------------------
13504 revision 1.67
13505 date: 1994/12/29 11:08:51;  author: john;  state: Exp;
13506 Fixed Thrustmaster and Logitech Wingman extreme
13507 Hat by reading the y2 axis during the center stage
13508 of the calibration, and using 75, 50, 27, and 3 %
13509 as values for the 4 positions.
13510 ----------------------------
13511 revision 1.66
13512 date: 1994/12/15 18:17:39;  author: john;  state: Exp;
13513 Fixed warning with previous.
13514 ----------------------------
13515 revision 1.65
13516 date: 1994/12/15 18:15:48;  author: john;  state: Exp;
13517 Made the joy cal only write the .cfg file, not
13518 the player file.
13519 ----------------------------
13520 revision 1.64
13521 date: 1994/12/13 14:43:35;  author: john;  state: Exp;
13522 Took out the code in kconfig to build direction array.
13523 Called kc_set_controls after selecting a new control type.
13524 ----------------------------
13525 revision 1.63
13526 date: 1994/12/10 12:08:47;  author: john;  state: Exp;
13527 Changed some delays to use TICKER instead of timer_get_fixed_seconds.
13528 ----------------------------
13529 revision 1.62
13530 date: 1994/12/09 11:01:07;  author: mike;  state: Exp;
13531 force calibration of joystick on joystick selection from Controls... menu.
13532 ----------------------------
13533 revision 1.61
13534 date: 1994/12/07 21:50:27;  author: john;  state: Exp;
13535 Put stop/start time around joystick delay.
13536 ----------------------------
13537 revision 1.60
13538 date: 1994/12/07 19:34:39;  author: john;  state: Exp;
13539 Added delay.
13540 ----------------------------
13541 revision 1.59
13542 date: 1994/12/07 18:12:14;  author: john;  state: Exp;
13543 NEatened up joy cal.,
13544 ----------------------------
13545 revision 1.58
13546 date: 1994/12/07 17:07:51;  author: john;  state: Exp;
13547 Fixed up joy cal.
13548 ----------------------------
13549 revision 1.57
13550 date: 1994/12/07 16:48:53;  author: yuan;  state: Exp;
13551 localization
13552 ----------------------------
13553 revision 1.56
13554 date: 1994/12/07 16:05:55;  author: john;  state: Exp;
13555 Changed the way joystick calibration works.
13556 ----------------------------
13557 revision 1.55
13558 date: 1994/12/06 20:15:22;  author: john;  state: Exp;
13559 Took out code that unpauses songs that were never paused.
13560 ----------------------------
13561 revision 1.54
13562 date: 1994/12/06 15:14:09;  author: yuan;  state: Exp;
13563 Localization
13564 ----------------------------
13565 revision 1.53
13566 date: 1994/12/05 16:29:16;  author: john;  state: Exp;
13567 Took out music pause around the cheat menu.
13568 ----------------------------
13569 revision 1.52
13570 date: 1994/12/04 12:39:10;  author: john;  state: Exp;
13571 MAde so that FCS calibration doesn't ask for axis #2.
13572 ----------------------------
13573 revision 1.51
13574 date: 1994/12/03 15:14:59;  author: john;  state: Exp;
13575 Took out the delay mentioned previosuly cause it would
13576 cause bigger problems than it helps, especially with netgames.
13577 ----------------------------
13578 revision 1.50
13579 date: 1994/12/03 14:16:14;  author: john;  state: Exp;
13580 Put a delay between screens in joy cal to keep Yuan from
13581 double hitting.
13582 ----------------------------
13583 revision 1.49
13584 date: 1994/12/03 11:04:06;  author: john;  state: Exp;
13585 Changed newmenu code a bit to fix bug with bogus
13586 backgrounds occcasionally.
13587 ----------------------------
13588 revision 1.48
13589 date: 1994/12/02 11:03:44;  author: yuan;  state: Exp;
13590 Localization.
13591 ----------------------------
13592 revision 1.47
13593 date: 1994/12/02 10:50:33;  author: yuan;  state: Exp;
13594 Localization
13595 ----------------------------
13596 revision 1.46
13597 date: 1994/12/01 12:21:59;  author: john;  state: Exp;
13598 Added code to calibrate 2 joysticks separately.
13599 ----------------------------
13600 revision 1.45
13601 date: 1994/12/01 11:52:31;  author: john;  state: Exp;
13602 Added message when you select FCS to say that if
13603 you have WCS, see manuel.
13604 ----------------------------
13605 revision 1.44
13606 date: 1994/11/29 02:26:28;  author: john;  state: Exp;
13607 Made the prompts for upper-left, lower right for joy
13608 calibration more obvious.
13609 ----------------------------
13610 revision 1.43
13611 date: 1994/11/26 13:13:59;  author: matt;  state: Exp;
13612 Changed "none" option to "keyboard only"
13613 ----------------------------
13614 revision 1.42
13615 date: 1994/11/21 19:35:13;  author: john;  state: Exp;
13616 Replaced calls to joy_init with if (joy_present)
13617 ----------------------------
13618 revision 1.41
13619 date: 1994/11/21 19:28:34;  author: john;  state: Exp;
13620 Changed warning for no joystick to use nm_messagebox..
13621 ----------------------------
13622 revision 1.40
13623 date: 1994/11/21 19:06:25;  author: john;  state: Exp;
13624 Made it so that it only stops sound when your in game mode. 
13625 ----------------------------
13626 revision 1.39
13627 date: 1994/11/21 11:47:18;  author: john;  state: Exp;
13628 Made sound pause during joystick calibration.
13629 ----------------------------
13630 revision 1.38
13631 date: 1994/11/10 20:34:18;  author: rob;  state: Exp;
13632 Removed menu-specific network mode support in favor in new stuff
13633 in newmenu.c
13634 ----------------------------
13635 revision 1.37
13636 date: 1994/11/08 21:21:38;  author: john;  state: Exp;
13637 Made Esc exit joystick calibration.
13638 ----------------------------
13639 revision 1.36
13640 date: 1994/11/08 15:14:42;  author: john;  state: Exp;
13641 Added more calls so net doesn't die in net game.
13642 ----------------------------
13643 revision 1.35
13644 date: 1994/11/08 14:59:12;  author: john;  state: Exp;
13645 Added code to respond to network while in menus.
13646 ----------------------------
13647 revision 1.34
13648 date: 1994/10/24 19:56:32;  author: john;  state: Exp;
13649 Made the new user setup prompt for config options.
13650 ----------------------------
13651 revision 1.33
13652 date: 1994/10/22 14:11:52;  author: mike;  state: Exp;
13653 Suppress compiler warning message.
13654 ----------------------------
13655 revision 1.32
13656 date: 1994/10/19 12:44:24;  author: john;  state: Exp;
13657 Added hours field to player structure.
13658 ----------------------------
13659 revision 1.31
13660 date: 1994/10/17 13:07:13;  author: john;  state: Exp;
13661 Moved the descent.cfg info into the player config file.
13662 ----------------------------
13663 revision 1.30
13664 date: 1994/10/13 21:41:12;  author: john;  state: Exp;
13665 MAde Esc exit out of joystick calibration.
13666 ----------------------------
13667 revision 1.29
13668 date: 1994/10/13 19:22:27;  author: john;  state: Exp;
13669 Added separate config saves for different devices.
13670 Made all the devices work together better, such as mice won't
13671 get read when you're playing with the joystick.
13672 ----------------------------
13673 revision 1.28
13674 date: 1994/10/13 11:40:18;  author: john;  state: Exp;
13675 Took out warnings.
13676 ----------------------------
13677 revision 1.27
13678 date: 1994/10/13 11:35:23;  author: john;  state: Exp;
13679 Made Thrustmaster FCS Hat work.  Put a background behind the
13680 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
13681 menu to new menu. Made F6 be calibrate joystick.
13682 ----------------------------
13683 revision 1.26
13684 date: 1994/10/11 21:29:03;  author: matt;  state: Exp;
13685 Made a bunch of menus have good initial selected values
13686 ----------------------------
13687 revision 1.25
13688 date: 1994/10/11 17:08:39;  author: john;  state: Exp;
13689 Added sliders for volume controls.
13690 ----------------------------
13691 revision 1.24
13692 date: 1994/10/10 17:59:21;  author: john;  state: Exp;
13693 Neatend previous.
13694 ----------------------------
13695 revision 1.23
13696 date: 1994/10/10 17:57:59;  author: john;  state: Exp;
13697 Neatend previous.
13698 ----------------------------
13699 revision 1.22
13700 date: 1994/10/10 17:56:11;  author: john;  state: Exp;
13701 Added messagebox that tells that config has been saved.
13702 ----------------------------
13703 revision 1.21
13704 date: 1994/09/30 12:37:26;  author: john;  state: Exp;
13705 Added midi,digi volume to configuration.
13706 ----------------------------
13707 revision 1.20
13708 date: 1994/09/22 16:14:14;  author: john;  state: Exp;
13709 Redid intro sequecing.
13710 ----------------------------
13711 revision 1.19
13712 date: 1994/09/19 18:50:15;  author: john;  state: Exp;
13713 Added switch to disable joystick.
13714 ----------------------------
13715 revision 1.18
13716 date: 1994/09/12 11:47:36;  author: john;  state: Exp;
13717 Made stupid cruise work better.  Make kconfig values get
13718 read/written to disk.
13719 ----------------------------
13720 revision 1.17
13721 date: 1994/09/10 15:46:47;  author: john;  state: Exp;
13722 First version of new keyboard configuration.
13723 ----------------------------
13724 revision 1.16
13725 date: 1994/09/06 19:35:44;  author: john;  state: Exp;
13726 Fixed bug that didn';t load new size .cal file.
13727 ----------------------------
13728 revision 1.15
13729 date: 1994/09/06 14:51:58;  author: john;  state: Exp;
13730 Added sensitivity adjustment, fixed bug with joystick button not
13731 staying down.
13732 ----------------------------
13733 revision 1.14
13734 date: 1994/09/02 16:13:47;  author: john;  state: Exp;
13735 Made keys fill in position.
13736 ----------------------------
13737 revision 1.13
13738 date: 1994/08/31 17:58:50;  author: john;  state: Exp;
13739 Made a bit simpler.
13740 ----------------------------
13741 revision 1.12
13742 date: 1994/08/31 14:17:54;  author: john;  state: Exp;
13743 *** empty log message ***
13744 ----------------------------
13745 revision 1.11
13746 date: 1994/08/31 14:10:56;  author: john;  state: Exp;
13747 Made keys not work when KEY_DELETE pressed.
13748 ----------------------------
13749 revision 1.10
13750 date: 1994/08/31 13:40:47;  author: mike;  state: Exp;
13751 Change constant
13752 ----------------------------
13753 revision 1.9
13754 date: 1994/08/31 12:56:27;  author: john;  state: Exp;
13755 *** empty log message ***
13756 ----------------------------
13757 revision 1.8
13758 date: 1994/08/30 20:38:29;  author: john;  state: Exp;
13759 Add more config stuff..
13760 ----------------------------
13761 revision 1.7
13762 date: 1994/08/30 16:37:25;  author: john;  state: Exp;
13763 Added menu options to set controls.
13764 ----------------------------
13765 revision 1.6
13766 date: 1994/08/30 09:27:18;  author: john;  state: Exp;
13767 *** empty log message ***
13768 ----------------------------
13769 revision 1.5
13770 date: 1994/08/30 09:12:01;  author: john;  state: Exp;
13771 *** empty log message ***
13772 ----------------------------
13773 revision 1.4
13774 date: 1994/08/29 21:18:32;  author: john;  state: Exp;
13775 First version of new keyboard/oystick remapping stuff.
13776 ----------------------------
13777 revision 1.3
13778 date: 1994/08/24 19:00:29;  author: john;  state: Exp;
13779 Changed key_down_time to return fixed seconds instead of
13780 milliseconds.
13781 ----------------------------
13782 revision 1.2
13783 date: 1994/08/17 16:50:37;  author: john;  state: Exp;
13784 Added damaging fireballs, missiles.
13785 ----------------------------
13786 revision 1.1
13787 date: 1994/08/17 10:07:12;  author: john;  state: Exp;
13788 Initial revision
13789 =============================================================================
13790 RCS file: /Smoke/miner/source/main/joydefs.h,v
13791 Working file: main/joydefs.h
13792 head: 1.2
13793 description: Variables for joystick settings.
13794 ----------------------------
13795 revision 1.2
13796 date: 1995/10/15 19:20:46;  author: allender;  state: Exp;
13797 added Dave D's new controller code
13798 ----------------------------
13799 revision 1.1
13800 date: 1995/05/16 15:58:20;  author: allender;  state: Exp;
13801 Initial revision
13802 ----------------------------
13803 revision 2.0
13804 date: 1995/02/27 11:32:12;  author: john;  state: Exp;
13805 New version 2.0, which has no anonymous unions, builds with
13806 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
13807 ----------------------------
13808 revision 1.12
13809 date: 1995/01/25 14:37:52;  author: john;  state: Exp;
13810 Made joystick only prompt for calibration once...
13811 ----------------------------
13812 revision 1.11
13813 date: 1994/10/13 11:35:43;  author: john;  state: Exp;
13814 Made Thrustmaster FCS Hat work.  Put a background behind the
13815 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
13816 menu to new menu. Made F6 be calibrate joystick.
13817 ----------------------------
13818 revision 1.10
13819 date: 1994/09/10 15:46:49;  author: john;  state: Exp;
13820 First version of new keyboard configuration.
13821 ----------------------------
13822 revision 1.9
13823 date: 1994/09/06 14:51:29;  author: john;  state: Exp;
13824 Added sensitivity adjustment, fixed bug with joystick button not
13825 staying down.
13826 ----------------------------
13827 revision 1.8
13828 date: 1994/08/31 12:56:29;  author: john;  state: Exp;
13829 *** empty log message ***
13830 ----------------------------
13831 revision 1.7
13832 date: 1994/08/30 16:37:07;  author: john;  state: Exp;
13833 Added menu options to set controls.
13834 ----------------------------
13835 revision 1.6
13836 date: 1994/08/29 21:18:33;  author: john;  state: Exp;
13837 First version of new keyboard/oystick remapping stuff.
13838 ----------------------------
13839 revision 1.5
13840 date: 1994/08/24 19:00:30;  author: john;  state: Exp;
13841 Changed key_down_time to return fixed seconds instead of
13842 milliseconds.
13843 ----------------------------
13844 revision 1.4
13845 date: 1994/08/17 16:50:04;  author: john;  state: Exp;
13846 Added damaging fireballs, missiles.
13847 ----------------------------
13848 revision 1.3
13849 date: 1994/07/01 10:55:18;  author: john;  state: Exp;
13850 Added analog joystick throttle
13851 ----------------------------
13852 revision 1.2
13853 date: 1994/06/30 20:04:46;  author: john;  state: Exp;
13854 Added -joydef support.
13855 ----------------------------
13856 revision 1.1
13857 date: 1994/06/30 18:08:12;  author: john;  state: Exp;
13858 Initial revision
13859 =============================================================================
13860 RCS file: /Smoke/miner/source/main/kconfig.c,v
13861 Working file: main/kconfig.c
13862 head: 1.18
13863 description: Routines to configure keyboard, joystick, etc..
13864 ----------------------------
13865 revision 1.18
13866 date: 1995/10/29 20:14:10;  author: allender;  state: Exp;
13867 don't read mouse 30x/sec.  Still causes problems -- left with
13868 exposure at > 60 frame/s
13869 ----------------------------
13870 revision 1.17
13871 date: 1995/10/27 14:16:35;  author: allender;  state: Exp;
13872 don't set lastreadtime when doing mouse stuff if we didn't
13873 read mouse this frame
13874 ----------------------------
13875 revision 1.16
13876 date: 1995/10/24 18:10:22;  author: allender;  state: Exp;
13877 get mouse stuff working right this time?
13878 ----------------------------
13879 revision 1.15
13880 date: 1995/10/23 14:50:50;  author: allender;  state: Exp;
13881 corrected values for control type in kc_set_controls
13882 ----------------------------
13883 revision 1.14
13884 date: 1995/10/21 16:36:54;  author: allender;  state: Exp;
13885 fix up mouse read time
13886 ----------------------------
13887 revision 1.13
13888 date: 1995/10/20 00:46:53;  author: allender;  state: Exp;
13889 fix up mouse reading problem
13890 ----------------------------
13891 revision 1.12
13892 date: 1995/10/19 13:36:38;  author: allender;  state: Exp;
13893 mouse support in kconfig screens
13894 ----------------------------
13895 revision 1.11
13896 date: 1995/10/18 21:06:06;  author: allender;  state: Exp;
13897 removed Int3 in cruise stuff -- was in there for debugging and
13898 now not needed
13899 ----------------------------
13900 revision 1.10
13901 date: 1995/10/17 13:12:47;  author: allender;  state: Exp;
13902 fixed config menus so buttons don't get configured
13903 ----------------------------
13904 revision 1.9
13905 date: 1995/10/15 23:07:55;  author: allender;  state: Exp;
13906 added return key as second button for primary fire
13907 ----------------------------
13908 revision 1.8
13909 date: 1995/09/05 08:49:47;  author: allender;  state: Exp;
13910 change 'PADRTN' label to 'ENTER'
13911 ----------------------------
13912 revision 1.7
13913 date: 1995/09/01 15:38:22;  author: allender;  state: Exp;
13914 took out cap of reading controls max 25 times/sec
13915 ----------------------------
13916 revision 1.6
13917 date: 1995/09/01 13:33:59;  author: allender;  state: Exp;
13918 erase all old text
13919 ----------------------------
13920 revision 1.5
13921 date: 1995/08/18 10:20:55;  author: allender;  state: Exp;
13922 keep controls reading to 25 times/s max so fast
13923 frame rates don't mess up control reading
13924 ----------------------------
13925 revision 1.4
13926 date: 1995/07/28 15:43:13;  author: allender;  state: Exp;
13927 make mousebutton control primary fire
13928 ----------------------------
13929 revision 1.3
13930 date: 1995/07/26 17:04:32;  author: allender;  state: Exp;
13931 new defaults and make joystick main button work correctly
13932 ----------------------------
13933 revision 1.2
13934 date: 1995/07/17 08:51:03;  author: allender;  state: Exp;
13935 fixed up configuration menus to look right
13936 ----------------------------
13937 revision 1.1
13938 date: 1995/05/16 15:26:56;  author: allender;  state: Exp;
13939 Initial revision
13940 ----------------------------
13941 revision 2.7
13942 date: 1995/03/30 16:36:56;  author: mike;  state: Exp;
13943 text localization.
13944 ----------------------------
13945 revision 2.6
13946 date: 1995/03/21 14:39:31;  author: john;  state: Exp;
13947 Ifdef'd out the NETWORK code.
13948 ----------------------------
13949 revision 2.5
13950 date: 1995/03/16 10:53:07;  author: john;  state: Exp;
13951 Move VFX center to Shift+Z instead of Enter because
13952 it conflicted with toggling HUD on/off.
13953 ----------------------------
13954 revision 2.4
13955 date: 1995/03/10 13:47:24;  author: john;  state: Exp;
13956 Added head tracking sensitivity.
13957 ----------------------------
13958 revision 2.3
13959 date: 1995/03/09 18:07:06;  author: john;  state: Exp;
13960 Fixed bug with iglasses tracking not "centering" right.
13961 Made VFX have bright headlight lighting.
13962 ----------------------------
13963 revision 2.2
13964 date: 1995/03/08 15:32:39;  author: john;  state: Exp;
13965 Made VictorMaxx head tracking use Greenleaf code.
13966 ----------------------------
13967 revision 2.1
13968 date: 1995/03/06 15:23:31;  author: john;  state: Exp;
13969 New screen techniques.
13970 ----------------------------
13971 revision 2.0
13972 date: 1995/02/27 11:29:26;  author: john;  state: Exp;
13973 New version 2.0, which has no anonymous unions, builds with
13974 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
13975 ----------------------------
13976 revision 1.105
13977 date: 1995/02/22 14:11:58;  author: allender;  state: Exp;
13978 remove anonymous unions from object structure
13979 ----------------------------
13980 revision 1.104
13981 date: 1995/02/13 12:01:56;  author: john;  state: Exp;
13982 Fixed bug with buggin not mmaking player faster.
13983 ----------------------------
13984 revision 1.103
13985 date: 1995/02/09 22:00:46;  author: john;  state: Exp;
13986 Added i-glasses tracking.
13987 ----------------------------
13988 revision 1.102
13989 date: 1995/01/24 21:25:47;  author: john;  state: Exp;
13990 Fixed bug with slide/bank on not working with
13991 Cyberman heading.,
13992 ----------------------------
13993 revision 1.101
13994 date: 1995/01/24 16:09:56;  author: john;  state: Exp;
13995 Fixed bug with Wingman extreme customize text overwriting title.
13996 ----------------------------
13997 revision 1.100
13998 date: 1995/01/24 12:37:46;  author: john;  state: Exp;
13999 Made Esc exit key define menu.
14000 ----------------------------
14001 revision 1.99
14002 date: 1995/01/23 23:54:43;  author: matt;  state: Exp;
14003 Made keypad enter work
14004 ----------------------------
14005 revision 1.98
14006 date: 1995/01/23 16:42:00;  author: john;  state: Exp;
14007 Made the external controls always turn banking off, leveling off
14008 and passed automap state thru to the tsr.
14009 ----------------------------
14010 revision 1.97
14011 date: 1995/01/12 11:41:33;  author: john;  state: Exp;
14012 Added external control reading.
14013 ----------------------------
14014 revision 1.96
14015 date: 1995/01/05 10:43:58;  author: mike;  state: Exp;
14016 Handle case when timer_get_fixed_seconds() goes negative.  Happens at 9.1
14017 hours.  Previously, joystick would stop functioning.  Now will work.
14018 ----------------------------
14019 revision 1.95
14020 date: 1994/12/29 11:17:38;  author: john;  state: Exp;
14021 Took out some warnings and mprintf.
14022 ----------------------------
14023 revision 1.94
14024 date: 1994/12/29 11:07:41;  author: john;  state: Exp;
14025 Fixed Thrustmaster and Logitech Wingman extreme
14026 Hat by reading the y2 axis during the center stage
14027 of the calibration, and using 75, 50, 27, and 3 %
14028 as values for the 4 positions.
14029 ----------------------------
14030 revision 1.93
14031 date: 1994/12/27 12:16:20;  author: john;  state: Exp;
14032 Fixed bug with slide on not working with joystick or mouse buttons.
14033 ----------------------------
14034 revision 1.92
14035 date: 1994/12/20 10:34:15;  author: john;  state: Exp;
14036 Made sensitivity work for mouse & joystick and made
14037 it only affect, pitch, heading, and roll.
14038 ----------------------------
14039 revision 1.91
14040 date: 1994/12/16 00:11:23;  author: matt;  state: Exp;
14041 Made delete key act normally when debug out
14042 ----------------------------
14043 revision 1.90
14044 date: 1994/12/14 17:41:15;  author: john;  state: Exp;
14045 Added more buttons so that  Yoke would work.
14046 ----------------------------
14047 revision 1.89
14048 date: 1994/12/13 17:25:35;  author: allender;  state: Exp;
14049 Added Assert for bogus time for joystick reading.
14050 ----------------------------
14051 revision 1.88
14052 date: 1994/12/13 14:48:01;  author: john;  state: Exp;
14053 Took out some debugging mprintf's
14054 ----------------------------
14055 revision 1.87
14056 date: 1994/12/13 14:43:02;  author: john;  state: Exp;
14057 Took out the code in kconfig to build direction array.
14058 Called kc_set_controls after selecting a new control type.
14059 ----------------------------
14060 revision 1.86
14061 date: 1994/12/13 01:11:32;  author: john;  state: Exp;
14062 Fixed bug with message clearing overwriting 
14063 right border.
14064 ----------------------------
14065 revision 1.85
14066 date: 1994/12/12 00:35:58;  author: john;  state: Exp;
14067 Added or thing for keys.
14068 ----------------------------
14069 revision 1.84
14070 date: 1994/12/09 17:08:06;  author: john;  state: Exp;
14071 Made mouse a bit less sensitive.
14072 ----------------------------
14073 revision 1.83
14074 date: 1994/12/09 16:04:00;  author: john;  state: Exp;
14075 Increased mouse sensitivity.
14076 ----------------------------
14077 revision 1.82
14078 date: 1994/12/09 00:41:26;  author: mike;  state: Exp;
14079 fix hang in automap print screen
14080 ----------------------------
14081 revision 1.81
14082 date: 1994/12/08 11:50:37;  author: john;  state: Exp;
14083 Made strcpy only copy corect number of chars,.
14084 ----------------------------
14085 revision 1.80
14086 date: 1994/12/07 16:16:06;  author: john;  state: Exp;
14087 Added command to check to see if a joystick axes has been used.
14088 ----------------------------
14089 revision 1.79
14090 date: 1994/12/07 14:52:28;  author: yuan;  state: Exp;
14091 Localization 492
14092 ----------------------------
14093 revision 1.78
14094 date: 1994/12/07 13:37:40;  author: john;  state: Exp;
14095 Made the joystick thrust work in reverse.
14096 ----------------------------
14097 revision 1.77
14098 date: 1994/12/07 11:28:24;  author: matt;  state: Exp;
14099 Did a little localization support
14100 ----------------------------
14101 revision 1.76
14102 date: 1994/12/04 12:30:03;  author: john;  state: Exp;
14103 Made the Thrustmaster stick read every frame, not every 10 frames,
14104 because it uses analog axis as buttons.
14105 ----------------------------
14106 revision 1.75
14107 date: 1994/12/03 22:35:25;  author: yuan;  state: Exp;
14108 Localization 412
14109 ----------------------------
14110 revision 1.74
14111 date: 1994/12/03 15:39:24;  author: john;  state: Exp;
14112 Made numeric keypad move in conifg.
14113 ----------------------------
14114 revision 1.73
14115 date: 1994/12/01 16:23:39;  author: john;  state: Exp;
14116 Fixed include mistake.
14117 ----------------------------
14118 revision 1.72
14119 date: 1994/12/01 16:07:57;  author: john;  state: Exp;
14120 Fixed bug that disabled joystick in automap because it used gametime, which is
14121 paused during automap. Fixed be used timer_Get_fixed_seconds instead of GameTime.
14122 ----------------------------
14123 revision 1.71
14124 date: 1994/12/01 12:30:49;  author: john;  state: Exp;
14125 Made Ctrl+D delete, not Ctrl+E
14126 ----------------------------
14127 revision 1.70
14128 date: 1994/12/01 11:52:52;  author: john;  state: Exp;
14129 Added default values for GamePad.
14130 ----------------------------
14131 revision 1.69
14132 date: 1994/11/30 00:59:12;  author: mike;  state: Exp;
14133 optimizations.
14134 ----------------------------
14135 revision 1.68
14136 date: 1994/11/29 03:45:50;  author: john;  state: Exp;
14137 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
14138 command line arg.
14139 ----------------------------
14140 revision 1.67
14141 date: 1994/11/27 23:13:44;  author: matt;  state: Exp;
14142 Made changes for new mprintf calling convention
14143 ----------------------------
14144 revision 1.66
14145 date: 1994/11/27 19:52:12;  author: matt;  state: Exp;
14146 Made screen shots work in a few more places
14147 ----------------------------
14148 revision 1.65
14149 date: 1994/11/22 16:54:50;  author: mike;  state: Exp;
14150 autorepeat on missiles.
14151 ----------------------------
14152 revision 1.64
14153 date: 1994/11/21 11:16:17;  author: rob;  state: Exp;
14154 Changed calls to GameLoop to calls to multi_menu_poll and changed
14155 conditions under which they are called.
14156 ----------------------------
14157 revision 1.63
14158 date: 1994/11/19 15:14:48;  author: mike;  state: Exp;
14159 remove unused code and data
14160 ----------------------------
14161 revision 1.62
14162 date: 1994/11/18 23:37:56;  author: john;  state: Exp;
14163 Changed some shorts to ints.
14164 ----------------------------
14165 revision 1.61
14166 date: 1994/11/17 13:36:35;  author: rob;  state: Exp;
14167 Added better network hook in kconfig menu.
14168 ----------------------------
14169 revision 1.60
14170 date: 1994/11/14 20:09:13;  author: john;  state: Exp;
14171 Made Tab be default for automap.
14172 ----------------------------
14173 revision 1.59
14174 date: 1994/11/13 16:34:07;  author: matt;  state: Exp;
14175 Fixed victormaxx angle conversions
14176 ----------------------------
14177 revision 1.58
14178 date: 1994/11/12 14:47:05;  author: john;  state: Exp;
14179 Added support for victor head tracking.
14180 ----------------------------
14181 revision 1.57
14182 date: 1994/11/08 15:14:55;  author: john;  state: Exp;
14183 Added more calls so net doesn't die in net game.
14184 ----------------------------
14185 revision 1.56
14186 date: 1994/11/07 14:01:07;  author: john;  state: Exp;
14187 Changed the gamma correction sequencing.
14188 ----------------------------
14189 revision 1.55
14190 date: 1994/11/01 16:40:08;  author: john;  state: Exp;
14191 Added Gamma correction.
14192 ----------------------------
14193 revision 1.54
14194 date: 1994/10/25 23:09:26;  author: john;  state: Exp;
14195 Made the automap key configurable.
14196 ----------------------------
14197 revision 1.53
14198 date: 1994/10/25 13:11:59;  author: john;  state: Exp;
14199 Made keys the way Adam speced 'em for final game.
14200 ----------------------------
14201 revision 1.52
14202 date: 1994/10/24 17:44:22;  author: john;  state: Exp;
14203 Added stereo channel reversing.
14204 ----------------------------
14205 revision 1.51
14206 date: 1994/10/22 13:23:18;  author: john;  state: Exp;
14207 Made default rear view key be R.
14208 ----------------------------
14209 revision 1.50
14210 date: 1994/10/22 13:20:09;  author: john;  state: Exp;
14211 Took out toggle primary/secondary weapons.  Fixed black
14212 background for 'axes' and 'buttons' text.
14213 ----------------------------
14214 revision 1.49
14215 date: 1994/10/21 15:20:15;  author: john;  state: Exp;
14216 Made PrtScr do screen dump, not F2.
14217 ----------------------------
14218 revision 1.48
14219 date: 1994/10/21 13:41:36;  author: john;  state: Exp;
14220 Allowed F2 to screen dump.
14221 ----------------------------
14222 revision 1.47
14223 date: 1994/10/17 13:07:05;  author: john;  state: Exp;
14224 Moved the descent.cfg info into the player config file.
14225 ----------------------------
14226 revision 1.46
14227 date: 1994/10/14 15:30:22;  author: john;  state: Exp;
14228 Added Cyberman default positions.
14229 ----------------------------
14230 revision 1.45
14231 date: 1994/10/14 15:24:54;  author: john;  state: Exp;
14232 Made Cyberman work with config.
14233 ----------------------------
14234 revision 1.44
14235 date: 1994/10/14 12:46:04;  author: john;  state: Exp;
14236 Added the ability to reset all to default.
14237 ----------------------------
14238 revision 1.43
14239 date: 1994/10/14 12:18:31;  author: john;  state: Exp;
14240 Made mouse invert axis always be 0 or 1.
14241 ----------------------------
14242 revision 1.42
14243 date: 1994/10/14 12:16:03;  author: john;  state: Exp;
14244 Changed code so that by doing DEL+F12 saves the current kconfig
14245 values as default. Added support for drop_bomb key.  Took out
14246 unused slots for keyboard.  Made keyboard use control_type of 0
14247 save slots.
14248 ----------------------------
14249 revision 1.41
14250 date: 1994/10/13 21:27:02;  author: john;  state: Exp;
14251 Made axis invert value always be 0 or 1.
14252 ----------------------------
14253 revision 1.40
14254 date: 1994/10/13 20:18:15;  author: john;  state: Exp;
14255 Added some more system keys, such as F? and CAPSLOCK.
14256 ----------------------------
14257 revision 1.39
14258 date: 1994/10/13 19:22:29;  author: john;  state: Exp;
14259 Added separate config saves for different devices.
14260 Made all the devices work together better, such as mice won't
14261 get read when you're playing with the joystick.
14262 ----------------------------
14263 revision 1.38
14264 date: 1994/10/13 15:41:57;  author: mike;  state: Exp;
14265 Remove afterburner.
14266 =============================================================================
14267 RCS file: /Smoke/miner/source/main/kconfig.h,v
14268 Working file: main/kconfig.h
14269 head: 1.1
14270 description: Prototypes for reading controls
14271 ----------------------------
14272 revision 1.1
14273 date: 1995/05/16 15:58:27;  author: allender;  state: Exp;
14274 Initial revision
14275 ----------------------------
14276 revision 1.1
14277 date: 1995/05/16 15:58:27;  author: allender;  state: Exp;
14278 Initial revision
14279 ----------------------------
14280 revision 2.0
14281 date: 1995/02/27 11:29:38;  author: john;  state: Exp;
14282 New version 2.0, which has no anonymous unions, builds with
14283 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
14284 ----------------------------
14285 revision 1.23
14286 date: 1995/01/12 11:41:44;  author: john;  state: Exp;
14287 Added external control reading.
14288 ----------------------------
14289 revision 1.22
14290 date: 1994/12/07 16:15:30;  author: john;  state: Exp;
14291 Added command to check to see if a joystick axes has been used.
14292 ----------------------------
14293 revision 1.21
14294 date: 1994/11/29 03:46:29;  author: john;  state: Exp;
14295 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
14296 command line arg.
14297 ----------------------------
14298 revision 1.20
14299 date: 1994/11/22 16:54:45;  author: mike;  state: Exp;
14300 autorepeat on missiles.
14301 ----------------------------
14302 revision 1.19
14303 date: 1994/11/07 14:01:27;  author: john;  state: Exp;
14304 Changed the gamma correction sequencing.
14305 ----------------------------
14306 revision 1.18
14307 date: 1994/11/01 16:40:02;  author: john;  state: Exp;
14308 Added Gamma correction.
14309 ----------------------------
14310 revision 1.17
14311 date: 1994/10/25 23:09:24;  author: john;  state: Exp;
14312 Made the automap key configurable.
14313 ----------------------------
14314 revision 1.16
14315 date: 1994/10/24 19:56:51;  author: john;  state: Exp;
14316 Made the new user setup prompt for config options.
14317 ----------------------------
14318 revision 1.15
14319 date: 1994/10/24 17:44:18;  author: john;  state: Exp;
14320 Added stereo channel reversing.
14321 ----------------------------
14322 revision 1.14
14323 date: 1994/10/22 13:19:33;  author: john;  state: Exp;
14324 Took out toggle primary/secondary weapons.  Fixed black
14325 background for 'axes' and 'buttons' text.
14326 ----------------------------
14327 revision 1.13
14328 date: 1994/10/17 13:06:51;  author: john;  state: Exp;
14329 Moved the descent.cfg info into the player config file.
14330 ----------------------------
14331 revision 1.12
14332 date: 1994/10/14 12:14:47;  author: john;  state: Exp;
14333 Changed code so that by doing DEL+F12 saves the current kconfig
14334 values as default. Added support for drop_bomb key.  Took out
14335 unused slots for keyboard.  Made keyboard use control_type of 0
14336 save slots.
14337 ----------------------------
14338 revision 1.11
14339 date: 1994/10/13 19:21:33;  author: john;  state: Exp;
14340 Added separate config saves for different devices.
14341 Made all the devices work together better, such as mice won't
14342 get read when you're playing with the joystick.
14343 ----------------------------
14344 revision 1.10
14345 date: 1994/10/13 15:18:41;  author: john;  state: Exp;
14346 Started ripping out old afterburner, show message, show automap
14347 keys in the keyboard config stuff.
14348 ----------------------------
14349 revision 1.9
14350 date: 1994/10/13 11:35:27;  author: john;  state: Exp;
14351 Made Thrustmaster FCS Hat work.  Put a background behind the
14352 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
14353 menu to new menu. Made F6 be calibrate joystick.
14354 ----------------------------
14355 revision 1.8
14356 date: 1994/10/06 14:10:50;  author: matt;  state: Exp;
14357 New function reset_cruise()
14358 ----------------------------
14359 revision 1.7
14360 date: 1994/10/03 14:58:25;  author: john;  state: Exp;
14361 Added rear_view_down_state so that the rear view can
14362 work like the automap.
14363 ----------------------------
14364 revision 1.6
14365 date: 1994/09/30 12:37:25;  author: john;  state: Exp;
14366 Added midi,digi volume to configuration.
14367 ----------------------------
14368 revision 1.5
14369 date: 1994/09/19 18:49:59;  author: john;  state: Exp;
14370 Added switch to disable joystick.
14371 ----------------------------
14372 revision 1.4
14373 date: 1994/09/15 16:11:21;  author: john;  state: Exp;
14374 Added support for VFX1 head tracking. Fixed bug with memory over-
14375 write when using stereo mode.
14376 ----------------------------
14377 revision 1.3
14378 date: 1994/09/12 11:47:38;  author: john;  state: Exp;
14379 Made stupid cruise work better.  Make kconfig values get
14380 read/written to disk.
14381 ----------------------------
14382 revision 1.2
14383 date: 1994/09/10 15:46:55;  author: john;  state: Exp;
14384 First version of new keyboard configuration.
14385 ----------------------------
14386 revision 1.1
14387 date: 1994/09/10 13:51:40;  author: john;  state: Exp;
14388 Initial revision
14389 =============================================================================
14390 RCS file: /Smoke/miner/source/main/kmatrix.c,v
14391 Working file: main/kmatrix.c
14392 head: 1.6
14393 description: Kill matrix displayed at end of level.
14394 ----------------------------
14395 revision 1.6
14396 date: 1995/09/24 10:57:48;  author: allender;  state: Exp;
14397 made any key move off of kill matrix screen as text indicates it should
14398 ----------------------------
14399 revision 1.5
14400 date: 1995/08/18 08:33:05;  author: allender;  state: Exp;
14401 fixed text problem with top level player names
14402 ----------------------------
14403 revision 1.4
14404 date: 1995/07/26 17:03:05;  author: allender;  state: Exp;
14405 sort of fixed spacing for mac
14406 ----------------------------
14407 revision 1.3
14408 date: 1995/06/06 15:36:14;  author: allender;  state: Exp;
14409 be sure to bitblt to screen inside of kmatrix loop
14410 ----------------------------
14411 revision 1.2
14412 date: 1995/06/02 07:47:15;  author: allender;  state: Exp;
14413 removed bogus include files
14414 ----------------------------
14415 revision 1.1
14416 date: 1995/05/16 15:27:07;  author: allender;  state: Exp;
14417 Initial revision
14418 ----------------------------
14419 revision 2.2
14420 date: 1995/03/21 08:38:20;  author: john;  state: Exp;
14421 Ifdef'd out the NETWORK code.
14422 ----------------------------
14423 revision 2.1
14424 date: 1995/03/06 15:22:54;  author: john;  state: Exp;
14425 New screen techniques.
14426 ----------------------------
14427 revision 2.0
14428 date: 1995/02/27 11:25:56;  author: john;  state: Exp;
14429 New version 2.0, which has no anonymous unions, builds with
14430 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
14431 ----------------------------
14432 revision 1.19
14433 date: 1995/02/15 14:47:23;  author: john;  state: Exp;
14434 Added code to keep track of kills during endlevel.
14435 ----------------------------
14436 revision 1.18
14437 date: 1995/02/08 11:00:06;  author: rob;  state: Exp;
14438 Moved string to localized file
14439 ----------------------------
14440 revision 1.17
14441 date: 1995/02/01 23:45:55;  author: rob;  state: Exp;
14442 Fixed string.
14443 ----------------------------
14444 revision 1.16
14445 date: 1995/01/30 21:47:11;  author: rob;  state: Exp;
14446 Added a line of instructions.
14447 ----------------------------
14448 revision 1.15
14449 date: 1995/01/20 16:58:43;  author: rob;  state: Exp;
14450 careless careless careless... 
14451 ----------------------------
14452 revision 1.14
14453 date: 1995/01/20 13:43:48;  author: rob;  state: Exp;
14454 Longer time to view.
14455 ----------------------------
14456 revision 1.13
14457 date: 1995/01/20 13:42:34;  author: rob;  state: Exp;
14458 Fixed sorting bug.
14459 ----------------------------
14460 revision 1.12
14461 date: 1995/01/19 17:35:21;  author: rob;  state: Exp;
14462 Fixed coloration of player names in team mode.
14463 ----------------------------
14464 revision 1.11
14465 date: 1995/01/16 21:26:15;  author: rob;  state: Exp;
14466 Fixed it!!
14467 ----------------------------
14468 revision 1.10
14469 date: 1995/01/16 18:55:41;  author: rob;  state: Exp;
14470 Added include of network.h
14471 ----------------------------
14472 revision 1.9
14473 date: 1995/01/16 18:22:35;  author: rob;  state: Exp;
14474 Fixed problem with signs.
14475 ----------------------------
14476 revision 1.8
14477 date: 1995/01/12 16:07:51;  author: rob;  state: Exp;
14478 ADded sorting before display.
14479 ----------------------------
14480 revision 1.7
14481 date: 1995/01/04 08:46:53;  author: rob;  state: Exp;
14482 JOHN CHECKED IN FOR ROB !!!
14483 ----------------------------
14484 revision 1.6
14485 date: 1994/12/09 20:17:20;  author: yuan;  state: Exp;
14486 Touched up
14487 ----------------------------
14488 revision 1.5
14489 date: 1994/12/09 19:46:35;  author: yuan;  state: Exp;
14490 Localized the sucker.
14491 ----------------------------
14492 revision 1.4
14493 date: 1994/12/09 19:24:58;  author: rob;  state: Exp;
14494 Yuan's fix to the centering.
14495 ----------------------------
14496 revision 1.3
14497 date: 1994/12/09 19:02:37;  author: yuan;  state: Exp;
14498 Cleaned up a bit.
14499 ----------------------------
14500 revision 1.2
14501 date: 1994/12/09 16:19:46;  author: yuan;  state: Exp;
14502 kill matrix stuff.
14503 ----------------------------
14504 revision 1.1
14505 date: 1994/12/09 15:08:58;  author: yuan;  state: Exp;
14506 Initial revision
14507 =============================================================================
14508 RCS file: /Smoke/miner/source/main/kmatrix.h,v
14509 Working file: main/kmatrix.h
14510 head: 1.1
14511 description: Kill matrix.
14512 ----------------------------
14513 revision 1.1
14514 date: 1995/05/16 15:58:35;  author: allender;  state: Exp;
14515 Initial revision
14516 ----------------------------
14517 revision 2.0
14518 date: 1995/02/27 11:28:51;  author: john;  state: Exp;
14519 New version 2.0, which has no anonymous unions, builds with
14520 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
14521 ----------------------------
14522 revision 1.3
14523 date: 1995/02/15 14:47:39;  author: john;  state: Exp;
14524 Added code to keep track of kills during endlevel.
14525 ----------------------------
14526 revision 1.2
14527 date: 1994/12/09 16:19:46;  author: yuan;  state: Exp;
14528 kill matrix stuff.
14529 ----------------------------
14530 revision 1.1
14531 date: 1994/12/09 15:58:33;  author: yuan;  state: Exp;
14532 Initial revision
14533 =============================================================================
14534 RCS file: /Smoke/miner/source/main/laser.c,v
14535 Working file: main/laser.c
14536 head: 1.11
14537 description: This will contain the laser code
14538 ----------------------------
14539 revision 1.1
14540 date: 1993/11/29 17:19:02;  author: john;  state: Exp;
14541 Initial revision
14542 =============================================================================
14543 RCS file: /Smoke/miner/source/main/laser.h,v
14544 Working file: main/laser.h
14545 head: 1.1
14546 description: Definitions for the laser code.
14547 ----------------------------
14548 revision 1.1
14549 date: 1995/05/16 15:58:43;  author: allender;  state: Exp;
14550 Initial revision
14551 ----------------------------
14552 revision 2.0
14553 date: 1995/02/27 11:32:27;  author: john;  state: Exp;
14554 New version 2.0, which has no anonymous unions, builds with
14555 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
14556 ----------------------------
14557 revision 1.50
14558 date: 1995/02/01 21:03:44;  author: john;  state: Exp;
14559 Lintified.
14560 ----------------------------
14561 revision 1.49
14562 date: 1995/02/01 16:34:11;  author: john;  state: Exp;
14563 Linted.
14564 ----------------------------
14565 revision 1.48
14566 date: 1995/01/31 16:16:16;  author: mike;  state: Exp;
14567 Separate smart blobs for robot and player.
14568 ----------------------------
14569 revision 1.47
14570 date: 1995/01/27 17:02:55;  author: mike;  state: Exp;
14571 Add LASER_ID -- why wasn't this added in June?
14572 ----------------------------
14573 revision 1.46
14574 date: 1995/01/25 10:53:27;  author: mike;  state: Exp;
14575 make badass damage go through grates.
14576 ----------------------------
14577 revision 1.45
14578 date: 1994/12/12 17:17:32;  author: mike;  state: Exp;
14579 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
14580 ----------------------------
14581 revision 1.44
14582 date: 1994/12/04 16:17:23;  author: mike;  state: Exp;
14583 spruce up homing missile behavior.
14584 ----------------------------
14585 revision 1.43
14586 date: 1994/12/03 12:48:30;  author: mike;  state: Exp;
14587 make homing missile tracking not frame rate dependent (more-or-less)
14588 ----------------------------
14589 revision 1.42
14590 date: 1994/10/12 08:04:54;  author: mike;  state: Exp;
14591 Clean up proximity/homing mess.
14592 ----------------------------
14593 revision 1.41
14594 date: 1994/10/09 20:07:04;  author: rob;  state: Exp;
14595 Change prototype for do_laser_firing
14596 ----------------------------
14597 revision 1.40
14598 date: 1994/10/09 00:15:48;  author: mike;  state: Exp;
14599 Add constants for super mech missile, regular mech missile, silent spreadfire.
14600 ----------------------------
14601 revision 1.39
14602 date: 1994/10/08 19:52:09;  author: rob;  state: Exp;
14603 Added new weapon fire flags.
14604 ----------------------------
14605 revision 1.38
14606 date: 1994/10/07 15:31:12;  author: mike;  state: Exp;
14607 Prototypes for new laser functions which don't necessarily make sound.
14608 ----------------------------
14609 revision 1.37
14610 date: 1994/10/05 17:08:29;  author: matt;  state: Exp;
14611 Fixed a couple of small bugs, and made homing missiles alternate sides
14612 ----------------------------
14613 revision 1.36
14614 date: 1994/09/28 14:28:55;  author: rob;  state: Exp;
14615 Added firing of missiles on networks/serial.
14616 ----------------------------
14617 revision 1.35
14618 date: 1994/09/24 14:17:02;  author: mike;  state: Exp;
14619 Prototype do_laser_firing.
14620 ----------------------------
14621 revision 1.34
14622 date: 1994/09/23 11:36:49;  author: mike;  state: Exp;
14623 Prototype Laser_create_new_easy.
14624 ----------------------------
14625 revision 1.33
14626 date: 1994/09/20 11:55:01;  author: mike;  state: Exp;
14627 Fix bug.
14628 ----------------------------
14629 revision 1.32
14630 date: 1994/09/20 11:48:34;  author: mike;  state: Exp;
14631 Change spreadfire laser to use new bitmap. (Define SPREADFIRE_ID)
14632 ----------------------------
14633 revision 1.31
14634 date: 1994/09/15 16:31:28;  author: mike;  state: Exp;
14635 Prototype object_to_object_visibility.
14636 ----------------------------
14637 revision 1.30
14638 date: 1994/09/10 17:31:40;  author: mike;  state: Exp;
14639 Add thrust to weapons.
14640 ----------------------------
14641 revision 1.29
14642 date: 1994/09/08 14:49:44;  author: mike;  state: Exp;
14643 Bunch of IDs for new weapon types.
14644 ----------------------------
14645 revision 1.28
14646 date: 1994/09/07 19:16:40;  author: mike;  state: Exp;
14647 Homing missile.
14648 ----------------------------
14649 revision 1.27
14650 date: 1994/09/07 15:59:47;  author: mike;  state: Exp;
14651 Kill FLARE_MAX_TIME (now defined in bitmaps.tbl), add PROXIMITY_ID (shame!), prototype do_laser_firing, do_missile_firing.
14652 ----------------------------
14653 revision 1.26
14654 date: 1994/09/03 15:22:41;  author: mike;  state: Exp;
14655 Kill Projectile_player_fire prototype.
14656 ----------------------------
14657 revision 1.25
14658 date: 1994/09/02 16:39:00;  author: mike;  state: Exp;
14659 IDs for primary weapons.
14660 ----------------------------
14661 revision 1.24
14662 date: 1994/09/02 11:55:54;  author: mike;  state: Exp;
14663 Define some illegal constants.
14664 ----------------------------
14665 revision 1.23
14666 date: 1994/08/25 18:12:06;  author: matt;  state: Exp;
14667 Made player's weapons and flares fire from the positions on the 3d model.
14668 Also added support for quad lasers.
14669 ----------------------------
14670 revision 1.22
14671 date: 1994/08/19 15:22:28;  author: mike;  state: Exp;
14672 Define constant for MAX_LASER_LEVEL.
14673 ----------------------------
14674 revision 1.21
14675 date: 1994/08/13 12:20:47;  author: john;  state: Exp;
14676 Made the networking uise the Players array.
14677 ----------------------------
14678 revision 1.20
14679 date: 1994/08/10 10:44:05;  author: john;  state: Exp;
14680 Made net players fire..
14681 ----------------------------
14682 revision 1.19
14683 date: 1994/06/27 18:30:57;  author: mike;  state: Exp;
14684 Add flares.
14685 ----------------------------
14686 revision 1.18
14687 date: 1994/06/09 15:32:37;  author: mike;  state: Exp;
14688 Muzzle flash
14689 ----------------------------
14690 revision 1.17
14691 date: 1994/05/19 09:09:00;  author: mike;  state: Exp;
14692 Move a bunch of laser variables to bm.h, I think.
14693 Also, added Robot_laser_speed, instead of hard-coding Laser_speed/4.
14694 ----------------------------
14695 revision 1.16
14696 date: 1994/05/14 17:16:20;  author: matt;  state: Exp;
14697 Got rid of externs in source (non-header) files
14698 ----------------------------
14699 revision 1.15
14700 date: 1994/05/13 20:27:39;  author: john;  state: Exp;
14701 Version II of John's new object code.
14702 ----------------------------
14703 revision 1.14
14704 date: 1994/04/20 15:06:47;  author: john;  state: Exp;
14705 Neatend laser code and fixed some laser bugs.
14706 ----------------------------
14707 revision 1.13
14708 date: 1994/04/01 13:35:15;  author: matt;  state: Exp;
14709 Cleaned up laser code a bit; moved some code here object.c to laser.c
14710 ----------------------------
14711 revision 1.12
14712 date: 1994/04/01 11:14:24;  author: yuan;  state: Exp;
14713 Added multiple bitmap functionality to all objects...
14714 (hostages, powerups, lasers, etc.)  
14715 Hostages and powerups are implemented in the object system,
14716 just need to finish function call to "affect" player.
14717 ----------------------------
14718 revision 1.11
14719 date: 1994/03/31 09:10:09;  author: matt;  state: Exp;
14720 Added #define to turn crosshair off
14721 ----------------------------
14722 revision 1.10
14723 date: 1994/02/17 11:33:15;  author: matt;  state: Exp;
14724 Changes in object system
14725 ----------------------------
14726 revision 1.9
14727 date: 1994/01/06 11:56:01;  author: john;  state: Exp;
14728 Made lasers be lines, not purple blobs
14729 ----------------------------
14730 revision 1.8
14731 date: 1994/01/05 10:53:35;  author: john;  state: Exp;
14732 New object code by John.  
14733 ----------------------------
14734 revision 1.7
14735 date: 1993/12/08 14:21:36;  author: john;  state: Exp;
14736 Added ExplodeObject
14737 ----------------------------
14738 revision 1.6
14739 date: 1993/12/08 11:28:54;  author: john;  state: Exp;
14740 Made lasers look like bolts.
14741 ----------------------------
14742 revision 1.5
14743 date: 1993/12/01 13:12:40;  author: john;  state: Exp;
14744 made lasers frame-rate independant
14745 ----------------------------
14746 revision 1.4
14747 date: 1993/11/30 19:00:42;  author: john;  state: Exp;
14748 lasers working kinda
14749 ----------------------------
14750 revision 1.3
14751 date: 1993/11/29 19:44:53;  author: john;  state: Exp;
14752 *** empty log message ***
14753 ----------------------------
14754 revision 1.2
14755 date: 1993/11/29 17:44:55;  author: john;  state: Exp;
14756 *** empty log message ***
14757 ----------------------------
14758 revision 1.1
14759 date: 1993/11/29 17:19:19;  author: john;  state: Exp;
14760 Initial revision
14761 =============================================================================
14762 RCS file: /Smoke/miner/source/main/lighting.c,v
14763 Working file: main/lighting.c
14764 head: 1.4
14765 description: Lighting functions.
14766 ----------------------------
14767 revision 1.4
14768 date: 1995/09/20 14:26:12;  author: allender;  state: Exp;
14769 more optimizations(?) ala MK
14770 ----------------------------
14771 revision 1.2
14772 date: 1995/07/05 21:27:31;  author: allender;  state: Exp;
14773 new and improved lighting code by MK!
14774 ----------------------------
14775 revision 2.1
14776 date: 1995/05/22 15:37:51;  author: champaign;  state: Exp;
14777 FROM MIKE: New lighting code, maybe don't leave in
14778 ----------------------------
14779 revision 2.0
14780 date: 1995/02/27 11:27:33;  author: john;  state: Exp;
14781 New version 2.0, which has no anonymous unions, builds with
14782 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
14783 ----------------------------
14784 revision 1.43
14785 date: 1995/02/22 13:57:10;  author: allender;  state: Exp;
14786 remove anonymous union from object structure
14787 ----------------------------
14788 revision 1.42
14789 date: 1995/02/13 20:35:07;  author: john;  state: Exp;
14790 Lintized
14791 ----------------------------
14792 revision 1.41
14793 date: 1995/02/04 21:43:40;  author: matt;  state: Exp;
14794 Changed an assert() to an int3() and deal with the bad case
14795 ----------------------------
14796 revision 1.40
14797 date: 1995/01/15 20:48:27;  author: mike;  state: Exp;
14798 support light field for powerups.
14799 ----------------------------
14800 revision 1.39
14801 date: 1994/12/15 13:04:19;  author: mike;  state: Exp;
14802 Replace Players[Player_num].time_total references with GameTime.
14803 ----------------------------
14804 revision 1.38
14805 date: 1994/11/28 21:50:41;  author: mike;  state: Exp;
14806 optimizations.
14807 ----------------------------
14808 revision 1.37
14809 date: 1994/11/28 01:32:33;  author: mike;  state: Exp;
14810 lighting optimization.
14811 ----------------------------
14812 revision 1.36
14813 date: 1994/11/15 12:01:00;  author: john;  state: Exp;
14814 Changed a bunch of code that uses timer_get_milliseconds to 
14815 timer_get_fixed_Seconds.  
14816 ----------------------------
14817 revision 1.35
14818 date: 1994/10/31 21:56:07;  author: matt;  state: Exp;
14819 Fixed bug & added error checking
14820 ----------------------------
14821 revision 1.34
14822 date: 1994/10/21 11:24:57;  author: mike;  state: Exp;
14823 Trap divide overflows in lighting.
14824 ----------------------------
14825 revision 1.33
14826 date: 1994/10/08 14:49:11;  author: matt;  state: Exp;
14827 If viewer changed, don't do smooth lighting hack
14828 ----------------------------
14829 revision 1.32
14830 date: 1994/09/25 23:41:07;  author: matt;  state: Exp;
14831 Changed the object load & save code to read/write the structure fields one
14832 at a time (rather than the whole structure at once).  This mean that the
14833 object structure can be changed without breaking the load/save functions.
14834 As a result of this change, the local_object data can be and has been 
14835 incorporated into the object array.  Also, timeleft is now a property 
14836 of all objects, and the object structure has been otherwise cleaned up.
14837 ----------------------------
14838 revision 1.31
14839 date: 1994/09/25 15:45:15;  author: matt;  state: Exp;
14840 Added OBJ_LIGHT, a type of object that casts light
14841 Added generalized lifeleft, and moved it to local_object
14842 ----------------------------
14843 revision 1.30
14844 date: 1994/09/11 15:48:27;  author: mike;  state: Exp;
14845 Use vm_vec_mag_quick in place of vm_vec_mag in point_dist computation.
14846 ----------------------------
14847 revision 1.29
14848 date: 1994/09/08 21:44:49;  author: matt;  state: Exp;
14849 Made lighting ramp 4x as fast; made only static (ambient) light ramp
14850 up, but not headlight & dynamic light
14851 ----------------------------
14852 revision 1.28
14853 date: 1994/09/02 14:00:07;  author: matt;  state: Exp;
14854 Simplified explode_object() & mutliple-stage explosions
14855 ----------------------------
14856 revision 1.27
14857 date: 1994/08/29 19:06:44;  author: mike;  state: Exp;
14858 Make lighting proportional to square of distance, not linear.
14859 ----------------------------
14860 revision 1.26
14861 date: 1994/08/25 18:08:38;  author: matt;  state: Exp;
14862 Made muzzle flash cast 3x as much light
14863 ----------------------------
14864 revision 1.25
14865 date: 1994/08/23 16:38:31;  author: mike;  state: Exp;
14866 Key weapon light off bitmaps.tbl.
14867 ----------------------------
14868 revision 1.24
14869 date: 1994/08/13 12:20:44;  author: john;  state: Exp;
14870 Made the networking uise the Players array.
14871 ----------------------------
14872 revision 1.23
14873 date: 1994/08/12 22:42:18;  author: john;  state: Exp;
14874 Took away Player_stats; added Players array.
14875 ----------------------------
14876 revision 1.22
14877 date: 1994/07/06 10:19:22;  author: matt;  state: Exp;
14878 Changed include
14879 ----------------------------
14880 revision 1.21
14881 date: 1994/06/28 13:20:22;  author: mike;  state: Exp;
14882 Oops, fixed a dumb typo.
14883 ----------------------------
14884 revision 1.20
14885 date: 1994/06/28 12:53:25;  author: mike;  state: Exp;
14886 Change lighting function for flares, make brighter and asynchronously flicker.
14887 ----------------------------
14888 revision 1.19
14889 date: 1994/06/27 18:31:15;  author: mike;  state: Exp;
14890 Add flares.
14891 ----------------------------
14892 revision 1.18
14893 date: 1994/06/20 13:41:17;  author: matt;  state: Exp;
14894 Added time-based gradual lighting hack for objects
14895 Took out strobing robots
14896 ----------------------------
14897 revision 1.17
14898 date: 1994/06/19 16:25:54;  author: mike;  state: Exp;
14899 Optimize lighting.
14900 ----------------------------
14901 revision 1.16
14902 date: 1994/06/17 18:08:08;  author: mike;  state: Exp;
14903 Make robots cast more and variable light.
14904 ----------------------------
14905 revision 1.15
14906 date: 1994/06/13 15:15:55;  author: mike;  state: Exp;
14907 Fix phantom light, every 64K milliseconds, muzzle flash would flash again.
14908 =============================================================================
14909 RCS file: /Smoke/miner/source/main/lighting.h,v
14910 Working file: main/lighting.h
14911 head: 1.1
14912 description: Lighting system prototypes, structures, etc.
14913 ----------------------------
14914 revision 1.1
14915 date: 1995/05/16 15:58:51;  author: allender;  state: Exp;
14916 Initial revision
14917 ----------------------------
14918 revision 2.0
14919 date: 1995/02/27 11:27:52;  author: john;  state: Exp;
14920 New version 2.0, which has no anonymous unions, builds with
14921 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
14922 ----------------------------
14923 revision 1.6
14924 date: 1994/11/28 21:50:56;  author: mike;  state: Exp;
14925 optimizations.
14926 ----------------------------
14927 revision 1.5
14928 date: 1994/06/07 16:51:58;  author: matt;  state: Exp;
14929 Made object lighting work correctly; changed name of Ambient_light to
14930 Dynamic_light; cleaned up polygobj object rendering a little.
14931 ----------------------------
14932 revision 1.4
14933 date: 1994/05/31 18:41:35;  author: matt;  state: Exp;
14934 Added comments
14935 ----------------------------
14936 revision 1.3
14937 date: 1994/05/23 15:00:08;  author: mike;  state: Exp;
14938 Change MIN_LIGHT_DIST.
14939 ----------------------------
14940 revision 1.2
14941 date: 1994/05/22 15:30:09;  author: mike;  state: Exp;
14942 First version.
14943 ----------------------------
14944 revision 1.1
14945 date: 1994/05/22 15:16:44;  author: mike;  state: Exp;
14946 Initial revision
14947 =============================================================================
14948 RCS file: /Smoke/miner/source/main/loadpats.h,v
14949 Working file: main/loadpats.h
14950 head: 1.1
14951 description: Function to load patches to the GUS...
14952 ----------------------------
14953 revision 1.1
14954 date: 1995/05/16 15:58:59;  author: allender;  state: Exp;
14955 Initial revision
14956 ----------------------------
14957 revision 1.2
14958 date: 1994/12/01 02:22:37;  author: john;  state: Exp;
14959 Incorporated LOADPATS.EXE into our code.
14960 ----------------------------
14961 revision 1.1
14962 date: 1994/12/01 01:42:25;  author: john;  state: Exp;
14963 Initial revision
14964 =============================================================================
14965 RCS file: /Smoke/miner/source/main/macnet.c,v
14966 Working file: main/macnet.c
14967 head: 1.4
14968 description: macintosh specific networking code  
14969 ----------------------------
14970 revision 1.4
14971 date: 1995/11/03 12:55:18;  author: allender;  state: Exp;
14972 shareware changes
14973 ----------------------------
14974 revision 1.3
14975 date: 1995/10/31 10:21:55;  author: allender;  state: Exp;
14976 shareware stuff
14977 ----------------------------
14978 revision 1.2
14979 date: 1995/08/31 15:51:28;  author: allender;  state: Exp;
14980 fixup structure for new format with appletalk
14981 ----------------------------
14982 revision 1.1
14983 date: 1995/08/15 13:00:20;  author: allender;  state: Exp;
14984 Initial revision
14985 =============================================================================
14986 RCS file: /Smoke/miner/source/main/macnet.h,v
14987 Working file: main/macnet.h
14988 head: 1.3
14989 description: Header file for macintosh specific networking stuff
14990 =============================================================================
14991 RCS file: /Smoke/miner/source/main/mcockpit.h,v
14992 Working file: main/mcockpit.h
14993 head: 1.1
14994 description: .
14995 ----------------------------
14996 revision 1.1
14997 date: 1995/05/16 15:59:06;  author: allender;  state: Exp;
14998 Initial revision
14999 ----------------------------
15000 revision 1.3
15001 date: 1994/05/30 19:28:16;  author: john;  state: Exp;
15002 Moved functionality of mcockpit into 2d, ibitblt.
15003 ----------------------------
15004 revision 1.2
15005 date: 1994/05/11 11:19:21;  author: john;  state: Exp;
15006 Made cockpit code be created at runtime.
15007 ----------------------------
15008 revision 1.1
15009 date: 1994/05/11 10:38:56;  author: john;  state: Exp;
15010 Initial revision
15011 =============================================================================
15012 RCS file: /BigRed/miner/source/main/menu.c,v
15013 Working file: main/menu.c
15014 head: 1.1
15015 description: Inferno main menu.
15016 =============================================================================
15017 RCS file: /Smoke/miner/source/main/menu.h,v
15018 Working file: main/menu.h
15019 head: 1.1
15020 description: Menu prototypes and variables
15021 ----------------------------
15022 revision 1.1
15023 date: 1995/05/16 15:59:14;  author: allender;  state: Exp;
15024 Initial revision
15025 ----------------------------
15026 revision 2.1
15027 date: 1995/03/06 16:47:41;  author: mike;  state: Exp;
15028 destination saturn
15029 ----------------------------
15030 revision 2.0
15031 date: 1995/02/27 11:29:47;  author: john;  state: Exp;
15032 New version 2.0, which has no anonymous unions, builds with
15033 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15034 ----------------------------
15035 revision 1.34
15036 date: 1994/12/12 00:16:16;  author: john;  state: Exp;
15037 Added auto-leveling flag.
15038 ----------------------------
15039 revision 1.33
15040 date: 1994/12/07 20:04:26;  author: mike;  state: Exp;
15041 set Max_debris_objects.
15042 ----------------------------
15043 revision 1.32
15044 date: 1994/11/14 17:23:19;  author: rob;  state: Exp;
15045 ADded extern for default difficulty settings.
15046 ----------------------------
15047 revision 1.31
15048 date: 1994/11/10 11:08:29;  author: mike;  state: Exp;
15049 detail level stuff.
15050 ----------------------------
15051 revision 1.30
15052 date: 1994/11/05 14:05:53;  author: john;  state: Exp;
15053 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
15054 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
15055 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
15056 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
15057 ----------------------------
15058 revision 1.29
15059 date: 1994/11/02 11:59:44;  author: john;  state: Exp;
15060 Moved menu out of game into inferno main loop.
15061 ----------------------------
15062 revision 1.28
15063 date: 1994/10/17 20:30:59;  author: john;  state: Exp;
15064 Made the text for the difficulty labels global so that
15065 the high score screen can print "rookie" or whatever.
15066 ----------------------------
15067 revision 1.27
15068 date: 1994/10/04 10:47:09;  author: matt;  state: Exp;
15069 Made main menu remember selected item
15070 ----------------------------
15071 revision 1.26
15072 date: 1994/08/10 19:55:19;  author: john;  state: Exp;
15073 Changed font stuff; Took out old menu; messed up lots of
15074 other stuff like game sequencing messages, etc.
15075 ----------------------------
15076 revision 1.25
15077 date: 1994/06/23 18:54:09;  author: matt;  state: Exp;
15078 Cleaned up game start/menu interaction, and improved main menu a little
15079 ----------------------------
15080 revision 1.24
15081 date: 1994/06/21 12:11:50;  author: yuan;  state: Exp;
15082 Fixed up menus and added HUDisplay messages.
15083 ----------------------------
15084 revision 1.23
15085 date: 1994/06/20 23:15:16;  author: yuan;  state: Exp;
15086 Color switching capability for the menus.
15087 ----------------------------
15088 revision 1.22
15089 date: 1994/06/20 22:02:25;  author: yuan;  state: Exp;
15090 Made menu GREEN by POPULAR DEMAND!!
15091 ----------------------------
15092 revision 1.21
15093 date: 1994/06/20 21:05:48;  author: yuan;  state: Exp;
15094 Fixed up menus.
15095 ----------------------------
15096 revision 1.20
15097 date: 1994/06/20 19:19:29;  author: yuan;  state: Exp;
15098 Tidied up the menu and the "message blocks" between levels, etc.
15099 ----------------------------
15100 revision 1.19
15101 date: 1994/06/17 18:01:10;  author: john;  state: Exp;
15102 A bunch of new stuff by John
15103 ----------------------------
15104 revision 1.18
15105 date: 1994/05/16 09:37:22;  author: matt;  state: Exp;
15106 Got rid of global continue_flag
15107 ----------------------------
15108 revision 1.17
15109 date: 1994/05/14 17:14:51;  author: matt;  state: Exp;
15110 Got rid of externs in source (non-header) files
15111 ----------------------------
15112 revision 1.16
15113 date: 1994/05/10 12:14:26;  author: yuan;  state: Exp;
15114 Game save/load... Demo levels 1-5 added...
15115 High scores fixed...
15116 ----------------------------
15117 revision 1.15
15118 date: 1994/05/05 09:21:21;  author: yuan;  state: Exp;
15119 *** empty log message ***
15120 ----------------------------
15121 revision 1.14
15122 date: 1994/04/29 14:55:40;  author: mike;  state: Exp;
15123 Change some menu colors.
15124 ----------------------------
15125 revision 1.13
15126 date: 1994/04/28 18:04:36;  author: yuan;  state: Exp;
15127 Gamesave added.
15128 Trigger problem fixed (seg pointer is replaced by index now.)
15129 ----------------------------
15130 revision 1.12
15131 date: 1994/02/18 11:55:01;  author: yuan;  state: Exp;
15132 Fixed menu to be called from game.
15133 ----------------------------
15134 revision 1.11
15135 date: 1994/02/10 17:45:39;  author: yuan;  state: Exp;
15136 Integrated some hacks which still need to be fixed.
15137 ----------------------------
15138 revision 1.10
15139 date: 1994/02/01 22:50:23;  author: yuan;  state: Exp;
15140 Final menu version for demo
15141 ----------------------------
15142 revision 1.9
15143 date: 1994/02/01 11:50:17;  author: yuan;  state: Exp;
15144 Moved quit message down just a tiny bit
15145 ----------------------------
15146 revision 1.8
15147 date: 1994/01/31 17:30:16;  author: yuan;  state: Exp;
15148 Fixed quit not disappearing problem
15149 ----------------------------
15150 revision 1.7
15151 date: 1994/01/31 12:25:20;  author: yuan;  state: Exp;
15152 New menu stuff
15153 ----------------------------
15154 revision 1.6
15155 date: 1994/01/26 13:14:04;  author: john;  state: Exp;
15156 *** empty log message ***
15157 ----------------------------
15158 revision 1.5
15159 date: 1993/12/29 16:44:44;  author: yuan;  state: Exp;
15160 Added some function definitions
15161 ----------------------------
15162 revision 1.4
15163 date: 1993/12/13 18:53:12;  author: yuan;  state: Exp;
15164 Fixed dependency problem
15165 ----------------------------
15166 revision 1.3
15167 date: 1993/12/12 13:53:51;  author: yuan;  state: Exp;
15168 Added menu and -g flag
15169 ----------------------------
15170 revision 1.2
15171 date: 1993/12/10 16:07:17;  author: yuan;  state: Exp;
15172 Working on menu system.  Updated the title screen.
15173 ----------------------------
15174 revision 1.1
15175 date: 1993/12/10 12:45:27;  author: yuan;  state: Exp;
15176 Initial revision
15177 =============================================================================
15178 RCS file: /BigRed/miner/source/main/mglobal.c,v
15179 Working file: main/mglobal.c
15180 head: 1.1
15181 description: Global variables for main directory
15182 ----------------------------
15183 revision 1.1
15184 date: 1995/12/05 16:03:10;  author: allender;  state: Exp;
15185 Initial revision
15186 ----------------------------
15187 revision 1.3
15188 date: 1995/10/10 11:49:41;  author: allender;  state: Exp;
15189 removed malloc of static data now in ai module
15190 ----------------------------
15191 revision 1.2
15192 date: 1995/07/12 12:48:52;  author: allender;  state: Exp;
15193 malloc out edge_list global here, not static in automap.c
15194 ----------------------------
15195 revision 1.1
15196 date: 1995/05/16 15:27:40;  author: allender;  state: Exp;
15197 Initial revision
15198 ----------------------------
15199 revision 2.2
15200 date: 1995/03/14 18:24:37;  author: john;  state: Exp;
15201 Force Destination Saturn to use CD-ROM drive.
15202 ----------------------------
15203 revision 2.1
15204 date: 1995/03/06 16:47:23;  author: mike;  state: Exp;
15205 destination saturn
15206 ----------------------------
15207 revision 2.0
15208 date: 1995/02/27 11:30:00;  author: john;  state: Exp;
15209 New version 2.0, which has no anonymous unions, builds with
15210 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15211 ----------------------------
15212 revision 1.43
15213 date: 1995/01/19 17:00:53;  author: john;  state: Exp;
15214 Made save game work between levels.
15215 ----------------------------
15216 revision 1.42
15217 date: 1994/12/05 14:23:53;  author: adam;  state: Exp;
15218 changed default detail to max, not custom
15219 ----------------------------
15220 revision 1.41
15221 date: 1994/11/19 15:15:07;  author: mike;  state: Exp;
15222 remove unused code and data
15223 ----------------------------
15224 revision 1.40
15225 date: 1994/11/03 10:13:19;  author: yuan;  state: Exp;
15226 Added #include "game.h"
15227 ----------------------------
15228 revision 1.39
15229 date: 1994/11/03 10:09:59;  author: matt;  state: Exp;
15230 Properly initialize detail & difficulty levels
15231 ----------------------------
15232 revision 1.38
15233 date: 1994/10/30 14:11:21;  author: mike;  state: Exp;
15234 rip out local segments stuff.
15235 ----------------------------
15236 revision 1.37
15237 date: 1994/10/26 15:21:30;  author: mike;  state: Exp;
15238 detail level.
15239 ----------------------------
15240 revision 1.36
15241 date: 1994/09/22 10:46:12;  author: mike;  state: Exp;
15242 Add difficulty levels.
15243 ----------------------------
15244 revision 1.35
15245 date: 1994/09/13 11:19:11;  author: mike;  state: Exp;
15246 Add Next_missile_fire_time.
15247 ----------------------------
15248 revision 1.34
15249 date: 1994/08/31 19:25:34;  author: mike;  state: Exp;
15250 GameTime and laser-firing limiting stuff added.
15251 ----------------------------
15252 revision 1.33
15253 date: 1994/08/11 18:58:53;  author: mike;  state: Exp;
15254 Add Side_to_verts_int.
15255 ----------------------------
15256 revision 1.32
15257 date: 1994/07/21 19:01:38;  author: mike;  state: Exp;
15258 Add Lsegment.
15259 ----------------------------
15260 revision 1.31
15261 date: 1994/07/21 13:11:24;  author: matt;  state: Exp;
15262 Ripped out remants of old demo system, and added demo only system that
15263 disables object movement and game options from menu.
15264 ----------------------------
15265 revision 1.30
15266 date: 1994/06/17 18:06:48;  author: matt;  state: Exp;
15267 Made password be treated as lowercase, since cmdline parsing converts
15268 everything to lowercase.
15269 ----------------------------
15270 revision 1.29
15271 date: 1994/03/15 16:33:04;  author: yuan;  state: Exp;
15272 Cleaned up bm-loading code.
15273 (Fixed structures too)
15274 ----------------------------
15275 revision 1.28
15276 date: 1994/02/17 11:32:45;  author: matt;  state: Exp;
15277 Changes in object system
15278 ----------------------------
15279 revision 1.27
15280 date: 1994/02/16 17:08:43;  author: matt;  state: Exp;
15281 Added needed include of 3d.h
15282 ----------------------------
15283 revision 1.26
15284 date: 1994/02/16 13:47:58;  author: mike;  state: Exp;
15285 fix bugs so editor can compile out.
15286 ----------------------------
15287 revision 1.25
15288 date: 1994/02/11 21:52:13;  author: matt;  state: Exp;
15289 Made password protection selectable by #define (and thus INFERNO.INI)
15290 ----------------------------
15291 revision 1.24
15292 date: 1994/02/10 15:35:56;  author: matt;  state: Exp;
15293 Various changes to make editor compile out.
15294 ----------------------------
15295 revision 1.23
15296 date: 1994/02/02 12:34:29;  author: mike;  state: Exp;
15297 take out BATS encryption.
15298 ----------------------------
15299 revision 1.22
15300 date: 1994/01/21 16:08:11;  author: matt;  state: Exp;
15301 Added FrameCount variable
15302 ----------------------------
15303 revision 1.21
15304 date: 1994/01/06 17:13:10;  author: john;  state: Exp;
15305 Added Video clip functionality
15306 ----------------------------
15307 revision 1.20
15308 date: 1993/12/08 17:45:08;  author: matt;  state: Exp;
15309 Changed password again
15310 ----------------------------
15311 revision 1.19
15312 date: 1993/12/08 17:41:05;  author: matt;  state: Exp;
15313 Changed password
15314 ----------------------------
15315 revision 1.18
15316 date: 1993/12/08 10:55:10;  author: mike;  state: Exp;
15317 Add free_obj_list
15318 ----------------------------
15319 revision 1.17
15320 date: 1993/12/07 13:46:38;  author: john;  state: Exp;
15321 Added Explosion bitmap array
15322 ----------------------------
15323 revision 1.16
15324 date: 1993/12/06 18:40:35;  author: matt;  state: Exp;
15325 Changed object loading & handling
15326 ----------------------------
15327 revision 1.15
15328 date: 1993/12/05 22:47:48;  author: matt;  state: Exp;
15329 Reworked include files in an attempt to cut down on build times
15330 ----------------------------
15331 revision 1.14
15332 date: 1993/12/01 11:44:11;  author: matt;  state: Exp;
15333 Chagned Frfract to FrameTime
15334 ----------------------------
15335 revision 1.13
15336 date: 1993/12/01 00:27:11;  author: yuan;  state: Exp;
15337 Implemented new bitmap structure system...
15338 overall bitmap scheme still needs some work.
15339 ----------------------------
15340 revision 1.12
15341 date: 1993/11/19 17:21:59;  author: matt;  state: Exp;
15342 Changed the bitmap number of object class UNICLASS
15343 Removed static initialization for objects
15344 ----------------------------
15345 revision 1.11
15346 date: 1993/11/18 13:51:47;  author: mike;  state: Exp;
15347 Add Classes, Class_views, Objects
15348 ----------------------------
15349 revision 1.10
15350 date: 1993/11/04 18:52:36;  author: matt;  state: Exp;
15351 Made Vertices[] and Segment_points[] use same constant for size, since
15352 they must be the same size anyway
15353 ----------------------------
15354 revision 1.9
15355 date: 1993/11/04 14:01:06;  author: matt;  state: Exp;
15356 Mucked with include files
15357 ----------------------------
15358 revision 1.8
15359 date: 1993/10/26 13:58:42;  author: mike;  state: Exp;
15360 Add password protection.
15361 ----------------------------
15362 revision 1.7
15363 date: 1993/10/14 18:05:50;  author: mike;  state: Exp;
15364 Change Side_to_verts to use MAX_SIDES_PER_SEGMENT in place of CONNECTIVITY
15365 ----------------------------
15366 revision 1.6
15367 date: 1993/10/12 13:57:19;  author: john;  state: Exp;
15368 added texture[]
15369 ----------------------------
15370 revision 1.5
15371 date: 1993/10/12 09:58:15;  author: mike;  state: Exp;
15372 Move Side_to_verts here from eglobal.c, since it is needed in the game.
15373 ----------------------------
15374 revision 1.4
15375 date: 1993/10/09 15:52:30;  author: mike;  state: Exp;
15376 Move test_pos, test_orient here from render.c.
15377 ----------------------------
15378 revision 1.3
15379 date: 1993/10/02 18:15:45;  author: mike;  state: Exp;
15380 Killed include of segment.h, which gets included by inferno.h.
15381 ----------------------------
15382 revision 1.2
15383 date: 1993/09/23 17:54:24;  author: mike;  state: Exp;
15384 Add Segment_points
15385 ----------------------------
15386 revision 1.1
15387 date: 1993/09/23 15:01:50;  author: mike;  state: Exp;
15388 Initial revision
15389 =============================================================================
15390 RCS file: /BigRed/miner/source/main/mission.c,v
15391 Working file: main/mission.c
15392 head: 1.4
15393 description: Code to handle multiple missions
15394 ----------------------------
15395 revision 1.4
15396 date: 1995/10/31 10:21:40;  author: allender;  state: Exp;
15397 no mission support in shareware
15398 ----------------------------
15399 revision 1.3
15400 date: 1995/10/21 22:53:04;  author: allender;  state: Exp;
15401 moved missions to data folder
15402 ----------------------------
15403 revision 1.2
15404 date: 1995/09/13 08:47:29;  author: allender;  state: Exp;
15405 made to work with Chris' direct stuff
15406 ----------------------------
15407 revision 1.1
15408 date: 1995/05/16 15:27:48;  author: allender;  state: Exp;
15409 Initial revision
15410 ----------------------------
15411 revision 2.8
15412 date: 1995/03/20 09:49:31;  author: mike;  state: Exp;
15413 Remove eof char from comment which confused make depend, causing
15414 no mission.obj: line in makefile.  Pretty stupid tool, huh?
15415 ----------------------------
15416 revision 2.7
15417 date: 1995/03/20 12:12:11;  author: john;  state: Exp;
15418 Added ifdef SATURN.
15419 ----------------------------
15420 revision 2.6
15421 date: 1995/03/15 14:32:49;  author: john;  state: Exp;
15422 Added code to force the Descent CD-rom in the drive.
15423 ----------------------------
15424 revision 2.5
15425 date: 1995/03/15 11:41:15;  author: john;  state: Exp;
15426 Better Saturn CD-ROM support.
15427 ----------------------------
15428 revision 2.4
15429 date: 1995/03/14 18:24:14;  author: john;  state: Exp;
15430 Force Destination Saturn to use CD-ROM drive.
15431 ----------------------------
15432 revision 2.3
15433 date: 1995/03/07 14:19:41;  author: mike;  state: Exp;
15434 More destination saturn stuff.
15435 ----------------------------
15436 revision 2.2
15437 date: 1995/03/06 23:09:03;  author: mike;  state: Exp;
15438 more saturn stuff: make briefings work for saturn mission.
15439 ----------------------------
15440 revision 2.1
15441 date: 1995/03/06 16:47:48;  author: mike;  state: Exp;
15442 destination saturn
15443 ----------------------------
15444 revision 2.0
15445 date: 1995/02/27 11:27:49;  author: john;  state: Exp;
15446 New version 2.0, which has no anonymous unions, builds with
15447 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15448 ----------------------------
15449 revision 1.14
15450 date: 1995/02/15 11:30:37;  author: john;  state: Exp;
15451 Fixed bug with potential mem overwrite on line 160.
15452 ----------------------------
15453 revision 1.13
15454 date: 1995/02/10 17:53:20;  author: matt;  state: Exp;
15455 Changed mission name again
15456 ----------------------------
15457 revision 1.12
15458 date: 1995/02/10 17:35:38;  author: matt;  state: Exp;
15459 Changed name of built-in mission
15460 ----------------------------
15461 revision 1.11
15462 date: 1995/02/07 17:13:51;  author: allender;  state: Exp;
15463 removed return statement in load_mission so that built in mission will
15464 actually set the Current_mission_name and _filename
15465 ----------------------------
15466 revision 1.10
15467 date: 1995/01/31 01:19:45;  author: matt;  state: Exp;
15468 Made build_mission_list() sort missions by name
15469 ----------------------------
15470 revision 1.9
15471 date: 1995/01/30 13:49:58;  author: allender;  state: Exp;
15472 changed build_mission_list in load_mission_by_name to include
15473 anarchy levels.
15474 ----------------------------
15475 revision 1.8
15476 date: 1995/01/30 13:03:51;  author: matt;  state: Exp;
15477 Fixed dumb mistake
15478 ----------------------------
15479 revision 1.7
15480 date: 1995/01/30 12:55:22;  author: matt;  state: Exp;
15481 Added vars to point to mission names
15482 ----------------------------
15483 revision 1.6
15484 date: 1995/01/22 18:57:28;  author: matt;  state: Exp;
15485 Made player highest level work with missions
15486 ----------------------------
15487 revision 1.5
15488 date: 1995/01/22 14:13:08;  author: matt;  state: Exp;
15489 Added flag in mission list for anarchy-only missions
15490 ----------------------------
15491 revision 1.4
15492 date: 1995/01/21 23:13:12;  author: matt;  state: Exp;
15493 Made high scores with (not work, really) with loaded missions
15494 Don't give player high score when quit game
15495 ----------------------------
15496 revision 1.3
15497 date: 1995/01/21 16:27:12;  author: matt;  state: Exp;
15498 Made endlevel briefing work with missions
15499 ----------------------------
15500 revision 1.2
15501 date: 1995/01/20 22:47:50;  author: matt;  state: Exp;
15502 Mission system implemented, though imcompletely
15503 ----------------------------
15504 revision 1.1
15505 date: 1995/01/20 13:42:19;  author: matt;  state: Exp;
15506 Initial revision
15507 =============================================================================
15508 RCS file: /BigRed/miner/source/main/mission.h,v
15509 Working file: main/mission.h
15510 head: 1.1
15511 description: Header for mission.h
15512 ----------------------------
15513 revision 1.1
15514 date: 1995/05/16 15:59:22;  author: allender;  state: Exp;
15515 Initial revision
15516 ----------------------------
15517 revision 2.0
15518 date: 1995/02/27 11:31:35;  author: john;  state: Exp;
15519 New version 2.0, which has no anonymous unions, builds with
15520 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15521 ----------------------------
15522 revision 1.6
15523 date: 1995/01/30 12:55:41;  author: matt;  state: Exp;
15524 Added vars to point to mission names
15525 ----------------------------
15526 revision 1.5
15527 date: 1995/01/22 18:57:21;  author: matt;  state: Exp;
15528 Made player highest level work with missions
15529 ----------------------------
15530 revision 1.4
15531 date: 1995/01/22 14:13:21;  author: matt;  state: Exp;
15532 Added flag in mission list for anarchy-only missions
15533 ----------------------------
15534 revision 1.3
15535 date: 1995/01/21 23:13:12;  author: matt;  state: Exp;
15536 Made high scores with (not work, really) with loaded missions
15537 Don't give player high score when quit game
15538 ----------------------------
15539 revision 1.2
15540 date: 1995/01/20 22:47:53;  author: matt;  state: Exp;
15541 Mission system implemented, though imcompletely
15542 ----------------------------
15543 revision 1.1
15544 date: 1995/01/20 13:42:26;  author: matt;  state: Exp;
15545 Initial revision
15546 =============================================================================
15547 RCS file: /Smoke/miner/source/main/modem.c,v
15548 Working file: main/modem.c
15549 head: 1.20
15550 description: Modem support code
15551 ----------------------------
15552 revision 1.20
15553 date: 1995/11/14 14:26:07;  author: allender;  state: Exp;
15554 fixed memory leak with conn_handle being reallocated
15555 each time modem/serial game was started
15556 ----------------------------
15557 revision 1.19
15558 date: 1995/11/13 13:40:03;  author: allender;  state: Exp;
15559 reset contest variable on modem game start
15560 ----------------------------
15561 revision 1.18
15562 date: 1995/11/08 17:15:55;  author: allender;  state: Exp;
15563 fix horrendous bug which may affect registered in which
15564 during modem play, player num gets set to the same value
15565 when playing against a PC
15566 ----------------------------
15567 revision 1.17
15568 date: 1995/11/08 15:13:50;  author: allender;  state: Exp;
15569 new faster(?) serial port reading/writing code for mac
15570 ----------------------------
15571 revision 1.16
15572 date: 1995/11/03 12:54:46;  author: allender;  state: Exp;
15573 shareware changes
15574 ----------------------------
15575 revision 1.15
15576 date: 1995/10/31 10:21:24;  author: allender;  state: Exp;
15577 shareware stuff
15578 ----------------------------
15579 revision 1.14
15580 date: 1995/10/24 18:10:53;  author: allender;  state: Exp;
15581 save backdrop and restore when cmchoose is cancelled
15582 ----------------------------
15583 revision 1.13
15584 date: 1995/10/24 11:51:51;  author: allender;  state: Exp;
15585 change hang up modem text to close link text
15586 ----------------------------
15587 revision 1.12
15588 date: 1995/10/17 13:18:40;  author: allender;  state: Exp;
15589 com menu now has close box
15590 ----------------------------
15591 revision 1.11
15592 date: 1995/10/15 16:04:18;  author: allender;  state: Exp;
15593 fixed up modem menus
15594 ----------------------------
15595 revision 1.10
15596 date: 1995/10/13 14:42:55;  author: allender;  state: Exp;
15597 *** empty log message ***
15598 ----------------------------
15599 revision 1.9
15600 date: 1995/10/12 17:35:50;  author: allender;  state: Exp;
15601 make CMChoose dialog work on secondary monitor
15602 ----------------------------
15603 revision 1.8
15604 date: 1995/09/18 17:01:55;  author: allender;  state: Exp;
15605 CMAccept must *accept* the connection!!! DOH!
15606 ----------------------------
15607 revision 1.7
15608 date: 1995/09/13 08:49:49;  author: allender;  state: Exp;
15609 modem stuff working a little better?
15610 ----------------------------
15611 revision 1.6
15612 date: 1995/09/12 15:46:52;  author: allender;  state: Exp;
15613 fixed motorola compiler error
15614 ----------------------------
15615 revision 1.5
15616 date: 1995/09/12 14:19:52;  author: allender;  state: Exp;
15617 new connection oriented tool stuff
15618 ----------------------------
15619 revision 1.4
15620 date: 1995/09/05 14:06:17;  author: allender;  state: Exp;
15621 checkpoint again
15622 ----------------------------
15623 revision 1.3
15624 date: 1995/06/25 22:06:15;  author: allender;  state: Exp;
15625 macintosh checkpoint
15626 ----------------------------
15627 revision 1.2
15628 date: 1995/06/08 12:55:14;  author: allender;  state: Exp;
15629 start of macintosh port.  most ctb stuff in and working (except for modem)
15630 ----------------------------
15631 revision 1.1
15632 date: 1995/05/16 15:27:56;  author: allender;  state: Exp;
15633 Initial revision
15634 ----------------------------
15635 revision 2.9
15636 date: 1995/04/09 14:43:20;  author: john;  state: Exp;
15637 Took out mem-overwrite error when > 25 char phone numbers.
15638 ----------------------------
15639 revision 2.8
15640 date: 1995/04/06 12:13:36;  author: john;  state: Exp;
15641 Made phone numbers be 32 characters max.
15642 ----------------------------
15643 revision 2.7
15644 date: 1995/03/31 14:16:33;  author: john;  state: Exp;
15645 Mode phone numbers 30 chars long.
15646 ----------------------------
15647 revision 2.6
15648 date: 1995/03/30 16:39:44;  author: john;  state: Exp;
15649 Incread phone numbers to 25 characters.
15650 ----------------------------
15651 revision 2.5
15652 date: 1995/03/30 16:04:49;  author: john;  state: Exp;
15653 Increased modem number length.
15654  
15655 ----------------------------
15656 revision 2.4
15657 date: 1995/03/29 15:33:23;  author: john;  state: Exp;
15658 Took out RTS/CTS handshaking. Made it enabled with -RTSCTS.
15659 ----------------------------
15660 revision 2.3
15661 date: 1995/03/21 14:41:10;  author: john;  state: Exp;
15662 Ifdef'd out the NETWORK code.
15663 ----------------------------
15664 revision 2.2
15665 date: 1995/03/06 16:47:50;  author: mike;  state: Exp;
15666 destination saturn
15667 ----------------------------
15668 revision 2.1
15669 date: 1995/03/02 15:58:31;  author: john;  state: Exp;
15670 Made menu support modex.
15671 ----------------------------
15672 revision 2.0
15673 date: 1995/02/27 11:32:34;  author: john;  state: Exp;
15674 New version 2.0, which has no anonymous unions, builds with
15675 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15676 ----------------------------
15677 revision 1.157
15678 date: 1995/02/15 15:35:12;  author: john;  state: Exp;
15679 Added code to support modem tracking of kills during endlevel..
15680 ----------------------------
15681 revision 1.156
15682 date: 1995/02/15 15:27:16;  author: john;  state: Exp;
15683 Mode modem code work with kills after you leave mine.
15684 ----------------------------
15685 revision 1.155
15686 date: 1995/02/12 19:53:04;  author: rob;  state: Exp;
15687 Fixed up com flush.
15688 ----------------------------
15689 revision 1.154
15690 date: 1995/02/11 17:13:25;  author: rob;  state: Exp;
15691 Took out code fill stuff.
15692 ----------------------------
15693 revision 1.153
15694 date: 1995/02/11 14:26:25;  author: rob;  state: Exp;
15695 Added support for invul. controlcen.
15696 ----------------------------
15697 revision 1.152
15698 date: 1995/02/09 02:59:44;  author: mike;  state: Exp;
15699 check code for 00066xxx bugs.
15700 ----------------------------
15701 revision 1.151
15702 date: 1995/02/08 19:18:56;  author: rob;  state: Exp;
15703 Took out show IDs on HUD option.
15704 ----------------------------
15705 revision 1.150
15706 date: 1995/02/08 11:30:29;  author: rob;  state: Exp;
15707 Fixed some pretty minor bugs.
15708 ----------------------------
15709 revision 1.149
15710 date: 1995/02/07 20:39:54;  author: rob;  state: Exp;
15711 Added new modem game options for hud id's and automap show.
15712 ----------------------------
15713 revision 1.148
15714 date: 1995/02/06 18:42:09;  author: rob;  state: Exp;
15715 Removed debugging crap.
15716 ----------------------------
15717 revision 1.147
15718 date: 1995/02/06 18:17:17;  author: rob;  state: Exp;
15719 Fixed bug in killed tallys in modem game.
15720 ----------------------------
15721 revision 1.146
15722 date: 1995/02/05 17:04:29;  author: rob;  state: Exp;
15723 Removed performance monitoring debug message.
15724 ----------------------------
15725 revision 1.145
15726 date: 1995/02/05 17:02:48;  author: rob;  state: Exp;
15727 Speeding up cooperative/robo-anarchy modes.
15728 ----------------------------
15729 revision 1.142
15730 date: 1995/02/03 18:09:40;  author: rob;  state: Exp;
15731 Small fixes to modem setup menu..
15732 ----------------------------
15733 revision 1.141
15734 date: 1995/02/03 11:12:15;  author: rob;  state: Exp;
15735 Fixed a bug (again).  Somehow last checkin got lost.
15736 ----------------------------
15737 revision 1.140
15738 date: 1995/02/02 22:06:20;  author: rob;  state: Exp;
15739 Removed a function frm shareware.
15740 ----------------------------
15741 revision 1.139
15742 date: 1995/02/01 23:20:32;  author: rob;  state: Exp;
15743 Put baud rate in connect subtitle.
15744 ----------------------------
15745 revision 1.138
15746 date: 1995/01/30 21:22:11;  author: rob;  state: Exp;
15747 Fixed bug in sync pack memcpy len.
15748 ----------------------------
15749 revision 1.137
15750 date: 1995/01/30 21:18:31;  author: rob;  state: Exp;
15751 Simplified mission loading support.
15752 ----------------------------
15753 revision 1.136
15754 date: 1995/01/30 18:32:08;  author: rob;  state: Exp;
15755 Added include of multibot.h
15756 ----------------------------
15757 revision 1.135
15758 date: 1995/01/30 17:16:04;  author: rob;  state: Exp;
15759 Added new system for sending robots positions in modem games.
15760 ----------------------------
15761 revision 1.134
15762 date: 1995/01/30 15:29:44;  author: rob;  state: Exp;
15763 Localizing.
15764 ----------------------------
15765 revision 1.133
15766 date: 1995/01/29 15:20:21;  author: rob;  state: Exp;
15767 Fixed a bug in secret level sequencing for modem games.
15768 ----------------------------
15769 revision 1.132
15770 date: 1995/01/24 15:48:51;  author: rob;  state: Exp;
15771 fixed error dialog.
15772 ----------------------------
15773 revision 1.131
15774 date: 1995/01/23 18:51:59;  author: rob;  state: Exp;
15775 Added RTS/CTS to null-modem games to help IHHD folks.
15776 Fixed a bad assert.
15777 Added support for user-written mission files.
15778 ----------------------------
15779 revision 1.130
15780 date: 1995/01/23 16:01:36;  author: rob;  state: Exp;
15781 More reliable syncing.
15782 Added mission selection.
15783 ----------------------------
15784 revision 1.129
15785 date: 1995/01/20 22:47:35;  author: matt;  state: Exp;
15786 Mission system implemented, though imcompletely
15787 ----------------------------
15788 revision 1.128
15789 date: 1995/01/19 18:18:05;  author: rob;  state: Exp;
15790 Fixed kill list display.
15791 ----------------------------
15792 revision 1.127
15793 date: 1995/01/19 16:33:48;  author: rob;  state: Exp;
15794 removed ambigous variable name in check_message.
15795 ----------------------------
15796 revision 1.126
15797 date: 1995/01/19 11:56:38;  author: rob;  state: Exp;
15798 Take out Int3 that could never get hit.
15799 ----------------------------
15800 revision 1.125
15801 date: 1995/01/18 19:01:46;  author: rob;  state: Exp;
15802 Added new asserts to check for proper game staus.
15803 ----------------------------
15804 revision 1.124
15805 date: 1995/01/18 15:39:25;  author: rob;  state: Exp;
15806 Fixed title of serial menu.
15807 ----------------------------
15808 revision 1.123
15809 date: 1995/01/18 11:54:23;  author: rob;  state: Exp;
15810 Fixing a bug with connect status.
15811 ----------------------------
15812 revision 1.122
15813 date: 1995/01/17 22:16:07;  author: rob;  state: Exp;
15814 Changed timer calls.
15815 ----------------------------
15816 revision 1.121
15817 date: 1995/01/17 13:58:31;  author: rob;  state: Exp;
15818 Fixed problem with not allowing non-anarchy modes in registered.
15819 ----------------------------
15820 revision 1.120
15821 date: 1995/01/15 15:46:18;  author: rob;  state: Exp;
15822 Fixed lost character on serial menu messages.
15823 ----------------------------
15824 revision 1.119
15825 date: 1995/01/12 22:03:15;  author: rob;  state: Exp;
15826 Added sound cue when connection is established.
15827 ----------------------------
15828 revision 1.118
15829 date: 1995/01/12 11:42:05;  author: john;  state: Exp;
15830 added better UART detection.
15831 /.
15832 Works under OS/2 and DOS.
15833 =============================================================================
15834 RCS file: /Smoke/miner/source/main/modem.h,v
15835 Working file: main/modem.h
15836 head: 1.2
15837 description: Header file for modem support
15838 ----------------------------
15839 revision 1.2
15840 date: 1995/09/05 14:06:40;  author: allender;  state: Exp;
15841 checkpoint again
15842 ----------------------------
15843 revision 1.1
15844 date: 1995/05/16 15:59:29;  author: allender;  state: Exp;
15845 Initial revision
15846 ----------------------------
15847 revision 2.1
15848 date: 1995/03/21 08:40:38;  author: john;  state: Exp;
15849 Ifdef'd out the NETWORK code.
15850 ----------------------------
15851 revision 2.0
15852 date: 1995/02/27 11:31:34;  author: john;  state: Exp;
15853 New version 2.0, which has no anonymous unions, builds with
15854 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15855 ----------------------------
15856 revision 1.18
15857 date: 1994/11/22 17:12:05;  author: rob;  state: Exp;
15858 Starting working on secret level fix for modem games.
15859 ----------------------------
15860 revision 1.17
15861 date: 1994/11/17 16:43:17;  author: rob;  state: Exp;
15862 Added prototype for com_level_sync function.
15863 ----------------------------
15864 revision 1.16
15865 date: 1994/11/15 21:30:32;  author: rob;  state: Exp;
15866 Added prototype for new menu hook.
15867 ----------------------------
15868 revision 1.15
15869 date: 1994/10/07 16:15:33;  author: rob;  state: Exp;
15870 Changed calls to multi_send_position.
15871 ----------------------------
15872 revision 1.14
15873 date: 1994/10/07 12:52:24;  author: rob;  state: Exp;
15874 Fixed some problems.
15875 ----------------------------
15876 revision 1.13
15877 date: 1994/10/07 11:25:47;  author: rob;  state: Exp;
15878 Tried to fix modem to work with new multi stuff.  Still a bit jacked up, tho.
15879 ----------------------------
15880 revision 1.12
15881 date: 1994/10/05 19:14:50;  author: rob;  state: Exp;
15882 Exported macros and arrays to support network object mapping.
15883 ----------------------------
15884 revision 1.11
15885 date: 1994/10/05 17:48:59;  author: rob;  state: Exp;
15886 Several changes, most to end_of_level sequencing.
15887 ----------------------------
15888 revision 1.10
15889 date: 1994/10/05 14:22:54;  author: rob;  state: Exp;
15890 Added com_end_level.
15891 ----------------------------
15892 revision 1.9
15893 date: 1994/09/30 18:37:22;  author: rob;  state: Exp;
15894 Another day's worth of work.  Mostly menus, error checking.  Added
15895 level checksums during sync, carrier detect during all com calls,
15896 generic com_abort() procedure for bailing out, and nm_messagebox
15897 handling of QUIT instead of HUD message (which never gets seen).
15898 ----------------------------
15899 revision 1.8
15900 date: 1994/09/29 20:55:16;  author: rob;  state: Exp;
15901 Lots of changes.
15902 ----------------------------
15903 revision 1.7
15904 date: 1994/09/29 16:09:20;  author: rob;  state: Exp;
15905 Added explode stuff.
15906 ----------------------------
15907 revision 1.6
15908 date: 1994/09/28 14:31:08;  author: rob;  state: Exp;
15909 Added serial setup menu.
15910 ----------------------------
15911 revision 1.5
15912 date: 1994/09/27 15:02:49;  author: rob;  state: Exp;
15913 Null modem basic routines working.  Sending DEAD messages and
15914 missiles still need to be done.
15915 ----------------------------
15916 revision 1.4
15917 date: 1994/09/24 16:52:33;  author: rob;  state: Exp;
15918 Added stubbed funcs for startup and stop of serial games.
15919 ----------------------------
15920 revision 1.3
15921 date: 1994/09/24 14:47:31;  author: rob;  state: Exp;
15922 New function protos.
15923 ----------------------------
15924 revision 1.2
15925 date: 1994/09/22 17:53:29;  author: rob;  state: Exp;
15926 First revision, not yet functional.
15927 ----------------------------
15928 revision 1.1
15929 date: 1994/09/22 12:39:25;  author: rob;  state: Exp;
15930 Initial revision
15931 =============================================================================
15932 RCS file: /Smoke/miner/source/main/morph.c,v
15933 Working file: main/morph.c
15934 head: 1.5
15935 description: Morphing code
15936 ----------------------------
15937 revision 1.5
15938 date: 1995/08/23 21:36:10;  author: allender;  state: Exp;
15939 mcc compiler warnings fixed
15940 ----------------------------
15941 revision 1.4
15942 date: 1995/08/12 11:34:19;  author: allender;  state: Exp;
15943 removed #ifdef NEWDEMO -- always in
15944 ----------------------------
15945 revision 1.3
15946 date: 1995/07/28 15:39:51;  author: allender;  state: Exp;
15947 removed fixdiv thing
15948 ----------------------------
15949 revision 1.2
15950 date: 1995/07/28 15:21:23;  author: allender;  state: Exp;
15951 inverse magnitude fixup thing
15952 ----------------------------
15953 revision 1.1
15954 date: 1995/05/16 15:28:05;  author: allender;  state: Exp;
15955 Initial revision
15956 ----------------------------
15957 revision 2.1
15958 date: 1995/02/27 18:26:33;  author: john;  state: Exp;
15959 Fixed bug that was caused by externing Polygon_models, and I had
15960 changed the type of it in polyobj.c, thus causing page faults.
15961 ----------------------------
15962 revision 2.0
15963 date: 1995/02/27 11:27:44;  author: john;  state: Exp;
15964 New version 2.0, which has no anonymous unions, builds with
15965 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
15966 ----------------------------
15967 revision 1.35
15968 date: 1995/02/22 14:45:37;  author: allender;  state: Exp;
15969 remove anonymous unions from object structure
15970 ----------------------------
15971 revision 1.34
15972 date: 1995/01/14 19:16:52;  author: john;  state: Exp;
15973 First version of new bitmap paging code.
15974 ----------------------------
15975 revision 1.33
15976 date: 1995/01/03 20:38:36;  author: john;  state: Exp;
15977 Externed MAX_MORPH_OBJECTS
15978 ----------------------------
15979 revision 1.32
15980 date: 1994/11/17 15:34:04;  author: matt;  state: Exp;
15981 Attempt #4 to fix morph bug
15982 ----------------------------
15983 revision 1.31
15984 date: 1994/11/15 10:57:14;  author: matt;  state: Exp;
15985 Tried again to fix morph
15986 ----------------------------
15987 revision 1.30
15988 date: 1994/11/14 14:06:45;  author: matt;  state: Exp;
15989 Fixed stupid bug
15990 ----------------------------
15991 revision 1.29
15992 date: 1994/11/14 11:55:13;  author: matt;  state: Exp;
15993 Added divide overflow check
15994 ----------------------------
15995 revision 1.28
15996 date: 1994/09/26 17:28:14;  author: matt;  state: Exp;
15997 Made new multiple-object morph code work with the demo system
15998 ----------------------------
15999 revision 1.27
16000 date: 1994/09/26 15:39:56;  author: matt;  state: Exp;
16001 Allow multiple simultaneous morphing objects
16002 ----------------------------
16003 revision 1.26
16004 date: 1994/09/11 22:44:59;  author: mike;  state: Exp;
16005 quick on vecmat function.
16006 ----------------------------
16007 revision 1.25
16008 date: 1994/08/26 15:36:00;  author: matt;  state: Exp;
16009 Made eclips usable on more than one object at a time
16010 ----------------------------
16011 revision 1.24
16012 date: 1994/07/25 00:02:46;  author: matt;  state: Exp;
16013 Various changes to accomodate new 3d, which no longer takes point numbers
16014 as parms, and now only takes pointers to points.
16015 ----------------------------
16016 revision 1.23
16017 date: 1994/07/12 12:39:58;  author: matt;  state: Exp;
16018 Revamped physics system
16019 ----------------------------
16020 revision 1.22
16021 date: 1994/06/28 11:54:51;  author: john;  state: Exp;
16022 Made newdemo system record/play directly to/from disk, so
16023 we don't need the 4 MB buffer anymore.
16024 ----------------------------
16025 revision 1.21
16026 date: 1994/06/27 15:53:01;  author: john;  state: Exp;
16027 #define'd out the newdemo stuff
16028 ----------------------------
16029 revision 1.20
16030 date: 1994/06/16 14:30:19;  author: matt;  state: Exp;
16031 Moved morph record data call to reder routine
16032 ----------------------------
16033 revision 1.19
16034 date: 1994/06/16 13:57:23;  author: matt;  state: Exp;
16035 Added support for morphing objects in demos
16036 ----------------------------
16037 revision 1.18
16038 date: 1994/06/16 12:24:23;  author: matt;  state: Exp;
16039 Made robot lighting not mess with Lighting_on so robots now night
16040 according to this variable.
16041 ----------------------------
16042 revision 1.17
16043 date: 1994/06/14 16:55:01;  author: matt;  state: Exp;
16044 Got rid of physics_object speed field
16045 ----------------------------
16046 revision 1.16
16047 date: 1994/06/08 21:16:29;  author: matt;  state: Exp;
16048 Made objects spin while morphing
16049 ----------------------------
16050 revision 1.15
16051 date: 1994/06/08 18:21:53;  author: matt;  state: Exp;
16052 Made morphing objects light correctly
16053 ----------------------------
16054 revision 1.14
16055 date: 1994/06/07 16:50:49;  author: matt;  state: Exp;
16056 Made object lighting work correctly; changed name of Ambient_light to
16057 Dynamic_light; cleaned up polygobj object rendering a little.
16058 ----------------------------
16059 revision 1.13
16060 date: 1994/06/01 16:33:59;  author: yuan;  state: Exp;
16061 Fixed bug.
16062 ----------------------------
16063 revision 1.12
16064 date: 1994/06/01 16:29:08;  author: matt;  state: Exp;
16065 If morph_frame called on object this isn't the morph object, kill it.
16066 ----------------------------
16067 revision 1.11
16068 date: 1994/06/01 12:46:34;  author: matt;  state: Exp;
16069 Added needed include
16070 ----------------------------
16071 revision 1.10
16072 date: 1994/05/31 22:12:41;  author: matt;  state: Exp;
16073 Set lighting for morph objects
16074 Don't let another object start morph while one is morphing, unless
16075 that one dies.
16076 ----------------------------
16077 revision 1.9
16078 date: 1994/05/31 18:49:53;  author: john;  state: Exp;
16079 Took out debugging printf's that Matt left in.
16080 ----------------------------
16081 revision 1.8
16082 date: 1994/05/30 22:50:22;  author: matt;  state: Exp;
16083 Added morph effect for robots
16084 =============================================================================
16085 RCS file: /Smoke/miner/source/main/morph.h,v
16086 Working file: main/morph.h
16087 head: 1.2
16088 description: Header for morph.c
16089 ----------------------------
16090 revision 1.2
16091 date: 1995/08/23 21:35:58;  author: allender;  state: Exp;
16092 fix mcc compiler warnings
16093 ----------------------------
16094 revision 1.1
16095 date: 1995/05/16 15:59:37;  author: allender;  state: Exp;
16096 Initial revision
16097 ----------------------------
16098 revision 2.0
16099 date: 1995/02/27 11:32:19;  author: john;  state: Exp;
16100 New version 2.0, which has no anonymous unions, builds with
16101 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
16102 ----------------------------
16103 revision 1.9
16104 date: 1995/01/04 12:20:46;  author: john;  state: Exp;
16105 Declearations to work better with game state save.
16106 ----------------------------
16107 revision 1.8
16108 date: 1995/01/03 20:38:44;  author: john;  state: Exp;
16109 Externed MAX_MORPH_OBJECTS
16110 ----------------------------
16111 revision 1.7
16112 date: 1994/09/26 17:28:33;  author: matt;  state: Exp;
16113 Made new multiple-object morph code work with the demo system
16114 ----------------------------
16115 revision 1.6
16116 date: 1994/09/26 15:40:17;  author: matt;  state: Exp;
16117 Allow multiple simultaneous morphing objects
16118 ----------------------------
16119 revision 1.5
16120 date: 1994/06/28 11:55:19;  author: john;  state: Exp;
16121 Made newdemo system record/play directly to/from disk, so
16122 we don't need the 4 MB buffer anymore.
16123 ----------------------------
16124 revision 1.4
16125 date: 1994/06/16 13:57:40;  author: matt;  state: Exp;
16126 Added support for morphing objects in demos
16127 ----------------------------
16128 revision 1.3
16129 date: 1994/06/08 18:22:03;  author: matt;  state: Exp;
16130 Made morphing objects light correctly
16131 ----------------------------
16132 revision 1.2
16133 date: 1994/05/30 22:50:25;  author: matt;  state: Exp;
16134 Added morph effect for robots
16135 ----------------------------
16136 revision 1.1
16137 date: 1994/05/30 12:04:19;  author: matt;  state: Exp;
16138 Initial revision
16139 =============================================================================
16140 RCS file: /Smoke/miner/source/main/multi.c,v
16141 Working file: main/multi.c
16142 head: 1.15
16143 description: Multiplayer code shared by serial and network play.
16144 =============================================================================
16145 RCS file: /Smoke/miner/source/main/multi.h,v
16146 Working file: main/multi.h
16147 head: 1.7
16148 description: Defines and exported variables for multi.c
16149 ----------------------------
16150 revision 1.7
16151 date: 1995/11/07 17:06:30;  author: allender;  state: Exp;
16152 changed max_message_len so that player files save and restore
16153 correctly
16154 ----------------------------
16155 revision 1.6
16156 date: 1995/11/03 12:54:13;  author: allender;  state: Exp;
16157 shareware changes
16158 ----------------------------
16159 revision 1.5
16160 date: 1995/10/31 10:20:55;  author: allender;  state: Exp;
16161 shareware stuff
16162 ----------------------------
16163 revision 1.4
16164 date: 1995/08/31 15:52:21;  author: allender;  state: Exp;
16165 added union in netplayer_info to include
16166 appletalk information and ipx information
16167 ----------------------------
16168 revision 1.3
16169 date: 1995/07/26 17:02:47;  author: allender;  state: Exp;
16170 implemented and working on mac
16171 ----------------------------
16172 revision 1.2
16173 date: 1995/06/08 12:56:19;  author: allender;  state: Exp;
16174 couple of prototypes to be unsigned char
16175 ----------------------------
16176 revision 1.1
16177 date: 1995/05/16 15:59:44;  author: allender;  state: Exp;
16178 Initial revision
16179 ----------------------------
16180 revision 2.3
16181 date: 1995/04/03 08:49:50;  author: john;  state: Exp;
16182 Added code to get someone's player struct.
16183 ----------------------------
16184 revision 2.2
16185 date: 1995/03/27 12:59:17;  author: john;  state: Exp;
16186 Initial version of multiplayer save games.
16187 ----------------------------
16188 revision 2.1
16189 date: 1995/03/21 14:39:06;  author: john;  state: Exp;
16190 Ifdef'd out the NETWORK code.
16191 ----------------------------
16192 revision 2.0
16193 date: 1995/02/27 11:28:34;  author: john;  state: Exp;
16194 New version 2.0, which has no anonymous unions, builds with
16195 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
16196 ----------------------------
16197 revision 1.74
16198 date: 1995/02/11 11:36:42;  author: rob;  state: Exp;
16199 Added new var.
16200 ----------------------------
16201 revision 1.73
16202 date: 1995/02/08 18:17:41;  author: rob;  state: Exp;
16203 Added prototype for reset function.
16204 ----------------------------
16205 revision 1.72
16206 date: 1995/02/05 14:37:42;  author: rob;  state: Exp;
16207 Made object mapping more efficient.
16208 ----------------------------
16209 revision 1.71
16210 date: 1995/02/01 18:07:36;  author: rob;  state: Exp;
16211 Change object mapping to int functions.
16212 ----------------------------
16213 revision 1.70
16214 date: 1995/02/01 12:55:00;  author: rob;  state: Exp;
16215 Changed message type.
16216 ----------------------------
16217 revision 1.69
16218 date: 1995/01/31 12:46:12;  author: rob;  state: Exp;
16219 Fixed a bug with object overflow handling.
16220 ----------------------------
16221 revision 1.68
16222 date: 1995/01/27 11:15:13;  author: rob;  state: Exp;
16223 removed extern of variable no longer in multi.c
16224 ----------------------------
16225 revision 1.67
16226 date: 1995/01/24 11:53:13;  author: john;  state: Exp;
16227 Added better macro defining code.
16228 ----------------------------
16229 revision 1.66
16230 date: 1995/01/24 11:32:03;  author: john;  state: Exp;
16231 Added new defining macro method.
16232 ----------------------------
16233 revision 1.65
16234 date: 1995/01/23 17:17:06;  author: john;  state: Exp;
16235 Added multi_sending_message.
16236 ----------------------------
16237 revision 1.64
16238 date: 1995/01/23 16:02:42;  author: rob;  state: Exp;
16239 Added prototype for mission select function.
16240 ----------------------------
16241 revision 1.63
16242 date: 1995/01/18 19:01:21;  author: rob;  state: Exp;
16243 Added new message for hostage door sync.
16244 ----------------------------
16245 revision 1.62
16246 date: 1995/01/14 18:39:57;  author: rob;  state: Exp;
16247 Added new message type for dropping robot powerups.
16248 ----------------------------
16249 revision 1.61
16250 date: 1995/01/12 21:41:13;  author: rob;  state: Exp;
16251 Fixed incompat. with 1.0 and 1.1.
16252 ----------------------------
16253 revision 1.60
16254 date: 1995/01/04 21:40:55;  author: rob;  state: Exp;
16255 Added new type for boss actions in coop.
16256 ----------------------------
16257 revision 1.59
16258 date: 1995/01/04 11:38:09;  author: rob;  state: Exp;
16259 Fixed problem with lost character in messages.
16260 ----------------------------
16261 revision 1.58
16262 date: 1995/01/03 20:12:44;  author: rob;  state: Exp;
16263 Made max message length in shareware = 40.
16264 ----------------------------
16265 revision 1.57
16266 date: 1995/01/03 14:27:25;  author: rob;  state: Exp;
16267 ADded trigger messages.
16268 ----------------------------
16269 revision 1.56
16270 date: 1995/01/02 20:08:21;  author: rob;  state: Exp;
16271 Added robot creation.
16272 ----------------------------
16273 revision 1.55
16274 date: 1995/01/02 14:41:30;  author: rob;  state: Exp;
16275 Added score syncing.
16276 ----------------------------
16277 revision 1.54
16278 date: 1994/12/21 21:02:01;  author: rob;  state: Exp;
16279 Added new message type for ROBOT_FIRE
16280 ----------------------------
16281 revision 1.53
16282 date: 1994/12/21 17:27:25;  author: rob;  state: Exp;
16283 Changed the format for send_create_powerup messages.
16284 ----------------------------
16285 revision 1.52
16286 date: 1994/12/20 20:41:39;  author: rob;  state: Exp;
16287 ADded robot release message type.
16288 ----------------------------
16289 revision 1.51
16290 date: 1994/12/19 19:00:12;  author: rob;  state: Exp;
16291 Changed buf to multibuf so it can be safely externed.
16292 ----------------------------
16293 revision 1.50
16294 date: 1994/12/19 16:41:14;  author: rob;  state: Exp;
16295 Added new message types for robot support.
16296 Added prototype for external use of multi_send_data (from multibot.c)
16297 ----------------------------
16298 revision 1.49
16299 date: 1994/12/11 13:30:13;  author: rob;  state: Exp;
16300 Added new variables to get players out of nested menus.
16301 ----------------------------
16302 revision 1.48
16303 date: 1994/12/11 01:58:57;  author: rob;  state: Exp;
16304 Added variable to track menu deth..
16305 ----------------------------
16306 revision 1.47
16307 date: 1994/12/08 12:41:17;  author: rob;  state: Exp;
16308 Added audio taunts.
16309 ----------------------------
16310 revision 1.46
16311 date: 1994/12/07 21:53:12;  author: rob;  state: Exp;
16312 Fixing sequencing bugginess in modem/serial.
16313 ----------------------------
16314 revision 1.45
16315 date: 1994/12/07 16:46:58;  author: rob;  state: Exp;
16316 Added prototype.
16317 ----------------------------
16318 revision 1.44
16319 date: 1994/12/01 12:22:31;  author: rob;  state: Exp;
16320 Added de-cloak message for demo.
16321 ----------------------------
16322 revision 1.43
16323 date: 1994/12/01 00:54:14;  author: rob;  state: Exp;
16324 Added variable for tracking homing missiles.
16325 ----------------------------
16326 revision 1.42
16327 date: 1994/11/30 16:04:39;  author: rob;  state: Exp;
16328 Added show reticle name variable for team games.
16329 ----------------------------
16330 revision 1.41
16331 date: 1994/11/29 19:33:38;  author: rob;  state: Exp;
16332 Team support.
16333 ----------------------------
16334 revision 1.40
16335 date: 1994/11/29 12:49:37;  author: rob;  state: Exp;
16336 Added more team support stuff.
16337 ----------------------------
16338 revision 1.39
16339 date: 1994/11/28 21:20:49;  author: rob;  state: Exp;
16340 Cleaned up the .h file, removed an unused function.
16341 ----------------------------
16342 revision 1.38
16343 date: 1994/11/28 21:04:50;  author: rob;  state: Exp;
16344 Added support for network sound-casting.
16345 ----------------------------
16346 revision 1.37
16347 date: 1994/11/28 14:02:08;  author: rob;  state: Exp;
16348 Added protocol versioning for registered versus shareware.
16349 ----------------------------
16350 revision 1.36
16351 date: 1994/11/28 13:30:04;  author: rob;  state: Exp;
16352 Added a define for protocol version.
16353 ----------------------------
16354 revision 1.35
16355 date: 1994/11/22 19:19:48;  author: rob;  state: Exp;
16356 remove unused function.
16357 ----------------------------
16358 revision 1.34
16359 date: 1994/11/22 18:47:34;  author: rob;  state: Exp;
16360 Added hooks for modem support for secret levels.
16361 ----------------------------
16362 revision 1.33
16363 date: 1994/11/22 17:10:50;  author: rob;  state: Exp;
16364 Fix for secret levels in network play mode.
16365 ----------------------------
16366 revision 1.32
16367 date: 1994/11/21 16:00:28;  author: rob;  state: Exp;
16368 Added secret-level hooks.
16369 ----------------------------
16370 revision 1.31
16371 date: 1994/11/18 18:28:50;  author: rob;  state: Exp;
16372 Added new function for multiplayer score screen.
16373 ----------------------------
16374 revision 1.30
16375 date: 1994/11/18 16:31:05;  author: rob;  state: Exp;
16376 Added kill list timer variable.
16377 ----------------------------
16378 revision 1.29
16379 date: 1994/11/17 16:38:15;  author: rob;  state: Exp;
16380 Added creation of net powerups.
16381 ----------------------------
16382 revision 1.28
16383 date: 1994/11/17 13:37:33;  author: rob;  state: Exp;
16384 Added prototype for multi_new_game.
16385 ----------------------------
16386 revision 1.27
16387 date: 1994/11/17 12:58:45;  author: rob;  state: Exp;
16388 Added kill matrix.
16389 ----------------------------
16390 revision 1.26
16391 date: 1994/11/16 20:35:24;  author: rob;  state: Exp;
16392 Changed explosion hook.
16393 ----------------------------
16394 revision 1.25
16395 date: 1994/11/15 21:31:13;  author: rob;  state: Exp;
16396 Bumped max message size, was giving modem.c fits.
16397 ----------------------------
16398 revision 1.24
16399 date: 1994/11/15 19:28:37;  author: matt;  state: Exp;
16400 Added prototypes
16401 ----------------------------
16402 revision 1.23
16403 date: 1994/11/14 17:22:19;  author: rob;  state: Exp;
16404 Added extern for message macros.
16405 ----------------------------
16406 revision 1.22
16407 date: 1994/11/11 18:16:44;  author: rob;  state: Exp;
16408 Made multi_menu_poll return a value to exit menus.
16409 ----------------------------
16410 revision 1.21
16411 date: 1994/11/11 11:06:19;  author: rob;  state: Exp;
16412 Added prototype for multi_menu_poll.
16413 ----------------------------
16414 revision 1.20
16415 date: 1994/11/10 21:48:41;  author: rob;  state: Exp;
16416 Changed multi_endlevel to return an int.
16417 ----------------------------
16418 revision 1.19
16419 date: 1994/11/08 17:48:14;  author: rob;  state: Exp;
16420 Fixing endlevel stuff.
16421 ----------------------------
16422 revision 1.18
16423 date: 1994/11/07 17:49:07;  author: rob;  state: Exp;
16424 Changed prototype for object mapping funcs.
16425 ----------------------------
16426 revision 1.17
16427 date: 1994/11/07 15:46:32;  author: rob;  state: Exp;
16428 Changed the way remote object number mapping works, and it was a real
16429 pain in the ass..  I think it will work more reliably now.
16430 ----------------------------
16431 revision 1.16
16432 date: 1994/11/04 19:53:01;  author: rob;  state: Exp;
16433 Added a new message type for Player_leave 'explosions'.
16434 Added a prototype for function moved over from network.c
16435 ----------------------------
16436 revision 1.15
16437 date: 1994/11/02 18:02:33;  author: rob;  state: Exp;
16438 Added message type for control center firing.
16439 ----------------------------
16440 revision 1.14
16441 date: 1994/11/02 11:38:00;  author: rob;  state: Exp;
16442 Added player-in-process-of-dying explosions to network game.
16443 ----------------------------
16444 revision 1.13
16445 date: 1994/11/01 19:31:44;  author: rob;  state: Exp;
16446 Bumped max_net_create_objects to 20 to accomodate a fully equipped
16447 character blowing up.
16448 ----------------------------
16449 revision 1.12
16450 date: 1994/10/31 13:48:02;  author: rob;  state: Exp;
16451 Fixed bug in opening doors over network/modem.  Added a new message
16452 type to multi.c that communicates door openings across the net. 
16453 Changed includes in multi.c and wall.c to accomplish this.
16454 ----------------------------
16455 revision 1.11
16456 date: 1994/10/09 20:08:20;  author: rob;  state: Exp;
16457 Added some exported func prototypes.
16458 Changed max net message length to 25 (from 30).
16459 Removed some message types no longer used.
16460 ----------------------------
16461 revision 1.10
16462 date: 1994/10/08 20:06:10;  author: rob;  state: Exp;
16463 fixed a typo.
16464 ----------------------------
16465 revision 1.9
16466 date: 1994/10/08 19:59:43;  author: rob;  state: Exp;
16467 Moved MAX_MESSAGE_LEN to here.
16468 ----------------------------
16469 revision 1.8
16470 date: 1994/10/07 23:09:54;  author: rob;  state: Exp;
16471 Fixed some prototypes.
16472 ----------------------------
16473 revision 1.7
16474 date: 1994/10/07 18:11:19;  author: rob;  state: Exp;
16475 Added multi_do_death to multi.c.
16476 ----------------------------
16477 revision 1.6
16478 date: 1994/10/07 16:14:32;  author: rob;  state: Exp;
16479 Added new message type for player reappear
16480 ----------------------------
16481 revision 1.5
16482 date: 1994/10/07 12:58:17;  author: rob;  state: Exp;
16483 Added multi_leave_game.
16484 ----------------------------
16485 revision 1.4
16486 date: 1994/10/07 12:17:17;  author: rob;  state: Exp;
16487 Fixed some stuff in multi_do_frame and exported the message_length
16488 array.
16489 ----------------------------
16490 revision 1.3
16491 date: 1994/10/07 11:10:17;  author: john;  state: Exp;
16492 Added function to parse multiple messages into individual
16493 messages.
16494 ----------------------------
16495 revision 1.2
16496 date: 1994/10/07 10:28:06;  author: rob;  state: Exp;
16497 Headers and stuff for multi.c (obviously)
16498 ----------------------------
16499 revision 1.1
16500 date: 1994/10/06 16:07:39;  author: rob;  state: Exp;
16501 Initial revision
16502 =============================================================================
16503 RCS file: /Smoke/miner/source/main/multibot.c,v
16504 Working file: main/multibot.c
16505 head: 1.7
16506 description: Multiplayer robot code
16507 =============================================================================
16508 RCS file: /Smoke/miner/source/main/multibot.h,v
16509 Working file: main/multibot.h
16510 head: 1.2
16511 description: Header file for multiplayer robot support.
16512 ----------------------------
16513 revision 1.2
16514 date: 1995/08/24 16:04:38;  author: allender;  state: Exp;
16515 fix function prototype for compiler warning
16516 ----------------------------
16517 revision 1.1
16518 date: 1995/05/16 15:59:53;  author: allender;  state: Exp;
16519 Initial revision
16520 ----------------------------
16521 revision 2.1
16522 date: 1995/03/21 08:40:18;  author: john;  state: Exp;
16523 Ifdef'd out the NETWORK code.
16524 ----------------------------
16525 revision 2.0
16526 date: 1995/02/27 11:30:57;  author: john;  state: Exp;
16527 New version 2.0, which has no anonymous unions, builds with
16528 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
16529 ----------------------------
16530 revision 1.20
16531 date: 1995/02/06 18:18:05;  author: rob;  state: Exp;
16532 Tweaking cooperative stuff.
16533 ----------------------------
16534 revision 1.19
16535 date: 1995/02/04 16:49:50;  author: rob;  state: Exp;
16536 Changed multi_send_robot_frame to return the number of robot positions that were sent.
16537 ----------------------------
16538 revision 1.18
16539 date: 1995/02/04 12:29:32;  author: rob;  state: Exp;
16540 Added buffered fire sends.
16541 ----------------------------
16542 revision 1.17
16543 date: 1995/01/30 17:22:02;  author: rob;  state: Exp;
16544 Added prototype for modem robot send function.
16545 ----------------------------
16546 revision 1.16
16547 date: 1995/01/26 18:24:56;  author: rob;  state: Exp;
16548 Reduced # of controlled bots.
16549 ----------------------------
16550 revision 1.15
16551 date: 1995/01/25 19:26:35;  author: rob;  state: Exp;
16552 Added define for robot laser agitation.
16553 ----------------------------
16554 revision 1.14
16555 date: 1995/01/25 13:45:26;  author: rob;  state: Exp;
16556 Added prototype of robot transfer fucm.
16557 ----------------------------
16558 revision 1.13
16559 date: 1995/01/14 19:01:08;  author: rob;  state: Exp;
16560 Added prototypes for new functionality.
16561 ----------------------------
16562 revision 1.12
16563 date: 1995/01/12 16:41:53;  author: rob;  state: Exp;
16564 Added new prototypes.
16565 ----------------------------
16566 revision 1.11
16567 date: 1995/01/12 15:42:55;  author: rob;  state: Exp;
16568 Fixing score awards for coop.
16569 ----------------------------
16570 revision 1.10
16571 date: 1995/01/02 21:00:40;  author: rob;  state: Exp;
16572 added robot matcen support.
16573 ----------------------------
16574 revision 1.9
16575 date: 1994/12/31 21:03:53;  author: rob;  state: Exp;
16576 More tweaking for robot behavior.
16577 ----------------------------
16578 revision 1.8
16579 date: 1994/12/29 13:54:25;  author: rob;  state: Exp;
16580 Ooops.. fixed a bug..
16581 ----------------------------
16582 revision 1.7
16583 date: 1994/12/29 12:51:38;  author: rob;  state: Exp;
16584 ADded proto for multi_robot_explode_sub
16585 ----------------------------
16586 revision 1.6
16587 date: 1994/12/21 21:08:32;  author: rob;  state: Exp;
16588 Added new functions for robot firing.
16589 ----------------------------
16590 revision 1.5
16591 date: 1994/12/21 19:04:02;  author: rob;  state: Exp;
16592 Fixing score accounting for multi robot games.
16593 ----------------------------
16594 revision 1.4
16595 date: 1994/12/21 17:36:09;  author: rob;  state: Exp;
16596 Added a new func.
16597 ----------------------------
16598 revision 1.3
16599 date: 1994/12/21 11:12:02;  author: rob;  state: Exp;
16600 Added new function and new vars.
16601 ----------------------------
16602 revision 1.2
16603 date: 1994/12/19 16:41:42;  author: rob;  state: Exp;
16604 first revision.
16605 ----------------------------
16606 revision 1.1
16607 date: 1994/12/16 15:48:20;  author: rob;  state: Exp;
16608 Initial revision
16609 =============================================================================
16610 RCS file: /Smoke/miner/source/main/netipx.c,v
16611 Working file: main/netipx.c
16612 head: 1.1
16613 description: Routines to access ipx network
16614 ----------------------------
16615 revision 1.1
16616 date: 1995/05/16 15:28:34;  author: allender;  state: Exp;
16617 Initial revision
16618 ----------------------------
16619 revision 1.5
16620 date: 1994/07/13 16:05:39;  author: john;  state: Exp;
16621 *** empty log message ***
16622 ----------------------------
16623 revision 1.4
16624 date: 1994/07/13 16:04:15;  author: john;  state: Exp;
16625 *** empty log message ***
16626 ----------------------------
16627 revision 1.3
16628 date: 1994/05/11 19:45:30;  author: john;  state: Exp;
16629 *** empty log message ***
16630 ----------------------------
16631 revision 1.2
16632 date: 1994/05/11 18:44:02;  author: john;  state: Exp;
16633 Added first attemp at networking.
16634 ----------------------------
16635 revision 1.1
16636 date: 1994/05/11 16:06:47;  author: john;  state: Exp;
16637 Initial revision
16638 =============================================================================
16639 RCS file: /Smoke/miner/source/main/netipx.h,v
16640 Working file: main/netipx.h
16641 head: 1.1
16642 description: .
16643 ----------------------------
16644 revision 1.1
16645 date: 1995/05/16 16:00:00;  author: allender;  state: Exp;
16646 Initial revision
16647 ----------------------------
16648 revision 1.3
16649 date: 1994/05/11 19:45:26;  author: john;  state: Exp;
16650 *** empty log message ***
16651 ----------------------------
16652 revision 1.2
16653 date: 1994/05/11 18:44:10;  author: john;  state: Exp;
16654 Added first attemp at networking.
16655 ----------------------------
16656 revision 1.1
16657 date: 1994/05/11 16:07:06;  author: john;  state: Exp;
16658 Initial revision
16659 =============================================================================
16660 RCS file: /Smoke/miner/source/main/netmisc.c,v
16661 Working file: main/netmisc.c
16662 head: 1.1
16663 description: Misc routines for network.
16664 ----------------------------
16665 revision 1.1
16666 date: 1995/05/16 15:28:41;  author: allender;  state: Exp;
16667 Initial revision
16668 ----------------------------
16669 revision 2.0
16670 date: 1995/02/27 11:27:24;  author: john;  state: Exp;
16671 New version 2.0, which has no anonymous unions, builds with
16672 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
16673 ----------------------------
16674 revision 1.3
16675 date: 1994/11/19 15:19:34;  author: mike;  state: Exp;
16676 rip out unused code and data.
16677 ----------------------------
16678 revision 1.2
16679 date: 1994/08/09 19:31:53;  author: john;  state: Exp;
16680 Networking changes.
16681 ----------------------------
16682 revision 1.1
16683 date: 1994/08/08 11:06:07;  author: john;  state: Exp;
16684 Initial revision
16685 =============================================================================
16686 RCS file: /Smoke/miner/source/main/netmisc.h,v
16687 Working file: main/netmisc.h
16688 head: 1.1
16689 description: .
16690 ----------------------------
16691 revision 1.1
16692 date: 1995/05/16 16:00:08;  author: allender;  state: Exp;
16693 Initial revision
16694 ----------------------------
16695 revision 2.0
16696 date: 1995/02/27 11:30:18;  author: john;  state: Exp;
16697 New version 2.0, which has no anonymous unions, builds with
16698 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
16699 ----------------------------
16700 revision 1.2
16701 date: 1994/08/09 19:31:54;  author: john;  state: Exp;
16702 Networking changes.
16703 ----------------------------
16704 revision 1.1
16705 date: 1994/08/08 11:18:40;  author: john;  state: Exp;
16706 Initial revision
16707 =============================================================================
16708 RCS file: /Smoke/miner/source/main/network.c,v
16709 Working file: main/network.c
16710 head: 1.27
16711 description: Routines for managing network play.
16712 =============================================================================
16713 RCS file: /Smoke/miner/source/main/network.h,v
16714 Working file: main/network.h
16715 head: 1.7
16716 description: Prototypes for network management functions.
16717 ----------------------------
16718 revision 1.7
16719 date: 1995/10/31 10:20:04;  author: allender;  state: Exp;
16720 shareware stuff
16721 ----------------------------
16722 revision 1.6
16723 date: 1995/09/21 14:31:18;  author: allender;  state: Exp;
16724 new appltalk type packet which contains shortpos
16725 ----------------------------
16726 revision 1.5
16727 date: 1995/09/18 08:07:08;  author: allender;  state: Exp;
16728 added function prototype to remove netgame NBP
16729 ----------------------------
16730 revision 1.4
16731 date: 1995/08/31 15:51:55;  author: allender;  state: Exp;
16732 new prototypes for join and start games
16733 ----------------------------
16734 revision 1.3
16735 date: 1995/07/26 17:02:29;  author: allender;  state: Exp;
16736 implemented and working on mac
16737 ----------------------------
16738 revision 1.2
16739 date: 1995/06/02 07:42:34;  author: allender;  state: Exp;
16740 fixed prototype for network_endlevel_poll2
16741 ----------------------------
16742 revision 1.1
16743 date: 1995/05/16 16:00:15;  author: allender;  state: Exp;
16744 Initial revision
16745 ----------------------------
16746 revision 2.2
16747 date: 1995/03/21 14:58:09;  author: john;  state: Exp;
16748 *** empty log message ***
16749 ----------------------------
16750 revision 2.1
16751 date: 1995/03/21 14:39:43;  author: john;  state: Exp;
16752 Ifdef'd out the NETWORK code.
16753 ----------------------------
16754 revision 2.0
16755 date: 1995/02/27 11:29:48;  author: john;  state: Exp;
16756 New version 2.0, which has no anonymous unions, builds with
16757 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
16758 ----------------------------
16759 revision 1.72
16760 date: 1995/02/11 14:24:39;  author: rob;  state: Exp;
16761 Added suppor for invul. cntrlcen.
16762 ----------------------------
16763 revision 1.71
16764 date: 1995/02/08 19:18:43;  author: rob;  state: Exp;
16765 Added extern for segments checksum.
16766 ----------------------------
16767 revision 1.70
16768 date: 1995/02/08 11:01:16;  author: rob;  state: Exp;
16769 Fixed a bug.
16770 ----------------------------
16771 revision 1.69
16772 date: 1995/02/07 21:16:49;  author: rob;  state: Exp;
16773 Added flag for automap.
16774 ----------------------------
16775 revision 1.68
16776 date: 1995/02/06 18:18:33;  author: rob;  state: Exp;
16777 Extern'ed Packet Urgent.
16778 ----------------------------
16779 revision 1.67
16780 date: 1995/02/05 14:36:29;  author: rob;  state: Exp;
16781 Moved defines to network.h.
16782 ----------------------------
16783 revision 1.66
16784 date: 1995/02/01 16:34:09;  author: john;  state: Exp;
16785 Linted.
16786 ----------------------------
16787 revision 1.65
16788 date: 1995/01/30 21:14:35;  author: rob;  state: Exp;
16789 Fixed a bug in join menu.
16790 Simplified mission load support.
16791 ----------------------------
16792 revision 1.64
16793 date: 1995/01/30 18:19:40;  author: rob;  state: Exp;
16794 Added mission title to gameinfo packet.
16795 ----------------------------
16796 revision 1.63
16797 date: 1995/01/28 17:02:39;  author: rob;  state: Exp;
16798 Fixed monitor syncing bug (minor 19).
16799 ----------------------------
16800 revision 1.62
16801 date: 1995/01/27 11:15:25;  author: rob;  state: Exp;
16802 removed extern of variable no longer in network.c
16803 ----------------------------
16804 revision 1.61
16805 date: 1995/01/26 12:17:34;  author: rob;  state: Exp;
16806 Added new param to network_do_frame.
16807 ----------------------------
16808 revision 1.60
16809 date: 1995/01/22 17:32:11;  author: rob;  state: Exp;
16810 Added mission support for network games.
16811 ----------------------------
16812 revision 1.59
16813 date: 1995/01/17 17:10:33;  author: rob;  state: Exp;
16814 Added some flags to netgame struct.
16815 ----------------------------
16816 revision 1.58
16817 date: 1995/01/12 18:57:15;  author: rob;  state: Exp;
16818 Added score resync stuff.
16819 ----------------------------
16820 revision 1.57
16821 date: 1995/01/12 16:42:18;  author: rob;  state: Exp;
16822 Added new prototypes.
16823 ----------------------------
16824 revision 1.56
16825 date: 1995/01/05 12:12:10;  author: rob;  state: Exp;
16826 Fixed a problem with packet size.
16827 ----------------------------
16828 revision 1.55
16829 date: 1995/01/05 11:12:36;  author: rob;  state: Exp;
16830 Reduced packet size by 1 byte just to be safe.
16831 ----------------------------
16832 revision 1.54
16833 date: 1995/01/04 21:39:32;  author: rob;  state: Exp;
16834 New framedata packet for registered.
16835 ----------------------------
16836 revision 1.53
16837 date: 1995/01/04 08:47:04;  author: rob;  state: Exp;
16838 JOHN CHECKED IN FOR ROB !!!
16839 ----------------------------
16840 revision 1.52
16841 date: 1994/12/30 20:09:07;  author: rob;  state: Exp;
16842 ADded a toggle for showing player names on HUD.
16843 ----------------------------
16844 revision 1.51
16845 date: 1994/12/29 15:59:52;  author: rob;  state: Exp;
16846 Centralized network disconnects.
16847 ----------------------------
16848 revision 1.50
16849 date: 1994/12/09 21:21:57;  author: rob;  state: Exp;
16850 rolled back changes.
16851 ----------------------------
16852 revision 1.48
16853 date: 1994/12/05 22:59:27;  author: rob;  state: Exp;
16854 added prototype for send_endlevel_packet.
16855 ----------------------------
16856 revision 1.47
16857 date: 1994/12/05 21:47:34;  author: rob;  state: Exp;
16858 Added a new field to netgame struct.
16859 ----------------------------
16860 revision 1.46
16861 date: 1994/12/05 14:39:16;  author: rob;  state: Exp;
16862 Added new variable to indicate new net game starting.
16863 ----------------------------
16864 revision 1.45
16865 date: 1994/12/04 15:37:18;  author: rob;  state: Exp;
16866 Fixed a typo.
16867 ----------------------------
16868 revision 1.44
16869 date: 1994/12/04 15:30:42;  author: rob;  state: Exp;
16870 Added new fields to netgame struct.
16871 ----------------------------
16872 revision 1.43
16873 date: 1994/12/03 18:03:19;  author: rob;  state: Exp;
16874 ADded team kill syncing.
16875 ----------------------------
16876 revision 1.42
16877 date: 1994/12/01 21:21:27;  author: rob;  state: Exp;
16878 Added new system for object sync on rejoin.
16879 ----------------------------
16880 revision 1.41
16881 date: 1994/11/29 13:07:33;  author: rob;  state: Exp;
16882 Changed structure defs to .h files.
16883 ----------------------------
16884 revision 1.40
16885 date: 1994/11/22 17:10:48;  author: rob;  state: Exp;
16886 Fix for secret levels in network play mode.
16887 ----------------------------
16888 revision 1.39
16889 date: 1994/11/18 16:36:31;  author: rob;  state: Exp;
16890 Added variable network_rejoined to enable random placement
16891 of rejoining palyers.
16892 ----------------------------
16893 revision 1.38
16894 date: 1994/11/12 19:51:13;  author: rob;  state: Exp;
16895 Changed prototype for network_send_data to pass
16896 urgent flag.
16897 ----------------------------
16898 revision 1.37
16899 date: 1994/11/10 21:48:26;  author: rob;  state: Exp;
16900 Changed net_endlevel to return an int.
16901 ----------------------------
16902 revision 1.36
16903 date: 1994/11/10 20:32:49;  author: rob;  state: Exp;
16904 Added extern for LastPacketTime.
16905 ----------------------------
16906 revision 1.35
16907 date: 1994/11/09 11:36:34;  author: rob;  state: Exp;
16908 ADded return value to network_level_sync for success/fail.
16909 ----------------------------
16910 revision 1.34
16911 date: 1994/11/08 21:22:31;  author: rob;  state: Exp;
16912 Added proto for network_endlevel_snyc
16913 ----------------------------
16914 revision 1.33
16915 date: 1994/11/08 15:20:00;  author: rob;  state: Exp;
16916 added proto for change_playernum_to
16917 ----------------------------
16918 revision 1.32
16919 date: 1994/11/07 17:45:40;  author: rob;  state: Exp;
16920 Added prototype for network_endlevel (called from multi.c)
16921 ----------------------------
16922 revision 1.31
16923 date: 1994/11/04 19:52:37;  author: rob;  state: Exp;
16924 Removed a function from network.h (network_show_player_list)
16925 ----------------------------
16926 revision 1.30
16927 date: 1994/11/01 19:39:26;  author: rob;  state: Exp;
16928 Removed a couple of variables that should be externed from multi.c
16929 (remnants of the changover)
16930 ----------------------------
16931 revision 1.29
16932 date: 1994/10/31 19:18:24;  author: rob;  state: Exp;
16933 Changed prototype for network_do_frame to add a parameter if you wish
16934 to force the frame to be sent.  Important if this is a leave_game frame.
16935 ----------------------------
16936 revision 1.28
16937 date: 1994/10/08 19:59:20;  author: rob;  state: Exp;
16938 Removed network message variables.
16939 ----------------------------
16940 revision 1.27
16941 date: 1994/10/08 11:08:38;  author: john;  state: Exp;
16942 Moved network_delete_unused objects into multi.c,
16943 took out network callsign stuff and used Matt's net
16944 players[.].callsign stuff.
16945 ----------------------------
16946 revision 1.26
16947 date: 1994/10/07 11:26:20;  author: rob;  state: Exp;
16948 Changed network_start_frame to network_do_frame,.
16949 ----------------------------
16950 revision 1.25
16951 date: 1994/10/05 13:58:10;  author: rob;  state: Exp;
16952 Added a new function net_endlevel that is called after each level is 
16953 completed.  Currently it only does anything if SERIAL game is in effect.
16954 ----------------------------
16955 revision 1.24
16956 date: 1994/10/04 19:34:57;  author: rob;  state: Exp;
16957 export network_find_max_net_players.
16958 ----------------------------
16959 revision 1.23
16960 date: 1994/10/04 17:31:10;  author: rob;  state: Exp;
16961 Exported MaxNumNetPlayers.
16962 ----------------------------
16963 revision 1.22
16964 date: 1994/10/03 22:57:30;  author: matt;  state: Exp;
16965 Took out redundant definition of callsign_len
16966 ----------------------------
16967 revision 1.21
16968 date: 1994/10/03 15:12:48;  author: rob;  state: Exp;
16969 Boosted MAX_CREATE_OBJECTS to 15.
16970 ----------------------------
16971 revision 1.20
16972 date: 1994/09/30 18:19:51;  author: rob;  state: Exp;
16973 Added two new variables for tracking object creation.
16974 ----------------------------
16975 revision 1.19
16976 date: 1994/09/27 15:03:18;  author: rob;  state: Exp;
16977 Added prototype for network_delete_extra_objects used by modem.c
16978 ----------------------------
16979 revision 1.18
16980 date: 1994/09/27 14:36:45;  author: rob;  state: Exp;
16981 Added two new varaibles for network/serial weapon firing.
16982 ----------------------------
16983 revision 1.17
16984 date: 1994/09/07 17:10:57;  author: john;  state: Exp;
16985 Started adding code to sync powerups.
16986 ----------------------------
16987 revision 1.16
16988 date: 1994/09/06 19:29:05;  author: john;  state: Exp;
16989 Added trial version of rejoin function.
16990 ----------------------------
16991 revision 1.15
16992 date: 1994/08/26 13:01:54;  author: john;  state: Exp;
16993 Put high score system in.
16994 ----------------------------
16995 revision 1.14
16996 date: 1994/08/25 18:12:04;  author: matt;  state: Exp;
16997 Made player's weapons and flares fire from the positions on the 3d model.
16998 Also added support for quad lasers.
16999 ----------------------------
17000 revision 1.13
17001 date: 1994/08/17 16:50:00;  author: john;  state: Exp;
17002 Added damaging fireballs, missiles.
17003 ----------------------------
17004 revision 1.12
17005 date: 1994/08/16 12:25:22;  author: john;  state: Exp;
17006 Added hooks for sending messages.
17007 ----------------------------
17008 revision 1.11
17009 date: 1994/08/13 12:20:18;  author: john;  state: Exp;
17010 Made the networking uise the Players array.
17011 ----------------------------
17012 revision 1.10
17013 date: 1994/08/12 22:41:27;  author: john;  state: Exp;
17014 Took away Player_stats; add Players array.
17015 ----------------------------
17016 revision 1.9
17017 date: 1994/08/12 03:10:22;  author: john;  state: Exp;
17018 Made network be default off; Moved network options into
17019 main menu.  Made starting net game check that mines are the
17020 same.
17021 ----------------------------
17022 revision 1.8
17023 date: 1994/08/11 21:57:08;  author: john;  state: Exp;
17024 Moved network options to main menu.
17025 ----------------------------
17026 revision 1.7
17027 date: 1994/08/10 11:29:20;  author: john;  state: Exp;
17028 *** empty log message ***
17029 ----------------------------
17030 revision 1.6
17031 date: 1994/08/10 10:44:12;  author: john;  state: Exp;
17032 Made net players fire..
17033 ----------------------------
17034 revision 1.5
17035 date: 1994/08/09 19:31:46;  author: john;  state: Exp;
17036 Networking changes.
17037 ----------------------------
17038 revision 1.4
17039 date: 1994/08/05 16:30:26;  author: john;  state: Exp;
17040 Added capability to turn off network.
17041 ----------------------------
17042 revision 1.3
17043 date: 1994/08/05 16:11:43;  author: john;  state: Exp;
17044 Psuedo working version of networking.
17045 ----------------------------
17046 revision 1.2
17047 date: 1994/07/25 12:33:34;  author: john;  state: Exp;
17048 Network "pinging" in.
17049 ----------------------------
17050 revision 1.1
17051 date: 1994/07/20 16:09:05;  author: john;  state: Exp;
17052 Initial revision
17053 =============================================================================
17054 RCS file: /Smoke/miner/source/main/newdemo.c,v
17055 Working file: main/newdemo.c
17056 head: 1.12
17057 description: Code to make a complete demo playback system.
17058 ----------------------------
17059 revision 1.12
17060 date: 1995/10/31 10:19:43;  author: allender;  state: Exp;
17061 shareware stuff
17062 ----------------------------
17063 revision 1.11
17064 date: 1995/10/17 13:19:16;  author: allender;  state: Exp;
17065 close boxes for demo save
17066 ----------------------------
17067 revision 1.10
17068 date: 1995/10/05 10:36:07;  author: allender;  state: Exp;
17069 fixed calls to digi_play_sample to account for differing volume and angle calculations
17070 ----------------------------
17071 revision 1.9
17072 date: 1995/09/12 15:49:13;  author: allender;  state: Exp;
17073 define __useAppleExts__ if not already defined
17074 ----------------------------
17075 revision 1.8
17076 date: 1995/09/05 14:28:32;  author: allender;  state: Exp;
17077 fixed previous N_players bug in newdemo_goto_end
17078 ----------------------------
17079 revision 1.7
17080 date: 1995/09/05 14:16:51;  author: allender;  state: Exp;
17081 added space to allowable demo filename characters
17082 and fixed bug with netgame demos N_players got getting
17083 set correctly
17084 ----------------------------
17085 revision 1.6
17086 date: 1995/09/01 16:10:47;  author: allender;  state: Exp;
17087 fixed bug with reading in N_players variable on
17088 netgame demo playback
17089 ----------------------------
17090 revision 1.5
17091 date: 1995/08/24 16:04:11;  author: allender;  state: Exp;
17092 fix signed byte problem
17093 ----------------------------
17094 revision 1.4
17095 date: 1995/08/12 12:21:59;  author: allender;  state: Exp;
17096 made call to create_shortpos not swap the shortpos
17097 elements
17098 ----------------------------
17099 revision 1.3
17100 date: 1995/08/01 16:04:19;  author: allender;  state: Exp;
17101 made random picking of demo work
17102 ----------------------------
17103 revision 1.2
17104 date: 1995/08/01 13:56:56;  author: allender;  state: Exp;
17105 demo system working on the mac
17106 ----------------------------
17107 revision 1.1
17108 date: 1995/05/16 15:28:59;  author: allender;  state: Exp;
17109 Initial revision
17110 ----------------------------
17111 revision 2.6
17112 date: 1995/03/21 14:39:38;  author: john;  state: Exp;
17113 Ifdef'd out the NETWORK code.
17114 ----------------------------
17115 revision 2.5
17116 date: 1995/03/14 18:24:31;  author: john;  state: Exp;
17117 Force Destination Saturn to use CD-ROM drive.
17118 ----------------------------
17119 revision 2.4
17120 date: 1995/03/14 16:22:29;  author: john;  state: Exp;
17121 Added cdrom alternate directory stuff.
17122 ----------------------------
17123 revision 2.3
17124 date: 1995/03/10 12:58:33;  author: allender;  state: Exp;
17125 only display rear view cockpit when cockpit mode was CM_FULL_COCKPIT.
17126 ----------------------------
17127 revision 2.2
17128 date: 1995/03/08 16:12:15;  author: allender;  state: Exp;
17129 changes for Destination Saturn
17130 ----------------------------
17131 revision 2.1
17132 date: 1995/03/08 12:11:26;  author: allender;  state: Exp;
17133 fix shortpos reading
17134 ----------------------------
17135 revision 2.0
17136 date: 1995/02/27 11:29:40;  author: john;  state: Exp;
17137 New version 2.0, which has no anonymous unions, builds with
17138 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
17139 ----------------------------
17140 revision 1.189
17141 date: 1995/02/22 14:53:42;  author: allender;  state: Exp;
17142 missed some anonymous stuff
17143 ----------------------------
17144 revision 1.188
17145 date: 1995/02/22 13:24:53;  author: john;  state: Exp;
17146 Removed the vecmat anonymous unions.
17147 ----------------------------
17148 revision 1.187
17149 date: 1995/02/22 13:13:54;  author: allender;  state: Exp;
17150 remove anonymous unions from object structure
17151 ----------------------------
17152 revision 1.186
17153 date: 1995/02/14 15:36:41;  author: allender;  state: Exp;
17154 fix fix for morph effect
17155 ----------------------------
17156 revision 1.185
17157 date: 1995/02/14 11:25:48;  author: allender;  state: Exp;
17158 save cockpit mode and restore after playback.  get orientation for morph
17159 effect when object is morph vclip
17160 ----------------------------
17161 revision 1.184
17162 date: 1995/02/13 12:18:14;  author: allender;  state: Exp;
17163 change to decide about interpolating or not
17164 ----------------------------
17165 revision 1.183
17166 date: 1995/02/12 00:46:23;  author: adam;  state: Exp;
17167 don't decide to skip frames until after at least 10 frames have
17168 passed -- allender
17169 ----------------------------
17170 revision 1.182
17171 date: 1995/02/11 22:34:01;  author: john;  state: Exp;
17172 Made textures page in for newdemos before playback time.
17173 ----------------------------
17174 revision 1.181
17175 date: 1995/02/11 17:28:32;  author: allender;  state: Exp;
17176 strip frames from end of demo
17177 ----------------------------
17178 revision 1.180
17179 date: 1995/02/11 16:40:35;  author: allender;  state: Exp;
17180 start of frame stripping debug code
17181 ----------------------------
17182 revision 1.179
17183 date: 1995/02/10 17:40:06;  author: allender;  state: Exp;
17184 put back in wall_hit_process code to fix door problem
17185 ----------------------------
17186 revision 1.178
17187 date: 1995/02/10 17:17:24;  author: adam;  state: Exp;
17188 allender } fix
17189 ----------------------------
17190 revision 1.177
17191 date: 1995/02/10 17:16:24;  author: allender;  state: Exp;
17192 fix possible tmap problems
17193 ----------------------------
17194 revision 1.176
17195 date: 1995/02/10 15:54:37;  author: allender;  state: Exp;
17196 changes for out of space on device.
17197 ----------------------------
17198 revision 1.175
17199 date: 1995/02/09 19:55:00;  author: allender;  state: Exp;
17200 fix bug with morph recording -- force rendertype to RT_POLYOBJ when
17201 playing back since it won't render until fully morphed otherwise
17202 ----------------------------
17203 revision 1.174
17204 date: 1995/02/07 17:15:35;  author: allender;  state: Exp;
17205 DOH!!!!!
17206 ----------------------------
17207 revision 1.173
17208 date: 1995/02/07 17:14:21;  author: allender;  state: Exp;
17209 immediately return when loading bogus level stuff when reading a frame
17210 ----------------------------
17211 revision 1.172
17212 date: 1995/02/02 11:15:03;  author: allender;  state: Exp;
17213 after loading new level, read next frame (forward or back) always because
17214 of co-op ships showing up when level is loaded
17215 ----------------------------
17216 revision 1.171
17217 date: 1995/02/02 10:24:16;  author: allender;  state: Exp;
17218 removed cfile stuff.  Use standard FILE functions for demo playback
17219 ----------------------------
17220 revision 1.170
17221 date: 1995/01/30 13:54:32;  author: allender;  state: Exp;
17222 support for missions
17223 ----------------------------
17224 revision 1.169
17225 date: 1995/01/27 16:27:35;  author: allender;  state: Exp;
17226 put game mode to demo_game_mode when sorting multiplayer kill (and score)
17227 list
17228 ----------------------------
17229 revision 1.168
17230 date: 1995/01/27 09:52:25;  author: allender;  state: Exp;
17231 minor changes because of object/segment linking problems
17232 ----------------------------
17233 revision 1.167
17234 date: 1995/01/27 09:22:28;  author: allender;  state: Exp;
17235 changed way multi-player score is recorded.  Record difference, not
17236 actual
17237 ----------------------------
17238 revision 1.166
17239 date: 1995/01/25 14:32:44;  author: allender;  state: Exp;
17240 changed with recorded player flags.  More checks for paused state
17241 during interpolation reading of objects
17242 ----------------------------
17243 revision 1.165
17244 date: 1995/01/25 11:23:32;  author: allender;  state: Exp;
17245 found bug with out of disk space problem
17246 ----------------------------
17247 revision 1.164
17248 date: 1995/01/25 11:11:33;  author: allender;  state: Exp;
17249 coupla' things.  Fix problem with objects apparently being linked in
17250 the wrong segment.  Put an Int3 in to check why demos will write to
17251 end of space on drive. close demo file if demo doens't start playing
17252 back.  Put obj->type == OBJ_ROBOT around checking for boss cloaking
17253 ----------------------------
17254 revision 1.163
17255 date: 1995/01/24 19:44:30;  author: allender;  state: Exp;
17256 fix obscure problem with rewinding and having the wrong object linked
17257 to the wrong segments.  will investigate further.
17258 ----------------------------
17259 revision 1.162
17260 date: 1995/01/23 09:31:28;  author: allender;  state: Exp;
17261 add team score in team mode playback
17262 ----------------------------
17263 revision 1.161
17264 date: 1995/01/20 22:47:39;  author: matt;  state: Exp;
17265 Mission system implemented, though imcompletely
17266 ----------------------------
17267 revision 1.160
17268 date: 1995/01/20 09:30:37;  author: allender;  state: Exp;
17269 don't call LoadLevel with bogus data
17270 ----------------------------
17271 revision 1.159
17272 date: 1995/01/20 09:13:23;  author: allender;  state: Exp;
17273 *&^%&*%$ typo
17274 ----------------------------
17275 revision 1.158
17276 date: 1995/01/20 09:12:04;  author: allender;  state: Exp;
17277 record team names during demo recoring in GM_TEAM
17278 ----------------------------
17279 revision 1.157
17280 date: 1995/01/19 16:31:09;  author: allender;  state: Exp;
17281 forgot to bump demo version for new weapon change stuff
17282 ----------------------------
17283 revision 1.156
17284 date: 1995/01/19 16:29:33;  author: allender;  state: Exp;
17285 added new byte for weapon change (old weapon) so rewinding works
17286 correctly for weapon changes in registered
17287 ----------------------------
17288 revision 1.155
17289 date: 1995/01/19 15:00:05;  author: allender;  state: Exp;
17290 remove code to take away blastable walls in multiplayer demo playbacks
17291 ----------------------------
17292 revision 1.154
17293 date: 1995/01/19 11:07:05;  author: allender;  state: Exp;
17294 put in psuedo cloaking for boss robots.  Problem is that cloaking is
17295 time based, and that don't get done in demos, so bosses just disappear.
17296 oh well
17297 ----------------------------
17298 revision 1.153
17299 date: 1995/01/19 09:42:29;  author: allender;  state: Exp;
17300 record laser levels in demos
17301 ----------------------------
17302 revision 1.152
17303 date: 1995/01/18 20:43:12;  author: allender;  state: Exp;
17304 fix laser level stuff on goto-beginning and goto-end
17305 ----------------------------
17306 revision 1.151
17307 date: 1995/01/18 20:28:18;  author: allender;  state: Exp;
17308 cloak robots now cloak (except maybe for boss........)  Put in function
17309 to deal with control center triggers
17310 ----------------------------
17311 revision 1.150
17312 date: 1995/01/18 18:55:07;  author: allender;  state: Exp;
17313 bug fix
17314 ----------------------------
17315 revision 1.149
17316 date: 1995/01/18 18:49:03;  author: allender;  state: Exp;
17317 lots 'o stuff....record laser level.  Record beginning of door opening
17318 sequence.  Fix some problems with control center stuff.  Control center
17319 triggers now work in reverse
17320 ----------------------------
17321 revision 1.148
17322 date: 1995/01/18 08:51:40;  author: allender;  state: Exp;
17323 forgot to record ammo counts at beginning of demo
17324 ----------------------------
17325 revision 1.147
17326 date: 1995/01/17 17:42:07;  author: allender;  state: Exp;
17327 added primary and secondary ammo counts.  Changed goto_end routine
17328 to be more efficient
17329 ----------------------------
17330 revision 1.146
17331 date: 1995/01/17 13:46:35;  author: allender;  state: Exp;
17332 fix problem with destroyed control center and rewinding a demo.
17333 Save callsign and restore after demo playback
17334 ----------------------------
17335 revision 1.145
17336 date: 1995/01/12 10:21:53;  author: allender;  state: Exp;
17337 fixes for 1.0 to 1.1 demo incompatibility
17338 ----------------------------
17339 revision 1.144
17340 date: 1995/01/05 13:51:43;  author: allender;  state: Exp;
17341 fixed type of player num variable
17342 ----------------------------
17343 revision 1.143
17344 date: 1995/01/04 16:58:28;  author: allender;  state: Exp;
17345 bumped up demo version number
17346 ----------------------------
17347 revision 1.142
17348 date: 1995/01/04 14:59:02;  author: allender;  state: Exp;
17349 added more information to end of demo for registered.  Forced game mode
17350 to be GM_NORMAL on demo playback
17351 ----------------------------
17352 revision 1.141
17353 date: 1995/01/03 17:30:47;  author: allender;  state: Exp;
17354 fixed logic problem with cloak stuf
17355 ----------------------------
17356 revision 1.140
17357 date: 1995/01/03 17:12:23;  author: allender;  state: Exp;
17358 fix for getting cloak stuff at end of demo for shareware
17359 ----------------------------
17360 revision 1.139
17361 date: 1995/01/03 15:20:24;  author: allender;  state: Exp;
17362 fix goto_end for shareware -- changes to goto_end for registered
17363 ----------------------------
17364 revision 1.138
17365 date: 1995/01/03 13:13:26;  author: allender;  state: Exp;
17366 add } I forgot
17367 ----------------------------
17368 revision 1.137
17369 date: 1995/01/03 13:10:29;  author: allender;  state: Exp;
17370 make score work forwards and backwards
17371 ----------------------------
17372 revision 1.136
17373 date: 1995/01/03 11:45:20;  author: allender;  state: Exp;
17374 added code to record players scores
17375 ----------------------------
17376 revision 1.135
17377 date: 1994/12/30 10:03:57;  author: allender;  state: Exp;
17378 put cloak stuff at end of demo for fast forward to the end
17379 ----------------------------
17380 revision 1.134
17381 date: 1994/12/29 17:02:55;  author: allender;  state: Exp;
17382 spelling fix on SHAREWARE
17383 ----------------------------
17384 revision 1.133
17385 date: 1994/12/29 16:43:41;  author: allender;  state: Exp;
17386 lots of new multiplayer stuff.  wrapped much code with SHAREWARE defines
17387 ----------------------------
17388 revision 1.132
17389 date: 1994/12/28 14:15:01;  author: allender;  state: Exp;
17390 added routines to deal with connecting and reconnecting players when
17391 recording multiplayer demos
17392 ----------------------------
17393 revision 1.131
17394 date: 1994/12/21 12:57:59;  author: allender;  state: Exp;
17395 bug fix
17396 ----------------------------
17397 revision 1.130
17398 date: 1994/12/21 12:46:53;  author: allender;  state: Exp;
17399 record multi player deaths and kills
17400 ----------------------------
17401 revision 1.129
17402 date: 1994/12/19 16:37:27;  author: allender;  state: Exp;
17403 pick good filename when trying to save in network play and player
17404 gets bumped out of menu by multi-player code
17405 ----------------------------
17406 revision 1.128
17407 date: 1994/12/14 10:49:01;  author: allender;  state: Exp;
17408 reset bad_read variable when starting demo playback
17409 ----------------------------
17410 revision 1.127
17411 date: 1994/12/14 08:53:06;  author: allender;  state: Exp;
17412 lowered watermark for out of space
17413 ----------------------------
17414 revision 1.126
17415 date: 1994/12/14 08:49:52;  author: allender;  state: Exp;
17416 put up warning when starting demo recording if not enough space and
17417 not let them record
17418 ----------------------------
17419 revision 1.125
17420 date: 1994/12/13 00:01:37;  author: allender;  state: Exp;
17421 CLOAK FIX -- (I'm tempted to take cloak out of game because I can't
17422 seem to get it right in demo playback)
17423 ----------------------------
17424 revision 1.124
17425 date: 1994/12/12 14:51:21;  author: allender;  state: Exp;
17426 more fixed to multiplayer cloak stuff
17427 ----------------------------
17428 revision 1.123
17429 date: 1994/12/12 11:33:11;  author: allender;  state: Exp;
17430 fixed rearview mode to work again
17431 ----------------------------
17432 revision 1.122
17433 date: 1994/12/12 11:00:16;  author: matt;  state: Exp;
17434 Added code to handle confusion with attached objects
17435 ----------------------------
17436 revision 1.121
17437 date: 1994/12/12 00:31:29;  author: allender;  state: Exp;
17438 give better warning when out of space when recording.  Don't record
17439 until no space left.  We have 500K watermark when we now stop recording
17440 ----------------------------
17441 revision 1.120
17442 date: 1994/12/10 16:44:54;  author: matt;  state: Exp;
17443 Added debugging code to track down door that turns into rock
17444 ----------------------------
17445 revision 1.119
17446 date: 1994/12/09 18:46:15;  author: matt;  state: Exp;
17447 Added code to handle odd error condition
17448 ----------------------------
17449 revision 1.118
17450 date: 1994/12/09 17:27:37;  author: allender;  state: Exp;
17451 force playernum to 0 when demo is done playing
17452 ----------------------------
17453 revision 1.117
17454 date: 1994/12/09 16:40:39;  author: allender;  state: Exp;
17455 yet more cloak stuff.  Assign cloak/invuln time when starting demo
17456 if flags are set.  Check cloak and invuln time when demo
17457 even when paused
17458 ----------------------------
17459 revision 1.116
17460 date: 1994/12/09 14:59:22;  author: matt;  state: Exp;
17461 Added system to attach a fireball to another object for rendering purposes,
17462 so the fireball always renders on top of (after) the object.
17463 ----------------------------
17464 revision 1.115
17465 date: 1994/12/09 12:21:45;  author: allender;  state: Exp;
17466 only allow valid chars when typing in demo filename
17467 ----------------------------
17468 revision 1.114
17469 date: 1994/12/08 23:19:02;  author: allender;  state: Exp;
17470 final(?) fix for getting cloak gauge to work on demo playback
17471 with forward and reverse
17472 ----------------------------
17473 revision 1.113
17474 date: 1994/12/08 21:34:38;  author: allender;  state: Exp;
17475 record old and new player flags to accuratedly record cloaking and
17476 decloaking
17477 ./
17478 ----------------------------
17479 revision 1.112
17480 date: 1994/12/08 18:04:47;  author: allender;  state: Exp;
17481 bashed playernum right after reading it in demo header so shields
17482 and energy are put in right place
17483 ----------------------------
17484 revision 1.111
17485 date: 1994/12/08 17:10:07;  author: allender;  state: Exp;
17486 encode playernum in demo header.  Bash viewer segment to 0 if in
17487 bogus segnum.  Don't link render objs for same reason
17488 ----------------------------
17489 revision 1.110
17490 date: 1994/12/08 15:36:12;  author: allender;  state: Exp;
17491 cloak stuff works forwards and backwards
17492 ----------------------------
17493 revision 1.109
17494 date: 1994/12/08 13:46:03;  author: allender;  state: Exp;
17495 don't record rearview anymore, but leave in case statement for playback
17496 purposes.  change the way letterbox <--> cockpit transitions happen
17497 ----------------------------
17498 revision 1.108
17499 date: 1994/12/08 12:36:06;  author: matt;  state: Exp;
17500 Added new object allocation & deallocation functions so other code
17501 could stop messing around with internal object data structures.
17502 ----------------------------
17503 revision 1.107
17504 date: 1994/12/08 11:19:04;  author: allender;  state: Exp;
17505 handle out of space (more) gracefully then before
17506 ----------------------------
17507 revision 1.106
17508 date: 1994/12/08 00:29:49;  author: allender;  state: Exp;
17509 fixed bug that didn't load level on goto_beginning
17510 ----------------------------
17511 revision 1.105
17512 date: 1994/12/08 00:11:51;  author: mike;  state: Exp;
17513 change matrix interpolation.
17514 ----------------------------
17515 revision 1.104
17516 date: 1994/12/07 23:46:37;  author: allender;  state: Exp;
17517 changed invulnerability and cloak to work (almost) correctly both
17518 in single and multi player
17519 ----------------------------
17520 revision 1.103
17521 date: 1994/12/07 11:48:49;  author: adam;  state: Exp;
17522 BY ALLENDER -- added dampening of interpolation factor to 1 if greater
17523 than 1 (although I have not seen this happen).  this is attempt to
17524 get wobbling problem solved
17525 ----------------------------
17526 revision 1.102
17527 date: 1994/12/07 11:23:56;  author: allender;  state: Exp;
17528 attempt at getting rid of wobbling on demo playback
17529 ----------------------------
17530 revision 1.101
17531 date: 1994/12/06 19:31:17;  author: allender;  state: Exp;
17532 moved blastable wall stuff code to where we load level during demo
17533 playback
17534 ----------------------------
17535 revision 1.100
17536 date: 1994/12/06 19:21:51;  author: allender;  state: Exp;
17537 multi games, destroy blastable walls.  Do wall toggle when control center
17538 destroyed
17539 ----------------------------
17540 revision 1.99
17541 date: 1994/12/06 16:54:48;  author: allender;  state: Exp;
17542 fixed code so if demo automatically started from menu, don't bring up
17543 message if demo is too old
17544 ----------------------------
17545 revision 1.98
17546 date: 1994/12/06 13:55:15;  author: matt;  state: Exp;
17547 Use new rounding func, f2ir()
17548 ----------------------------
17549 revision 1.97
17550 date: 1994/12/06 13:44:45;  author: allender;  state: Exp;
17551 suppressed compiler warnings
17552 ----------------------------
17553 revision 1.96
17554 date: 1994/12/06 13:38:03;  author: allender;  state: Exp;
17555 removed recording of wall hit process.  I think that all bases are covered
17556 elsewhere
17557 ----------------------------
17558 revision 1.95
17559 date: 1994/12/06 12:57:35;  author: allender;  state: Exp;
17560 added recording of multi_decloaking.  Fixed some other cloaking code so
17561 that cloak should last as long as player was cloaked.  We will lose the
17562 guage effect, but the time is probably more important on playback
17563 ----------------------------
17564 revision 1.94
17565 date: 1994/12/05 23:37:17;  author: matt;  state: Exp;
17566 Took out calls to warning() function
17567 ----------------------------
17568 revision 1.93
17569 date: 1994/12/03 17:52:04;  author: yuan;  state: Exp;
17570 Localization 380ish
17571 ----------------------------
17572 revision 1.92
17573 date: 1994/12/02 12:53:39;  author: allender;  state: Exp;
17574 fixed goto_beginning and goto_end on demo playback
17575 ----------------------------
17576 revision 1.91
17577 date: 1994/12/01 12:01:49;  author: allender;  state: Exp;
17578 added multi player cloak stuff
17579 ----------------------------
17580 revision 1.90
17581 date: 1994/11/30 09:33:58;  author: allender;  state: Exp;
17582 added field in header to tell what version (shareware or registered)
17583 demo was recorded with.  Don't allow demo recorded on one to playback
17584 on the other
17585 ----------------------------
17586 revision 1.89
17587 date: 1994/11/29 00:31:01;  author: allender;  state: Exp;
17588 major changes -- added level recording feature which records level
17589 advancement.  Changes to internal code to handle this.
17590 ----------------------------
17591 revision 1.88
17592 date: 1994/11/27 23:13:54;  author: matt;  state: Exp;
17593 Made changes for new mprintf calling convention
17594 ----------------------------
17595 revision 1.87
17596 date: 1994/11/27 23:07:35;  author: allender;  state: Exp;
17597 starting on code to get all level transitions recorded. not done yet
17598 ----------------------------
17599 revision 1.86
17600 date: 1994/11/27 17:39:47;  author: matt;  state: Exp;
17601 Don't xlate tmap numbers when editor compiled out
17602 ----------------------------
17603 revision 1.85
17604 date: 1994/11/23 09:27:21;  author: allender;  state: Exp;
17605 put up info box with message if demo version is too old or level
17606 cannot be loaded
17607 ----------------------------
17608 revision 1.84
17609 date: 1994/11/22 19:37:39;  author: allender;  state: Exp;
17610 fix array mistake
17611 ----------------------------
17612 revision 1.83
17613 date: 1994/11/22 19:35:09;  author: allender;  state: Exp;
17614 record player ship colors in multiplayer demo recordings
17615 ----------------------------
17616 revision 1.82
17617 date: 1994/11/19 15:36:42;  author: mike;  state: Exp;
17618 fix fix.
17619 ----------------------------
17620 revision 1.81
17621 date: 1994/11/19 15:23:21;  author: mike;  state: Exp;
17622 rip out unused code
17623 ----------------------------
17624 revision 1.80
17625 date: 1994/11/16 14:51:49;  author: rob;  state: Exp;
17626 Fixed network/demo incompatibility.
17627 ----------------------------
17628 revision 1.79
17629 date: 1994/11/15 10:55:48;  author: allender;  state: Exp;
17630 made start of demo playback read initial demo information so
17631 level will get loaded.  Made demo record to single file which
17632 will get renamed.  Added numerics after old filename so
17633 sequential filenames would be defaulted to
17634 ----------------------------
17635 revision 1.78
17636 date: 1994/11/15 09:46:06;  author: allender;  state: Exp;
17637 added versioning.  Fixed problems with trying to interpolating a completely
17638 0 orientation matrix
17639 ----------------------------
17640 revision 1.77
17641 date: 1994/11/14 14:34:31;  author: matt;  state: Exp;
17642 Fixed up handling when textures can't be found during remap
17643 ----------------------------
17644 revision 1.76
17645 date: 1994/11/14 09:15:29;  author: allender;  state: Exp;
17646 make ESC from file save menu exit w/o saving.  Fix letterbox, rear view,
17647 to normal cockpit mode transition to work correctly when skipping and
17648 interpolating frames
17649 ----------------------------
17650 revision 1.75
17651 date: 1994/11/11 16:22:07;  author: allender;  state: Exp;
17652 made morphing objects record only the object being morphed.
17653 ----------------------------
17654 revision 1.74
17655 date: 1994/11/08 14:59:19;  author: john;  state: Exp;
17656 Added code to respond to network while in menus.
17657 ----------------------------
17658 revision 1.73
17659 date: 1994/11/08 14:52:20;  author: adam;  state: Exp;
17660 *** empty log message ***
17661 ----------------------------
17662 revision 1.72
17663 date: 1994/11/07 15:47:04;  author: allender;  state: Exp;
17664 prompt for filename when done recording demo
17665 ----------------------------
17666 revision 1.71
17667 date: 1994/11/07 11:47:19;  author: allender;  state: Exp;
17668 when interpolating frames, delete weapon, fireball, and debris objects
17669 from an inpolated frame if they don't appear in the next recorded
17670 frame
17671 ----------------------------
17672 revision 1.70
17673 date: 1994/11/07 11:02:41;  author: allender;  state: Exp;
17674 more with interpolation. I believe that I have it right now
17675 ----------------------------
17676 revision 1.69
17677 date: 1994/11/07 08:47:40;  author: john;  state: Exp;
17678 Made wall state record.
17679 ----------------------------
17680 revision 1.68
17681 date: 1994/11/05 17:22:51;  author: john;  state: Exp;
17682 Fixed lots of sequencing problems with newdemo stuff.
17683 ----------------------------
17684 revision 1.67
17685 date: 1994/11/04 20:11:52;  author: john;  state: Exp;
17686 Neatening up palette stuff with demos.
17687 ----------------------------
17688 revision 1.66
17689 date: 1994/11/04 16:49:44;  author: allender;  state: Exp;
17690 changed newdemo_do_interpolate to default to on
17691 ----------------------------
17692 revision 1.65
17693 date: 1994/11/04 16:44:51;  author: allender;  state: Exp;
17694 added filename support for demo recording.  more auto demo stuff
17695 ----------------------------
17696 revision 1.64
17697 date: 1994/11/04 13:05:31;  author: allender;  state: Exp;
17698 fixing the lifeleft variable again.  (I think I got it right this time)
17699 ----------------------------
17700 revision 1.63
17701 date: 1994/11/04 11:37:37;  author: allender;  state: Exp;
17702 commented out fprintfs and fixed compiler warning
17703 ----------------------------
17704 revision 1.62
17705 date: 1994/11/04 11:33:50;  author: allender;  state: Exp;
17706 added OBJ_FLARE and OBJ_LIGHT to obj->lifeleft recording
17707 ----------------------------
17708 revision 1.61
17709 date: 1994/11/04 11:29:21;  author: allender;  state: Exp;
17710 more interpolation stuff -- not done yet.  Fixed so hostage vclips
17711 render correctly.  Changed lifeleft to full precision, but only
17712 write it when object is fireball or weapon type of object
17713 ----------------------------
17714 revision 1.60
17715 date: 1994/11/03 10:00:11;  author: allender;  state: Exp;
17716 fixed divide by zero in calculating render time.  more interpolation
17717 stuff which isn't quite done
17718 ----------------------------
17719 revision 1.59
17720 date: 1994/11/02 17:10:59;  author: allender;  state: Exp;
17721 never play recorded frames when interpolation is occuring
17722 ----------------------------
17723 revision 1.58
17724 date: 1994/11/02 14:28:58;  author: allender;  state: Exp;
17725 profile total playback time and average frame render time
17726 ----------------------------
17727 revision 1.57
17728 date: 1994/11/02 14:09:03;  author: allender;  state: Exp;
17729 record rear view.  start of playback interpolation code -- this
17730 is not yet done
17731 ----------------------------
17732 revision 1.56
17733 date: 1994/11/01 13:25:30;  author: allender;  state: Exp;
17734 drop frames if playing back demo on slower machine
17735 ----------------------------
17736 revision 1.55
17737 date: 1994/10/31 16:10:40;  author: allender;  state: Exp;
17738 record letterbox mode on death seq, and then restore
17739 ----------------------------
17740 revision 1.54
17741 date: 1994/10/29 16:01:38;  author: allender;  state: Exp;
17742 added ND_STATE_NODEMOS to indicate that there are no demos currently
17743 available for playback
17744 ----------------------------
17745 revision 1.53
17746 date: 1994/10/29 15:38:42;  author: allender;  state: Exp;
17747 in newdemo_start_playback, make Newdemo_at_eof = 0
17748 ----------------------------
17749 revision 1.52
17750 date: 1994/10/28 14:45:28;  author: john;  state: Exp;
17751 fixed typo from last checkin.
17752 ----------------------------
17753 revision 1.51
17754 date: 1994/10/28 14:42:55;  author: john;  state: Exp;
17755 Added sound volumes to all sound calls.
17756 ----------------------------
17757 revision 1.50
17758 date: 1994/10/28 14:31:57;  author: allender;  state: Exp;
17759 homing missle and autodemo stuff
17760 ----------------------------
17761 revision 1.49
17762 date: 1994/10/28 12:42:14;  author: allender;  state: Exp;
17763 record homing distance
17764 ----------------------------
17765 revision 1.48
17766 date: 1994/10/27 16:57:54;  author: allender;  state: Exp;
17767 changed demo vcr to be able to play any number of frames by storing
17768 frame length (in bytes) in the demo file.  Added blowing up monitors
17769 ----------------------------
17770 revision 1.47
17771 date: 1994/10/26 16:50:50;  author: allender;  state: Exp;
17772 put two functions inside of VCR_MODE ifdef
17773 ----------------------------
17774 revision 1.46
17775 date: 1994/10/26 15:20:32;  author: allender;  state: Exp;
17776 added CT_REMOTE as valid control type for recording
17777 ----------------------------
17778 revision 1.45
17779 date: 1994/10/26 14:45:35;  author: allender;  state: Exp;
17780 completed hacked in vcr demo playback stuff
17781 ----------------------------
17782 revision 1.44
17783 date: 1994/10/26 13:40:52;  author: allender;  state: Exp;
17784 vcr playback of demo stuff
17785 ----------------------------
17786 revision 1.43
17787 date: 1994/10/26 08:51:57;  author: allender;  state: Exp;
17788 record player weapon change
17789 ----------------------------
17790 revision 1.42
17791 date: 1994/10/25 15:48:01;  author: allender;  state: Exp;
17792 add shields, energy, and player flags to demo recording.
17793 ,
17794 ----------------------------
17795 revision 1.41
17796 date: 1994/10/24 08:19:35;  author: allender;  state: Exp;
17797 fixed compilation errors
17798 ----------------------------
17799 revision 1.40
17800 date: 1994/10/23 19:17:08;  author: matt;  state: Exp;
17801 Fixed bug with "no key" messages
17802 ----------------------------
17803 revision 1.39
17804 date: 1994/10/22 14:15:08;  author: mike;  state: Exp;
17805 Suppress compiler warnings.
17806 ----------------------------
17807 revision 1.38
17808 date: 1994/10/21 15:24:55;  author: allender;  state: Exp;
17809 compressed writing of object structures with specialized code
17810 to write out only pertinent object structures.
17811 ----------------------------
17812 revision 1.37
17813 date: 1994/10/20 13:03:17;  author: matt;  state: Exp;
17814 Replaced old save files (MIN/SAV/HOT) with new LVL files
17815 ----------------------------
17816 revision 1.36
17817 date: 1994/09/28 23:13:10;  author: matt;  state: Exp;
17818 Macroized palette flash system
17819 ----------------------------
17820 revision 1.35
17821 date: 1994/09/26 17:28:32;  author: matt;  state: Exp;
17822 Made new multiple-object morph code work with the demo system
17823 ----------------------------
17824 revision 1.34
17825 date: 1994/09/10 13:31:54;  author: matt;  state: Exp;
17826 Made exploding walls a type of blastable walls.
17827 Cleaned up blastable walls, making them tmap2 bitmaps.
17828 ----------------------------
17829 revision 1.33
17830 date: 1994/08/15 18:05:28;  author: john;  state: Exp;
17831 *** empty log message ***
17832 ----------------------------
17833 revision 1.32
17834 date: 1994/08/15 17:56:38;  author: john;  state: Exp;
17835 ,
17836 ----------------------------
17837 revision 1.31
17838 date: 1994/08/10 09:44:54;  author: john;  state: Exp;
17839 *** empty log message ***
17840 ----------------------------
17841 revision 1.30
17842 date: 1994/07/22 12:35:48;  author: matt;  state: Exp;
17843 Cleaned up editor/game interactions some more.
17844 ----------------------------
17845 revision 1.29
17846 date: 1994/07/21 13:06:45;  author: matt;  state: Exp;
17847 Ripped out remants of old demo system, and added demo only system that
17848 disables object movement and game options from menu.
17849 ----------------------------
17850 revision 1.28
17851 date: 1994/07/18 16:22:44;  author: john;  state: Exp;
17852 Made all file read/writes call the same routine.
17853 ----------------------------
17854 revision 1.27
17855 date: 1994/07/14 22:38:27;  author: matt;  state: Exp;
17856 Added exploding doors
17857 ----------------------------
17858 revision 1.26
17859 date: 1994/07/05 12:49:04;  author: john;  state: Exp;
17860 Put functionality of New Hostage spec into code.
17861 ----------------------------
17862 revision 1.25
17863 date: 1994/06/29 11:05:38;  author: john;  state: Exp;
17864 Made demos read in compressed.
17865 ----------------------------
17866 revision 1.24
17867 date: 1994/06/29 09:14:06;  author: john;  state: Exp;
17868 Made files write out uncompressed and read in compressed.
17869 ----------------------------
17870 revision 1.23
17871 date: 1994/06/28 11:55:28;  author: john;  state: Exp;
17872 Made newdemo system record/play directly to/from disk, so
17873 we don't need the 4 MB buffer anymore.
17874 ----------------------------
17875 revision 1.22
17876 date: 1994/06/27 15:52:38;  author: john;  state: Exp;
17877 #define'd out the newdemo stuff
17878 ----------------------------
17879 revision 1.21
17880 date: 1994/06/22 00:29:04;  author: john;  state: Exp;
17881 Fixed bug with playing demo then playing game without
17882 loading new mine.
17883 ----------------------------
17884 revision 1.20
17885 date: 1994/06/22 00:14:23;  author: john;  state: Exp;
17886 Attempted to fix sign.
17887 ----------------------------
17888 revision 1.19
17889 date: 1994/06/21 23:57:54;  author: john;  state: Exp;
17890 Hopefully fixed bug with negative countdowns.
17891 ----------------------------
17892 revision 1.18
17893 date: 1994/06/21 23:47:44;  author: john;  state: Exp;
17894 MAde Malloc always 4*1024*1024.
17895 ----------------------------
17896 revision 1.17
17897 date: 1994/06/21 22:58:47;  author: john;  state: Exp;
17898 Added error if out of memory.
17899 ----------------------------
17900 revision 1.16
17901 date: 1994/06/21 22:15:48;  author: john;  state: Exp;
17902 Added  % done to demo recording.
17903 ----------------------------
17904 revision 1.15
17905 date: 1994/06/21 19:45:55;  author: john;  state: Exp;
17906 Added palette effects to demo recording.
17907 ----------------------------
17908 revision 1.14
17909 date: 1994/06/21 15:08:54;  author: john;  state: Exp;
17910 Made demo record HUD message and cleaned up the HUD code.
17911 ----------------------------
17912 revision 1.13
17913 date: 1994/06/21 14:20:08;  author: john;  state: Exp;
17914 Put in hooks to record HUD messages.
17915 ----------------------------
17916 revision 1.12
17917 date: 1994/06/20 11:50:15;  author: john;  state: Exp;
17918 Made demo record flash effect, and control center triggers.
17919 ----------------------------
17920 revision 1.11
17921 date: 1994/06/17 18:01:33;  author: john;  state: Exp;
17922 A bunch of new stuff by John
17923 ----------------------------
17924 revision 1.10
17925 date: 1994/06/17 12:13:31;  author: john;  state: Exp;
17926 More newdemo stuff; made editor->game transition start in slew mode.
17927 ----------------------------
17928 revision 1.9
17929 date: 1994/06/16 13:14:36;  author: matt;  state: Exp;
17930 Fixed typo
17931 ----------------------------
17932 revision 1.8
17933 date: 1994/06/16 13:02:07;  author: john;  state: Exp;
17934 Added morph hooks.
17935 ----------------------------
17936 revision 1.7
17937 date: 1994/06/15 19:01:33;  author: john;  state: Exp;
17938 Added the capability to make 3d sounds play just once for the
17939 laser hit wall effects.
17940 ----------------------------
17941 revision 1.6
17942 date: 1994/06/15 14:56:59;  author: john;  state: Exp;
17943 Added triggers to demo recording.
17944 ----------------------------
17945 revision 1.5
17946 date: 1994/06/14 20:42:15;  author: john;  state: Exp;
17947 Made robot matztn cntr not work until no robots or player are
17948 in the segment.
17949 ----------------------------
17950 revision 1.4
17951 date: 1994/06/14 14:43:27;  author: john;  state: Exp;
17952 Made doors work with newdemo system.
17953 ----------------------------
17954 revision 1.3
17955 date: 1994/06/14 11:32:29;  author: john;  state: Exp;
17956 Made Newdemo record & restore the current mine.
17957 ----------------------------
17958 revision 1.2
17959 date: 1994/06/13 21:02:43;  author: john;  state: Exp;
17960 Initial version of new demo recording system.
17961 ----------------------------
17962 revision 1.1
17963 date: 1994/06/13 11:09:00;  author: john;  state: Exp;
17964 Initial revision
17965 =============================================================================
17966 RCS file: /Smoke/miner/source/main/newdemo.h,v
17967 Working file: main/newdemo.h
17968 head: 1.1
17969 description: .
17970 ----------------------------
17971 revision 1.1
17972 date: 1995/05/16 16:00:24;  author: allender;  state: Exp;
17973 Initial revision
17974 ----------------------------
17975 revision 2.0
17976 date: 1995/02/27 11:27:18;  author: john;  state: Exp;
17977 New version 2.0, which has no anonymous unions, builds with
17978 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
17979 ----------------------------
17980 revision 1.43
17981 date: 1995/01/19 09:41:43;  author: allender;  state: Exp;
17982 prototype for laser level recording
17983 ----------------------------
17984 revision 1.42
17985 date: 1995/01/18 18:48:49;  author: allender;  state: Exp;
17986 added function prototype for door_open
17987 ----------------------------
17988 revision 1.41
17989 date: 1995/01/17 17:42:31;  author: allender;  state: Exp;
17990 new prototypes for ammo counts
17991 ----------------------------
17992 revision 1.40
17993 date: 1995/01/04 15:04:27;  author: allender;  state: Exp;
17994 added some different prototypes for registered
17995 ----------------------------
17996 revision 1.39
17997 date: 1995/01/03 11:45:11;  author: allender;  state: Exp;
17998 extern function definition
17999 ----------------------------
18000 revision 1.38
18001 date: 1994/12/29 16:43:31;  author: allender;  state: Exp;
18002 new function prototype
18003 ----------------------------
18004 revision 1.37
18005 date: 1994/12/28 14:15:27;  author: allender;  state: Exp;
18006 new function prototypes
18007 ----------------------------
18008 revision 1.36
18009 date: 1994/12/21 12:46:41;  author: allender;  state: Exp;
18010 new functions for multiplayer deaths and kills
18011 ----------------------------
18012 revision 1.35
18013 date: 1994/12/12 11:32:55;  author: allender;  state: Exp;
18014 added new record function to restore after in rearview mode
18015 ----------------------------
18016 revision 1.34
18017 date: 1994/12/08 21:03:15;  author: allender;  state: Exp;
18018 added new param to record_player_flags
18019 ----------------------------
18020 revision 1.33
18021 date: 1994/12/08 13:47:01;  author: allender;  state: Exp;
18022 removed function call to record_rearview
18023 ----------------------------
18024 revision 1.32
18025 date: 1994/12/06 12:57:10;  author: allender;  state: Exp;
18026 added new prototype for multi decloaking
18027 ----------------------------
18028 revision 1.31
18029 date: 1994/12/01 11:46:34;  author: allender;  state: Exp;
18030 added recording prototype for multi player cloak
18031 ----------------------------
18032 revision 1.30
18033 date: 1994/11/27 23:04:22;  author: allender;  state: Exp;
18034 function prototype for recording new levels
18035 ----------------------------
18036 revision 1.29
18037 date: 1994/11/07 08:47:43;  author: john;  state: Exp;
18038 Made wall state record.
18039 ----------------------------
18040 revision 1.28
18041 date: 1994/11/05 17:22:53;  author: john;  state: Exp;
18042 Fixed lots of sequencing problems with newdemo stuff.
18043 ----------------------------
18044 revision 1.27
18045 date: 1994/11/04 16:48:49;  author: allender;  state: Exp;
18046 extern Newdemo_do_interpolate variable
18047 ----------------------------
18048 revision 1.26
18049 date: 1994/11/02 14:08:53;  author: allender;  state: Exp;
18050 record rearview
18051 ----------------------------
18052 revision 1.25
18053 date: 1994/10/31 13:35:04;  author: allender;  state: Exp;
18054 added two record functions to save and restore cockpit state on
18055 death sequence
18056 ----------------------------
18057 revision 1.24
18058 date: 1994/10/29 16:01:11;  author: allender;  state: Exp;
18059 added ND_STATE_NODEMOS to indicate that there are no demos currently
18060 available for playback
18061 ----------------------------
18062 revision 1.23
18063 date: 1994/10/28 12:41:58;  author: allender;  state: Exp;
18064 add homing distance recording event
18065 ----------------------------
18066 revision 1.22
18067 date: 1994/10/27 16:57:32;  author: allender;  state: Exp;
18068 removed VCR_MODE stuff, and added monitor blowup effects
18069 ----------------------------
18070 revision 1.21
18071 date: 1994/10/26 14:44:48;  author: allender;  state: Exp;
18072 completed hacked in vcr type demo playback states
18073 ----------------------------
18074 revision 1.20
18075 date: 1994/10/26 13:40:38;  author: allender;  state: Exp;
18076 more vcr demo playback defines
18077 ----------------------------
18078 revision 1.19
18079 date: 1994/10/26 08:51:26;  author: allender;  state: Exp;
18080 record player weapon change
18081 ----------------------------
18082 revision 1.18
18083 date: 1994/10/25 16:25:31;  author: allender;  state: Exp;
18084 prototypes for shield, energy and flags
18085 ----------------------------
18086 revision 1.17
18087 date: 1994/08/15 18:05:30;  author: john;  state: Exp;
18088 *** empty log message ***
18089 ----------------------------
18090 revision 1.16
18091 date: 1994/07/21 13:11:26;  author: matt;  state: Exp;
18092 Ripped out remants of old demo system, and added demo only system that
18093 disables object movement and game options from menu.
18094 ----------------------------
18095 revision 1.15
18096 date: 1994/07/05 12:49:02;  author: john;  state: Exp;
18097 Put functionality of New Hostage spec into code.
18098 ----------------------------
18099 revision 1.14
18100 date: 1994/06/27 15:53:12;  author: john;  state: Exp;
18101 #define'd out the newdemo stuff
18102 ----------------------------
18103 revision 1.13
18104 date: 1994/06/24 17:01:25;  author: john;  state: Exp;
18105 Add VFX support; Took Game Sequencing, like EndGame and stuff and
18106 took it out of game.c and into gameseq.c
18107 ----------------------------
18108 revision 1.12
18109 date: 1994/06/21 19:46:05;  author: john;  state: Exp;
18110 Added palette effects to demo recording.
18111 ----------------------------
18112 revision 1.11
18113 date: 1994/06/21 14:19:58;  author: john;  state: Exp;
18114 Put in hooks to record HUD messages.
18115 ----------------------------
18116 revision 1.10
18117 date: 1994/06/20 11:50:42;  author: john;  state: Exp;
18118 Made demo record flash effect, and control center triggers.
18119 ----------------------------
18120 revision 1.9
18121 date: 1994/06/17 18:01:29;  author: john;  state: Exp;
18122 A bunch of new stuff by John
18123 ----------------------------
18124 revision 1.8
18125 date: 1994/06/17 12:13:34;  author: john;  state: Exp;
18126 More newdemo stuff; made editor->game transition start in slew mode.
18127 ----------------------------
18128 revision 1.7
18129 date: 1994/06/16 13:02:02;  author: john;  state: Exp;
18130 Added morph hooks.
18131 ----------------------------
18132 revision 1.6
18133 date: 1994/06/15 19:01:42;  author: john;  state: Exp;
18134 Added the capability to make 3d sounds play just once for the
18135 laser hit wall effects.
18136 ----------------------------
18137 revision 1.5
18138 date: 1994/06/15 14:57:11;  author: john;  state: Exp;
18139 Added triggers to demo recording.
18140 ----------------------------
18141 revision 1.4
18142 date: 1994/06/14 20:42:19;  author: john;  state: Exp;
18143 Made robot matztn cntr not work until no robots or player are
18144 in the segment.
18145 ----------------------------
18146 revision 1.3
18147 date: 1994/06/14 14:43:52;  author: john;  state: Exp;
18148 Made doors work with newdemo system.
18149 ----------------------------
18150 revision 1.2
18151 date: 1994/06/13 21:02:44;  author: john;  state: Exp;
18152 Initial version of new demo recording system.
18153 ----------------------------
18154 revision 1.1
18155 date: 1994/06/13 15:51:09;  author: john;  state: Exp;
18156 Initial revision
18157 =============================================================================
18158 RCS file: /BigRed/miner/source/main/newmenu.c,v
18159 Working file: main/newmenu.c
18160 head: 1.26
18161 description: Routines for menus.
18162 ----------------------------
18163 revision 1.26
18164 date: 1996/04/14 21:07:35;  author: allender;  state: Exp;
18165 some change for update
18166 ----------------------------
18167 revision 1.25
18168 date: 1995/10/31 10:19:25;  author: allender;  state: Exp;
18169 shareware stuff
18170 ----------------------------
18171 revision 1.24
18172 date: 1995/10/27 11:09:04;  author: allender;  state: Exp;
18173 always cd to descent dir before any menu processing --
18174 sanity check because of way mac does volume mounting and
18175 other file stuff
18176 ----------------------------
18177 revision 1.23
18178 date: 1995/10/24 18:11:19;  author: allender;  state: Exp;
18179 do_appl_quit saves and restores background -- don't
18180 do any special processing.  fixed newmenu_do3 to pass width
18181 and height to ...do_4
18182 ----------------------------
18183 revision 1.22
18184 date: 1995/10/21 23:26:25;  author: allender;  state: Exp;
18185 can't do cmd-q in multiplayer games
18186 ----------------------------
18187 revision 1.21
18188 date: 1995/10/21 22:53:25;  author: allender;  state: Exp;
18189 menus need to be 8 byte multiple wide -- printscreen stuff
18190 ----------------------------
18191 revision 1.20
18192 date: 1995/10/20 00:50:15;  author: allender;  state: Exp;
18193 redbook stuff and make esc leave menu always
18194 ----------------------------
18195 revision 1.19
18196 date: 1995/10/17 13:14:52;  author: allender;  state: Exp;
18197 mouse support for other menus now operational -- dragging
18198 mouse will also move sliders
18199 ----------------------------
18200 revision 1.18
18201 date: 1995/10/12 17:35:19;  author: allender;  state: Exp;
18202 mouse support for pilot and demos
18203 ----------------------------
18204 revision 1.17
18205 date: 1995/10/11 12:17:47;  author: allender;  state: Exp;
18206 removed event loop processing
18207 ----------------------------
18208 revision 1.16
18209 date: 1995/10/10 11:51:29;  author: allender;  state: Exp;
18210 align menus to 8 byte boundry
18211 ----------------------------
18212 revision 1.15
18213 date: 1995/10/05 14:09:36;  author: allender;  state: Exp;
18214 lowered starting x location on menus to fixup network
18215 status screen chopping off characters
18216 ----------------------------
18217 revision 1.14
18218 date: 1995/09/24 10:52:27;  author: allender;  state: Exp;
18219 made close boxes work
18220 maybe some other minor stuff?
18221 ----------------------------
18222 revision 1.13
18223 date: 1995/09/15 09:02:04;  author: allender;  state: Exp;
18224 started putting mouse support in listboxes
18225 ----------------------------
18226 revision 1.12
18227 date: 1995/09/13 08:50:14;  author: allender;  state: Exp;
18228 close box in this rev?  Worked on getting list box better
18229 looking
18230 ----------------------------
18231 revision 1.11
18232 date: 1995/09/01 10:52:37;  author: allender;  state: Exp;
18233 fixed up list boxes
18234 ----------------------------
18235 revision 1.10
18236 date: 1995/08/24 16:23:08;  author: allender;  state: Exp;
18237 mouse support for most menus
18238 ----------------------------
18239 revision 1.9
18240 date: 1995/08/08 13:46:56;  author: allender;  state: Exp;
18241 added macsys header file
18242 ----------------------------
18243 revision 1.8
18244 date: 1995/08/01 16:03:54;  author: allender;  state: Exp;
18245 added file list with Desalvo's directory stuff
18246 ----------------------------
18247 revision 1.7
18248 date: 1995/07/26 17:03:37;  author: allender;  state: Exp;
18249 show then hide cursor during newmenu operations -- not quite
18250 right yet
18251 ----------------------------
18252 revision 1.6
18253 date: 1995/07/17 08:56:26;  author: allender;  state: Exp;
18254 fixed up menus to look better with new high res fonts
18255 ----------------------------
18256 revision 1.5
18257 date: 1995/07/12 10:35:52;  author: allender;  state: Exp;
18258 removed old debug thing
18259 ----------------------------
18260 revision 1.4
18261 date: 1995/06/23 10:23:21;  author: allender;  state: Exp;
18262 menus should work in any resolution now
18263 ----------------------------
18264 revision 1.3
18265 date: 1995/06/20 09:11:19;  author: allender;  state: Exp;
18266 changed menu system to support 640x480 instead of 320x200
18267 ----------------------------
18268 revision 1.2
18269 date: 1995/06/13 13:07:30;  author: allender;  state: Exp;
18270 added special key to move 320x200 window to upper left corner of screen
18271 ----------------------------
18272 revision 1.1
18273 date: 1995/05/16 15:29:13;  author: allender;  state: Exp;
18274 Initial revision
18275 ----------------------------
18276 revision 2.6
18277 date: 1995/03/21 08:38:46;  author: john;  state: Exp;
18278 Ifdef'd out the NETWORK code.
18279 ----------------------------
18280 revision 2.5
18281 date: 1995/03/15 14:33:29;  author: john;  state: Exp;
18282 Added code to force the Descent CD-rom in the drive.
18283 ----------------------------
18284 revision 2.4
18285 date: 1995/03/14 18:24:28;  author: john;  state: Exp;
18286 Force Destination Saturn to use CD-ROM drive.
18287 ----------------------------
18288 revision 2.3
18289 date: 1995/03/14 16:22:23;  author: john;  state: Exp;
18290 Added cdrom alternate directory stuff.
18291 ----------------------------
18292 revision 2.2
18293 date: 1995/03/06 18:30:51;  author: john;  state: Exp;
18294 Fixed bug with newmenu trashing editor font.
18295 ----------------------------
18296 revision 2.1
18297 date: 1995/03/06 15:23:17;  author: john;  state: Exp;
18298 New screen techniques.
18299 ----------------------------
18300 revision 2.0
18301 date: 1995/02/27 11:27:55;  author: john;  state: Exp;
18302 New version 2.0, which has no anonymous unions, builds with
18303 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
18304 ----------------------------
18305 revision 1.129
18306 date: 1995/02/11 16:19:56;  author: john;  state: Exp;
18307 Added code to make the default mission be the one last played.
18308 ----------------------------
18309 revision 1.128
18310 date: 1995/02/02 19:41:33;  author: john;  state: Exp;
18311 Added 10 save game slots.
18312 ----------------------------
18313 revision 1.127
18314 date: 1995/02/01 18:13:52;  author: john;  state: Exp;
18315 Fixed some constants.
18316 ----------------------------
18317 revision 1.126
18318 date: 1995/02/01 18:04:01;  author: yuan;  state: Exp;
18319 Added 50 characters to list.
18320 ----------------------------
18321 revision 1.125
18322 date: 1995/02/01 13:39:35;  author: john;  state: Exp;
18323 Made menu text that changes not overwrite.
18324 ----------------------------
18325 revision 1.124
18326 date: 1995/01/31 10:47:57;  author: john;  state: Exp;
18327 Added menu that you can specify the width of the menu.
18328 ----------------------------
18329 revision 1.123
18330 date: 1995/01/28 17:18:12;  author: john;  state: Exp;
18331 Added file list box.
18332 ----------------------------
18333 revision 1.122
18334 date: 1995/01/27 17:15:55;  author: john;  state: Exp;
18335 Made prev comment actually work.
18336 ----------------------------
18337 revision 1.121
18338 date: 1995/01/27 16:49:03;  author: john;  state: Exp;
18339 *** empty log message ***
18340 ----------------------------
18341 revision 1.120
18342 date: 1995/01/27 16:46:40;  author: john;  state: Exp;
18343 Made so that input_menu only clears text if -empty-.
18344 ----------------------------
18345 revision 1.119
18346 date: 1995/01/27 15:25:04;  author: john;  state: Exp;
18347 Delete saved game when deleteing a pilot file.
18348 ----------------------------
18349 revision 1.118
18350 date: 1995/01/25 16:36:09;  author: john;  state: Exp;
18351 Made so that when you hit enter during
18352 game save, -empty- goes away.
18353 ----------------------------
18354 revision 1.117
18355 date: 1995/01/24 16:59:30;  author: john;  state: Exp;
18356 took out mono debugging text.
18357 ----------------------------
18358 revision 1.116
18359 date: 1995/01/24 16:23:16;  author: john;  state: Exp;
18360 Fixed some bugs with listboxes.
18361 ----------------------------
18362 revision 1.115
18363 date: 1995/01/23 23:47:36;  author: matt;  state: Exp;
18364 Made keypad enter work in menus
18365 ----------------------------
18366 revision 1.114
18367 date: 1995/01/23 19:29:59;  author: john;  state: Exp;
18368 Added scrolling listbox menus.
18369 ----------------------------
18370 revision 1.113
18371 date: 1995/01/19 12:33:34;  author: john;  state: Exp;
18372 Made keys jump to sliders, etc in menus.
18373 ----------------------------
18374 revision 1.112
18375 date: 1995/01/15 14:33:08;  author: rob;  state: Exp;
18376 Fixed problem with nested nm_messageboxes.
18377 ----------------------------
18378 revision 1.111
18379 date: 1995/01/03 17:33:40;  author: john;  state: Exp;
18380 Made scrolling textbox. Used it for scores cool saying.
18381 ----------------------------
18382 revision 1.110
18383 date: 1994/12/28 10:42:58;  author: john;  state: Exp;
18384 More VFX tweaking.
18385 ----------------------------
18386 revision 1.109
18387 date: 1994/12/28 10:26:39;  author: john;  state: Exp;
18388 Fixed some VFX problems.
18389 ----------------------------
18390 revision 1.108
18391 date: 1994/12/15 23:18:10;  author: john;  state: Exp;
18392 Added fix so that VFX mode doesn't hang.
18393 ----------------------------
18394 revision 1.107
18395 date: 1994/12/15 12:19:55;  author: john;  state: Exp;
18396 Made menu use clipped bitblt functions.
18397 ----------------------------
18398 revision 1.106
18399 date: 1994/12/09 00:41:30;  author: mike;  state: Exp;
18400 fix hang in automap print screen
18401 ----------------------------
18402 revision 1.105
18403 date: 1994/12/08 10:01:34;  author: john;  state: Exp;
18404 Changed the way the player callsign stuff works.
18405 ----------------------------
18406 revision 1.104
18407 date: 1994/12/04 15:34:30;  author: john;  state: Exp;
18408 Fixed bug with newmenu not restoring font properly.
18409 ----------------------------
18410 revision 1.103
18411 date: 1994/12/03 17:47:09;  author: john;  state: Exp;
18412 Fixed bug that didn't free filename mem when not .plr files found.
18413 ----------------------------
18414 revision 1.102
18415 date: 1994/12/03 15:06:15;  author: john;  state: Exp;
18416 If no pilot exists, bring up box asking for name.
18417 ----------------------------
18418 revision 1.101
18419 date: 1994/12/03 11:04:02;  author: john;  state: Exp;
18420 Changed newmenu code a bit to fix bug with bogus
18421 backgrounds occcasionally.
18422 ----------------------------
18423 revision 1.100
18424 date: 1994/12/01 20:15:48;  author: yuan;  state: Exp;
18425 Localization.
18426 ----------------------------
18427 revision 1.99
18428 date: 1994/12/01 10:33:28;  author: john;  state: Exp;
18429 Fixed bug with large menu backgrounds not drawing correctly.
18430 ----------------------------
18431 revision 1.98
18432 date: 1994/12/01 02:41:56;  author: john;  state: Exp;
18433 Fixed warnining.
18434 ----------------------------
18435 revision 1.97
18436 date: 1994/11/30 22:52:43;  author: john;  state: Exp;
18437 Fixed bug in code that made the backgrounds behind menus.
18438 ----------------------------
18439 revision 1.96
18440 date: 1994/11/30 19:47:42;  author: john;  state: Exp;
18441 Added a check for out o' memory when mallocing background.
18442 ----------------------------
18443 revision 1.95
18444 date: 1994/11/30 19:39:10;  author: john;  state: Exp;
18445 ..
18446 ----------------------------
18447 revision 1.94
18448 date: 1994/11/30 19:38:27;  author: john;  state: Exp;
18449 fixed bug with previous.
18450 ----------------------------
18451 revision 1.93
18452 date: 1994/11/30 19:36:47;  author: john;  state: Exp;
18453 Made Gravis Ultrasound work again.  Made the scores blink
18454 at a constant rate.  Revamped the newmenu background storage,
18455 which hopefully fixed some bugs.  Made menus in ame not pause
18456 sound, except for the pause key.               ^== Game!
18457 ----------------------------
18458 revision 1.92
18459 date: 1994/11/30 18:06:05;  author: matt;  state: Exp;
18460 When player types space in callsign, comes up as underscore
18461 ----------------------------
18462 revision 1.91
18463 date: 1994/11/30 12:28:22;  author: adam;  state: Exp;
18464 added PCX support
18465 ----------------------------
18466 revision 1.90
18467 date: 1994/11/30 12:10:59;  author: adam;  state: Exp;
18468 added support for PCX titles/brief screens
18469 ----------------------------
18470 revision 1.89
18471 date: 1994/11/29 00:59:12;  author: allender;  state: Exp;
18472 change newmenu_get_filename so demo files can be deleted too
18473 ----------------------------
18474 revision 1.88
18475 date: 1994/11/27 21:16:18;  author: allender;  state: Exp;
18476 made some return values in newmenu_get_filename 0 instead of -1
18477 ----------------------------
18478 revision 1.87
18479 date: 1994/11/27 16:58:17;  author: matt;  state: Exp;
18480 Made printscreen work all the time (not just when no ndebug) and made it
18481 work when getting a filename.
18482 ----------------------------
18483 revision 1.86
18484 date: 1994/11/27 16:47:51;  author: john;  state: Exp;
18485 Made the call to fade in palette only happen if it needs to be, just
18486 because I thought it might reduce code paging with vm in menus.
18487 ----------------------------
18488 revision 1.85
18489 date: 1994/11/26 15:30:16;  author: matt;  state: Exp;
18490 Allow escape out of change pilot menu
18491 ----------------------------
18492 revision 1.84
18493 date: 1994/11/26 14:17:26;  author: matt;  state: Exp;
18494 Player can now only enter valid chars for his name
18495 ----------------------------
18496 revision 1.83
18497 date: 1994/11/23 14:13:17;  author: allender;  state: Exp;
18498 if no demo files, displays less "techy" message
18499 ----------------------------
18500 revision 1.82
18501 date: 1994/11/21 11:55:52;  author: john;  state: Exp;
18502 Fixed some sound pausing in menus bugs.
18503 ----------------------------
18504 revision 1.81
18505 date: 1994/11/19 15:14:58;  author: mike;  state: Exp;
18506 remove unused code and data
18507 ----------------------------
18508 revision 1.80
18509 date: 1994/11/18 23:37:54;  author: john;  state: Exp;
18510 Changed some shorts to ints.
18511 ----------------------------
18512 revision 1.79
18513 date: 1994/11/15 09:29:21;  author: john;  state: Exp;
18514 Made it so that pressing a letter when selecting players moves to 
18515 a matching choice.
18516 ----------------------------
18517 revision 1.78
18518 date: 1994/11/14 17:12:28;  author: adam;  state: Exp;
18519 *** empty log message ***
18520 ----------------------------
18521 revision 1.77
18522 date: 1994/11/14 16:58:31;  author: rob;  state: Exp;
18523 Tried to fix a problem with save demo dialog.
18524 ----------------------------
18525 revision 1.76
18526 date: 1994/11/14 16:13:46;  author: matt;  state: Exp;
18527 Fixed handling of players with DOS device names
18528 ----------------------------
18529 revision 1.75
18530 date: 1994/11/13 18:12:53;  author: matt;  state: Exp;
18531 Fixed handling of filenames that are the same as DOS devices
18532 ----------------------------
18533 revision 1.74
18534 date: 1994/11/13 17:20:44;  author: john;  state: Exp;
18535 Fixed text a bit.
18536 ----------------------------
18537 revision 1.73
18538 date: 1994/11/13 17:18:22;  author: john;  state: Exp;
18539 Changed wording of new pilot.
18540 ----------------------------
18541 revision 1.72
18542 date: 1994/11/13 17:14:21;  author: john;  state: Exp;
18543 Fixed bug with player list box.
18544 ----------------------------
18545 revision 1.71
18546 date: 1994/11/13 17:12:48;  author: john;  state: Exp;
18547 Fixed broken demo file list.
18548 ----------------------------
18549 revision 1.70
18550 date: 1994/11/13 17:04:49;  author: john;  state: Exp;
18551 Made the callsign entry be a list box and gave the ability
18552 to delete players.
18553 ----------------------------
18554 revision 1.69
18555 date: 1994/11/13 15:38:03;  author: john;  state: Exp;
18556 Added critical error handler to game.  Took out -editor command line
18557 option because it didn't work anymore and wasn't worth fixing.  Made scores
18558 not use MINER enviroment variable on release version, and made scores
18559 not print an error if there is no descent.hi.
18560 ----------------------------
18561 revision 1.68
18562 date: 1994/11/11 18:17:03;  author: rob;  state: Exp;
18563 Made multi_menu_poll return a value to exit menus.
18564 ----------------------------
18565 revision 1.67
18566 date: 1994/11/11 11:07:06;  author: rob;  state: Exp;
18567 Added include of multi.h
18568 ----------------------------
18569 revision 1.66
18570 date: 1994/11/10 20:25:16;  author: rob;  state: Exp;
18571 John's stuff to make network menus work.
18572 ----------------------------
18573 revision 1.65
18574 date: 1994/11/08 14:51:39;  author: john;  state: Exp;
18575 Added nm_messagebox1, (like the original, only you can pass a function).
18576 ----------------------------
18577 revision 1.64
18578 date: 1994/11/08 08:30:39;  author: john;  state: Exp;
18579 Fixed bug with centering titles.
18580 ----------------------------
18581 revision 1.63
18582 date: 1994/11/08 08:27:00;  author: john;  state: Exp;
18583 Made titles and subtitles center.
18584 ----------------------------
18585 revision 1.62
18586 date: 1994/11/07 09:40:48;  author: john;  state: Exp;
18587 Neatend file list box some.
18588 ----------------------------
18589 revision 1.61
18590 date: 1994/11/05 17:22:41;  author: john;  state: Exp;
18591 Fixed lots of sequencing problems with newdemo stuff.
18592 ----------------------------
18593 revision 1.60
18594 date: 1994/11/05 15:04:08;  author: john;  state: Exp;
18595 Added non-popup menu for the main menu, so that scores and credits don't have to save
18596 the background.
18597 ----------------------------
18598 revision 1.59
18599 date: 1994/11/05 14:03:52;  author: john;  state: Exp;
18600 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
18601 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
18602 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
18603 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
18604 ----------------------------
18605 revision 1.58
18606 date: 1994/11/04 20:11:50;  author: john;  state: Exp;
18607 Neatening up palette stuff with demos.
18608 ----------------------------
18609 revision 1.57
18610 date: 1994/11/04 13:49:24;  author: allender;  state: Exp;
18611 fixed newmenu_get_filename to work with less than 10 files
18612 ----------------------------
18613 revision 1.56
18614 date: 1994/11/03 19:37:44;  author: john;  state: Exp;
18615 Added scrolling file list box
18616 ----------------------------
18617 revision 1.55
18618 date: 1994/10/31 18:16:42;  author: john;  state: Exp;
18619 Made Pad arrows work with menus.
18620 ----------------------------
18621 revision 1.54
18622 date: 1994/10/28 14:54:25;  author: john;  state: Exp;
18623 Added forward dec. for newmenu_close.
18624 .\
18625 ----------------------------
18626 revision 1.53
18627 date: 1994/10/28 14:53:00;  author: john;  state: Exp;
18628 Fixed hideous bug that would bomb if you called newmenu_draw_background
18629 before any menus were ever displayed.
18630 ----------------------------
18631 revision 1.52
18632 date: 1994/10/24 19:56:53;  author: john;  state: Exp;
18633 Made the new user setup prompt for config options.
18634 ----------------------------
18635 revision 1.51
18636 date: 1994/10/24 15:15:49;  author: john;  state: Exp;
18637 Made Esc exit nm_messagebox's,
18638 ,
18639 ----------------------------
18640 revision 1.50
18641 date: 1994/10/21 15:20:20;  author: john;  state: Exp;
18642 Made PrtScr do screen dump, not F2.
18643 ----------------------------
18644 revision 1.49
18645 date: 1994/10/18 12:33:38;  author: john;  state: Exp;
18646 Only used copy the item text into the saved_text field
18647 if it is an inputbox or inputbox_menu.
18648 ----------------------------
18649 revision 1.48
18650 date: 1994/10/17 11:04:01;  author: john;  state: Exp;
18651 Made backtab work also.
18652 ----------------------------
18653 revision 1.47
18654 date: 1994/10/17 10:47:49;  author: john;  state: Exp;
18655 MAde Tab work like down arrow.
18656 ----------------------------
18657 revision 1.46
18658 date: 1994/10/17 10:45:10;  author: john;  state: Exp;
18659 Made the player able to abort death by pressing any button or key.
18660 ----------------------------
18661 revision 1.45
18662 date: 1994/10/13 21:52:02;  author: john;  state: Exp;
18663 Made it so that if a messagebox has 1 choice, then
18664 Esc will return -1.
18665 ----------------------------
18666 revision 1.44
18667 date: 1994/10/13 11:35:38;  author: john;  state: Exp;
18668 Made Thrustmaster FCS Hat work.  Put a background behind the
18669 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
18670 menu to new menu. Made F6 be calibrate joystick.
18671 ----------------------------
18672 revision 1.43
18673 date: 1994/10/11 17:18:52;  author: john;  state: Exp;
18674 Fixed bug with sliders always starting at -1.
18675 ----------------------------
18676 revision 1.42
18677 date: 1994/10/11 17:08:29;  author: john;  state: Exp;
18678 Added sliders for volume controls.
18679 ----------------------------
18680 revision 1.41
18681 date: 1994/10/06 16:04:40;  author: john;  state: Exp;
18682 Made text items color differently than others. Adam
18683 is gonna make a diff colored font for these.
18684 ----------------------------
18685 revision 1.40
18686 date: 1994/10/06 15:08:23;  author: rob;  state: Exp;
18687 Allowed any negative key value to abort the menu and return.
18688 ----------------------------
18689 revision 1.39
18690 date: 1994/10/04 10:26:06;  author: matt;  state: Exp;
18691 Changed fade in to happen every time a global var is set
18692 ----------------------------
18693 revision 1.38
18694 date: 1994/10/04 09:16:08;  author: john;  state: Exp;
18695 If you pass -1 as choice in newmenu_do1, then
18696 no item is highlighted until you press up or
18697 down arrows.
18698 ----------------------------
18699 revision 1.37
18700 date: 1994/10/03 23:44:37;  author: matt;  state: Exp;
18701 Save & restore palette effect around menus & pause message
18702 ----------------------------
18703 revision 1.36
18704 date: 1994/10/03 22:59:40;  author: matt;  state: Exp;
18705 Re-enabled backspace to generate Int3()
18706 ----------------------------
18707 revision 1.35
18708 date: 1994/10/03 19:11:21;  author: matt;  state: Exp;
18709 Changed string input cursor to blinking underscore
18710 ----------------------------
18711 revision 1.34
18712 date: 1994/10/03 14:44:15;  author: john;  state: Exp;
18713 Added newmenu_do1, which allows you to pass the starting
18714 item to the menu system
18715 ----------------------------
18716 revision 1.33
18717 date: 1994/09/30 11:51:21;  author: john;  state: Exp;
18718 Added Matt's NM_TYPE_INPUT_MENU
18719 ----------------------------
18720 revision 1.32
18721 date: 1994/09/28 17:22:56;  author: matt;  state: Exp;
18722 Added extra space between subtitle and menu items
18723 Made shortcut key check ignore leading spaces in text
18724 ----------------------------
18725 revision 1.31
18726 date: 1994/09/15 16:11:22;  author: john;  state: Exp;
18727 Added support for VFX1 head tracking. Fixed bug with memory over-
18728 write when using stereo mode.
18729 ----------------------------
18730 revision 1.30
18731 date: 1994/09/12 09:52:59;  author: john;  state: Exp;
18732 Made global flush function that flushes keyboard,mouse, and joystick.
18733 ----------------------------
18734 revision 1.29
18735 date: 1994/09/10 19:10:54;  author: matt;  state: Exp;
18736 Fixed a few things (like arrow key handling) for menus with all
18737 text items, such as the key help message.
18738 ----------------------------
18739 revision 1.28
18740 date: 1994/09/01 18:55:38;  author: john;  state: Exp;
18741 freed scores.lbm
18742 ----------------------------
18743 revision 1.27
18744 date: 1994/09/01 18:03:50;  author: john;  state: Exp;
18745 Neatened up scores a bit.
18746 ----------------------------
18747 revision 1.26
18748 date: 1994/08/30 20:38:13;  author: john;  state: Exp;
18749 Passed citem in newmenu sub.
18750 ----------------------------
18751 revision 1.25
18752 date: 1994/08/30 11:13:01;  author: john;  state: Exp;
18753 Added beveled edges to menus.
18754 ----------------------------
18755 revision 1.24
18756 date: 1994/08/26 13:01:58;  author: john;  state: Exp;
18757 Put high score system in.
18758 ----------------------------
18759 revision 1.23
18760 date: 1994/08/16 00:18:44;  author: john;  state: Exp;
18761 Made pressing the first letter of a menu
18762 item move to it.
18763 ----------------------------
18764 revision 1.22
18765 date: 1994/08/15 23:17:43;  author: john;  state: Exp;
18766 *** empty log message ***
18767 ----------------------------
18768 revision 1.21
18769 date: 1994/08/15 23:15:28;  author: john;  state: Exp;
18770 Made 1 menu/checkbox return with any keypress.
18771 ----------------------------
18772 revision 1.20
18773 date: 1994/08/12 10:18:23;  author: john;  state: Exp;
18774 *** empty log message ***
18775 ----------------------------
18776 revision 1.19
18777 date: 1994/08/12 10:09:11;  author: john;  state: Exp;
18778 Made borders better.
18779 ----------------------------
18780 revision 1.18
18781 date: 1994/08/12 03:11:16;  author: john;  state: Exp;
18782 Made network be default off; Moved network options into
18783 main menu.  Made starting net game check that mines are the
18784 same.
18785 ----------------------------
18786 revision 1.17
18787 date: 1994/08/11 22:14:43;  author: john;  state: Exp;
18788 Free'd up some memory that I forgot to free.
18789 ----------------------------
18790 revision 1.16
18791 date: 1994/08/11 19:27:35;  author: john;  state: Exp;
18792 Made the Backspace drop into the debugger only
18793 if you're not in an inputbox.
18794 ----------------------------
18795 revision 1.15
18796 date: 1994/08/11 18:01:49;  author: matt;  state: Exp;
18797 Added F2 and BACKSPACE keys to new menu system
18798 ----------------------------
18799 revision 1.14
18800 date: 1994/08/11 14:25:58;  author: john;  state: Exp;
18801 *** empty log message ***
18802 ----------------------------
18803 revision 1.13
18804 date: 1994/08/11 14:25:40;  author: john;  state: Exp;
18805 *** empty log message ***
18806 ----------------------------
18807 revision 1.12
18808 date: 1994/08/11 13:47:02;  author: john;  state: Exp;
18809 Made newmenu have subtitles, passed key through to
18810 the newmenu subfunctions.
18811 ----------------------------
18812 revision 1.11
18813 date: 1994/08/11 12:45:08;  author: john;  state: Exp;
18814 *** empty log message ***
18815 ----------------------------
18816 revision 1.10
18817 date: 1994/08/11 12:25:45;  author: john;  state: Exp;
18818 Made right_offset spacing different
18819 ----------------------------
18820 revision 1.9
18821 date: 1994/08/11 12:09:49;  author: john;  state: Exp;
18822 Made work with bitmapped fonts.
18823 ----------------------------
18824 revision 1.8
18825 date: 1994/08/10 19:56:16;  author: john;  state: Exp;
18826 Changed font stuff; Took out old menu; messed up lots of
18827 other stuff like game sequencing messages, etc.
18828 ----------------------------
18829 revision 1.7
18830 date: 1994/07/27 16:12:23;  author: john;  state: Exp;
18831 Changed newmenu system to have a callback function.
18832 /.
18833 ----------------------------
18834 revision 1.6
18835 date: 1994/07/25 15:10:23;  author: john;  state: Exp;
18836 *** empty log message ***
18837 ----------------------------
18838 revision 1.5
18839 date: 1994/07/25 12:33:35;  author: john;  state: Exp;
18840 Network "pinging" in.
18841 ----------------------------
18842 revision 1.4
18843 date: 1994/07/24 18:21:27;  author: john;  state: Exp;
18844 Took out first time stuff.
18845 ----------------------------
18846 revision 1.3
18847 date: 1994/07/24 17:32:47;  author: john;  state: Exp;
18848 Added percent item.  Also neatend up a bit.
18849 ----------------------------
18850 revision 1.2
18851 date: 1994/07/22 17:48:13;  author: john;  state: Exp;
18852 Added new menuing system.
18853 ----------------------------
18854 revision 1.1
18855 date: 1994/07/22 13:55:38;  author: john;  state: Exp;
18856 Initial revision
18857 =============================================================================
18858 RCS file: /Smoke/miner/source/main/newmenu.h,v
18859 Working file: main/newmenu.h
18860 head: 1.3
18861 description: Routines for menus.
18862 ----------------------------
18863 revision 1.3
18864 date: 1995/10/17 13:15:19;  author: allender;  state: Exp;
18865 new call to nm_listbox for close_box
18866 ----------------------------
18867 revision 1.2
18868 date: 1995/09/13 08:48:50;  author: allender;  state: Exp;
18869 new prototype for newmenu -- have close box
18870 ----------------------------
18871 revision 1.1
18872 date: 1995/05/16 16:00:32;  author: allender;  state: Exp;
18873 Initial revision
18874 ----------------------------
18875 revision 2.0
18876 date: 1995/02/27 11:32:28;  author: john;  state: Exp;
18877 New version 2.0, which has no anonymous unions, builds with
18878 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
18879 ----------------------------
18880 revision 1.24
18881 date: 1995/02/11 16:20:05;  author: john;  state: Exp;
18882 Added code to make the default mission be the one last played.
18883 ----------------------------
18884 revision 1.23
18885 date: 1995/01/31 10:21:41;  author: john;  state: Exp;
18886 Added code to specify width, height.
18887 ----------------------------
18888 revision 1.22
18889 date: 1995/01/28 17:09:21;  author: john;  state: Exp;
18890 *** empty log message ***
18891 ----------------------------
18892 revision 1.21
18893 date: 1995/01/23 18:38:43;  author: john;  state: Exp;
18894 Added listbox function.
18895 ----------------------------
18896 revision 1.20
18897 date: 1994/11/26 15:29:55;  author: matt;  state: Exp;
18898 Allow escape out of change pilot menu
18899 ----------------------------
18900 revision 1.19
18901 date: 1994/11/26 14:17:05;  author: matt;  state: Exp;
18902 Player can now only enter valid chars for his name
18903 ----------------------------
18904 revision 1.18
18905 date: 1994/11/18 16:17:13;  author: mike;  state: Exp;
18906 prototype Max_linear_depth_objects.
18907 ----------------------------
18908 revision 1.17
18909 date: 1994/11/08 14:51:17;  author: john;  state: Exp;
18910 Added nm_messagebox1, (like the original, only you can pass a function).
18911 ----------------------------
18912 revision 1.16
18913 date: 1994/11/05 14:31:45;  author: john;  state: Exp;
18914 Added a new menu function for the background.
18915 ----------------------------
18916 revision 1.15
18917 date: 1994/11/05 14:05:46;  author: john;  state: Exp;
18918 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
18919 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
18920 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
18921 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
18922 ----------------------------
18923 revision 1.14
18924 date: 1994/11/03 19:37:35;  author: john;  state: Exp;
18925 Added scrolling file list box
18926 ----------------------------
18927 revision 1.13
18928 date: 1994/10/13 11:34:03;  author: john;  state: Exp;
18929 Made Thrustmaster FCS Hat work.  Put a background behind the
18930 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
18931 menu to new menu. Made F6 be calibrate joystick.
18932 ----------------------------
18933 revision 1.12
18934 date: 1994/10/11 17:08:32;  author: john;  state: Exp;
18935 Added sliders for volume controls.
18936 ----------------------------
18937 revision 1.11
18938 date: 1994/10/04 10:26:23;  author: matt;  state: Exp;
18939 Changed fade in to happen every time a global var is set
18940 ----------------------------
18941 revision 1.10
18942 date: 1994/10/03 14:43:56;  author: john;  state: Exp;
18943 Added newmenu_do1, which allows you to pass the starting
18944 item to the menu system
18945 ----------------------------
18946 revision 1.9
18947 date: 1994/09/30 11:51:33;  author: john;  state: Exp;
18948 Added Matt's NM_TYPE_INPUT_MENU
18949 ----------------------------
18950 revision 1.8
18951 date: 1994/08/30 20:38:28;  author: john;  state: Exp;
18952 Passed citem in newmenu sub.
18953 ----------------------------
18954 revision 1.7
18955 date: 1994/08/12 03:11:00;  author: john;  state: Exp;
18956 Made network be default off; Moved network options into
18957 main menu.  Made starting net game check that mines are the
18958 same.
18959 ----------------------------
18960 revision 1.6
18961 date: 1994/08/11 13:47:05;  author: john;  state: Exp;
18962 Made newmenu have subtitles, passed key through to
18963 the newmenu subfunctions.
18964 ----------------------------
18965 revision 1.5
18966 date: 1994/07/27 16:12:24;  author: john;  state: Exp;
18967 Changed newmenu system to have a callback function.
18968 /.
18969 ----------------------------
18970 revision 1.4
18971 date: 1994/07/24 17:41:38;  author: john;  state: Exp;
18972 *** empty log message ***
18973 ----------------------------
18974 revision 1.3
18975 date: 1994/07/24 17:33:01;  author: john;  state: Exp;
18976 Added percent item.  Also neatend up a bit.
18977 ----------------------------
18978 revision 1.2
18979 date: 1994/07/22 17:48:12;  author: john;  state: Exp;
18980 Added new menuing system.
18981 ----------------------------
18982 revision 1.1
18983 date: 1994/07/22 13:55:51;  author: john;  state: Exp;
18984 Initial revision
18985 =============================================================================
18986 RCS file: /Smoke/miner/source/main/object.c,v
18987 Working file: main/object.c
18988 head: 1.5
18989 description: object rendering
18990 ----------------------------
18991 revision 1.5
18992 date: 1995/10/26 14:08:03;  author: allender;  state: Exp;
18993 optimization to do physics on objects that didn't render last
18994 frame only every so often
18995 ----------------------------
18996 revision 1.4
18997 date: 1995/10/20 00:50:57;  author: allender;  state: Exp;
18998 make alt texture for player ship work correctly when cloaked
18999 ----------------------------
19000 revision 1.3
19001 date: 1995/09/14 14:11:32;  author: allender;  state: Exp;
19002 fix_object_segs returns void
19003 ----------------------------
19004 revision 1.2
19005 date: 1995/08/12 11:31:01;  author: allender;  state: Exp;
19006 removed #ifdef NEWDEMO -- always in
19007 ----------------------------
19008 revision 1.1
19009 date: 1995/05/16 15:29:23;  author: allender;  state: Exp;
19010 Initial revision
19011 ----------------------------
19012 revision 2.1
19013 date: 1995/03/21 08:38:51;  author: john;  state: Exp;
19014 Ifdef'd out the NETWORK code.
19015 ----------------------------
19016 revision 2.0
19017 date: 1995/02/27 11:28:14;  author: john;  state: Exp;
19018 New version 2.0, which has no anonymous unions, builds with
19019 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
19020 ----------------------------
19021 revision 1.335
19022 date: 1995/02/22 12:57:30;  author: allender;  state: Exp;
19023 remove anonymous unions from object structure
19024 ----------------------------
19025 revision 1.334
19026 date: 1995/02/09 22:04:40;  author: mike;  state: Exp;
19027 fix lifeleft on badass weapons.
19028 ----------------------------
19029 revision 1.333
19030 date: 1995/02/08 12:54:00;  author: matt;  state: Exp;
19031 Fixed object freeing code which was deleting some explosions it shouldn't
19032 ----------------------------
19033 revision 1.332
19034 date: 1995/02/08 11:37:26;  author: mike;  state: Exp;
19035 Check for failures in call to obj_create.
19036 ----------------------------
19037 revision 1.331
19038 date: 1995/02/05 17:48:52;  author: rob;  state: Exp;
19039 Changed assert in obj_relink, more robust.
19040 ----------------------------
19041 revision 1.330
19042 date: 1995/02/05 13:39:48;  author: mike;  state: Exp;
19043 remove invulnerability effect code (actually, comment out).
19044 ----------------------------
19045 revision 1.329
19046 date: 1995/02/04 12:29:52;  author: rob;  state: Exp;
19047 Get rid of potential assert error for explosion detachment.
19048 ----------------------------
19049 revision 1.328
19050 date: 1995/02/01 18:15:57;  author: rob;  state: Exp;
19051 Removed debugging output from engine glow change.
19052 ----------------------------
19053 revision 1.327
19054 date: 1995/02/01 16:20:12;  author: matt;  state: Exp;
19055 Made engine glow vary over a wider range, and made the glow be based
19056 on thrust/speed, without regard to direction.
19057 ----------------------------
19058 revision 1.326
19059 date: 1995/01/29 14:46:24;  author: rob;  state: Exp;
19060 Fixed invul. vclip to only appear on player who is invul.
19061 ----------------------------
19062 revision 1.325
19063 date: 1995/01/29 13:48:16;  author: mike;  state: Exp;
19064 Add invulnerability graphical effect viewable by other players.
19065 ----------------------------
19066 revision 1.324
19067 date: 1995/01/29 11:39:25;  author: mike;  state: Exp;
19068 Add invulnerability effect.
19069 ----------------------------
19070 revision 1.323
19071 date: 1995/01/27 17:02:41;  author: mike;  state: Exp;
19072 add more information to an Error call.
19073 ----------------------------
19074 revision 1.322
19075 date: 1995/01/26 22:11:30;  author: mike;  state: Exp;
19076 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
19077 ----------------------------
19078 revision 1.321
19079 date: 1995/01/25 20:04:10;  author: matt;  state: Exp;
19080 Moved matrix check to avoid orthogonalizing an uninitialize matrix
19081 ----------------------------
19082 revision 1.320
19083 date: 1995/01/25 12:11:35;  author: matt;  state: Exp;
19084 Make sure orient matrix is orthogonal when resetting player object
19085 ----------------------------
19086 revision 1.319
19087 date: 1995/01/21 21:46:22;  author: mike;  state: Exp;
19088 Optimize code in Assert (and prevent warning message).
19089 ----------------------------
19090 revision 1.318
19091 date: 1995/01/21 21:22:16;  author: rob;  state: Exp;
19092 Removed HUD clear messages.
19093 Added more Asserts to try and find illegal control type bug.
19094 ----------------------------
19095 revision 1.317
19096 date: 1995/01/15 15:34:30;  author: matt;  state: Exp;
19097 When freeing object slots, don't free fireballs that will be deleting
19098 other objects.
19099 ----------------------------
19100 revision 1.316
19101 date: 1995/01/14 19:16:48;  author: john;  state: Exp;
19102 First version of new bitmap paging code.
19103 ----------------------------
19104 revision 1.315
19105 date: 1995/01/12 18:53:37;  author: john;  state: Exp;
19106 Fixed parameter passing error.
19107 ----------------------------
19108 revision 1.314
19109 date: 1995/01/12 12:09:47;  author: yuan;  state: Exp;
19110 Added coop object capability.
19111 ----------------------------
19112 revision 1.313
19113 date: 1994/12/15 16:45:44;  author: matt;  state: Exp;
19114 Took out slew stuff for release version
19115 ----------------------------
19116 revision 1.312
19117 date: 1994/12/15 13:04:25;  author: mike;  state: Exp;
19118 Replace Players[Player_num].time_total references with GameTime.
19119 ----------------------------
19120 revision 1.311
19121 date: 1994/12/15 11:01:04;  author: mike;  state: Exp;
19122 add Object_minus_one for debugging.
19123 ----------------------------
19124 revision 1.310
19125 date: 1994/12/15 03:03:33;  author: matt;  state: Exp;
19126 Added error checking for NULL return from object_create_explosion()
19127 ----------------------------
19128 revision 1.309
19129 date: 1994/12/14 17:25:31;  author: matt;  state: Exp;
19130 Made next viewer func based on release not ndebug
19131 ----------------------------
19132 revision 1.308
19133 date: 1994/12/13 12:55:42;  author: mike;  state: Exp;
19134 hostages on board messages for when you die.
19135 ----------------------------
19136 revision 1.307
19137 date: 1994/12/12 17:18:11;  author: mike;  state: Exp;
19138 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
19139 ----------------------------
19140 revision 1.306
19141 date: 1994/12/12 00:27:11;  author: matt;  state: Exp;
19142 Added support for no-levelling option
19143 ----------------------------
19144 revision 1.305
19145 date: 1994/12/11 22:41:14;  author: matt;  state: Exp;
19146 Added command-line option, -nolevel, which turns off player ship levelling
19147 ----------------------------
19148 revision 1.304
19149 date: 1994/12/11 22:03:23;  author: mike;  state: Exp;
19150 free up object slots as necessary.
19151 ----------------------------
19152 revision 1.303
19153 date: 1994/12/11 14:09:31;  author: mike;  state: Exp;
19154 make boss explosion sounds softer.
19155 ----------------------------
19156 revision 1.302
19157 date: 1994/12/11 13:25:11;  author: matt;  state: Exp;
19158 Restored calls to fix_object_segs() when debugging is turned off, since
19159 it's not a big routine, and could fix some possibly bad problems.
19160 ----------------------------
19161 revision 1.301
19162 date: 1994/12/11 12:38:25;  author: mike;  state: Exp;
19163 make boss explosion sounds louder in create_small_fireball.
19164 ----------------------------
19165 revision 1.300
19166 date: 1994/12/10 15:28:37;  author: matt;  state: Exp;
19167 Added asserts for debugging
19168 ----------------------------
19169 revision 1.299
19170 date: 1994/12/09 16:18:51;  author: matt;  state: Exp;
19171 Fixed init_player_object, for editor
19172 ----------------------------
19173 revision 1.298
19174 date: 1994/12/09 15:03:10;  author: matt;  state: Exp;
19175 Two changes for Mike:
19176   1.  Do better placement of camera during death sequence (prevents hang)
19177   2.  Only record dodging information if the player fired in a frame
19178 ----------------------------
19179 revision 1.297
19180 date: 1994/12/09 14:59:12;  author: matt;  state: Exp;
19181 Added system to attach a fireball to another object for rendering purposes,
19182 so the fireball always renders on top of (after) the object.
19183 ----------------------------
19184 revision 1.296
19185 date: 1994/12/08 20:05:07;  author: matt;  state: Exp;
19186 Removed unneeded debug message
19187 ----------------------------
19188 revision 1.295
19189 date: 1994/12/08 12:36:02;  author: matt;  state: Exp;
19190 Added new object allocation & deallocation functions so other code
19191 could stop messing around with internal object data structures.
19192 ----------------------------
19193 revision 1.294
19194 date: 1994/12/07 20:13:37;  author: matt;  state: Exp;
19195 Added debris object limiter
19196 ----------------------------
19197 revision 1.293
19198 date: 1994/12/06 16:58:38;  author: matt;  state: Exp;
19199 Killed warnings
19200 ----------------------------
19201 revision 1.292
19202 date: 1994/12/05 22:34:35;  author: matt;  state: Exp;
19203 Make tmap_override objects use override texture as alt texture.  This 
19204 should have the effect of making simpler models use the override texture.
19205 ----------------------------
19206 revision 1.291
19207 date: 1994/12/05 12:23:53;  author: mike;  state: Exp;
19208 make camera start closer, but move away from player in death sequence.
19209 ----------------------------
19210 revision 1.290
19211 date: 1994/12/02 11:11:18;  author: mike;  state: Exp;
19212 hook sound effect to player small explosions (ctrlcen, too).
19213 ----------------------------
19214 revision 1.289
19215 date: 1994/11/28 21:50:52;  author: mike;  state: Exp;
19216 optimizations.
19217 ----------------------------
19218 revision 1.288
19219 date: 1994/11/27 23:12:28;  author: matt;  state: Exp;
19220 Made changes for new mprintf calling convention
19221 ----------------------------
19222 revision 1.287
19223 date: 1994/11/27 20:35:50;  author: matt;  state: Exp;
19224 Fixed dumb mistake
19225 ----------------------------
19226 revision 1.286
19227 date: 1994/11/27 20:30:52;  author: matt;  state: Exp;
19228 Got rid of warning
19229 ----------------------------
19230 revision 1.285
19231 date: 1994/11/21 11:43:21;  author: mike;  state: Exp;
19232 ndebug stuff.
19233 ----------------------------
19234 revision 1.284
19235 date: 1994/11/19 15:19:37;  author: mike;  state: Exp;
19236 rip out unused code and data.
19237 ----------------------------
19238 revision 1.283
19239 date: 1994/11/18 23:41:59;  author: john;  state: Exp;
19240 Changed some shorts to ints.
19241 ----------------------------
19242 revision 1.282
19243 date: 1994/11/18 16:16:17;  author: mike;  state: Exp;
19244 Separate depth on objects vs. walls.
19245 ----------------------------
19246 revision 1.281
19247 date: 1994/11/18 12:05:35;  author: rob;  state: Exp;
19248 Removed unnecessary invulnerability flag set in player death.
19249 (I hope its unnecessary.. its commented out if it proves crucial)
19250 fixes powerup dropping bug for net play.
19251 ----------------------------
19252 revision 1.280
19253 date: 1994/11/16 20:36:34;  author: rob;  state: Exp;
19254 Changed player explosion (small) code.
19255 ----------------------------
19256 revision 1.279
19257 date: 1994/11/16 18:26:04;  author: matt;  state: Exp;
19258 Clear tmap override on player, to fix "rock ship" bug
19259 ----------------------------
19260 revision 1.278
19261 date: 1994/11/16 14:54:12;  author: rob;  state: Exp;
19262 Moved hook for network explosions.
19263 ----------------------------
19264 revision 1.277
19265 date: 1994/11/14 11:40:42;  author: mike;  state: Exp;
19266 plot inner polygon on laser based on detail level.
19267 ----------------------------
19268 revision 1.276
19269 date: 1994/11/10 14:02:59;  author: matt;  state: Exp;
19270 Hacked in support for player ships with different textures
19271 ----------------------------
19272 revision 1.275
19273 date: 1994/11/08 12:19:08;  author: mike;  state: Exp;
19274 Make a generally useful function for putting small explosions on any object.
19275 ----------------------------
19276 revision 1.274
19277 date: 1994/11/04 19:55:54;  author: rob;  state: Exp;
19278 Changed calls to player_explode to accomodate new parameter.
19279 ----------------------------
19280 revision 1.273
19281 date: 1994/11/02 21:54:27;  author: matt;  state: Exp;
19282 Delete the camera when the death sequence is done
19283 ----------------------------
19284 revision 1.272
19285 date: 1994/11/02 11:36:35;  author: rob;  state: Exp;
19286 Added player-in-process-of-dying explosions to network play.
19287 ----------------------------
19288 revision 1.271
19289 date: 1994/10/31 17:25:33;  author: matt;  state: Exp;
19290 Fixed cloaked bug
19291 ----------------------------
19292 revision 1.270
19293 date: 1994/10/31 16:11:19;  author: allender;  state: Exp;
19294 on demo recording, store letterbox mode in demo.
19295 ----------------------------
19296 revision 1.269
19297 date: 1994/10/31 10:36:18;  author: mike;  state: Exp;
19298 Make cloak effect fadein/fadeout different for robots versus player.
19299 ----------------------------
19300 revision 1.268
19301 date: 1994/10/30 14:11:44;  author: mike;  state: Exp;
19302 rip out repair center stuff.
19303 ----------------------------
19304 revision 1.267
19305 date: 1994/10/28 19:43:52;  author: mike;  state: Exp;
19306 Boss cloaking effect.
19307 ----------------------------
19308 revision 1.266
19309 date: 1994/10/27 11:33:42;  author: mike;  state: Exp;
19310 Add Highest_ever_object_index -- high water mark in object creation.
19311 ----------------------------
19312 revision 1.265
19313 date: 1994/10/25 10:51:12;  author: matt;  state: Exp;
19314 Vulcan cannon powerups now contain ammo count
19315 ----------------------------
19316 revision 1.264
19317 date: 1994/10/24 20:49:24;  author: matt;  state: Exp;
19318 Made cloaked objects pulse
19319 ----------------------------
19320 revision 1.263
19321 date: 1994/10/21 12:19:45;  author: matt;  state: Exp;
19322 Clear transient objects when saving (& loading) games
19323 ----------------------------
19324 revision 1.262
19325 date: 1994/10/21 11:25:23;  author: mike;  state: Exp;
19326 Use new constant IMMORTAL_TIME.
19327 ----------------------------
19328 revision 1.261
19329 date: 1994/10/19 16:50:35;  author: matt;  state: Exp;
19330 If out of segment, put player in center of segment when checking objects
19331 ----------------------------
19332 revision 1.260
19333 date: 1994/10/17 23:21:55;  author: mike;  state: Exp;
19334 Clean up robot cloaking, move more to ai.c
19335 ----------------------------
19336 revision 1.259
19337 date: 1994/10/17 21:34:49;  author: matt;  state: Exp;
19338 Added support for new Control Center/Main Reactor
19339 ----------------------------
19340 revision 1.258
19341 date: 1994/10/17 21:18:04;  author: mike;  state: Exp;
19342 robot cloaking.
19343 ----------------------------
19344 revision 1.257
19345 date: 1994/10/17 14:12:23;  author: matt;  state: Exp;
19346 Cleaned up problems with player dying from mine explosion
19347 ----------------------------
19348 revision 1.256
19349 date: 1994/10/15 19:04:31;  author: mike;  state: Exp;
19350 Don't remove proximity bombs after you die.
19351 ----------------------------
19352 revision 1.255
19353 date: 1994/10/14 15:57:00;  author: mike;  state: Exp;
19354 Don't show ids in network mode.
19355 Fix, I hope, but in death sequence.
19356 ----------------------------
19357 revision 1.254
19358 date: 1994/10/12 08:04:29;  author: mike;  state: Exp;
19359 Don't decloak player on death.
19360 ----------------------------
19361 revision 1.253
19362 date: 1994/10/11 20:36:16;  author: matt;  state: Exp;
19363 Clear "transient" objects (weapons,explosions,etc.) when starting a level
19364 ----------------------------
19365 revision 1.252
19366 date: 1994/10/11 12:24:09;  author: matt;  state: Exp;
19367 Cleaned up/change badass explosion calls
19368 ----------------------------
19369 revision 1.251
19370 date: 1994/10/08 19:30:20;  author: matt;  state: Exp;
19371 Fixed (I hope) a bug in cloaking of multiplayer objects
19372 ----------------------------
19373 revision 1.250
19374 date: 1994/10/08 14:03:15;  author: rob;  state: Exp;
19375 Changed cloaking routine.
19376 ----------------------------
19377 revision 1.249
19378 date: 1994/10/07 22:17:27;  author: mike;  state: Exp;
19379 Asserts on valid segnum.
19380 ----------------------------
19381 revision 1.248
19382 date: 1994/10/07 19:11:14;  author: matt;  state: Exp;
19383 Added cool cloak transition effect
19384  Global variables
19385 =============================================================================
19386 RCS file: /Smoke/miner/source/main/object.h,v
19387 Working file: main/object.h
19388 head: 1.6
19389 description: object system definitions
19390 ----------------------------
19391 revision 1.6
19392 date: 1995/09/20 14:24:45;  author: allender;  state: Exp;
19393 swap bytes on extractshortpos
19394 ----------------------------
19395 revision 1.5
19396 date: 1995/09/14 14:11:42;  author: allender;  state: Exp;
19397 fix_object_segs returns void
19398 ----------------------------
19399 revision 1.4
19400 date: 1995/08/12 12:02:44;  author: allender;  state: Exp;
19401 added flag to create_shortpos
19402 ----------------------------
19403 revision 1.3
19404 date: 1995/07/12 12:55:08;  author: allender;  state: Exp;
19405 move structures back to original form as found on PC because
19406 of network play
19407 ----------------------------
19408 revision 1.2
19409 date: 1995/06/19 07:55:06;  author: allender;  state: Exp;
19410 rearranged structure members for possible better alignment
19411 ----------------------------
19412 revision 1.1
19413 date: 1995/05/16 16:00:40;  author: allender;  state: Exp;
19414 Initial revision
19415 ----------------------------
19416 revision 2.1
19417 date: 1995/03/31 12:24:10;  author: john;  state: Exp;
19418 I had changed alt_textures from a pointer to a byte. This hosed old
19419 saved games, so I restored it to an int.
19420 ----------------------------
19421 revision 2.0
19422 date: 1995/02/27 11:26:47;  author: john;  state: Exp;
19423 New version 2.0, which has no anonymous unions, builds with
19424 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
19425 ----------------------------
19426 revision 1.122
19427 date: 1995/02/22 12:35:53;  author: allender;  state: Exp;
19428 remove anonymous unions
19429 ----------------------------
19430 revision 1.121
19431 date: 1995/02/06 20:43:25;  author: rob;  state: Exp;
19432 Extern'ed Dead_player_camera so it can be reset by multi.c
19433 ----------------------------
19434 revision 1.120
19435 date: 1995/02/01 16:34:07;  author: john;  state: Exp;
19436 Linted.
19437 ----------------------------
19438 revision 1.119
19439 date: 1995/01/29 13:46:42;  author: mike;  state: Exp;
19440 adapt to new create_small_fireball_on_object prototype.
19441 ----------------------------
19442 revision 1.118
19443 date: 1995/01/26 22:11:27;  author: mike;  state: Exp;
19444 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
19445 ----------------------------
19446 revision 1.117
19447 date: 1995/01/24 12:09:29;  author: mike;  state: Exp;
19448 Boost MAX_OBJECTS from 250 to 350.
19449 ----------------------------
19450 revision 1.116
19451 date: 1995/01/13 19:39:51;  author: rob;  state: Exp;
19452 Removed outdated remote_info structure.  (looking for cause of bugs
19453 ----------------------------
19454 revision 1.115
19455 date: 1995/01/12 12:09:38;  author: yuan;  state: Exp;
19456 Added coop object capability.
19457 ----------------------------
19458 revision 1.114
19459 date: 1994/12/15 13:04:20;  author: mike;  state: Exp;
19460 Replace Players[Player_num].time_total references with GameTime.
19461 ----------------------------
19462 revision 1.113
19463 date: 1994/12/12 17:18:09;  author: mike;  state: Exp;
19464 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
19465 ----------------------------
19466 revision 1.112
19467 date: 1994/12/09 14:58:42;  author: matt;  state: Exp;
19468 Added system to attach a fireball to another object for rendering purposes,
19469 so the fireball always renders on top of (after) the object.
19470 ----------------------------
19471 revision 1.111
19472 date: 1994/12/08 12:35:35;  author: matt;  state: Exp;
19473 Added new object allocation & deallocation functions so other code
19474 could stop messing around with internal object data structures.
19475 ----------------------------
19476 revision 1.110
19477 date: 1994/11/21 17:30:21;  author: matt;  state: Exp;
19478 Increased max number of objects
19479 ----------------------------
19480 revision 1.109
19481 date: 1994/11/18 23:41:52;  author: john;  state: Exp;
19482 Changed some shorts to ints.
19483 ----------------------------
19484 revision 1.108
19485 date: 1994/11/10 14:02:45;  author: matt;  state: Exp;
19486 Hacked in support for player ships with different textures
19487 ----------------------------
19488 revision 1.107
19489 date: 1994/11/08 12:19:27;  author: mike;  state: Exp;
19490 Small explosions on objects.
19491 ----------------------------
19492 revision 1.106
19493 date: 1994/10/25 10:51:17;  author: matt;  state: Exp;
19494 Vulcan cannon powerups now contain ammo count
19495 ----------------------------
19496 revision 1.105
19497 date: 1994/10/21 12:19:41;  author: matt;  state: Exp;
19498 Clear transient objects when saving (& loading) games
19499 ----------------------------
19500 revision 1.104
19501 date: 1994/10/21 11:25:04;  author: mike;  state: Exp;
19502 Add IMMORTAL_TIME.
19503 ----------------------------
19504 revision 1.103
19505 date: 1994/10/17 21:34:54;  author: matt;  state: Exp;
19506 Added support for new Control Center/Main Reactor
19507 ----------------------------
19508 revision 1.102
19509 date: 1994/10/14 18:12:28;  author: mike;  state: Exp;
19510 Make egg dropping return object number.
19511 ----------------------------
19512 revision 1.101
19513 date: 1994/10/12 21:07:19;  author: matt;  state: Exp;
19514 Killed unused field in object structure
19515 ----------------------------
19516 revision 1.100
19517 date: 1994/10/12 10:38:24;  author: mike;  state: Exp;
19518 Add field OF_SILENT to obj->flags.
19519 ----------------------------
19520 revision 1.99
19521 date: 1994/10/11 20:35:48;  author: matt;  state: Exp;
19522 Clear "transient" objects (weapons,explosions,etc.) when starting a level
19523 ----------------------------
19524 revision 1.98
19525 date: 1994/10/03 20:56:13;  author: rob;  state: Exp;
19526 Added velocity to shortpos strucutre.
19527 ----------------------------
19528 revision 1.97
19529 date: 1994/09/30 18:24:00;  author: rob;  state: Exp;
19530 Added new control type CT_REMOTE for remote controlled objects.
19531 Also added a union struct 'remote_info' for this type.
19532 ----------------------------
19533 revision 1.96
19534 date: 1994/09/28 09:23:05;  author: mike;  state: Exp;
19535 Prototype Object_type_names.
19536 ----------------------------
19537 revision 1.95
19538 date: 1994/09/25 23:32:37;  author: matt;  state: Exp;
19539 Changed the object load & save code to read/write the structure fields one
19540 at a time (rather than the whole structure at once).  This mean that the
19541 object structure can be changed without breaking the load/save functions.
19542 As a result of this change, the local_object data can be and has been 
19543 incorporated into the object array.  Also, timeleft is now a property 
19544 of all objects, and the object structure has been otherwise cleaned up.
19545 ----------------------------
19546 revision 1.94
19547 date: 1994/09/25 15:45:28;  author: matt;  state: Exp;
19548 Added OBJ_LIGHT, a type of object that casts light
19549 Added generalized lifeleft, and moved it to local_object
19550 ----------------------------
19551 revision 1.93
19552 date: 1994/09/24 17:41:19;  author: mike;  state: Exp;
19553 Add stuff to Local_object structure for materialization centers.
19554 ----------------------------
19555 revision 1.92
19556 date: 1994/09/24 13:16:50;  author: matt;  state: Exp;
19557 Added (hacked in, really) support for overriding the bitmaps used on to
19558 texture map a polygon object, and using a new bitmap for all the faces.
19559 ----------------------------
19560 revision 1.91
19561 date: 1994/09/22 19:02:14;  author: mike;  state: Exp;
19562 Prototype functions extract_shortpos and create_shortpos which reside in
19563 gameseg.c, but are prototyped here to prevent circular dependencies.
19564 ----------------------------
19565 revision 1.90
19566 date: 1994/09/15 21:47:14;  author: mike;  state: Exp;
19567 Prototype dead_player_end().
19568 ----------------------------
19569 revision 1.89
19570 date: 1994/09/15 16:34:47;  author: mike;  state: Exp;
19571 Add danger_laser_num and danger_laser_signature to object_local to
19572 enable robots to efficiently (too efficiently!) avoid player fire.
19573 ----------------------------
19574 revision 1.88
19575 date: 1994/09/11 22:46:19;  author: mike;  state: Exp;
19576 Death_sequence_aborted prototyped.
19577 ----------------------------
19578 revision 1.87
19579 date: 1994/09/09 20:04:30;  author: mike;  state: Exp;
19580 Add vclips for weapons.
19581 ----------------------------
19582 revision 1.86
19583 date: 1994/09/09 14:20:54;  author: matt;  state: Exp;
19584 Added flag that says object uses thrust
19585 ----------------------------
19586 revision 1.85
19587 date: 1994/09/08 14:51:32;  author: mike;  state: Exp;
19588 Make a crucial name change to a field of local_object struct.
19589 ----------------------------
19590 revision 1.84
19591 date: 1994/09/07 19:16:45;  author: mike;  state: Exp;
19592 Homing missile.
19593 ----------------------------
19594 revision 1.83
19595 date: 1994/09/06 17:05:43;  author: matt;  state: Exp;
19596 Added new type for dead player
19597 ----------------------------
19598 revision 1.82
19599 date: 1994/09/02 11:56:09;  author: mike;  state: Exp;
19600 Add persistency (PF_PERSISTENT) to physics_info.
19601 ----------------------------
19602 revision 1.81
19603 date: 1994/08/28 19:10:28;  author: mike;  state: Exp;
19604 Add Player_is_dead.
19605 ----------------------------
19606 revision 1.80
19607 date: 1994/08/18 15:11:44;  author: mike;  state: Exp;
19608 powerup stuff.
19609 ----------------------------
19610 revision 1.79
19611 date: 1994/08/15 15:24:54;  author: john;  state: Exp;
19612 Made players know who killed them; Disabled cheat menu
19613 during net player; fixed bug with not being able to turn
19614 of invulnerability; Made going into edit/starting new leve
19615 l drop you out of a net game; made death dialog box.
19616 ----------------------------
19617 revision 1.78
19618 date: 1994/08/14 23:15:12;  author: matt;  state: Exp;
19619 Added animating bitmap hostages, and cleaned up vclips a bit
19620 ----------------------------
19621 revision 1.77
19622 date: 1994/08/13 14:58:27;  author: matt;  state: Exp;
19623 Finished adding support for miscellaneous objects
19624 ----------------------------
19625 revision 1.76
19626 date: 1994/08/09 16:04:13;  author: john;  state: Exp;
19627 Added network players to editor.
19628 ----------------------------
19629 revision 1.75
19630 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
19631 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
19632 ----------------------------
19633 revision 1.74
19634 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
19635 Added support for spinning objects
19636 ----------------------------
19637 revision 1.73
19638 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
19639 Added rotational drag & thrust, so turning now has momemtum like moving
19640 ----------------------------
19641 revision 1.72
19642 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
19643 Objects containing objects.
19644 ----------------------------
19645 revision 1.71
19646 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
19647 Fixed flares, by adding a physics flag that makes them stick to walls.
19648 ----------------------------
19649 revision 1.70
19650 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
19651 Prototype new find_object_seg and update_object_seg.
19652 ----------------------------
19653 revision 1.69
19654 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
19655 New ai_static structure.
19656 ----------------------------
19657 revision 1.68
19658 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
19659 Moved all (or nearly all) of the values that affect player movement to 
19660 bitmaps.tbl
19661 ----------------------------
19662 revision 1.67
19663 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
19664 Revamped physics system
19665 ----------------------------
19666 revision 1.66
19667 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
19668 Added chase mode.
19669 =============================================================================
19670 RCS file: /Smoke/miner/source/main/paging.c,v
19671 Working file: main/paging.c
19672 head: 1.5
19673 description: Routines for paging in/out textures.
19674 ----------------------------
19675 revision 1.5
19676 date: 1995/10/30 11:06:58;  author: allender;  state: Exp;
19677 added change to paging code ala John -- check tmap_override
19678 when paging in robots
19679 ----------------------------
19680 revision 1.4
19681 date: 1995/09/13 08:48:28;  author: allender;  state: Exp;
19682 John's new paging code
19683 ----------------------------
19684 revision 1.3
19685 date: 1995/08/18 10:20:31;  author: allender;  state: Exp;
19686 changed hard coded black pixel value to use BM_XRGB
19687 ----------------------------
19688 revision 1.2
19689 date: 1995/07/26 17:02:10;  author: allender;  state: Exp;
19690 small fix to page in effect bitmaps correctly
19691 ----------------------------
19692 revision 1.1
19693 date: 1995/05/16 15:29:35;  author: allender;  state: Exp;
19694 Initial revision
19695 ----------------------------
19696 revision 2.0
19697 date: 1995/02/27 11:27:39;  author: john;  state: Exp;
19698 New version 2.0, which has no anonymous unions, builds with
19699 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
19700 ----------------------------
19701 revision 1.18
19702 date: 1995/02/22 14:12:28;  author: allender;  state: Exp;
19703 remove anonyous union from object structure
19704 ----------------------------
19705 revision 1.17
19706 date: 1995/02/11 22:54:15;  author: john;  state: Exp;
19707 Made loading for pig not show up for demos.
19708 ----------------------------
19709 revision 1.16
19710 date: 1995/02/11 22:37:04;  author: john;  state: Exp;
19711 Made cockpit redraw.
19712 ----------------------------
19713 revision 1.15
19714 date: 1995/01/28 16:29:35;  author: john;  state: Exp;
19715 *** empty log message ***
19716 ----------------------------
19717 revision 1.14
19718 date: 1995/01/27 17:16:18;  author: john;  state: Exp;
19719 Added code to page in all the weapons.
19720 ----------------------------
19721 revision 1.13
19722 date: 1995/01/24 21:51:22;  author: matt;  state: Exp;
19723 Clear the boxed message to fix a mem leakage
19724 ----------------------------
19725 revision 1.12
19726 date: 1995/01/23 13:00:46;  author: john;  state: Exp;
19727 Added hostage vclip paging.
19728 ----------------------------
19729 revision 1.11
19730 date: 1995/01/23 12:29:52;  author: john;  state: Exp;
19731 Added code to page in eclip on robots, dead control center,
19732 gauges bitmaps, and weapon pictures.
19733 ----------------------------
19734 revision 1.10
19735 date: 1995/01/21 12:54:15;  author: adam;  state: Exp;
19736 *** empty log message ***
19737 ----------------------------
19738 revision 1.9
19739 date: 1995/01/21 12:41:29;  author: adam;  state: Exp;
19740 changed orb to loading box
19741 ----------------------------
19742 revision 1.8
19743 date: 1995/01/18 15:09:02;  author: john;  state: Exp;
19744 Added start/stop time around paging.
19745 Made paging clear screen around globe.
19746 ----------------------------
19747 revision 1.7
19748 date: 1995/01/18 10:37:00;  author: john;  state: Exp;
19749 Added code to page in exploding monitors.
19750 ----------------------------
19751 revision 1.6
19752 date: 1995/01/17 19:03:35;  author: john;  state: Exp;
19753 Added cool spinning orb during loading.
19754 ----------------------------
19755 revision 1.5
19756 date: 1995/01/17 14:49:26;  author: john;  state: Exp;
19757 Paged in weapons.
19758 ----------------------------
19759 revision 1.4
19760 date: 1995/01/17 12:14:07;  author: john;  state: Exp;
19761 Made walls, object explosion vclips load at level start.
19762 ----------------------------
19763 revision 1.3
19764 date: 1995/01/15 13:23:24;  author: john;  state: Exp;
19765 First working version
19766 ----------------------------
19767 revision 1.2
19768 date: 1995/01/15 11:56:45;  author: john;  state: Exp;
19769 Working version of paging.
19770 ----------------------------
19771 revision 1.1
19772 date: 1995/01/15 11:33:37;  author: john;  state: Exp;
19773 Initial revision
19774 =============================================================================
19775 RCS file: /Smoke/miner/source/main/paging.h,v
19776 Working file: main/paging.h
19777 head: 1.1
19778 description: Prototypes for paging.
19779 ----------------------------
19780 revision 1.1
19781 date: 1995/05/16 16:00:48;  author: allender;  state: Exp;
19782 Initial revision
19783 ----------------------------
19784 revision 2.0
19785 date: 1995/02/27 11:30:12;  author: john;  state: Exp;
19786 New version 2.0, which has no anonymous unions, builds with
19787 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
19788 ----------------------------
19789 revision 1.2
19790 date: 1995/01/15 11:56:39;  author: john;  state: Exp;
19791 Working version of paging.
19792 ----------------------------
19793 revision 1.1
19794 date: 1995/01/15 11:33:52;  author: john;  state: Exp;
19795 Initial revision
19796 =============================================================================
19797 RCS file: f:/miner/source/main/digi.c,v
19798 Working file: main/digi.c
19799 head: 2.3
19800 description: Routines to access digital sound hardware
19801 ----------------------------
19802 revision 2.3
19803 date: 1995/05/26 16:16:03;  author: john;  state: Exp;
19804 Split SATURN into define's for requiring cd, using cd, etc.
19805 Also started adding all the Rockwell stuff.
19806 ----------------------------
19807 revision 2.2
19808 date: 1995/03/30 16:36:04;  author: mike;  state: Exp;
19809 text localization.
19810 ----------------------------
19811 revision 2.1
19812 date: 1995/03/15 11:41:23;  author: john;  state: Exp;
19813 Better Saturn CD-ROM support.
19814 ----------------------------
19815 revision 2.0
19816 date: 1995/02/27 11:29:15;  author: john;  state: Exp;
19817 New version 2.0, which has no anonymous unions, builds with
19818 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
19819 ----------------------------
19820 revision 1.172
19821 date: 1995/02/15 09:57:53;  author: john;  state: Exp;
19822 Fixed bug with loading new banks while song is playing.
19823 ----------------------------
19824 revision 1.171
19825 date: 1995/02/14 16:36:26;  author: john;  state: Exp;
19826 Fixed bug with countdown voice getting cut off.
19827 ----------------------------
19828 revision 1.170
19829 date: 1995/02/13 20:34:51;  author: john;  state: Exp;
19830 Lintized
19831 ----------------------------
19832 revision 1.169
19833 date: 1995/02/13 15:18:21;  author: john;  state: Exp;
19834 Added code to reset sounds.
19835 ----------------------------
19836 revision 1.168
19837 date: 1995/02/13 12:53:11;  author: john;  state: Exp;
19838 Fixed bug with demos recording wrong volumes.
19839 ----------------------------
19840 revision 1.167
19841 date: 1995/02/11 15:04:29;  author: john;  state: Exp;
19842 Made FM files load as if you have FM card.
19843 ----------------------------
19844 revision 1.166
19845 date: 1995/02/11 12:41:35;  author: john;  state: Exp;
19846 Added new song method, with FM bank switching..
19847 ----------------------------
19848 revision 1.165
19849 date: 1995/02/10 16:24:58;  author: john;  state: Exp;
19850 MAde previous change only reverse for RAP10.
19851 ----------------------------
19852 revision 1.164
19853 date: 1995/02/10 13:47:37;  author: john;  state: Exp;
19854 Made digi init before midi to maybe fix RAP10 bug.
19855 ----------------------------
19856 revision 1.163
19857 date: 1995/02/08 21:05:22;  author: john;  state: Exp;
19858 Added code that loads patches for every FM song.
19859 ----------------------------
19860 revision 1.162
19861 date: 1995/02/03 17:17:51;  author: john;  state: Exp;
19862 Made digi lowmem default to off.
19863 ----------------------------
19864 revision 1.161
19865 date: 1995/02/03 17:08:22;  author: john;  state: Exp;
19866 Changed sound stuff to allow low memory usage.
19867 Also, changed so that Sounds isn't an array of digi_sounds, it
19868 is a ubyte pointing into GameSounds, this way the digi.c code that
19869 locks sounds won't accidentally unlock a sound that is already playing, but
19870 since it's Sounds[soundno] is different, it would erroneously be unlocked.
19871 ----------------------------
19872 revision 1.160
19873 date: 1995/02/01 22:37:06;  author: john;  state: Exp;
19874 Reduced sound travel distance to 1.25 times original.
19875 ----------------------------
19876 revision 1.159
19877 date: 1995/02/01 22:20:41;  author: john;  state: Exp;
19878 Added digi_is_sound_playing.
19879 ----------------------------
19880 revision 1.158
19881 date: 1995/01/28 15:56:56;  author: john;  state: Exp;
19882 Made sounds carry 1.5 times farther.
19883 ----------------------------
19884 revision 1.157
19885 date: 1995/01/27 17:17:09;  author: john;  state: Exp;
19886 Made max sounds relate better to MAX_SOUND_OBJECTS
19887 ----------------------------
19888 revision 1.156
19889 date: 1995/01/25 12:18:06;  author: john;  state: Exp;
19890 Fixed bug with not closing MIDI files when midi volume is 0.
19891 ----------------------------
19892 revision 1.155
19893 date: 1995/01/24 17:52:17;  author: john;  state: Exp;
19894 MAde midi music stop playing when volume is 0.
19895 ----------------------------
19896 revision 1.154
19897 date: 1995/01/21 21:22:31;  author: mike;  state: Exp;
19898 Correct bogus error message.
19899 ----------------------------
19900 revision 1.153
19901 date: 1995/01/17 14:53:38;  author: john;  state: Exp;
19902 IFDEF'D out digital drums.
19903 ----------------------------
19904 revision 1.152
19905 date: 1995/01/11 16:26:50;  author: john;  state: Exp;
19906 Restored MIDI pausing to actually setting volume to 0,.
19907 ----------------------------
19908 revision 1.151
19909 date: 1995/01/10 16:38:46;  author: john;  state: Exp;
19910 Made MIDI songs pause, not lower volume when pausing, and
19911 had to fix an HMI bug by clearing the TRACKINFO array or something.
19912 ----------------------------
19913 revision 1.150
19914 date: 1995/01/05 19:46:27;  author: john;  state: Exp;
19915 Added code to reset the midi tracks to use the ones 
19916 in the midi file before each song is played.
19917 ----------------------------
19918 revision 1.149
19919 date: 1994/12/21 15:08:59;  author: matt;  state: Exp;
19920 Bumped MAX_SOUND_OBJECTS back up to match v1.00 of shareware
19921 ----------------------------
19922 revision 1.148
19923 date: 1994/12/20 18:22:54;  author: john;  state: Exp;
19924 Added code to support non-looping songs, and put
19925 it in for endlevel and credits.
19926 ----------------------------
19927 revision 1.147
19928 date: 1994/12/19 17:58:19;  author: john;  state: Exp;
19929 Changed Assert for too many sounds to gracefully exit.
19930 ----------------------------
19931 revision 1.146
19932 date: 1994/12/14 16:03:27;  author: john;  state: Exp;
19933 Made the digi/midi deinit in reverse order for anything
19934 other than GUS.
19935 ----------------------------
19936 revision 1.145
19937 date: 1994/12/14 14:51:06;  author: john;  state: Exp;
19938 Added assert.
19939 ----------------------------
19940 revision 1.144
19941 date: 1994/12/14 12:14:40;  author: john;  state: Exp;
19942 Relplaced a bunch of (a*b)/c with fixmuldiv
19943 to get rid of a overflow bug mike found.
19944 ----------------------------
19945 revision 1.143
19946 date: 1994/12/13 17:30:16;  author: john;  state: Exp;
19947 Made the timer rate be changed right after initializing it.
19948 ----------------------------
19949 revision 1.142
19950 date: 1994/12/13 14:08:35;  author: john;  state: Exp;
19951 Made Pause key set midi volume to 0.
19952 Made digi_init set midi volume to proper level.
19953 ----------------------------
19954 revision 1.141
19955 date: 1994/12/13 12:42:31;  author: jasen;  state: Exp;
19956 Fixed sound priority bugs... -john
19957 ----------------------------
19958 revision 1.140
19959 date: 1994/12/13 12:11:38;  author: john;  state: Exp;
19960 Added debugging code.
19961 ----------------------------
19962 revision 1.139
19963 date: 1994/12/13 11:45:19;  author: john;  state: Exp;
19964 Disabled interrupts around the midisetvolume because awe32
19965 hangs if you don't.
19966 ----------------------------
19967 revision 1.138
19968 date: 1994/12/13 11:33:45;  author: john;  state: Exp;
19969 MAde so that sounds with volumes > f1_0 don't cut off.
19970 ----------------------------
19971 revision 1.137
19972 date: 1994/12/13 02:24:29;  author: matt;  state: Exp;
19973 digi_init() now doesn't return error when no sound card
19974 ----------------------------
19975 revision 1.136
19976 date: 1994/12/13 00:46:27;  author: john;  state: Exp;
19977 Split digi and midi volume into 2 seperate functions.
19978 ----------------------------
19979 revision 1.135
19980 date: 1994/12/12 22:19:20;  author: john;  state: Exp;
19981 Made general midi versions of files load...
19982 .hmq instead of .hmp.
19983 ----------------------------
19984 revision 1.134
19985 date: 1994/12/12 21:32:49;  author: john;  state: Exp;
19986 Made volume work better by making sure volumes are valid
19987 and set correctly at program startup.
19988 ----------------------------
19989 revision 1.133
19990 date: 1994/12/12 20:52:35;  author: john;  state: Exp;
19991 Fixed bug with pause calling set mastervolume to 0.
19992 ----------------------------
19993 revision 1.132
19994 date: 1994/12/12 20:39:52;  author: john;  state: Exp;
19995 Changed so that instead of using MasterVolume for 
19996 digital sounds, I just scale the volume I play the
19997 sound by.
19998 ----------------------------
19999 revision 1.131
20000 date: 1994/12/12 13:58:21;  author: john;  state: Exp;
20001 MAde -nomusic work.
20002 Fixed GUS hang at exit by deinitializing digi before midi.
20003 ----------------------------
20004 revision 1.130
20005 date: 1994/12/11 23:29:39;  author: john;  state: Exp;
20006 *** empty log message ***
20007 ----------------------------
20008 revision 1.129
20009 date: 1994/12/11 23:18:07;  author: john;  state: Exp;
20010 Added -nomusic.
20011 Added RealFrameTime.
20012 Put in a pause when sound initialization error.
20013 Made controlcen countdown and framerate use RealFrameTime.
20014 ----------------------------
20015 revision 1.128
20016 date: 1994/12/11 13:35:26;  author: john;  state: Exp;
20017 Let sounds play louder than F1_0.  btw, 4*f1_0 is maxed.
20018 ----------------------------
20019 revision 1.127
20020 date: 1994/12/11 00:43:45;  author: john;  state: Exp;
20021 Fixed bug with sounds taking over channels that sound objects own.
20022 ----------------------------
20023 revision 1.126
20024 date: 1994/12/10 20:35:03;  author: john;  state: Exp;
20025 Added digi_kill_sound_linked_to_object.
20026 ----------------------------
20027 revision 1.125
20028 date: 1994/12/10 15:44:20;  author: john;  state: Exp;
20029 Added max_distance passing for sound objects.
20030 ----------------------------
20031 revision 1.124
20032 date: 1994/12/09 20:16:37;  author: john;  state: Exp;
20033 Made it so that when Mike's AI code passes bogus values, the
20034 digi code will saturate them.
20035 ----------------------------
20036 revision 1.123
20037 date: 1994/12/09 17:07:52;  author: john;  state: Exp;
20038 Fixed abrupt fan cutoff.
20039 ----------------------------
20040 revision 1.122
20041 date: 1994/12/08 17:19:14;  author: yuan;  state: Exp;
20042 Cfiling stuff.
20043 ----------------------------
20044 revision 1.121
20045 date: 1994/12/06 19:24:08;  author: john;  state: Exp;
20046 CLosed HMI timer after making our not call it.
20047 ----------------------------
20048 revision 1.120
20049 date: 1994/12/06 19:00:42;  author: john;  state: Exp;
20050 Moved digi_reset_sounds to reset instead of digi_close.
20051 ----------------------------
20052 revision 1.119
20053 date: 1994/12/06 18:23:48;  author: matt;  state: Exp;
20054 Don't pause midi songs, becuase it can lock up
20055 ----------------------------
20056 revision 1.118
20057 date: 1994/12/06 16:07:09;  author: john;  state: Exp;
20058 MAde the gus pats only load if using midi==midi_gus.
20059 ----------------------------
20060 revision 1.117
20061 date: 1994/12/06 10:17:07;  author: john;  state: Exp;
20062 MAde digi_close call reset_sounds.
20063 ----------------------------
20064 revision 1.116
20065 date: 1994/12/05 23:36:50;  author: john;  state: Exp;
20066 Took out lock down of GETDS, because, I, john, was wrong, and it
20067 was me, not the HMI people, that was calling GETDS in an interrupt.
20068 I un-formally apologize to HMI.
20069 ----------------------------
20070 revision 1.115
20071 date: 1994/12/05 22:50:09;  author: john;  state: Exp;
20072 Put in code to lock down GETDS, because the HMI
20073 people don't lock it down, even tho they use it 
20074 in their timerhandler interrupt.
20075 ----------------------------
20076 revision 1.114
20077 date: 1994/12/05 18:54:09;  author: john;  state: Exp;
20078 *** empty log message ***
20079 ----------------------------
20080 revision 1.113
20081 date: 1994/12/05 18:52:11;  author: john;  state: Exp;
20082 Locked down the TrackMap array, since SOS references it in an interupt.
20083 Added -noloadpats command line option.
20084 ----------------------------
20085 revision 1.112
20086 date: 1994/12/05 16:55:45;  author: john;  state: Exp;
20087 Made so that digi_init_System is  called before 
20088 the timer system calls the timer handler.
20089 ----------------------------
20090 revision 1.111
20091 date: 1994/12/05 12:56:19;  author: john;  state: Exp;
20092 Made the intruments patches only load for FM devices.
20093 ----------------------------
20094 revision 1.110
20095 date: 1994/12/05 12:17:16;  author: john;  state: Exp;
20096 Added code that locks/unlocks digital sounds on demand.
20097 ----------------------------
20098 revision 1.109
20099 date: 1994/12/04 14:30:10;  author: john;  state: Exp;
20100 Added hooks for music..
20101 ----------------------------
20102 revision 1.108
20103 date: 1994/12/02 13:58:27;  author: matt;  state: Exp;
20104 Put in Int3()s when try to play a non-existant sound
20105 ----------------------------
20106 revision 1.107
20107 date: 1994/12/02 10:35:58;  author: john;  state: Exp;
20108 Took out loadpats.c
20109 ----------------------------
20110 revision 1.106
20111 date: 1994/12/01 02:22:33;  author: john;  state: Exp;
20112 Incorporated LOADPATS.EXE into our code.
20113 ----------------------------
20114 revision 1.105
20115 date: 1994/12/01 00:59:51;  author: john;  state: Exp;
20116 Fixed some pot. bugs with closing.
20117 ----------------------------
20118 revision 1.104
20119 date: 1994/11/30 23:54:40;  author: rob;  state: Exp;
20120 Tweaked some volume params due to a fix in find_connected_distance.
20121 ----------------------------
20122 revision 1.103
20123 date: 1994/11/30 19:36:44;  author: john;  state: Exp;
20124 Made Gravis Ultrasound work again.  Made the scores blink
20125 at a constant rate.  Revamped the newmenu background storage,
20126 which hopefully fixed some bugs.  Made menus in ame not pause
20127 sound, except for the pause key.               ^== Game!
20128 ----------------------------
20129 revision 1.102
20130 date: 1994/11/30 15:14:25;  author: rob;  state: Exp;
20131 Removed unused include file..
20132 ----------------------------
20133 revision 1.101
20134 date: 1994/11/30 15:08:45;  author: john;  state: Exp;
20135 Changed some open/close stuff with sound.
20136 ----------------------------
20137 revision 1.100
20138 date: 1994/11/29 13:35:41;  author: john;  state: Exp;
20139 Test code.
20140 ----------------------------
20141 revision 1.99
20142 date: 1994/11/29 03:46:32;  author: john;  state: Exp;
20143 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
20144 command line arg.
20145 ----------------------------
20146 revision 1.98
20147 date: 1994/11/28 18:37:59;  author: john;  state: Exp;
20148 Made sample play once work.
20149 ----------------------------
20150 revision 1.97
20151 date: 1994/11/28 18:35:19;  author: john;  state: Exp;
20152 Made the digi_max_channels cut of an old sound instead of
20153 not playing a new sound.
20154 ----------------------------
20155 revision 1.96
20156 date: 1994/11/28 01:32:02;  author: mike;  state: Exp;
20157 use quick form of matrix function.
20158 ----------------------------
20159 revision 1.95
20160 date: 1994/11/27 23:12:14;  author: matt;  state: Exp;
20161 Made changes for new mprintf calling convention
20162 ----------------------------
20163 revision 1.94
20164 date: 1994/11/22 17:13:31;  author: john;  state: Exp;
20165 Fixed bug with the digital drums hanging.
20166 ----------------------------
20167 revision 1.93
20168 date: 1994/11/21 19:09:21;  author: john;  state: Exp;
20169 Made so if digi and midi both 0, same as -nosound.
20170 ----------------------------
20171 revision 1.92
20172 date: 1994/11/21 16:46:46;  author: john;  state: Exp;
20173 Limited digital channels to 10.
20174 ----------------------------
20175 revision 1.91
20176 date: 1994/11/21 16:28:42;  author: john;  state: Exp;
20177 Fixed bug with digi_close hanging.
20178 ----------------------------
20179 revision 1.90
20180 date: 1994/11/21 15:40:28;  author: john;  state: Exp;
20181 Locked down the instrument data.
20182 ----------------------------
20183 revision 1.89
20184 date: 1994/11/21 14:43:55;  author: john;  state: Exp;
20185 Fixed some bugs with setting volumes even when -nosound was used. Duh!
20186 ----------------------------
20187 revision 1.88
20188 date: 1994/11/21 11:55:26;  author: john;  state: Exp;
20189 Fixed some sound pausing in menus bugs.
20190 ----------------------------
20191 revision 1.87
20192 date: 1994/11/21 11:02:21;  author: john;  state: Exp;
20193 Made fan sounds be 1/2 the volume so that they
20194 don'
20195 don't carry as far.
20196 ----------------------------
20197 revision 1.86
20198 date: 1994/11/20 17:47:51;  author: john;  state: Exp;
20199 Fixed a potential bug with sound initializing.
20200 ----------------------------
20201 revision 1.85
20202 date: 1994/11/20 17:29:07;  author: john;  state: Exp;
20203 Fixed bug with page fault during digi_close.
20204 ----------------------------
20205 revision 1.84
20206 date: 1994/11/19 15:19:24;  author: mike;  state: Exp;
20207 rip out unused code and data.
20208 ----------------------------
20209 revision 1.83
20210 date: 1994/11/16 23:38:33;  author: mike;  state: Exp;
20211 new improved boss teleportation behavior.
20212 ----------------------------
20213 revision 1.82
20214 date: 1994/11/14 18:12:46;  author: john;  state: Exp;
20215 Took out some sound objects stuff.
20216 =============================================================================
20217 RCS file: /Smoke/miner/source/main/physics.c,v
20218 Working file: main/physics.c
20219 head: 1.5
20220 description: Code for flying through the mines
20221 ----------------------------
20222 revision 1.5
20223 date: 1995/10/12 17:28:08;  author: allender;  state: Exp;
20224 put in code to move and object to center of segment in
20225 do_physics sim when fvi fails with bad point
20226 ----------------------------
20227 revision 1.4
20228 date: 1995/08/23 21:32:44;  author: allender;  state: Exp;
20229 fix mcc compiler warnings
20230 ----------------------------
20231 revision 1.3
20232 date: 1995/07/28 15:38:56;  author: allender;  state: Exp;
20233 removed isqrt thing -- not required here
20234 ----------------------------
20235 revision 1.2
20236 date: 1995/07/28 15:13:29;  author: allender;  state: Exp;
20237 fixed vector magnitude thing
20238 ----------------------------
20239 revision 1.1
20240 date: 1995/05/16 15:29:42;  author: allender;  state: Exp;
20241 Initial revision
20242 ----------------------------
20243 revision 2.2
20244 date: 1995/03/24 14:48:54;  author: john;  state: Exp;
20245 Added cheat for player to go thru walls.
20246 ----------------------------
20247 revision 2.1
20248 date: 1995/03/20 18:15:59;  author: john;  state: Exp;
20249 Added code to not store the normals in the segment structure.
20250 ----------------------------
20251 revision 2.0
20252 date: 1995/02/27 11:32:06;  author: john;  state: Exp;
20253 New version 2.0, which has no anonymous unions, builds with
20254 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
20255 ----------------------------
20256 revision 1.213
20257 date: 1995/02/22 13:40:48;  author: allender;  state: Exp;
20258 remove anonymous unions from object structure
20259 ----------------------------
20260 revision 1.212
20261 date: 1995/02/22 13:24:42;  author: john;  state: Exp;
20262 Removed the vecmat anonymous unions.
20263 ----------------------------
20264 revision 1.211
20265 date: 1995/02/06 19:46:59;  author: matt;  state: Exp;
20266 New function (untested), set_thrust_from_velocity()
20267 ----------------------------
20268 revision 1.210
20269 date: 1995/02/02 16:26:12;  author: matt;  state: Exp;
20270 Changed assert that was causing a problem
20271 ----------------------------
20272 revision 1.209
20273 date: 1995/02/02 14:07:00;  author: matt;  state: Exp;
20274 Fixed confusion about which segment you are touching when you're 
20275 touching a wall.  This manifested itself in spurious lava burns.
20276 ----------------------------
20277 revision 1.208
20278 date: 1995/02/01 21:03:24;  author: john;  state: Exp;
20279 Lintified.
20280 ----------------------------
20281 revision 1.207
20282 date: 1995/01/25 13:53:35;  author: rob;  state: Exp;
20283 Removed an Int3 from multiplayer games.
20284 ----------------------------
20285 revision 1.206
20286 date: 1995/01/23 17:30:47;  author: rob;  state: Exp;
20287 Removed Int3 on bogus sim time.
20288 ----------------------------
20289 revision 1.205
20290 date: 1995/01/17 11:08:56;  author: matt;  state: Exp;
20291 Disable new-ish FVI edge checking for all objects except the player,
20292 since it was causing problems with the fusion cannon.
20293 ----------------------------
20294 revision 1.204
20295 date: 1995/01/05 09:43:49;  author: matt;  state: Exp;
20296 Took out int3s from new code
20297 ----------------------------
20298 revision 1.203
20299 date: 1995/01/04 22:19:23;  author: matt;  state: Exp;
20300 Added hack to keep player from squeezing through closed walls/doors
20301 ----------------------------
20302 revision 1.202
20303 date: 1995/01/02 12:38:48;  author: mike;  state: Exp;
20304 physics hack to crazy josh not get hung up on proximity bombs.  Matt notified via email.
20305 ----------------------------
20306 revision 1.201
20307 date: 1994/12/13 15:39:22;  author: mike;  state: Exp;
20308 #ifndef NDEBUG some code.
20309 ----------------------------
20310 revision 1.200
20311 date: 1994/12/13 13:28:34;  author: yuan;  state: Exp;
20312 Fixed type.
20313 ----------------------------
20314 revision 1.199
20315 date: 1994/12/13 13:25:00;  author: matt;  state: Exp;
20316 Made bump hack compile out if so desired
20317 ----------------------------
20318 revision 1.198
20319 date: 1994/12/13 12:02:39;  author: matt;  state: Exp;
20320 Added hack to bump player a little if stuck
20321 ----------------------------
20322 revision 1.197
20323 date: 1994/12/12 00:32:23;  author: matt;  state: Exp;
20324 When objects other than player go out of mine, jerk to center of segment
20325 ----------------------------
20326 revision 1.196
20327 date: 1994/12/10 22:52:42;  author: mike;  state: Exp;
20328 make physics left-the-mine checking always be in.
20329 ----------------------------
20330 revision 1.195
20331 date: 1994/12/08 00:53:01;  author: mike;  state: Exp;
20332 oops...phys rot bug.
20333 ----------------------------
20334 revision 1.194
20335 date: 1994/12/07 12:54:54;  author: mike;  state: Exp;
20336 tweak rotvel applied from collisions.
20337 ----------------------------
20338 revision 1.193
20339 date: 1994/12/07 00:36:08;  author: mike;  state: Exp;
20340 fix phys_apply_rot for robots -- ai was bashing effect in next frame.
20341 ----------------------------
20342 revision 1.192
20343 date: 1994/12/05 17:23:10;  author: matt;  state: Exp;
20344 Made a bunch of debug code compile out
20345 ----------------------------
20346 revision 1.191
20347 date: 1994/12/05 16:30:10;  author: matt;  state: Exp;
20348 Was illegally changing an object's segment...shoot me.
20349 ----------------------------
20350 revision 1.190
20351 date: 1994/12/05 11:58:51;  author: mike;  state: Exp;
20352 fix stupid apply_force_rot() bug.
20353 ----------------------------
20354 revision 1.189
20355 date: 1994/12/05 09:42:17;  author: mike;  state: Exp;
20356 fix 0 mag problem when object applies force to itself.
20357 ----------------------------
20358 revision 1.188
20359 date: 1994/12/04 22:48:40;  author: matt;  state: Exp;
20360 Physics & FVI now only build seglist for player objects, and they 
20361 responsilby deal with buffer full conditions
20362 ----------------------------
20363 revision 1.187
20364 date: 1994/12/04 22:14:07;  author: mike;  state: Exp;
20365 apply instantaneous rotation to an object due to a force blow.
20366 ----------------------------
20367 revision 1.186
20368 date: 1994/12/04 18:51:30;  author: matt;  state: Exp;
20369 When weapons get stuck, delete them!
20370 ----------------------------
20371 revision 1.185
20372 date: 1994/12/04 18:38:56;  author: matt;  state: Exp;
20373 Added better handling of point-not-in-seg problem
20374 ----------------------------
20375 revision 1.184
20376 date: 1994/11/27 23:13:42;  author: matt;  state: Exp;
20377 Made changes for new mprintf calling convention
20378 ----------------------------
20379 revision 1.183
20380 date: 1994/11/25 23:46:18;  author: matt;  state: Exp;
20381 Fixed drag problems with framerates over 60Hz
20382 ----------------------------
20383 revision 1.182
20384 date: 1994/11/25 22:15:52;  author: matt;  state: Exp;
20385 Added asserts to try to trap frametime < 0 bug
20386 ----------------------------
20387 revision 1.181
20388 date: 1994/11/21 11:42:44;  author: mike;  state: Exp;
20389 ndebug stuff.
20390 ----------------------------
20391 revision 1.180
20392 date: 1994/11/19 15:15:04;  author: mike;  state: Exp;
20393 remove unused code and data
20394 ----------------------------
20395 revision 1.179
20396 date: 1994/11/16 11:25:22;  author: matt;  state: Exp;
20397 Abort physics if negative frametime
20398 ----------------------------
20399 revision 1.178
20400 date: 1994/10/05 19:50:41;  author: rob;  state: Exp;
20401 Removed a non-critical Int3 where an object's segnum is checked.
20402 Left mprintf message.
20403 ----------------------------
20404 revision 1.177
20405 date: 1994/10/03 22:57:50;  author: matt;  state: Exp;
20406 Fixed problem with matrix corruption of non-moving (but rotating) objects
20407 ----------------------------
20408 revision 1.176
20409 date: 1994/09/28 09:23:28;  author: mike;  state: Exp;
20410 Add useful information to mprintf(1,... error messages.
20411 ----------------------------
20412 revision 1.175
20413 date: 1994/09/21 17:16:54;  author: mike;  state: Exp;
20414 Make objects stuck in doors go away when door opens.
20415 ----------------------------
20416 revision 1.174
20417 date: 1994/09/12 14:19:06;  author: matt;  state: Exp;
20418 Drag & thrust now handled differently
20419 ----------------------------
20420 revision 1.173
20421 date: 1994/09/09 14:21:12;  author: matt;  state: Exp;
20422 Use new thrust flag
20423 ----------------------------
20424 revision 1.172
20425 date: 1994/09/08 16:21:57;  author: matt;  state: Exp;
20426 Cleaned up player-hit-wall code, and added object scrape handling
20427 Also added weapon-on-weapon hit sound
20428 ----------------------------
20429 revision 1.171
20430 date: 1994/09/02 12:30:37;  author: matt;  state: Exp;
20431 Fixed weapons which go through objects
20432 ----------------------------
20433 revision 1.170
20434 date: 1994/09/02 11:55:14;  author: mike;  state: Exp;
20435 Kill redefinition of a constant which is properly defined in object.h
20436 ----------------------------
20437 revision 1.169
20438 date: 1994/09/02 11:35:01;  author: matt;  state: Exp;
20439 Fixed typo
20440 ----------------------------
20441 revision 1.168
20442 date: 1994/09/02 11:32:48;  author: matt;  state: Exp;
20443 Fixed object/object collisions, so you can't fly through robots anymore.
20444 Cleaned up object damage system.
20445 ----------------------------
20446 revision 1.167
20447 date: 1994/08/30 21:58:15;  author: matt;  state: Exp;
20448 Made phys_apply_force() do nothing to an object if it's not a phys object
20449 ----------------------------
20450 revision 1.166
20451 date: 1994/08/26 10:47:01;  author: john;  state: Exp;
20452 New version of controls.
20453 ----------------------------
20454 revision 1.165
20455 date: 1994/08/25 21:53:57;  author: mike;  state: Exp;
20456 Prevent counts of -1 which eventually add up to a positive number in do_ai_frame, causing
20457 the too-many-retries behavior.
20458 ----------------------------
20459 revision 1.164
20460 date: 1994/08/25 18:43:33;  author: john;  state: Exp;
20461 First revision of new control code.
20462 ----------------------------
20463 revision 1.163
20464 date: 1994/08/17 22:18:05;  author: mike;  state: Exp;
20465 Make robots which have rotvel or rotthrust, but not movement, move.
20466 ----------------------------
20467 revision 1.162
20468 date: 1994/08/13 17:31:18;  author: mike;  state: Exp;
20469 retry count stuff.
20470 ----------------------------
20471 revision 1.161
20472 date: 1994/08/11 18:59:16;  author: mike;  state: Exp;
20473 *** empty log message ***
20474 ----------------------------
20475 revision 1.160
20476 date: 1994/08/10 19:53:47;  author: mike;  state: Exp;
20477 Debug code (which is still in...)
20478 and adapt to changed interface to create_path_to_player.
20479 ----------------------------
20480 revision 1.159
20481 date: 1994/08/08 21:38:43;  author: matt;  state: Exp;
20482 Cleaned up a code a little and optimized a little
20483 ----------------------------
20484 revision 1.158
20485 date: 1994/08/08 15:21:50;  author: mike;  state: Exp;
20486 Trap retry count >= 4, but don't do AI hack unless >= 6.
20487 ----------------------------
20488 revision 1.157
20489 date: 1994/08/08 11:47:15;  author: matt;  state: Exp;
20490 Cleaned up fvi and physics a little
20491 ----------------------------
20492 revision 1.156
20493 date: 1994/08/05 10:10:10;  author: yuan;  state: Exp;
20494 Commented out debug stuff that was killing framerate.
20495 ----------------------------
20496 revision 1.155
20497 date: 1994/08/04 19:12:36;  author: matt;  state: Exp;
20498 Changed a bunch of vecmat calls to use multiple-function routines, and to
20499 allow the use of C macros for some functions
20500 ----------------------------
20501 revision 1.154
20502 date: 1994/08/04 16:33:57;  author: mike;  state: Exp;
20503 Kill a pile of RCS stuff.
20504 Call create_path_to_player for a stuck object.
20505 ----------------------------
20506 revision 1.153
20507 date: 1994/08/04 00:21:02;  author: matt;  state: Exp;
20508 Cleaned up fvi & physics error handling; put in code to make sure objects
20509 are in correct segment; simplified segment finding for objects and points
20510 ----------------------------
20511 revision 1.152
20512 date: 1994/08/01 16:25:34;  author: matt;  state: Exp;
20513 Check for moved_time == 0 when computing hit speed
20514 ----------------------------
20515 revision 1.151
20516 date: 1994/08/01 13:30:32;  author: matt;  state: Exp;
20517 Made fvi() check holes in transparent walls, and changed fvi() calling
20518 parms to take all input data in query structure.
20519 ----------------------------
20520 revision 1.150
20521 date: 1994/07/29 23:41:46;  author: matt;  state: Exp;
20522 Fixed turn banking, which changed when I added rotational velocity
20523 ----------------------------
20524 revision 1.149
20525 date: 1994/07/27 20:53:23;  author: matt;  state: Exp;
20526 Added rotational drag & thrust, so turning now has momemtum like moving
20527 =============================================================================
20528 RCS file: /Smoke/miner/source/main/physics.h,v
20529 Working file: main/physics.h
20530 head: 1.2
20531 description: Headers for physics functions and data
20532 ----------------------------
20533 revision 1.2
20534 date: 1995/08/23 21:33:04;  author: allender;  state: Exp;
20535 fix mcc compiler warnings
20536 ----------------------------
20537 revision 1.1
20538 date: 1995/05/16 16:00:56;  author: allender;  state: Exp;
20539 Initial revision
20540 ----------------------------
20541 revision 2.0
20542 date: 1995/02/27 11:33:06;  author: john;  state: Exp;
20543 New version 2.0, which has no anonymous unions, builds with
20544 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
20545 ----------------------------
20546 revision 1.29
20547 date: 1995/02/06 19:47:18;  author: matt;  state: Exp;
20548 New function (untested), set_thrust_from_velocity()
20549 ----------------------------
20550 revision 1.28
20551 date: 1994/12/04 22:14:20;  author: mike;  state: Exp;
20552 apply instantaneous rotation to an object due to a force blow.
20553 ----------------------------
20554 revision 1.27
20555 date: 1994/08/01 13:29:42;  author: matt;  state: Exp;
20556 Made fvi() check holes in transparent walls, and changed fvi() calling
20557 parms to take all input data in query structure.
20558 ----------------------------
20559 revision 1.26
20560 date: 1994/07/28 12:35:22;  author: matt;  state: Exp;
20561 Added prototype
20562 ----------------------------
20563 revision 1.25
20564 date: 1994/07/13 21:48:05;  author: matt;  state: Exp;
20565 FVI() and physics now keep lists of segments passed through which the
20566 trigger code uses.
20567 ----------------------------
20568 revision 1.24
20569 date: 1994/06/30 19:01:55;  author: matt;  state: Exp;
20570 Moved flying controls code from physics.c to controls.c
20571 ----------------------------
20572 revision 1.23
20573 date: 1994/06/16 14:14:20;  author: mike;  state: Exp;
20574 Change physics_lookahead to return hit_info.
20575 ----------------------------
20576 revision 1.22
20577 date: 1994/06/09 09:58:43;  author: matt;  state: Exp;
20578 Moved find_vector_intersection() from physics.c to new file fvi.c
20579 ----------------------------
20580 revision 1.21
20581 date: 1994/05/20 16:11:07;  author: matt;  state: Exp;
20582 Added new parm, ignore_obj, to find_vector_intersection()
20583 ----------------------------
20584 revision 1.20
20585 date: 1994/05/20 15:16:58;  author: matt;  state: Exp;
20586 Added new fvi return type; took out some troublesome (and troubling) asserts
20587 =============================================================================
20588 RCS file: /Smoke/miner/source/main/piggy.c,v
20589 Working file: main/piggy.c
20590 head: 1.16
20591 description: Functions for managing the pig files.
20592 ----------------------------
20593 revision 1.16
20594 date: 1995/11/09 17:27:47;  author: allender;  state: Exp;
20595 put in missing quote on new gauge name
20596 ----------------------------
20597 revision 1.15
20598 date: 1995/11/08 17:28:03;  author: allender;  state: Exp;
20599 add PC gauges to gauge list of non-substitutatble bitmaps
20600 ----------------------------
20601 revision 1.14
20602 date: 1995/11/08 15:14:49;  author: allender;  state: Exp;
20603 fixed horrible bug where the piggy cache size was incorrect
20604 for mac shareware
20605 ----------------------------
20606 revision 1.13
20607 date: 1995/11/03 12:53:37;  author: allender;  state: Exp;
20608 shareware changes
20609 ----------------------------
20610 revision 1.12
20611 date: 1995/10/21 22:25:14;  author: allender;  state: Exp;
20612 added bald guy cheat
20613 ----------------------------
20614 revision 1.11
20615 date: 1995/10/20 22:42:15;  author: allender;  state: Exp;
20616 changed load path of descent.pig to :data:descent.pig
20617 ----------------------------
20618 revision 1.10
20619 date: 1995/10/20 00:08:01;  author: allender;  state: Exp;
20620 put in event loop calls when loading data (hides it nicely
20621 from user) so TM can get it's strokes stuff
20622 ----------------------------
20623 revision 1.9
20624 date: 1995/09/13 08:48:01;  author: allender;  state: Exp;
20625 added lower memory requirement to load alternate bitmaps
20626 ----------------------------
20627 revision 1.8
20628 date: 1995/08/16 09:39:13;  author: allender;  state: Exp;
20629 moved "loading" text up a little
20630 ----------------------------
20631 revision 1.7
20632 date: 1995/08/08 13:54:26;  author: allender;  state: Exp;
20633 added macsys header file
20634 ----------------------------
20635 revision 1.6
20636 date: 1995/07/12 12:49:56;  author: allender;  state: Exp;
20637 total hack for bitmaps > 512 bytes wide -- check these by name
20638 ----------------------------
20639 revision 1.5
20640 date: 1995/07/05 16:47:05;  author: allender;  state: Exp;
20641 kitchen stuff
20642 ----------------------------
20643 revision 1.4
20644 date: 1995/06/23 08:55:28;  author: allender;  state: Exp;
20645 make "loading data" text y loc based off of curcanv
20646 ----------------------------
20647 revision 1.3
20648 date: 1995/06/08 14:08:52;  author: allender;  state: Exp;
20649 PPC aligned data sets
20650 ----------------------------
20651 revision 1.2
20652 date: 1995/05/26 06:54:27;  author: allender;  state: Exp;
20653 removed refences to sound data at end of pig file (since they will
20654 now be Macintosh snd resources for effects
20655 ----------------------------
20656 revision 1.1
20657 date: 1995/05/16 15:29:51;  author: allender;  state: Exp;
20658 Initial revision
20659 ----------------------------
20660 revision 2.9
20661 date: 1995/04/14 14:05:24;  author: john;  state: Exp;
20662 *** empty log message ***
20663 ----------------------------
20664 revision 2.8
20665 date: 1995/04/12 13:39:37;  author: john;  state: Exp;
20666 Fixed bug with -lowmem not working.
20667 ----------------------------
20668 revision 2.7
20669 date: 1995/03/29 23:23:17;  author: john;  state: Exp;
20670 Fixed major bug with sounds not building into pig right.
20671 ----------------------------
20672 revision 2.6
20673 date: 1995/03/28 18:05:00;  author: john;  state: Exp;
20674 Fixed it so you don't have to delete pig after changing bitmaps.tbl
20675 ----------------------------
20676 revision 2.5
20677 date: 1995/03/16 23:13:06;  author: john;  state: Exp;
20678 Fixed bug with piggy paging in bitmap not checking for disk
20679 error, hence bogifying textures if you pull the CD out.
20680 ----------------------------
20681 revision 2.4
20682 date: 1995/03/14 16:22:27;  author: john;  state: Exp;
20683 Added cdrom alternate directory stuff.
20684 ----------------------------
20685 revision 2.3
20686 date: 1995/03/06 15:23:20;  author: john;  state: Exp;
20687 New screen techniques.
20688 ----------------------------
20689 revision 2.2
20690 date: 1995/02/27 13:13:40;  author: john;  state: Exp;
20691 Removed floating point.
20692 ----------------------------
20693 revision 2.1
20694 date: 1995/02/27 12:31:25;  author: john;  state: Exp;
20695 Made work without editor.
20696 ----------------------------
20697 revision 2.0
20698 date: 1995/02/27 11:28:02;  author: john;  state: Exp;
20699 New version 2.0, which has no anonymous unions, builds with
20700 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
20701 ----------------------------
20702 revision 1.85
20703 date: 1995/02/09 12:54:24;  author: john;  state: Exp;
20704 Made paged out bitmaps have bm_data be a valid pointer
20705 instead of NULL, in case anyone accesses it.
20706 ----------------------------
20707 revision 1.84
20708 date: 1995/02/09 12:50:59;  author: john;  state: Exp;
20709 Bullet-proofed the piggy loading code.
20710 ----------------------------
20711 revision 1.83
20712 date: 1995/02/07 17:08:51;  author: john;  state: Exp;
20713 Added some error handling stuff instead of asserts.
20714 ----------------------------
20715 revision 1.82
20716 date: 1995/02/03 17:06:48;  author: john;  state: Exp;
20717 Changed sound stuff to allow low memory usage.
20718 Also, changed so that Sounds isn't an array of digi_sounds, it
20719 is a ubyte pointing into GameSounds, this way the digi.c code that
20720 locks sounds won't accidentally unlock a sound that is already playing, but
20721 since it's Sounds[soundno] is different, it would erroneously be unlocked.
20722 ----------------------------
20723 revision 1.81
20724 date: 1995/02/02 21:56:39;  author: matt;  state: Exp;
20725 Added data for new gauge bitmaps
20726 ----------------------------
20727 revision 1.80
20728 date: 1995/02/01 23:31:57;  author: john;  state: Exp;
20729 Took out loading bar.
20730 ----------------------------
20731 revision 1.79
20732 date: 1995/01/28 15:13:18;  author: allender;  state: Exp;
20733 bumped up Piggy_bitmap_cache_size
20734 ----------------------------
20735 revision 1.78
20736 date: 1995/01/26 12:30:43;  author: john;  state: Exp;
20737 Took out prev.
20738 ----------------------------
20739 revision 1.77
20740 date: 1995/01/26 12:12:17;  author: john;  state: Exp;
20741 Made buffer be big for bitmaps.
20742 ----------------------------
20743 revision 1.76
20744 date: 1995/01/25 20:15:38;  author: john;  state: Exp;
20745 Made editor allocate all mem.
20746 ----------------------------
20747 revision 1.75
20748 date: 1995/01/25 14:52:56;  author: john;  state: Exp;
20749 Made bitmap buffer be 1.5 MB.
20750 ----------------------------
20751 revision 1.74
20752 date: 1995/01/22 16:03:19;  author: mike;  state: Exp;
20753 localization.
20754 ----------------------------
20755 revision 1.73
20756 date: 1995/01/22 15:58:36;  author: mike;  state: Exp;
20757 localization
20758 ----------------------------
20759 revision 1.72
20760 date: 1995/01/18 20:51:20;  author: john;  state: Exp;
20761 Took out warnings.
20762 ----------------------------
20763 revision 1.71
20764 date: 1995/01/18 20:47:21;  author: john;  state: Exp;
20765 Added code to allocate sounds & bitmaps into diff
20766 buffers, also made sounds not be compressed for registered.
20767 ----------------------------
20768 revision 1.70
20769 date: 1995/01/18 15:08:41;  author: john;  state: Exp;
20770 Added start/stop time around paging.
20771 Made paging clear screen around globe.
20772 ----------------------------
20773 revision 1.69
20774 date: 1995/01/18 10:07:51;  author: john;  state: Exp;
20775 Took out debugging mprintfs.
20776 ----------------------------
20777 revision 1.68
20778 date: 1995/01/17 14:27:42;  author: john;  state: Exp;
20779 y
20780 ----------------------------
20781 revision 1.67
20782 date: 1995/01/17 12:14:39;  author: john;  state: Exp;
20783 Made walls, object explosion vclips load at level start.
20784 ----------------------------
20785 revision 1.66
20786 date: 1995/01/15 13:15:44;  author: john;  state: Exp;
20787 Made so that paging always happens, lowmem just loads less.
20788 Also, make KB load print to hud.
20789 ----------------------------
20790 revision 1.65
20791 date: 1995/01/15 11:56:28;  author: john;  state: Exp;
20792 Working version of paging.
20793 ----------------------------
20794 revision 1.64
20795 date: 1995/01/14 19:17:07;  author: john;  state: Exp;
20796 First version of new bitmap paging code.
20797 ----------------------------
20798 revision 1.63
20799 date: 1994/12/15 12:26:44;  author: john;  state: Exp;
20800 Added -nolowmem function.
20801 ----------------------------
20802 revision 1.62
20803 date: 1994/12/14 21:12:26;  author: john;  state: Exp;
20804 Fixed bug with page fault when exiting and using
20805 -nosound.
20806 ----------------------------
20807 revision 1.61
20808 date: 1994/12/14 11:35:31;  author: john;  state: Exp;
20809 Evened out thermometer for pig read.
20810 ----------------------------
20811 revision 1.60
20812 date: 1994/12/14 10:51:00;  author: john;  state: Exp;
20813 Sped up sound loading.
20814 ----------------------------
20815 revision 1.59
20816 date: 1994/12/14 10:12:08;  author: john;  state: Exp;
20817 Sped up pig loading.
20818 ----------------------------
20819 revision 1.58
20820 date: 1994/12/13 09:14:47;  author: john;  state: Exp;
20821 *** empty log message ***
20822 ----------------------------
20823 revision 1.57
20824 date: 1994/12/13 09:12:57;  author: john;  state: Exp;
20825 Made the bar always fill up.
20826 ----------------------------
20827 revision 1.56
20828 date: 1994/12/13 03:49:08;  author: john;  state: Exp;
20829 Made -lowmem not load the unnecessary bitmaps.
20830 ----------------------------
20831 revision 1.55
20832 date: 1994/12/06 16:06:35;  author: john;  state: Exp;
20833 Took out piggy sorting.
20834 ----------------------------
20835 revision 1.54
20836 date: 1994/12/06 15:11:14;  author: john;  state: Exp;
20837 Fixed bug with reading pigs.
20838 ----------------------------
20839 revision 1.53
20840 date: 1994/12/06 14:14:47;  author: john;  state: Exp;
20841 Added code to set low mem based on memory.
20842 ----------------------------
20843 revision 1.52
20844 date: 1994/12/06 14:01:10;  author: john;  state: Exp;
20845 Fixed bug that was causing -lowmem all the time..
20846 ----------------------------
20847 revision 1.51
20848 date: 1994/12/06 13:33:48;  author: john;  state: Exp;
20849 Added lowmem option.
20850 ----------------------------
20851 revision 1.50
20852 date: 1994/12/05 19:40:10;  author: john;  state: Exp;
20853 If -nosound or no sound card selected, don't load sounds from pig.
20854 ----------------------------
20855 revision 1.49
20856 date: 1994/12/05 12:17:44;  author: john;  state: Exp;
20857 Added code that locks/unlocks digital sounds on demand.
20858 ----------------------------
20859 revision 1.48
20860 date: 1994/12/05 11:39:03;  author: matt;  state: Exp;
20861 Fixed little mistake
20862 ----------------------------
20863 revision 1.47
20864 date: 1994/12/05 09:29:22;  author: john;  state: Exp;
20865 Added clength to the sound field.
20866 ----------------------------
20867 revision 1.46
20868 date: 1994/12/04 15:27:15;  author: john;  state: Exp;
20869 Fixed my stupid bug that looked at -nosound instead of digi_driver_card
20870 to see whether or not to lock down sound memory.
20871 ----------------------------
20872 revision 1.45
20873 date: 1994/12/03 14:17:00;  author: john;  state: Exp;
20874 Took out my debug mprintf.
20875 ----------------------------
20876 revision 1.44
20877 date: 1994/12/03 13:32:37;  author: john;  state: Exp;
20878 Fixed bug with offscreen bitmap.
20879 ----------------------------
20880 revision 1.43
20881 date: 1994/12/03 13:07:13;  author: john;  state: Exp;
20882 Made the pig read/write compressed sounds.
20883 ----------------------------
20884 revision 1.42
20885 date: 1994/12/03 11:48:51;  author: matt;  state: Exp;
20886 Added option to not dump sounds to pigfile
20887 ----------------------------
20888 revision 1.41
20889 date: 1994/12/02 20:02:20;  author: matt;  state: Exp;
20890 Made sound files constant match constant for table
20891 ----------------------------
20892 revision 1.40
20893 date: 1994/11/29 11:03:09;  author: adam;  state: Exp;
20894 upped # of sounds
20895 ----------------------------
20896 revision 1.39
20897 date: 1994/11/27 23:13:51;  author: matt;  state: Exp;
20898 Made changes for new mprintf calling convention
20899 ----------------------------
20900 revision 1.38
20901 date: 1994/11/20 18:40:34;  author: john;  state: Exp;
20902 MAde the piggy.lst and piggy.all not dump for release.
20903 ----------------------------
20904 revision 1.37
20905 date: 1994/11/19 23:54:45;  author: mike;  state: Exp;
20906 up number of bitmaps for shareware version.
20907 ----------------------------
20908 revision 1.36
20909 date: 1994/11/19 19:53:05;  author: mike;  state: Exp;
20910 change MAX_BITMAP_FILES
20911 ----------------------------
20912 revision 1.35
20913 date: 1994/11/19 10:42:56;  author: matt;  state: Exp;
20914 Increased number of bitmaps for non-shareware version
20915 ----------------------------
20916 revision 1.34
20917 date: 1994/11/19 09:11:52;  author: john;  state: Exp;
20918 Added avg_color to bitmaps saved in pig.
20919 ----------------------------
20920 revision 1.33
20921 date: 1994/11/19 00:07:05;  author: john;  state: Exp;
20922 Fixed bug with 8 char sound filenames not getting read from pig.
20923 ----------------------------
20924 revision 1.32
20925 date: 1994/11/18 22:24:54;  author: john;  state: Exp;
20926 Added -bigpig command line that doesn't rle your pig.
20927 ----------------------------
20928 revision 1.31
20929 date: 1994/11/18 21:56:53;  author: john;  state: Exp;
20930 Added a better, leaner pig format.
20931 ----------------------------
20932 revision 1.30
20933 date: 1994/11/16 12:06:16;  author: john;  state: Exp;
20934 Fixed bug with calling .bbms abms.
20935 ----------------------------
20936 revision 1.29
20937 date: 1994/11/16 12:00:56;  author: john;  state: Exp;
20938 Added piggy.all dump.
20939 ----------------------------
20940 revision 1.28
20941 date: 1994/11/10 21:16:02;  author: adam;  state: Exp;
20942 nothing important
20943 ----------------------------
20944 revision 1.27
20945 date: 1994/11/10 13:42:00;  author: john;  state: Exp;
20946 Made sounds not lock down if using -nosound.
20947 ----------------------------
20948 revision 1.26
20949 date: 1994/11/09 19:55:40;  author: john;  state: Exp;
20950 Added full rle support with texture rle caching.
20951 ----------------------------
20952 revision 1.25
20953 date: 1994/11/09 16:36:42;  author: john;  state: Exp;
20954 First version with RLE bitmaps in Pig.
20955 ----------------------------
20956 revision 1.24
20957 date: 1994/10/27 19:42:59;  author: john;  state: Exp;
20958 Disable the piglet option.
20959 ----------------------------
20960 revision 1.23
20961 date: 1994/10/27 18:51:40;  author: john;  state: Exp;
20962 Added -piglet option that only loads needed textures for a 
20963 mine.  Only saved ~1MB, and code still doesn't free textures
20964 before you load a new mine.
20965 ----------------------------
20966 revision 1.22
20967 date: 1994/10/25 13:11:42;  author: john;  state: Exp;
20968 Made the sounds sort. Dumped piggy.lst.
20969 ----------------------------
20970 revision 1.21
20971 date: 1994/10/06 17:06:23;  author: john;  state: Exp;
20972 Took out rle stuff.
20973 ----------------------------
20974 revision 1.20
20975 date: 1994/10/06 15:45:36;  author: adam;  state: Exp;
20976 bumped MAX_BITMAP_FILES again!
20977 ----------------------------
20978 revision 1.19
20979 date: 1994/10/06 11:01:17;  author: yuan;  state: Exp;
20980 Upped MAX_BITMAP_FILES
20981 ----------------------------
20982 revision 1.18
20983 date: 1994/10/06 10:44:45;  author: john;  state: Exp;
20984 Added diagnostic message and psuedo run-length-encoder
20985 to see how much memory we would save by storing bitmaps
20986 in a RLE method.  Also, I commented out the code that
20987 stores 4K bitmaps on a 4K boundry to reduce pig size 
20988 a bit.
20989 ----------------------------
20990 revision 1.17
20991 date: 1994/10/04 20:03:13;  author: matt;  state: Exp;
20992 Upped maximum number of bitmaps
20993 ----------------------------
20994 revision 1.16
20995 date: 1994/10/03 18:04:20;  author: john;  state: Exp;
20996 Fixed bug with data_offset not set right for bitmaps
20997 that are 64x64 and not aligned on a 4k boundry.
20998 ----------------------------
20999 revision 1.15
21000 date: 1994/09/28 11:30:55;  author: john;  state: Exp;
21001 changed inferno.pig to descent.pig, changed the way it
21002 is read.
21003 ----------------------------
21004 revision 1.14
21005 date: 1994/09/22 16:14:17;  author: john;  state: Exp;
21006 Redid intro sequecing.
21007 ----------------------------
21008 revision 1.13
21009 date: 1994/09/19 14:42:47;  author: john;  state: Exp;
21010 Locked down sounds with Virtual memory.
21011 ----------------------------
21012 revision 1.12
21013 date: 1994/09/10 17:31:52;  author: mike;  state: Exp;
21014 Increase number of loadable bitmaps.
21015 ----------------------------
21016 revision 1.11
21017 date: 1994/09/01 19:32:49;  author: mike;  state: Exp;
21018 Boost texture map allocation.
21019 ----------------------------
21020 revision 1.10
21021 date: 1994/08/16 11:51:02;  author: john;  state: Exp;
21022 Added grwased pigs.
21023 ----------------------------
21024 revision 1.9
21025 date: 1994/07/06 09:18:03;  author: adam;  state: Exp;
21026 upped bitmap #s
21027 ----------------------------
21028 revision 1.8
21029 date: 1994/06/20 22:02:15;  author: matt;  state: Exp;
21030 Fixed bug from last change
21031 ----------------------------
21032 revision 1.7
21033 date: 1994/06/20 21:33:18;  author: matt;  state: Exp;
21034 Made bm.h not include sounds.h, to reduce dependencies
21035 ----------------------------
21036 revision 1.6
21037 date: 1994/06/20 16:52:19;  author: john;  state: Exp;
21038 cleaned up init output a bit.
21039 ----------------------------
21040 revision 1.5
21041 date: 1994/06/08 14:20:57;  author: john;  state: Exp;
21042 Made piggy dump before going into game.
21043 ----------------------------
21044 revision 1.4
21045 date: 1994/06/02 18:59:22;  author: matt;  state: Exp;
21046 Clear selector field of bitmap loaded from pig file
21047 ----------------------------
21048 revision 1.3
21049 date: 1994/05/06 15:31:41;  author: john;  state: Exp;
21050 Made name field a bit longer.
21051 ----------------------------
21052 revision 1.2
21053 date: 1994/05/06 13:02:44;  author: john;  state: Exp;
21054 Added piggy stuff; worked on supertransparency
21055 ----------------------------
21056 revision 1.1
21057 date: 1994/05/06 11:47:26;  author: john;  state: Exp;
21058 Initial revision
21059 =============================================================================
21060 RCS file: /Smoke/miner/source/main/piggy.h,v
21061 Working file: main/piggy.h
21062 head: 1.1
21063 description: Interface to piggy functions.
21064 ----------------------------
21065 revision 1.1
21066 date: 1995/05/16 16:01:04;  author: allender;  state: Exp;
21067 Initial revision
21068 ----------------------------
21069 revision 2.0
21070 date: 1995/02/27 11:31:21;  author: john;  state: Exp;
21071 New version 2.0, which has no anonymous unions, builds with
21072 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21073 ----------------------------
21074 revision 1.10
21075 date: 1995/02/03 17:08:29;  author: john;  state: Exp;
21076 Changed sound stuff to allow low memory usage.
21077 Also, changed so that Sounds isn't an array of digi_sounds, it
21078 is a ubyte pointing into GameSounds, this way the digi.c code that
21079 locks sounds won't accidentally unlock a sound that is already playing, but
21080 since it's Sounds[soundno] is different, it would erroneously be unlocked.
21081 ----------------------------
21082 revision 1.9
21083 date: 1995/01/24 14:33:49;  author: john;  state: Exp;
21084 *** empty log message ***
21085 ----------------------------
21086 revision 1.8
21087 date: 1995/01/24 14:32:35;  author: john;  state: Exp;
21088 Took out paging in code.
21089 ----------------------------
21090 revision 1.7
21091 date: 1995/01/23 12:30:17;  author: john;  state: Exp;
21092 Made debug code that mprintf what bitmap gets paged in.
21093 ----------------------------
21094 revision 1.6
21095 date: 1995/01/17 14:11:37;  author: john;  state: Exp;
21096 Added function that is called after level loaded.
21097 ----------------------------
21098 revision 1.5
21099 date: 1995/01/14 19:16:58;  author: john;  state: Exp;
21100 First version of new bitmap paging code.
21101 ----------------------------
21102 revision 1.4
21103 date: 1994/10/27 18:51:57;  author: john;  state: Exp;
21104 Added -piglet option that only loads needed textures for a 
21105 mine.  Only saved ~1MB, and code still doesn't free textures
21106 before you load a new mine.
21107 ----------------------------
21108 revision 1.3
21109 date: 1994/06/08 14:20:47;  author: john;  state: Exp;
21110 Made piggy dump before going into game.
21111 ----------------------------
21112 revision 1.2
21113 date: 1994/05/06 13:02:40;  author: john;  state: Exp;
21114 Added piggy stuff; worked on supertransparency
21115 ----------------------------
21116 revision 1.1
21117 date: 1994/05/06 11:47:46;  author: john;  state: Exp;
21118 Initial revision
21119 =============================================================================
21120 RCS file: /Smoke/miner/source/main/player.h,v
21121 Working file: main/player.h
21122 head: 1.1
21123 description: Structure information for the player
21124 ----------------------------
21125 revision 1.1
21126 date: 1995/05/16 16:01:11;  author: allender;  state: Exp;
21127 Initial revision
21128 ----------------------------
21129 revision 2.0
21130 date: 1995/02/27 11:30:25;  author: john;  state: Exp;
21131 New version 2.0, which has no anonymous unions, builds with
21132 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21133 ----------------------------
21134 revision 1.41
21135 date: 1994/12/20 17:56:43;  author: yuan;  state: Exp;
21136 Multiplayer object capability.
21137 ----------------------------
21138 revision 1.40
21139 date: 1994/12/02 15:04:42;  author: matt;  state: Exp;
21140 Fixed bogus weapon constants and arrays
21141 ----------------------------
21142 revision 1.39
21143 date: 1994/11/25 22:47:08;  author: matt;  state: Exp;
21144 Made saved game descriptions longer
21145 ----------------------------
21146 revision 1.38
21147 date: 1994/11/21 17:29:38;  author: matt;  state: Exp;
21148 Cleaned up sequencing & game saving for secret levels
21149 ----------------------------
21150 revision 1.37
21151 date: 1994/11/17 12:57:13;  author: rob;  state: Exp;
21152 Changed net_kills_level to net_killed_total.
21153 ----------------------------
21154 revision 1.36
21155 date: 1994/11/14 17:20:33;  author: rob;  state: Exp;
21156 Bumped player file version.
21157 ----------------------------
21158 revision 1.35
21159 date: 1994/11/04 19:55:06;  author: rob;  state: Exp;
21160 Changed a previously unused pad character to represent whether or not
21161 the player is connected to a net game (used to be objnum=-1 but we
21162 want to keep the objnum info in case of re-joins)
21163 ----------------------------
21164 revision 1.34
21165 date: 1994/10/22 14:13:54;  author: mike;  state: Exp;
21166 Add homing_object_dist field to player struct.
21167 ----------------------------
21168 revision 1.33
21169 date: 1994/10/22 00:08:45;  author: matt;  state: Exp;
21170 Fixed up problems with bonus & game sequencing
21171 Player doesn't get credit for hostages unless he gets them out alive
21172 ----------------------------
21173 revision 1.32
21174 date: 1994/10/21 20:43:03;  author: mike;  state: Exp;
21175 Add hostages_on_board to player struct.
21176 ----------------------------
21177 revision 1.31
21178 date: 1994/10/19 20:00:00;  author: john;  state: Exp;
21179 Added bonus points at the end of level based on skill level.
21180 ----------------------------
21181 revision 1.30
21182 date: 1994/10/19 15:14:24;  author: john;  state: Exp;
21183 Took % hits out of player structure, made %kills work properly.
21184 ----------------------------
21185 revision 1.29
21186 date: 1994/10/19 12:12:27;  author: john;  state: Exp;
21187 Added hour variable.
21188 ----------------------------
21189 revision 1.28
21190 date: 1994/10/17 17:24:48;  author: john;  state: Exp;
21191 Added starting_level to player struct.
21192 ----------------------------
21193 revision 1.27
21194 date: 1994/10/13 15:42:02;  author: mike;  state: Exp;
21195 Remove afterburner.
21196 ----------------------------
21197 revision 1.26
21198 date: 1994/10/10 17:00:23;  author: mike;  state: Exp;
21199 Lower number of players from 10 to 8.
21200 ----------------------------
21201 revision 1.25
21202 date: 1994/10/09 14:53:26;  author: matt;  state: Exp;
21203 Made player cockpit state & window size save/restore with saved games & automap
21204 ----------------------------
21205 revision 1.24
21206 date: 1994/10/08 20:24:10;  author: matt;  state: Exp;
21207 Added difficulty level to player structure for game load/save
21208 ----------------------------
21209 revision 1.23
21210 date: 1994/10/05 17:39:53;  author: rob;  state: Exp;
21211 Changed killer_objnum to a short (was char)
21212 ----------------------------
21213 revision 1.22
21214 date: 1994/10/03 22:59:07;  author: matt;  state: Exp;
21215 Limit callsign to 8 chars long, so we can use it as filename
21216 ----------------------------
21217 revision 1.21
21218 date: 1994/09/23 10:14:30;  author: mike;  state: Exp;
21219 Rename PLAYER_FLAGS_INVINCIBLE to PLAYER_FLAGS_INVULNERABLE.
21220 Add INVULNERABLE_TIME_MAX = 30 seconds.
21221 ----------------------------
21222 revision 1.20
21223 date: 1994/09/21 20:44:22;  author: matt;  state: Exp;
21224 Player explosion fireball now specified in bitmaps.tbl
21225 ----------------------------
21226 revision 1.19
21227 date: 1994/09/21 12:27:37;  author: mike;  state: Exp;
21228 Move CLOAK_TIME_MAX here from game.c
21229 ----------------------------
21230 revision 1.18
21231 date: 1994/09/16 13:10:16;  author: mike;  state: Exp;
21232 Add afterburner and cloak stuff.
21233 ----------------------------
21234 revision 1.17
21235 date: 1994/09/11 20:30:26;  author: matt;  state: Exp;
21236 Cleaned up thrust vars, changing a few names
21237 ----------------------------
21238 revision 1.16
21239 date: 1994/09/09 14:22:45;  author: matt;  state: Exp;
21240 Added extra gun for player
21241 ----------------------------
21242 revision 1.15
21243 date: 1994/09/07 13:30:11;  author: john;  state: Exp;
21244 Added code to tell how many packets were lost.
21245 ----------------------------
21246 revision 1.14
21247 date: 1994/09/02 11:56:33;  author: mike;  state: Exp;
21248 Alignment on the player struct.
21249 ----------------------------
21250 revision 1.13
21251 date: 1994/08/25 18:12:05;  author: matt;  state: Exp;
21252 Made player's weapons and flares fire from the positions on the 3d model.
21253 Also added support for quad lasers.
21254 ----------------------------
21255 revision 1.12
21256 date: 1994/08/22 15:49:40;  author: mike;  state: Exp;
21257 change spelling on num_missles -> num_missiles.
21258 ----------------------------
21259 revision 1.11
21260 date: 1994/08/18 10:47:32;  author: john;  state: Exp;
21261 Cleaned up game sequencing and player death stuff
21262 in preparation for making the player explode into
21263 pieces when dead.
21264 ----------------------------
21265 revision 1.10
21266 date: 1994/08/17 16:50:05;  author: john;  state: Exp;
21267 Added damaging fireballs, missiles.
21268 ----------------------------
21269 revision 1.9
21270 date: 1994/08/15 00:24:10;  author: john;  state: Exp;
21271 First version of netgame with players killing
21272 each other. still buggy...
21273 ----------------------------
21274 revision 1.8
21275 date: 1994/08/12 22:41:26;  author: john;  state: Exp;
21276 Took away Player_stats; add Players array.
21277 ----------------------------
21278 revision 1.7
21279 date: 1994/08/09 17:53:25;  author: adam;  state: Exp;
21280 *** empty log message ***
21281 ----------------------------
21282 revision 1.6
21283 date: 1994/07/13 00:15:05;  author: matt;  state: Exp;
21284 Moved all (or nearly all) of the values that affect player movement to 
21285 bitmaps.tbl
21286 ----------------------------
21287 revision 1.5
21288 date: 1994/07/08 21:44:17;  author: matt;  state: Exp;
21289 Made laser powerups saturate correctly
21290 ----------------------------
21291 revision 1.4
21292 date: 1994/07/07 14:59:02;  author: john;  state: Exp;
21293 Made radar powerups.
21294 ----------------------------
21295 revision 1.3
21296 date: 1994/07/02 13:49:39;  author: matt;  state: Exp;
21297 Cleaned up includes
21298 ----------------------------
21299 revision 1.2
21300 date: 1994/07/02 13:10:03;  author: matt;  state: Exp;
21301 Moved player stats struct from gameseq.h to player.h
21302 ----------------------------
21303 revision 1.1
21304 date: 1994/07/02 11:00:43;  author: matt;  state: Exp;
21305 Initial revision
21306 =============================================================================
21307 RCS file: /BigRed/miner/source/main/playsave.c,v
21308 Working file: main/playsave.c
21309 head: 1.1
21310 description: Functions to load & save player games
21311 ----------------------------
21312 revision 1.1
21313 date: 1995/12/05 16:05:47;  author: allender;  state: Exp;
21314 Initial revision
21315 ----------------------------
21316 revision 1.10
21317 date: 1995/11/03 12:53:24;  author: allender;  state: Exp;
21318 shareware changes
21319 ----------------------------
21320 revision 1.9
21321 date: 1995/10/31 10:19:12;  author: allender;  state: Exp;
21322 shareware stuff
21323 ----------------------------
21324 revision 1.8
21325 date: 1995/10/23 14:50:11;  author: allender;  state: Exp;
21326 set control type for new player *before* calling kc_set_controls
21327 ----------------------------
21328 revision 1.7
21329 date: 1995/10/21 22:25:31;  author: allender;  state: Exp;
21330 *** empty log message ***
21331 ----------------------------
21332 revision 1.6
21333 date: 1995/10/17 15:57:42;  author: allender;  state: Exp;
21334 removed line setting wrong COnfig_control_type
21335 ----------------------------
21336 revision 1.5
21337 date: 1995/10/17 13:16:44;  author: allender;  state: Exp;
21338 new controller support
21339 ----------------------------
21340 revision 1.4
21341 date: 1995/08/24 16:03:38;  author: allender;  state: Exp;
21342 call joystick code when player file uses joystick
21343 ----------------------------
21344 revision 1.3
21345 date: 1995/08/03 15:15:39;  author: allender;  state: Exp;
21346 got player save file working (more to go for shareware)
21347 ----------------------------
21348 revision 1.2
21349 date: 1995/08/01 13:57:20;  author: allender;  state: Exp;
21350 macified the player file stuff -- in a seperate folder
21351 ----------------------------
21352 revision 1.1
21353 date: 1995/05/16 15:30:00;  author: allender;  state: Exp;
21354 Initial revision
21355 ----------------------------
21356 revision 2.2
21357 date: 1995/03/24 17:48:21;  author: john;  state: Exp;
21358 Made player files from saturn excrement the highest level for
21359 normal descent levels.
21360 ----------------------------
21361 revision 2.1
21362 date: 1995/03/21 14:38:49;  author: john;  state: Exp;
21363 Ifdef'd out the NETWORK code.
21364 ----------------------------
21365 revision 2.0
21366 date: 1995/02/27 11:27:59;  author: john;  state: Exp;
21367 New version 2.0, which has no anonymous unions, builds with
21368 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21369 ----------------------------
21370 revision 1.57
21371 date: 1995/02/13 20:34:55;  author: john;  state: Exp;
21372 Lintized
21373 ----------------------------
21374 revision 1.56
21375 date: 1995/02/13 13:23:24;  author: john;  state: Exp;
21376 Fixed bug with new player joystick selection.
21377 ----------------------------
21378 revision 1.55
21379 date: 1995/02/13 12:01:19;  author: john;  state: Exp;
21380 Fixed bug with joystick throttle still asking for 
21381 calibration with new pilots.
21382 ----------------------------
21383 revision 1.54
21384 date: 1995/02/13 10:29:12;  author: john;  state: Exp;
21385 Fixed bug with creating new player not resetting everything to default.
21386 ----------------------------
21387 revision 1.53
21388 date: 1995/02/03 10:58:46;  author: john;  state: Exp;
21389 Added code to save shareware style saved games into new format...
21390 Also, made new player file format not have the saved game array in it.
21391 ----------------------------
21392 revision 1.52
21393 date: 1995/02/02 21:09:28;  author: matt;  state: Exp;
21394 Let player start of level 8 if he made it to level 7 in the shareware
21395 ----------------------------
21396 revision 1.51
21397 date: 1995/02/02 18:50:14;  author: john;  state: Exp;
21398 Added warning for FCS when new pilot chooses.
21399 ----------------------------
21400 revision 1.50
21401 date: 1995/02/02 11:21:34;  author: john;  state: Exp;
21402 Made joystick calibrate when new user selects.
21403 ----------------------------
21404 revision 1.49
21405 date: 1995/02/01 18:06:38;  author: rob;  state: Exp;
21406 Put defaults macros into descent.tex
21407 ----------------------------
21408 revision 1.48
21409 date: 1995/01/25 14:37:53;  author: john;  state: Exp;
21410 Made joystick only prompt for calibration once...
21411 ----------------------------
21412 revision 1.47
21413 date: 1995/01/24 19:37:12;  author: matt;  state: Exp;
21414 Took out incorrect mprintf
21415 ----------------------------
21416 revision 1.46
21417 date: 1995/01/22 18:57:22;  author: matt;  state: Exp;
21418 Made player highest level work with missions
21419 ----------------------------
21420 revision 1.45
21421 date: 1995/01/21 16:36:05;  author: matt;  state: Exp;
21422 Made starting level system work for now, pending integration with
21423 mission code.
21424 ----------------------------
21425 revision 1.44
21426 date: 1995/01/20 22:47:32;  author: matt;  state: Exp;
21427 Mission system implemented, though imcompletely
21428 ----------------------------
21429 revision 1.43
21430 date: 1995/01/04 14:58:39;  author: rob;  state: Exp;
21431 Fixed for shareware build.
21432 ----------------------------
21433 revision 1.42
21434 date: 1995/01/04 11:36:43;  author: rob;  state: Exp;
21435 Added compatibility with older shareware pilot files.
21436 ----------------------------
21437 revision 1.41
21438 date: 1995/01/03 11:01:58;  author: rob;  state: Exp;
21439 fixed a default macro.
21440 ----------------------------
21441 revision 1.40
21442 date: 1995/01/03 10:44:06;  author: rob;  state: Exp;
21443 Added default taunt macros.
21444 ----------------------------
21445 revision 1.39
21446 date: 1994/12/13 10:01:16;  author: allender;  state: Exp;
21447 pop up message box when unable to correctly save player file
21448 ----------------------------
21449 revision 1.38
21450 date: 1994/12/12 11:37:14;  author: matt;  state: Exp;
21451 Fixed auto leveling defaults & saving
21452 ----------------------------
21453 revision 1.37
21454 date: 1994/12/12 00:26:59;  author: matt;  state: Exp;
21455 Added support for no-levelling option
21456 ----------------------------
21457 revision 1.36
21458 date: 1994/12/10 19:09:54;  author: matt;  state: Exp;
21459 Added assert for valid player number when loading game
21460 ----------------------------
21461 revision 1.35
21462 date: 1994/12/08 10:53:07;  author: rob;  state: Exp;
21463 Fixed a bug in highest_level tracking.
21464 ----------------------------
21465 revision 1.34
21466 date: 1994/12/08 10:01:36;  author: john;  state: Exp;
21467 Changed the way the player callsign stuff works.
21468 ----------------------------
21469 revision 1.33
21470 date: 1994/12/07 18:30:38;  author: rob;  state: Exp;
21471 Load highest level along with player (used to be only if higher)
21472 Capped at LAST_LEVEL in case a person loads a registered player in shareware.
21473 ----------------------------
21474 revision 1.32
21475 date: 1994/12/03 16:01:12;  author: matt;  state: Exp;
21476 When player file has bad version, force player to choose another
21477 ----------------------------
21478 revision 1.31
21479 date: 1994/12/02 19:54:00;  author: yuan;  state: Exp;
21480 Localization.
21481 ----------------------------
21482 revision 1.30
21483 date: 1994/12/02 11:01:36;  author: yuan;  state: Exp;
21484 Localization.
21485 ----------------------------
21486 revision 1.29
21487 date: 1994/11/29 03:46:28;  author: john;  state: Exp;
21488 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
21489 command line arg.
21490 ----------------------------
21491 revision 1.28
21492 date: 1994/11/29 01:10:23;  author: john;  state: Exp;
21493 Took out code that allowed new players to
21494 configure keyboard.
21495 ----------------------------
21496 revision 1.27
21497 date: 1994/11/25 22:47:10;  author: matt;  state: Exp;
21498 Made saved game descriptions longer
21499 ----------------------------
21500 revision 1.26
21501 date: 1994/11/22 12:10:42;  author: rob;  state: Exp;
21502 Fixed file handle left open if player file versions don't
21503 match.
21504 ----------------------------
21505 revision 1.25
21506 date: 1994/11/21 19:35:30;  author: john;  state: Exp;
21507 Replaced calls to joy_init with if (joy_present)
21508 ----------------------------
21509 revision 1.24
21510 date: 1994/11/21 17:29:34;  author: matt;  state: Exp;
21511 Cleaned up sequencing & game saving for secret levels
21512 ----------------------------
21513 revision 1.23
21514 date: 1994/11/21 11:10:01;  author: john;  state: Exp;
21515 Fixed bug with read-only .plr file making the config file 
21516 not update.
21517 ----------------------------
21518 revision 1.22
21519 date: 1994/11/20 19:03:08;  author: john;  state: Exp;
21520 Fixed bug with if not having a joystick, default 
21521 player input device is cyberman.
21522 ----------------------------
21523 revision 1.21
21524 date: 1994/11/17 12:24:07;  author: matt;  state: Exp;
21525 Made an array the right size, to fix error loading games
21526 ----------------------------
21527 revision 1.20
21528 date: 1994/11/14 17:52:54;  author: allender;  state: Exp;
21529 add call to WriteConfigFile when player files gets written
21530 ----------------------------
21531 revision 1.19
21532 date: 1994/11/14 17:19:23;  author: rob;  state: Exp;
21533 Removed gamma, joystick calibration, and sound settings from player file.
21534 Added default difficulty and multi macros.
21535 ----------------------------
21536 revision 1.18
21537 date: 1994/11/07 14:01:23;  author: john;  state: Exp;
21538 Changed the gamma correction sequencing.
21539 ----------------------------
21540 revision 1.17
21541 date: 1994/11/05 17:22:49;  author: john;  state: Exp;
21542 Fixed lots of sequencing problems with newdemo stuff.
21543 ----------------------------
21544 revision 1.16
21545 date: 1994/11/01 16:40:11;  author: john;  state: Exp;
21546 Added Gamma correction.
21547 ----------------------------
21548 revision 1.15
21549 date: 1994/10/24 19:56:50;  author: john;  state: Exp;
21550 Made the new user setup prompt for config options.
21551 ----------------------------
21552 revision 1.14
21553 date: 1994/10/24 17:44:21;  author: john;  state: Exp;
21554 Added stereo channel reversing.
21555 ----------------------------
21556 revision 1.13
21557 date: 1994/10/24 16:05:12;  author: matt;  state: Exp;
21558 Improved handling of player names that are the names of DOS devices
21559 ----------------------------
21560 revision 1.12
21561 date: 1994/10/22 00:08:51;  author: matt;  state: Exp;
21562 Fixed up problems with bonus & game sequencing
21563 Player doesn't get credit for hostages unless he gets them out alive
21564 ----------------------------
21565 revision 1.11
21566 date: 1994/10/19 19:59:57;  author: john;  state: Exp;
21567 Added bonus points at the end of level based on skill level.
21568 ----------------------------
21569 revision 1.10
21570 date: 1994/10/19 15:14:34;  author: john;  state: Exp;
21571 Took % hits out of player structure, made %kills work properly.
21572 ----------------------------
21573 revision 1.9
21574 date: 1994/10/19 12:44:26;  author: john;  state: Exp;
21575 Added hours field to player structure.
21576 ----------------------------
21577 revision 1.8
21578 date: 1994/10/17 17:24:34;  author: john;  state: Exp;
21579 Added starting_level to player struct.
21580 ----------------------------
21581 revision 1.7
21582 date: 1994/10/17 13:07:15;  author: john;  state: Exp;
21583 Moved the descent.cfg info into the player config file.
21584 ----------------------------
21585 revision 1.6
21586 date: 1994/10/09 14:54:31;  author: matt;  state: Exp;
21587 Made player cockpit state & window size save/restore with saved games & automap
21588 ----------------------------
21589 revision 1.5
21590 date: 1994/10/08 23:08:09;  author: matt;  state: Exp;
21591 Added error check & handling for game load/save disk io
21592 ----------------------------
21593 revision 1.4
21594 date: 1994/10/05 17:40:54;  author: rob;  state: Exp;
21595 Bumped save_file_version to 5 due to change in player.h
21596 ----------------------------
21597 revision 1.3
21598 date: 1994/10/03 23:00:54;  author: matt;  state: Exp;
21599 New file version for shorter callsigns
21600 ----------------------------
21601 revision 1.2
21602 date: 1994/09/28 17:25:05;  author: matt;  state: Exp;
21603 Added first draft of game save/load system
21604 ----------------------------
21605 revision 1.1
21606 date: 1994/09/27 14:39:12;  author: matt;  state: Exp;
21607 Initial revision
21608 =============================================================================
21609 RCS file: /Smoke/miner/source/main/playsave.h,v
21610 Working file: main/playsave.h
21611 head: 1.1
21612 description: Header for playsave.c
21613 ----------------------------
21614 revision 1.1
21615 date: 1995/05/16 16:01:19;  author: allender;  state: Exp;
21616 Initial revision
21617 ----------------------------
21618 revision 2.0
21619 date: 1995/02/27 11:31:24;  author: john;  state: Exp;
21620 New version 2.0, which has no anonymous unions, builds with
21621 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21622 ----------------------------
21623 revision 1.10
21624 date: 1995/01/22 18:57:04;  author: matt;  state: Exp;
21625 Made player highest level work with missions
21626 ----------------------------
21627 revision 1.9
21628 date: 1994/12/12 11:37:15;  author: matt;  state: Exp;
21629 Fixed auto leveling defaults & saving
21630 ----------------------------
21631 revision 1.8
21632 date: 1994/12/08 10:01:37;  author: john;  state: Exp;
21633 Changed the way the player callsign stuff works.
21634 ----------------------------
21635 revision 1.7
21636 date: 1994/11/25 22:46:56;  author: matt;  state: Exp;
21637 Made saved game descriptions longer
21638 ----------------------------
21639 revision 1.6
21640 date: 1994/10/24 20:00:02;  author: john;  state: Exp;
21641 Added prototype for read_player_file.
21642 ----------------------------
21643 revision 1.5
21644 date: 1994/10/17 13:07:12;  author: john;  state: Exp;
21645 Moved the descent.cfg info into the player config file.
21646 ----------------------------
21647 revision 1.4
21648 date: 1994/10/09 14:54:32;  author: matt;  state: Exp;
21649 Made player cockpit state & window size save/restore with saved games & automap
21650 ----------------------------
21651 revision 1.3
21652 date: 1994/10/08 23:08:09;  author: matt;  state: Exp;
21653 Added error check & handling for game load/save disk io
21654 ----------------------------
21655 revision 1.2
21656 date: 1994/09/28 17:25:06;  author: matt;  state: Exp;
21657 Added first draft of game save/load system
21658 ----------------------------
21659 revision 1.1
21660 date: 1994/09/27 15:47:23;  author: matt;  state: Exp;
21661 Initial revision
21662 =============================================================================
21663 RCS file: /Smoke/miner/source/main/polyobj.c,v
21664 Working file: main/polyobj.c
21665 head: 1.3
21666 description: Hacked-in polygon objects
21667 ----------------------------
21668 revision 1.3
21669 date: 1995/10/25 14:07:07;  author: allender;  state: Exp;
21670 removed load_poly_model function
21671 ----------------------------
21672 revision 1.2
21673 date: 1995/09/14 14:10:20;  author: allender;  state: Exp;
21674 two funtions should be void
21675 ----------------------------
21676 revision 1.1
21677 date: 1995/05/16 15:30:08;  author: allender;  state: Exp;
21678 Initial revision
21679 ----------------------------
21680 revision 2.0
21681 date: 1995/02/27 11:32:44;  author: john;  state: Exp;
21682 New version 2.0, which has no anonymous unions, builds with
21683 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21684 ----------------------------
21685 revision 1.64
21686 date: 1995/01/14 19:16:43;  author: john;  state: Exp;
21687 First version of new bitmap paging code.
21688 ----------------------------
21689 revision 1.63
21690 date: 1994/12/14 18:06:54;  author: matt;  state: Exp;
21691 Removed compile warnings
21692 ----------------------------
21693 revision 1.62
21694 date: 1994/12/09 17:54:31;  author: john;  state: Exp;
21695 Made the CFILE's close right after reading in data.
21696 ----------------------------
21697 revision 1.61
21698 date: 1994/12/09 16:13:28;  author: mike;  state: Exp;
21699 speedup pof file reading, but still horribly slow using hog file...problem somewhere else.
21700 ----------------------------
21701 revision 1.60
21702 date: 1994/12/08 17:41:20;  author: yuan;  state: Exp;
21703 Cfiling stuff.
21704 ----------------------------
21705 revision 1.59
21706 date: 1994/11/21 11:02:19;  author: matt;  state: Exp;
21707 Added error checking
21708 ----------------------------
21709 revision 1.58
21710 date: 1994/11/14 11:32:49;  author: matt;  state: Exp;
21711 Allow switching to simpler models even when alt_textures specified
21712 ----------------------------
21713 revision 1.57
21714 date: 1994/11/13 21:15:24;  author: matt;  state: Exp;
21715 Added basic support for more than one level of detail simplification
21716 ----------------------------
21717 revision 1.56
21718 date: 1994/11/11 19:29:25;  author: matt;  state: Exp;
21719 Added code to show low detail polygon models
21720 ----------------------------
21721 revision 1.55
21722 date: 1994/11/10 14:02:57;  author: matt;  state: Exp;
21723 Hacked in support for player ships with different textures
21724 ----------------------------
21725 revision 1.54
21726 date: 1994/11/03 11:01:59;  author: matt;  state: Exp;
21727 Made robot pics lighted
21728 ----------------------------
21729 revision 1.53
21730 date: 1994/11/02 16:18:34;  author: matt;  state: Exp;
21731 Moved draw_model_picture() out of editor
21732 ----------------------------
21733 revision 1.52
21734 date: 1994/10/18 14:38:11;  author: matt;  state: Exp;
21735 Restored assert now that bug is fixed
21736 ----------------------------
21737 revision 1.51
21738 date: 1994/10/17 21:35:03;  author: matt;  state: Exp;
21739 Added support for new Control Center/Main Reactor
21740 ----------------------------
21741 revision 1.50
21742 date: 1994/10/14 17:46:23;  author: yuan;  state: Exp;
21743 Made the soft Int3 only work in net mode.
21744 ----------------------------
21745 revision 1.49
21746 date: 1994/10/14 17:43:47;  author: yuan;  state: Exp;
21747 Added soft int3's instead of Asserts  for some common network bugs.
21748 ----------------------------
21749 revision 1.48
21750 date: 1994/10/14 17:09:04;  author: yuan;  state: Exp;
21751 Made Assert on line 610 be if in an attempt
21752 to bypass.
21753 ----------------------------
21754 revision 1.47
21755 date: 1994/09/09 14:23:42;  author: matt;  state: Exp;
21756 Added glow code to polygon models for engine glow
21757 ----------------------------
21758 revision 1.46
21759 date: 1994/08/26 18:03:30;  author: matt;  state: Exp;
21760 Added code to remap polygon model numbers by matching filenames
21761 ----------------------------
21762 revision 1.45
21763 date: 1994/08/26 15:35:58;  author: matt;  state: Exp;
21764 Made eclips usable on more than one object at a time
21765 ----------------------------
21766 revision 1.44
21767 date: 1994/08/25 18:11:58;  author: matt;  state: Exp;
21768 Made player's weapons and flares fire from the positions on the 3d model.
21769 Also added support for quad lasers.
21770 ----------------------------
21771 revision 1.43
21772 date: 1994/07/25 00:14:18;  author: matt;  state: Exp;
21773 Made a couple of minor changes for the drivethrough
21774 ----------------------------
21775 revision 1.42
21776 date: 1994/07/25 00:02:41;  author: matt;  state: Exp;
21777 Various changes to accomodate new 3d, which no longer takes point numbers
21778 as parms, and now only takes pointers to points.
21779 =============================================================================
21780 RCS file: /Smoke/miner/source/main/polyobj.h,v
21781 Working file: main/polyobj.h
21782 head: 1.2
21783 description: Header for polyobj.c, the polygon object code
21784 ----------------------------
21785 revision 1.2
21786 date: 1995/09/14 14:10:30;  author: allender;  state: Exp;
21787 two functions should be void
21788 ----------------------------
21789 revision 1.1
21790 date: 1995/05/16 16:01:27;  author: allender;  state: Exp;
21791 Initial revision
21792 ----------------------------
21793 revision 2.1
21794 date: 1995/02/27 18:21:54;  author: john;  state: Exp;
21795 Added extern for robot_points.
21796 ----------------------------
21797 revision 2.0
21798 date: 1995/02/27 11:29:58;  author: john;  state: Exp;
21799 New version 2.0, which has no anonymous unions, builds with
21800 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21801 ----------------------------
21802 revision 1.28
21803 date: 1995/01/12 12:10:16;  author: adam;  state: Exp;
21804 *** empty log message ***
21805 ----------------------------
21806 revision 1.27
21807 date: 1994/11/11 19:28:58;  author: matt;  state: Exp;
21808 Added code to show low detail polygon models
21809 ----------------------------
21810 revision 1.26
21811 date: 1994/11/10 14:03:05;  author: matt;  state: Exp;
21812 Hacked in support for player ships with different textures
21813 ----------------------------
21814 revision 1.25
21815 date: 1994/11/02 16:18:24;  author: matt;  state: Exp;
21816 Moved draw_model_picture() out of editor
21817 ----------------------------
21818 revision 1.24
21819 date: 1994/10/18 10:55:57;  author: adam;  state: Exp;
21820 bumped MAX_POLYGON_OBJECTS up
21821 ----------------------------
21822 revision 1.23
21823 date: 1994/10/17 21:35:01;  author: matt;  state: Exp;
21824 Added support for new Control Center/Main Reactor
21825 ----------------------------
21826 revision 1.22
21827 date: 1994/09/09 14:23:42;  author: matt;  state: Exp;
21828 Added glow code to polygon models for engine glow
21829 ----------------------------
21830 revision 1.21
21831 date: 1994/08/26 18:03:43;  author: matt;  state: Exp;
21832 Added code to remap polygon model numbers by matching filenames
21833 ----------------------------
21834 revision 1.20
21835 date: 1994/08/26 15:36:00;  author: matt;  state: Exp;
21836 Made eclips usable on more than one object at a time
21837 ----------------------------
21838 revision 1.19
21839 date: 1994/07/22 20:44:23;  author: matt;  state: Exp;
21840 Killed unused fields in polygon model structure
21841 ----------------------------
21842 revision 1.18
21843 date: 1994/06/16 17:52:11;  author: matt;  state: Exp;
21844 Made submodels rotate around their centers, not their pivot points
21845 ----------------------------
21846 revision 1.17
21847 date: 1994/06/14 12:22:05;  author: matt;  state: Exp;
21848 Integrated with drive code, using #defines to switch versions
21849 ----------------------------
21850 revision 1.16
21851 date: 1994/06/09 16:25:01;  author: matt;  state: Exp;
21852 Fixed confusion with two constants, MAX_SUBOBJS & MAX_SUBMODELS, which
21853 were used for the same things, but had different values.
21854 ----------------------------
21855 revision 1.15
21856 date: 1994/06/08 10:56:38;  author: matt;  state: Exp;
21857 Improved debris: now get submodel size from new POF files; debris now has
21858 limited life; debris can now be blown up.
21859 ----------------------------
21860 revision 1.14
21861 date: 1994/06/07 16:51:57;  author: matt;  state: Exp;
21862 Made object lighting work correctly; changed name of Ambient_light to
21863 Dynamic_light; cleaned up polygobj object rendering a little.
21864 ----------------------------
21865 revision 1.13
21866 date: 1994/05/26 21:08:59;  author: matt;  state: Exp;
21867 Moved robot stuff out of polygon model and into robot_info struct
21868 Made new file, robot.c, to deal with robots
21869 ----------------------------
21870 revision 1.12
21871 date: 1994/05/18 19:35:05;  author: matt;  state: Exp;
21872 Added fields for the rest of the subobj data
21873 ----------------------------
21874 revision 1.11
21875 date: 1994/05/16 16:17:13;  author: john;  state: Exp;
21876 Bunch of stuff on my Inferno Task list May16-23
21877 ----------------------------
21878 revision 1.10
21879 date: 1994/05/13 11:08:31;  author: matt;  state: Exp;
21880 Added support for multiple gun positions on polygon models
21881 ----------------------------
21882 revision 1.9
21883 date: 1994/04/29 09:18:04;  author: matt;  state: Exp;
21884 Added support for multiple-piece explosions
21885 ----------------------------
21886 revision 1.8
21887 date: 1994/04/28 18:44:18;  author: matt;  state: Exp;
21888 Took out code for old-style (non-interpreted) objects.
21889 ----------------------------
21890 revision 1.7
21891 date: 1994/03/25 16:54:38;  author: matt;  state: Exp;
21892 draw_polygon_object() now takes pointer to animation data
21893 ----------------------------
21894 revision 1.6
21895 date: 1994/03/15 17:44:33;  author: matt;  state: Exp;
21896 Changed a bunch of names
21897 ----------------------------
21898 revision 1.5
21899 date: 1994/03/07 20:02:29;  author: matt;  state: Exp;
21900 Added pointer to normals in polyobj struct
21901 Added prototype for draw_polygon_object()
21902 ----------------------------
21903 revision 1.4
21904 date: 1994/03/01 17:16:19;  author: matt;  state: Exp;
21905 Lots of changes to support loadable binary ".pof" robot files
21906 ----------------------------
21907 revision 1.3
21908 date: 1994/01/31 15:51:20;  author: matt;  state: Exp;
21909 Added ptr for rgb table for robot colors
21910 ----------------------------
21911 revision 1.2
21912 date: 1994/01/28 13:52:01;  author: matt;  state: Exp;
21913 Added flesh to this previously skeletal file.
21914 ----------------------------
21915 revision 1.1
21916 date: 1994/01/28 13:47:42;  author: matt;  state: Exp;
21917 Initial revision
21918 =============================================================================
21919 RCS file: /Smoke/miner/source/main/powerup.c,v
21920 Working file: main/powerup.c
21921 head: 1.2
21922 description: Code for powerup objects.
21923 ----------------------------
21924 revision 1.2
21925 date: 1995/10/31 10:18:55;  author: allender;  state: Exp;
21926 shareware stuff
21927 ----------------------------
21928 revision 1.1
21929 date: 1995/05/16 15:30:16;  author: allender;  state: Exp;
21930 Initial revision
21931 ----------------------------
21932 revision 2.2
21933 date: 1995/03/24 13:50:36;  author: john;  state: Exp;
21934 Added mega-wowie zowie to release.
21935 ----------------------------
21936 revision 2.1
21937 date: 1995/03/21 14:38:39;  author: john;  state: Exp;
21938 Ifdef'd out the NETWORK code.
21939 ----------------------------
21940 revision 2.0
21941 date: 1995/02/27 11:27:15;  author: john;  state: Exp;
21942 New version 2.0, which has no anonymous unions, builds with
21943 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
21944 ----------------------------
21945 revision 1.94
21946 date: 1995/02/22 13:46:03;  author: allender;  state: Exp;
21947 remove anonymous unions from object structure
21948 ----------------------------
21949 revision 1.93
21950 date: 1995/02/06 15:52:51;  author: mike;  state: Exp;
21951 add mini megawow powerup for giving reasonable weapons.
21952 ----------------------------
21953 revision 1.92
21954 date: 1995/01/23 22:49:59;  author: mike;  state: Exp;
21955 drop energy instead of primary weapon if you have primary weapon
21956 (drop nothing if want to drop vulcan ammo and you are maxed out)
21957 if you have primary weapon and primary weapon there, get energy instead.
21958 ----------------------------
21959 revision 1.91
21960 date: 1995/01/19 09:42:22;  author: allender;  state: Exp;
21961 record laser levels for demos
21962 ----------------------------
21963 revision 1.90
21964 date: 1994/12/31 12:28:01;  author: rob;  state: Exp;
21965 Added sound for coop key grabs.
21966 ----------------------------
21967 revision 1.89
21968 date: 1994/12/19 19:55:17;  author: rob;  state: Exp;
21969 Fixing key semantics for coop game.
21970 ----------------------------
21971 revision 1.88
21972 date: 1994/12/07 12:55:21;  author: mike;  state: Exp;
21973 tweak vulcan amounts.
21974 ----------------------------
21975 revision 1.87
21976 date: 1994/12/06 13:55:36;  author: matt;  state: Exp;
21977 Made shield & energy powerup messages round to match HUD message
21978 ----------------------------
21979 revision 1.86
21980 date: 1994/12/03 19:03:57;  author: matt;  state: Exp;
21981 Fixed vulcan ammo HUD message
21982 ----------------------------
21983 revision 1.85
21984 date: 1994/11/29 11:35:41;  author: rob;  state: Exp;
21985 Added sound casting for grabbing powerups.
21986 ----------------------------
21987 revision 1.84
21988 date: 1994/11/28 11:26:38;  author: matt;  state: Exp;
21989 Cleaned up hud message printing for picking up weapons
21990 ----------------------------
21991 revision 1.83
21992 date: 1994/11/27 23:14:01;  author: matt;  state: Exp;
21993 Made changes for new mprintf calling convention
21994 ----------------------------
21995 revision 1.82
21996 date: 1994/11/21 16:02:51;  author: mike;  state: Exp;
21997 comment out unused powerups.
21998 ----------------------------
21999 revision 1.81
22000 date: 1994/11/20 18:25:47;  author: john;  state: Exp;
22001 Fixed some #ifndef RELEASE inconsistancies.
22002 ----------------------------
22003 revision 1.80
22004 date: 1994/11/19 23:54:13;  author: mike;  state: Exp;
22005 limit megawowiezowie to shareware powerups if in shareware version.
22006 ----------------------------
22007 revision 1.79
22008 date: 1994/11/14 16:06:16;  author: yuan;  state: Exp;
22009 Made cloak and invulnerability only picked up once.
22010 ----------------------------
22011 revision 1.78
22012 date: 1994/11/07 17:41:06;  author: mike;  state: Exp;
22013 messages for when you're fully stocked with missiles.
22014 ----------------------------
22015 revision 1.77
22016 date: 1994/10/28 14:42:50;  author: john;  state: Exp;
22017 Added sound volumes to all sound calls.
22018 ----------------------------
22019 revision 1.76
22020 date: 1994/10/26 15:55:23;  author: yuan;  state: Exp;
22021 Made vulcan cannon give 100 ammo if it has less than that.
22022 ----------------------------
22023 revision 1.75
22024 date: 1994/10/26 15:54:57;  author: yuan;  state: Exp;
22025 *** empty log message ***
22026 ----------------------------
22027 revision 1.74
22028 date: 1994/10/25 14:31:25;  author: allender;  state: Exp;
22029 Fixed bug where getting cloak powerup while cloaked resulted in
22030 player being cloaked forever.
22031 ----------------------------
22032 revision 1.73
22033 date: 1994/10/25 10:51:21;  author: matt;  state: Exp;
22034 Vulcan cannon powerups now contain ammo count
22035 ----------------------------
22036 revision 1.72
22037 date: 1994/10/21 20:41:32;  author: mike;  state: Exp;
22038 Fix silly backwards (- instead of +) bug in invulnerability powerup.
22039 ----------------------------
22040 revision 1.71
22041 date: 1994/10/20 09:49:23;  author: mike;  state: Exp;
22042 Fix up powerups in some way.
22043 ----------------------------
22044 revision 1.70
22045 date: 1994/10/19 11:16:25;  author: mike;  state: Exp;
22046 Limit amount of each type of ammo player can hold.
22047 ----------------------------
22048 revision 1.69
22049 date: 1994/10/17 14:12:11;  author: matt;  state: Exp;
22050 Added sound for powerup disappearance effect
22051 ----------------------------
22052 revision 1.68
22053 date: 1994/10/17 14:07:04;  author: mike;  state: Exp;
22054 Make shields and energy max out at 200.
22055 ----------------------------
22056 revision 1.67
22057 date: 1994/10/16 12:43:37;  author: mike;  state: Exp;
22058 Don't allow you to pick up a primary weapon, or invulnerability, you already have.
22059 Make cloak time additive.
22060 ----------------------------
22061 revision 1.66
22062 date: 1994/10/15 19:05:30;  author: mike;  state: Exp;
22063 Define constants for vulcan ammo amounts.
22064 ----------------------------
22065 revision 1.65
22066 date: 1994/10/14 15:57:28;  author: mike;  state: Exp;
22067 When you pick up a laser boost or quad_laser powerup, update weapon display.
22068 ----------------------------
22069 revision 1.64
22070 date: 1994/10/13 10:57:51;  author: adam;  state: Exp;
22071 fiddled with powerup disappearance
22072 ----------------------------
22073 revision 1.63
22074 date: 1994/10/12 13:07:33;  author: mike;  state: Exp;
22075 Make powerup play vclip when it goes away.
22076 ----------------------------
22077 revision 1.62
22078 date: 1994/10/12 08:04:42;  author: mike;  state: Exp;
22079 Make proximity powerup worth 4 bombs.
22080 ----------------------------
22081 revision 1.61
22082 date: 1994/10/08 23:37:33;  author: matt;  state: Exp;
22083 Don't pick up weapons you already have; also fixed auto_select bug
22084 for seconary weapons
22085 ----------------------------
22086 revision 1.60
22087 date: 1994/10/08 15:41:00;  author: mike;  state: Exp;
22088 Diminish palette effect due to powerups.
22089 ----------------------------
22090 revision 1.59
22091 date: 1994/10/07 23:37:45;  author: matt;  state: Exp;
22092 Made weapons select when pick up better one
22093 ----------------------------
22094 revision 1.58
22095 date: 1994/10/07 22:09:20;  author: rob;  state: Exp;
22096 Added network hook for grabbing the cloaking device.
22097 =============================================================================
22098 RCS file: /Smoke/miner/source/main/powerup.h,v
22099 Working file: main/powerup.h
22100 head: 1.1
22101 description: Powerup header file.
22102 ----------------------------
22103 revision 1.1
22104 date: 1995/05/16 16:01:35;  author: allender;  state: Exp;
22105 Initial revision
22106 ----------------------------
22107 revision 2.0
22108 date: 1995/02/27 11:27:35;  author: john;  state: Exp;
22109 New version 2.0, which has no anonymous unions, builds with
22110 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
22111 ----------------------------
22112 revision 1.34
22113 date: 1995/02/06 15:52:37;  author: mike;  state: Exp;
22114 add mini megawow powerup for giving reasonable weapons.
22115 ----------------------------
22116 revision 1.33
22117 date: 1995/01/30 17:14:11;  author: mike;  state: Exp;
22118 halve rate of vulcan ammo consumption.
22119 ----------------------------
22120 revision 1.32
22121 date: 1995/01/15 20:47:56;  author: mike;  state: Exp;
22122 add lighting field to powerups.
22123 ----------------------------
22124 revision 1.31
22125 date: 1994/12/12 21:39:58;  author: matt;  state: Exp;
22126 Changed vulcan ammo: 10K max, 5K w/weapon, 1250 per powerup
22127 ----------------------------
22128 revision 1.30
22129 date: 1994/12/07 12:55:26;  author: mike;  state: Exp;
22130 tweak vulcan amounts.
22131 ----------------------------
22132 revision 1.29
22133 date: 1994/12/02 20:06:46;  author: matt;  state: Exp;
22134 Made vulcan ammo print at approx 25 times actual
22135 ----------------------------
22136 revision 1.28
22137 date: 1994/10/26 15:56:27;  author: yuan;  state: Exp;
22138 Made vulcan cannon give 100 ammo if it has less than that.
22139 ----------------------------
22140 revision 1.27
22141 date: 1994/10/15 19:07:10;  author: mike;  state: Exp;
22142 Define constants for amount of vulcan ammo per powerup.
22143 ----------------------------
22144 revision 1.26
22145 date: 1994/09/26 13:29:38;  author: matt;  state: Exp;
22146 Added extra life each 100,000 points, and show icons on HUD for num lives
22147 ----------------------------
22148 revision 1.25
22149 date: 1994/09/22 19:00:25;  author: mike;  state: Exp;
22150 Kill constants ENERGY_BOOST and SHIELD_BOOST: it's now difficulty level dependent.
22151 ----------------------------
22152 revision 1.24
22153 date: 1994/09/20 19:46:11;  author: mike;  state: Exp;
22154 Fix powerup number assignments.
22155 ----------------------------
22156 revision 1.23
22157 date: 1994/09/02 11:53:34;  author: mike;  state: Exp;
22158 Add the megawow powerup.  If you don't know about it, that's because it's a secret.
22159 ----------------------------
22160 revision 1.22
22161 date: 1994/09/01 10:41:35;  author: matt;  state: Exp;
22162 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
22163 correctly if width & height of bitmap are different.
22164 ----------------------------
22165 revision 1.21
22166 date: 1994/08/31 19:26:14;  author: mike;  state: Exp;
22167 Start adding new pile of powerups.
22168 ----------------------------
22169 revision 1.20
22170 date: 1994/08/25 17:56:08;  author: matt;  state: Exp;
22171 Added quad laser powerup
22172 ----------------------------
22173 revision 1.19
22174 date: 1994/08/18 15:11:50;  author: mike;  state: Exp;
22175 missile powerups.
22176 ----------------------------
22177 revision 1.18
22178 date: 1994/08/09 17:54:33;  author: adam;  state: Exp;
22179 upped no. of powerup types
22180 ----------------------------
22181 revision 1.17
22182 date: 1994/08/09 17:53:39;  author: adam;  state: Exp;
22183 *** empty log message ***
22184 ----------------------------
22185 revision 1.16
22186 date: 1994/07/27 19:44:16;  author: mike;  state: Exp;
22187 Objects containing objects.
22188 ----------------------------
22189 revision 1.15
22190 date: 1994/07/26 18:31:32;  author: mike;  state: Exp;
22191 Move some constants here from eobject.c.
22192 ----------------------------
22193 revision 1.14
22194 date: 1994/07/20 17:35:03;  author: yuan;  state: Exp;
22195 Some minor bug fixes and new key gauges...
22196 ----------------------------
22197 revision 1.13
22198 date: 1994/07/12 15:53:23;  author: john;  state: Exp;
22199 *** empty log message ***
22200 ----------------------------
22201 revision 1.12
22202 date: 1994/07/12 15:30:47;  author: mike;  state: Exp;
22203 Prototype diminish_towards_max.
22204 ----------------------------
22205 revision 1.11
22206 date: 1994/07/07 14:59:04;  author: john;  state: Exp;
22207 Made radar powerups.
22208 ----------------------------
22209 revision 1.10
22210 date: 1994/07/01 16:35:40;  author: yuan;  state: Exp;
22211 Added key system
22212 ----------------------------
22213 revision 1.9
22214 date: 1994/06/29 19:43:33;  author: matt;  state: Exp;
22215 Made powerup animation not happen in render routine
22216 ----------------------------
22217 revision 1.8
22218 date: 1994/06/21 18:54:03;  author: matt;  state: Exp;
22219 Added support for powerups that don't get picked up if not needed, but this
22220 feature is commented out at the end of do_powerup(), since the physics gave 
22221 me all sorts of problems, with the player getting stuck on a powerup.
22222 ----------------------------
22223 revision 1.7
22224 date: 1994/06/08 18:16:32;  author: john;  state: Exp;
22225 Bunch of new stuff that basically takes constants out of the code
22226 and puts them into bitmaps.tbl.
22227 ----------------------------
22228 revision 1.6
22229 date: 1994/05/18 13:26:30;  author: yuan;  state: Exp;
22230 *** empty log message ***
22231 ----------------------------
22232 revision 1.5
22233 date: 1994/05/17 17:01:48;  author: yuan;  state: Exp;
22234 Added constant for boosts.
22235 ----------------------------
22236 revision 1.4
22237 date: 1994/04/06 14:42:50;  author: yuan;  state: Exp;
22238 Adding new powerups.
22239 ----------------------------
22240 revision 1.3
22241 date: 1994/04/01 14:36:59;  author: yuan;  state: Exp;
22242 John's head is an extra life...
22243 ----------------------------
22244 revision 1.2
22245 date: 1994/04/01 11:15:22;  author: yuan;  state: Exp;
22246 Added multiple bitmap functionality to all objects...
22247 (hostages, powerups, lasers, etc.)  
22248 Hostages and powerups are implemented in the object system,
22249 just need to finish function call to "affect" player.
22250 ----------------------------
22251 revision 1.1
22252 date: 1994/03/31 17:01:43;  author: yuan;  state: Exp;
22253 Initial revision
22254 =============================================================================
22255 RCS file: /Smoke/miner/source/main/radar.h,v
22256 Working file: main/radar.h
22257 head: 1.1
22258 description: Prototypes for radar.
22259 ----------------------------
22260 revision 1.1
22261 date: 1995/05/16 16:01:43;  author: allender;  state: Exp;
22262 Initial revision
22263 ----------------------------
22264 revision 1.3
22265 date: 1994/07/07 14:59:03;  author: john;  state: Exp;
22266 Made radar powerups.
22267 ----------------------------
22268 revision 1.2
22269 date: 1994/07/06 19:36:36;  author: john;  state: Exp;
22270 Initial version of radar.
22271 ----------------------------
22272 revision 1.1
22273 date: 1994/07/06 17:22:18;  author: john;  state: Exp;
22274 Initial revision
22275 =============================================================================
22276 RCS file: /Smoke/miner/source/main/render.c,v
22277 Working file: main/render.c
22278 head: 1.9
22279 description: Sample setup for RCS header
22280 ----------------------------
22281 revision 1.9
22282 date: 1995/11/20 17:17:48;  author: allender;  state: Exp;
22283 *** empty log message ***
22284 ----------------------------
22285 revision 1.8
22286 date: 1995/10/26 14:08:35;  author: allender;  state: Exp;
22287 added assigment for physics optimization
22288 ----------------------------
22289 revision 1.7
22290 date: 1995/09/22 14:28:46;  author: allender;  state: Exp;
22291 changed render_zoom to make game match PC aspect
22292 ----------------------------
22293 revision 1.6
22294 date: 1995/08/14 14:35:54;  author: allender;  state: Exp;
22295 change transparency to 0
22296 ----------------------------
22297 revision 1.5
22298 date: 1995/08/12 11:32:02;  author: allender;  state: Exp;
22299 removed #ifdef NEWDEMO -- always in
22300 ----------------------------
22301 revision 1.4
22302 date: 1995/07/05 16:48:31;  author: allender;  state: Exp;
22303 kitchen stuff
22304 ----------------------------
22305 revision 1.3
22306 date: 1995/06/23 10:22:54;  author: allender;  state: Exp;
22307 fix outline mode
22308 ----------------------------
22309 revision 1.2
22310 date: 1995/06/16 16:11:18;  author: allender;  state: Exp;
22311 changed sort func to accept const parameters
22312 ----------------------------
22313 revision 1.1
22314 date: 1995/05/16 15:30:24;  author: allender;  state: Exp;
22315 Initial revision
22316 ----------------------------
22317 revision 2.4
22318 date: 1995/03/20 12:15:53;  author: john;  state: Exp;
22319 Added code to not store the normals in the segment structure.
22320 ----------------------------
22321 revision 2.3
22322 date: 1995/03/13 16:11:05;  author: john;  state: Exp;
22323 Maybe fixed bug that lighting didn't work with vr helmets.
22324 ----------------------------
22325 revision 2.2
22326 date: 1995/03/09 15:33:49;  author: john;  state: Exp;
22327 Fixed bug with iglasses timeout too long, and objects
22328 disappearing from left eye.
22329 ----------------------------
22330 revision 2.1
22331 date: 1995/03/06 15:23:59;  author: john;  state: Exp;
22332 New screen techniques.
22333 ----------------------------
22334 revision 2.0
22335 date: 1995/02/27 11:31:01;  author: john;  state: Exp;
22336 New version 2.0, which has no anonymous unions, builds with
22337 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
22338 ----------------------------
22339 revision 1.252
22340 date: 1995/02/22 13:49:38;  author: allender;  state: Exp;
22341 remove anonymous unions from object structure
22342 ----------------------------
22343 revision 1.251
22344 date: 1995/02/11 15:07:26;  author: matt;  state: Exp;
22345 Took out code which was mostly intended as part of a larger renderer
22346 change which never happened.  This new code was causing problems with
22347 the level 4 control center.
22348 ----------------------------
22349 revision 1.250
22350 date: 1995/02/07 16:28:53;  author: matt;  state: Exp;
22351 Fixed problem with new code
22352 ----------------------------
22353 revision 1.249
22354 date: 1995/02/06 14:38:58;  author: matt;  state: Exp;
22355 Took out some code that didn't compile when editor in
22356 ----------------------------
22357 revision 1.248
22358 date: 1995/02/06 13:45:25;  author: matt;  state: Exp;
22359 Structural changes, plus small sorting improvements
22360 ----------------------------
22361 revision 1.247
22362 date: 1995/02/02 15:59:26;  author: matt;  state: Exp;
22363 Changed assert to int3.
22364 ----------------------------
22365 revision 1.246
22366 date: 1995/02/01 21:02:27;  author: matt;  state: Exp;
22367 Added partial fix for rendering bugs
22368 Ripped out laser hack system
22369 ----------------------------
22370 revision 1.245
22371 date: 1995/01/20 15:14:30;  author: matt;  state: Exp;
22372 Added parens to fix precedence bug
22373 ----------------------------
22374 revision 1.244
22375 date: 1995/01/14 19:16:59;  author: john;  state: Exp;
22376 First version of new bitmap paging code.
22377 ----------------------------
22378 revision 1.243
22379 date: 1995/01/03 20:19:25;  author: john;  state: Exp;
22380 Pretty good working version of game save.
22381 ----------------------------
22382 revision 1.242
22383 date: 1994/12/29 13:51:05;  author: john;  state: Exp;
22384 Made the floating reticle draw in the spot
22385 regardless of the eye offset.
22386 ----------------------------
22387 revision 1.241
22388 date: 1994/12/23 15:02:55;  author: john;  state: Exp;
22389 Tweaked floating reticle.
22390 ----------------------------
22391 revision 1.240
22392 date: 1994/12/23 14:27:45;  author: john;  state: Exp;
22393 Changed offset of floating reticle to line up with
22394 lasers a bit better.
22395 ----------------------------
22396 revision 1.239
22397 date: 1994/12/23 14:22:50;  author: john;  state: Exp;
22398 Added floating reticle for VR helments.  
22399 ----------------------------
22400 revision 1.238
22401 date: 1994/12/13 14:07:50;  author: matt;  state: Exp;
22402 Fixed tmap_num2 bug in search mode
22403 ----------------------------
22404 revision 1.237
22405 date: 1994/12/11 00:45:53;  author: matt;  state: Exp;
22406 Fixed problem when object sort buffer got full
22407 ----------------------------
22408 revision 1.236
22409 date: 1994/12/09 18:46:06;  author: matt;  state: Exp;
22410 Added a little debugging
22411 ----------------------------
22412 revision 1.235
22413 date: 1994/12/09 14:59:16;  author: matt;  state: Exp;
22414 Added system to attach a fireball to another object for rendering purposes,
22415 so the fireball always renders on top of (after) the object.
22416 ----------------------------
22417 revision 1.234
22418 date: 1994/12/08 15:46:54;  author: matt;  state: Exp;
22419 Fixed buffer overflow that caused seg depth screwup
22420 ----------------------------
22421 revision 1.233
22422 date: 1994/12/08 11:51:53;  author: matt;  state: Exp;
22423 Took out some unused stuff
22424 ----------------------------
22425 revision 1.232
22426 date: 1994/12/06 16:31:48;  author: mike;  state: Exp;
22427 fix detriangulation problems.
22428 ----------------------------
22429 revision 1.231
22430 date: 1994/12/05 15:32:51;  author: matt;  state: Exp;
22431 Changed an assert to an int3 & return
22432 ----------------------------
22433 revision 1.230
22434 date: 1994/12/04 17:28:04;  author: matt;  state: Exp;
22435 Got rid of unused no_render_flag array, and took out box clear when searching
22436 ----------------------------
22437 revision 1.229
22438 date: 1994/12/04 15:51:14;  author: matt;  state: Exp;
22439 Fixed linear tmap transition for objects
22440 ----------------------------
22441 revision 1.228
22442 date: 1994/12/03 20:16:50;  author: matt;  state: Exp;
22443 Turn off window clip for objects
22444 ----------------------------
22445 revision 1.227
22446 date: 1994/12/03 14:48:00;  author: matt;  state: Exp;
22447 Restored some default settings
22448 ----------------------------
22449 revision 1.226
22450 date: 1994/12/03 14:44:32;  author: matt;  state: Exp;
22451 Fixed another difficult bug in the window clip system
22452 ----------------------------
22453 revision 1.225
22454 date: 1994/12/02 13:19:56;  author: matt;  state: Exp;
22455 Fixed rect clears at terminus of rendering
22456 Made a bunch of debug code compile out
22457 ----------------------------
22458 revision 1.224
22459 date: 1994/12/02 11:58:21;  author: matt;  state: Exp;
22460 Fixed window clip bug
22461 ----------------------------
22462 revision 1.223
22463 date: 1994/11/28 21:50:42;  author: mike;  state: Exp;
22464 optimizations.
22465 ----------------------------
22466 revision 1.222
22467 date: 1994/11/28 01:32:15;  author: mike;  state: Exp;
22468 turn off window clearing.
22469 ----------------------------
22470 revision 1.221
22471 date: 1994/11/27 23:11:52;  author: matt;  state: Exp;
22472 Made changes for new mprintf calling convention
22473 ----------------------------
22474 revision 1.220
22475 date: 1994/11/20 15:58:55;  author: matt;  state: Exp;
22476 Don't migrate the control center, since it doesn't move out of its segment
22477 ----------------------------
22478 revision 1.219
22479 date: 1994/11/19 23:54:36;  author: mike;  state: Exp;
22480 change window colors.
22481 ----------------------------
22482 revision 1.218
22483 date: 1994/11/19 15:20:25;  author: mike;  state: Exp;
22484 rip out unused code and data
22485 ----------------------------
22486 revision 1.217
22487 date: 1994/11/18 13:21:24;  author: mike;  state: Exp;
22488 Clear only view portals into rest of world based on value of Clear_window.
22489 ----------------------------
22490 revision 1.216
22491 date: 1994/11/15 17:02:10;  author: matt;  state: Exp;
22492 Re-added accidentally deleted variable
22493 ----------------------------
22494 revision 1.215
22495 date: 1994/11/15 16:51:50;  author: matt;  state: Exp;
22496 Made rear view only switch to rear cockpit if cockpit on in front view
22497 ----------------------------
22498 revision 1.214
22499 date: 1994/11/14 20:47:57;  author: john;  state: Exp;
22500 Attempted to strip out all the code in the game 
22501 directory that uses any ui code.
22502 ----------------------------
22503 revision 1.213
22504 date: 1994/11/11 15:37:07;  author: mike;  state: Exp;
22505 write orange for background to show render bugs.
22506 ----------------------------
22507 revision 1.212
22508 date: 1994/11/09 22:57:18;  author: matt;  state: Exp;
22509 Keep tract of depth of segments rendered, for detail level optimization
22510 ----------------------------
22511 revision 1.211
22512 date: 1994/11/01 23:40:14;  author: matt;  state: Exp;
22513 Elegantly handler buffer getting full
22514 ----------------------------
22515 revision 1.210
22516 date: 1994/10/31 22:28:13;  author: mike;  state: Exp;
22517 Fix detriangulation bug.
22518 ----------------------------
22519 revision 1.209
22520 date: 1994/10/31 11:48:56;  author: mike;  state: Exp;
22521 Optimize detriangulation, speedup of about 4% in many cases, 0% in many.
22522 ----------------------------
22523 revision 1.208
22524 date: 1994/10/30 20:08:34;  author: matt;  state: Exp;
22525 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
22526 go out; made more explosions on walls.
22527 ----------------------------
22528 revision 1.207
22529 date: 1994/10/27 14:14:35;  author: matt;  state: Exp;
22530 Don't do light flash during endlevel sequence
22531 ----------------------------
22532 revision 1.206
22533 date: 1994/10/11 12:05:42;  author: mike;  state: Exp;
22534 Improve detriangulation.
22535 ----------------------------
22536 revision 1.205
22537 date: 1994/10/07 15:27:00;  author: john;  state: Exp;
22538 Commented out the code that moves your eye
22539 forward.
22540 ----------------------------
22541 revision 1.204
22542 date: 1994/10/05 16:07:38;  author: mike;  state: Exp;
22543 Don't detriangulate sides if in player's segment.  Prevents player going behind a wall,
22544 though there are cases in which it would be ok to detriangulate these.
22545 ----------------------------
22546 revision 1.203
22547 date: 1994/10/03 12:44:05;  author: matt;  state: Exp;
22548 Took out unreferenced code
22549 ----------------------------
22550 revision 1.202
22551 date: 1994/09/28 14:08:45;  author: john;  state: Exp;
22552 Added Zoom stuff back in, but ifdef'd it out.
22553 ----------------------------
22554 revision 1.201
22555 date: 1994/09/25 23:41:49;  author: matt;  state: Exp;
22556 Changed the object load & save code to read/write the structure fields one
22557 at a time (rather than the whole structure at once).  This mean that the
22558 object structure can be changed without breaking the load/save functions.
22559 As a result of this change, the local_object data can be and has been 
22560 incorporated into the object array.  Also, timeleft is now a property 
22561 of all objects, and the object structure has been otherwise cleaned up.
22562 ----------------------------
22563 revision 1.200
22564 date: 1994/09/25 15:50:10;  author: mike;  state: Exp;
22565 Integrate my debug changes which shows how many textures were rendered
22566 this frame.
22567 ----------------------------
22568 revision 1.199
22569 date: 1994/09/25 15:45:22;  author: matt;  state: Exp;
22570 Added OBJ_LIGHT, a type of object that casts light
22571 Added generalized lifeleft, and moved it to local_object
22572 ----------------------------
22573 revision 1.198
22574 date: 1994/09/15 21:23:32;  author: matt;  state: Exp;
22575 Changed system to keep track of whether & what cockpit is up
22576 ----------------------------
22577 revision 1.197
22578 date: 1994/09/15 16:30:12;  author: mike;  state: Exp;
22579 Comment out call to object_render_targets, which did nothing.
22580 ----------------------------
22581 revision 1.196
22582 date: 1994/09/07 22:25:51;  author: matt;  state: Exp;
22583 Don't migrate through semi-transparent walls
22584 ----------------------------
22585 revision 1.195
22586 date: 1994/09/07 19:16:21;  author: mike;  state: Exp;
22587 Homing missile.
22588 ----------------------------
22589 revision 1.194
22590 date: 1994/08/31 20:54:17;  author: matt;  state: Exp;
22591 Don't do flash effect while whiting out
22592 ----------------------------
22593 revision 1.193
22594 date: 1994/08/23 17:20:12;  author: john;  state: Exp;
22595 Added rear-view cockpit.
22596 ----------------------------
22597 revision 1.192
22598 date: 1994/08/22 14:36:35;  author: john;  state: Exp;
22599 Made R key make a "reverse" view render.
22600 ----------------------------
22601 revision 1.191
22602 date: 1994/08/19 20:09:26;  author: matt;  state: Exp;
22603 Added end-of-level cut scene with external scene
22604 ----------------------------
22605 revision 1.190
22606 date: 1994/08/10 19:56:17;  author: john;  state: Exp;
22607 Changed font stuff; Took out old menu; messed up lots of
22608 other stuff like game sequencing messages, etc.
22609 ----------------------------
22610 revision 1.189
22611 date: 1994/08/10 14:45:05;  author: john;  state: Exp;
22612 *** empty log message ***
22613 ----------------------------
22614 revision 1.188
22615 date: 1994/08/09 16:04:06;  author: john;  state: Exp;
22616 Added network players to editor.
22617 ----------------------------
22618 revision 1.187
22619 date: 1994/08/05 17:07:05;  author: john;  state: Exp;
22620 Made lasers be two objects, one drawing after the other
22621 all the time.
22622 ----------------------------
22623 revision 1.186
22624 date: 1994/08/05 10:07:57;  author: matt;  state: Exp;
22625 Disable window check checking (i.e., always use window check)
22626 ----------------------------
22627 revision 1.185
22628 date: 1994/08/04 19:11:30;  author: matt;  state: Exp;
22629 Changed a bunch of vecmat calls to use multiple-function routines, and to
22630 allow the use of C macros for some functions
22631 ----------------------------
22632 revision 1.184
22633 date: 1994/08/04 00:21:14;  author: matt;  state: Exp;
22634 Cleaned up fvi & physics error handling; put in code to make sure objects
22635 are in correct segment; simplified segment finding for objects and points
22636 ----------------------------
22637 revision 1.183
22638 date: 1994/08/02 19:04:28;  author: matt;  state: Exp;
22639 Cleaned up vertex list functions
22640 ----------------------------
22641 revision 1.182
22642 date: 1994/07/29 15:13:33;  author: matt;  state: Exp;
22643 When window check turned off, cut render depth in half
22644 ----------------------------
22645 revision 1.181
22646 date: 1994/07/29 11:03:50;  author: matt;  state: Exp;
22647 Use highest_segment_index instead of num_segments so render works from
22648 the editor
22649 ----------------------------
22650 revision 1.180
22651 date: 1994/07/29 10:04:34;  author: mike;  state: Exp;
22652 Update Cursegp when an object is selected.
22653 ----------------------------
22654 revision 1.179
22655 date: 1994/07/25 00:02:50;  author: matt;  state: Exp;
22656 Various changes to accomodate new 3d, which no longer takes point numbers
22657 as parms, and now only takes pointers to points.
22658 ----------------------------
22659 revision 1.178
22660 date: 1994/07/24 14:37:49;  author: matt;  state: Exp;
22661 Added angles for player head
22662 ----------------------------
22663 revision 1.177
22664 date: 1994/07/20 19:08:07;  author: matt;  state: Exp;
22665 If in editor, don't move eye from center of viewer object
22666 =============================================================================
22667 RCS file: /Smoke/miner/source/main/render.h,v
22668 Working file: main/render.h
22669 head: 1.1
22670 description: Header for rendering-based functions
22671 ----------------------------
22672 revision 1.1
22673 date: 1995/05/16 16:01:51;  author: allender;  state: Exp;
22674 Initial revision
22675 ----------------------------
22676 revision 2.0
22677 date: 1995/02/27 11:33:00;  author: john;  state: Exp;
22678 New version 2.0, which has no anonymous unions, builds with
22679 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
22680 ----------------------------
22681 revision 1.17
22682 date: 1994/11/30 12:33:33;  author: mike;  state: Exp;
22683 prototype Clear_window.
22684 ----------------------------
22685 revision 1.16
22686 date: 1994/11/02 16:19:52;  author: matt;  state: Exp;
22687 Increased size of extra object buffer
22688 ----------------------------
22689 revision 1.15
22690 date: 1994/07/25 00:02:49;  author: matt;  state: Exp;
22691 Various changes to accomodate new 3d, which no longer takes point numbers
22692 as parms, and now only takes pointers to points.
22693 ----------------------------
22694 revision 1.14
22695 date: 1994/07/24 14:37:42;  author: matt;  state: Exp;
22696 Added angles for player head
22697 ----------------------------
22698 revision 1.13
22699 date: 1994/06/24 17:01:34;  author: john;  state: Exp;
22700 Add VFX support; Took Game Sequencing, like EndGame and stuff and
22701 took it out of game.c and into gameseq.c
22702 ----------------------------
22703 revision 1.12
22704 date: 1994/06/16 10:55:57;  author: matt;  state: Exp;
22705 Made a bunch of test code dependent on #defines
22706 ----------------------------
22707 revision 1.11
22708 date: 1994/06/01 00:01:36;  author: matt;  state: Exp;
22709 Added mine destruction flashing effect
22710 ----------------------------
22711 revision 1.10
22712 date: 1994/05/22 18:47:36;  author: mike;  state: Exp;
22713 make Render_list a globally accessible variable.
22714 ----------------------------
22715 revision 1.9
22716 date: 1994/05/22 15:29:32;  author: mike;  state: Exp;
22717 Separation of lighting from render.c to lighting.c.
22718 ----------------------------
22719 revision 1.8
22720 date: 1994/05/14 17:59:39;  author: matt;  state: Exp;
22721 Added extern.
22722 ----------------------------
22723 revision 1.7
22724 date: 1994/05/14 17:15:17;  author: matt;  state: Exp;
22725 Got rid of externs in source (non-header) files
22726 ----------------------------
22727 revision 1.6
22728 date: 1994/02/17 11:32:41;  author: matt;  state: Exp;
22729 Changes in object system
22730 ----------------------------
22731 revision 1.5
22732 date: 1994/01/21 17:31:48;  author: matt;  state: Exp;
22733 Moved code from render_frame() to caller, making code cleaner
22734 ----------------------------
22735 revision 1.4
22736 date: 1994/01/06 09:46:12;  author: john;  state: Exp;
22737 Added removable walls... all code that checked for
22738 children to see if a wall was a doorway, i changed
22739 to yuan's wall_is_doorway function that is in wall.c...
22740 doesn't work yet.
22741 ----------------------------
22742 revision 1.3
22743 date: 1994/01/05 11:25:47;  author: john;  state: Exp;
22744 Changed Player_zoom to Render_zoom
22745 ----------------------------
22746 revision 1.2
22747 date: 1994/01/05 10:53:43;  author: john;  state: Exp;
22748 New object code by John.  
22749 ----------------------------
22750 revision 1.1
22751 date: 1993/11/04 14:01:43;  author: matt;  state: Exp;
22752 Initial revision
22753 =============================================================================
22754 RCS file: /Smoke/miner/source/main/robot.c,v
22755 Working file: main/robot.c
22756 head: 1.1
22757 description: Code for handling robots
22758 ----------------------------
22759 revision 1.1
22760 date: 1995/05/16 15:30:34;  author: allender;  state: Exp;
22761 Initial revision
22762 ----------------------------
22763 revision 2.1
22764 date: 1995/03/07 16:52:02;  author: john;  state: Exp;
22765 Fixed robots not moving without edtiro bug.
22766 ----------------------------
22767 revision 2.0
22768 date: 1995/02/27 11:31:11;  author: john;  state: Exp;
22769 New version 2.0, which has no anonymous unions, builds with
22770 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
22771 ----------------------------
22772 revision 1.19
22773 date: 1995/02/22 13:58:09;  author: allender;  state: Exp;
22774 remove anonymous unions from object structure
22775 ----------------------------
22776 revision 1.18
22777 date: 1995/01/27 11:17:06;  author: rob;  state: Exp;
22778 Avoid problems with illegal gun num.
22779 ----------------------------
22780 revision 1.17
22781 date: 1994/11/19 15:15:02;  author: mike;  state: Exp;
22782 remove unused code and data
22783 ----------------------------
22784 revision 1.16
22785 date: 1994/11/05 16:41:31;  author: adam;  state: Exp;
22786 upped MAX_ROBOT_JOINTS
22787 ----------------------------
22788 revision 1.15
22789 date: 1994/09/26 15:29:29;  author: matt;  state: Exp;
22790 Allow morphing objects to fire
22791 ----------------------------
22792 revision 1.14
22793 date: 1994/06/20 14:31:02;  author: matt;  state: Exp;
22794 Don't include joint zero in animation data
22795 ----------------------------
22796 revision 1.13
22797 date: 1994/06/10 14:39:58;  author: matt;  state: Exp;
22798 Increased limit of robot joints
22799 ----------------------------
22800 revision 1.12
22801 date: 1994/06/10 10:59:18;  author: matt;  state: Exp;
22802 Do error checking on list of angles
22803 ----------------------------
22804 revision 1.11
22805 date: 1994/06/09 16:21:32;  author: matt;  state: Exp;
22806 Took out special-case and test code.
22807 ----------------------------
22808 revision 1.10
22809 date: 1994/06/07 13:21:14;  author: matt;  state: Exp;
22810 Added support for new chunk-based POF files, with robot animation data.
22811 ----------------------------
22812 revision 1.9
22813 date: 1994/06/01 17:58:24;  author: mike;  state: Exp;
22814 Greater flinch effect.
22815 ----------------------------
22816 revision 1.8
22817 date: 1994/06/01 14:59:25;  author: matt;  state: Exp;
22818 Fixed calc_gun_position(), which was rotating the wrong way for the
22819 object orientation.
22820 ----------------------------
22821 revision 1.7
22822 date: 1994/06/01 12:44:04;  author: matt;  state: Exp;
22823 Added flinch state for test robot
22824 ----------------------------
22825 revision 1.6
22826 date: 1994/05/31 19:17:24;  author: matt;  state: Exp;
22827 Fixed test robot angles
22828 ----------------------------
22829 revision 1.5
22830 date: 1994/05/30 19:43:50;  author: mike;  state: Exp;
22831 Call set_test_robot.
22832 ----------------------------
22833 revision 1.4
22834 date: 1994/05/30 00:02:44;  author: matt;  state: Exp;
22835 Got rid of robot render type, and generally cleaned up polygon model
22836 render objects.
22837 ----------------------------
22838 revision 1.3
22839 date: 1994/05/29 18:46:15;  author: matt;  state: Exp;
22840 Added stuff for getting robot animation info for different states
22841 ----------------------------
22842 revision 1.2
22843 date: 1994/05/26 21:09:15;  author: matt;  state: Exp;
22844 Moved robot stuff out of polygon model and into robot_info struct
22845 Made new file, robot.c, to deal with robots
22846 ----------------------------
22847 revision 1.1
22848 date: 1994/05/26 18:02:04;  author: matt;  state: Exp;
22849 Initial revision
22850 =============================================================================
22851 RCS file: /Smoke/miner/source/main/robot.h,v
22852 Working file: main/robot.h
22853 head: 1.1
22854 description: Header for robot.c
22855 ----------------------------
22856 revision 1.1
22857 date: 1995/05/16 16:01:59;  author: allender;  state: Exp;
22858 Initial revision
22859 ----------------------------
22860 revision 2.1
22861 date: 1995/03/07 16:52:00;  author: john;  state: Exp;
22862 Fixed robots not moving without edtiro bug.
22863 ----------------------------
22864 revision 2.0
22865 date: 1995/02/27 11:30:59;  author: john;  state: Exp;
22866 New version 2.0, which has no anonymous unions, builds with
22867 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
22868 ----------------------------
22869 revision 1.25
22870 date: 1994/11/30 14:02:44;  author: mike;  state: Exp;
22871 fields for see/attack/claw sounds.
22872 ----------------------------
22873 revision 1.24
22874 date: 1994/10/27 15:55:41;  author: adam;  state: Exp;
22875 *** empty log message ***
22876 ----------------------------
22877 revision 1.23
22878 date: 1994/10/20 15:17:03;  author: mike;  state: Exp;
22879 Add boss flag.
22880 ----------------------------
22881 revision 1.22
22882 date: 1994/10/20 09:51:00;  author: adam;  state: Exp;
22883 *** empty log message ***
22884 ----------------------------
22885 revision 1.21
22886 date: 1994/10/18 10:52:54;  author: mike;  state: Exp;
22887 Support robots lunging as an attack_type.
22888 ----------------------------
22889 revision 1.20
22890 date: 1994/10/17 21:19:02;  author: mike;  state: Exp;
22891 robot cloaking.
22892 ----------------------------
22893 revision 1.19
22894 date: 1994/09/27 00:03:39;  author: mike;  state: Exp;
22895 Add score_value to robot_info struct.
22896 ----------------------------
22897 revision 1.18
22898 date: 1994/09/22 19:01:12;  author: mike;  state: Exp;
22899 Move NDL from here to game.h
22900 ----------------------------
22901 revision 1.17
22902 date: 1994/09/22 15:46:55;  author: mike;  state: Exp;
22903 Add default contained objects for robots.
22904 ----------------------------
22905 revision 1.16
22906 date: 1994/09/22 10:46:57;  author: mike;  state: Exp;
22907 Add difficulty levels.
22908 ----------------------------
22909 revision 1.15
22910 date: 1994/09/15 16:34:16;  author: mike;  state: Exp;
22911 Change rapidfire_count to a byte, add evade_speed, dum1, dum2.
22912 ----------------------------
22913 revision 1.14
22914 date: 1994/09/09 14:21:58;  author: matt;  state: Exp;
22915 Increased maximum number of games
22916 ----------------------------
22917 revision 1.13
22918 date: 1994/08/25 18:12:13;  author: matt;  state: Exp;
22919 Made player's weapons and flares fire from the positions on the 3d model.
22920 Also added support for quad lasers.
22921 ----------------------------
22922 revision 1.12
22923 date: 1994/08/23 16:37:24;  author: mike;  state: Exp;
22924 Add rapidfire_count to robot_info.
22925 ----------------------------
22926 revision 1.11
22927 date: 1994/07/27 19:45:01;  author: mike;  state: Exp;
22928 Objects containing objects.
22929 ----------------------------
22930 revision 1.10
22931 date: 1994/07/12 12:40:01;  author: matt;  state: Exp;
22932 Revamped physics system
22933 ----------------------------
22934 revision 1.9
22935 date: 1994/06/21 12:17:12;  author: mike;  state: Exp;
22936 Add circle_distance to robot_info.
22937 ----------------------------
22938 revision 1.8
22939 date: 1994/06/09 16:22:28;  author: matt;  state: Exp;
22940 Moved header for calc_gun_point() here, where it belongs
22941 ----------------------------
22942 revision 1.7
22943 date: 1994/06/08 18:16:23;  author: john;  state: Exp;
22944 Bunch of new stuff that basically takes constants out of the code
22945 and puts them into bitmaps.tbl.
22946 ----------------------------
22947 revision 1.6
22948 date: 1994/06/03 11:38:09;  author: john;  state: Exp;
22949 Made robots get their strength for RobotInfo->strength, which
22950 is read in from bitmaps.tbl
22951 ----------------------------
22952 revision 1.5
22953 date: 1994/05/30 19:43:31;  author: mike;  state: Exp;
22954 Add voluminous comment for robot_get_anim_state.
22955 ----------------------------
22956 revision 1.4
22957 date: 1994/05/30 00:03:18;  author: matt;  state: Exp;
22958 Got rid of robot render type, and generally cleaned up polygon model
22959 render objects.
22960 ----------------------------
22961 revision 1.3
22962 date: 1994/05/29 18:46:37;  author: matt;  state: Exp;
22963 Added stuff for getting robot animation info for different states
22964 ----------------------------
22965 revision 1.2
22966 date: 1994/05/26 21:09:18;  author: matt;  state: Exp;
22967 Moved robot stuff out of polygon model and into robot_info struct
22968 Made new file, robot.c, to deal with robots
22969 ----------------------------
22970 revision 1.1
22971 date: 1994/05/26 18:02:12;  author: matt;  state: Exp;
22972 Initial revision
22973 =============================================================================
22974 RCS file: /BigRed/miner/source/main/scores.c,v
22975 Working file: main/scores.c
22976 head: 1.1
22977 description: Inferno High Scores and Statistics System
22978 ----------------------------
22979 revision 1.1
22980 date: 1995/12/05 16:06:29;  author: allender;  state: Exp;
22981 Initial revision
22982 ----------------------------
22983 revision 1.3
22984 date: 1995/08/14 09:25:16;  author: allender;  state: Exp;
22985 add byteswap header
22986 ----------------------------
22987 revision 1.2
22988 date: 1995/07/14 13:45:17;  author: allender;  state: Exp;
22989 fixed up high score code to work and look pretty good
22990 needs some work tho'
22991 ----------------------------
22992 revision 1.1
22993 date: 1995/05/16 15:30:42;  author: allender;  state: Exp;
22994 Initial revision
22995 ----------------------------
22996 revision 2.1
22997 date: 1995/03/06 15:23:57;  author: john;  state: Exp;
22998 New screen techniques.
22999 ----------------------------
23000 revision 2.0
23001 date: 1995/02/27 11:30:53;  author: john;  state: Exp;
23002 New version 2.0, which has no anonymous unions, builds with
23003 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23004 ----------------------------
23005 revision 1.109
23006 date: 1995/02/09 12:23:19;  author: rob;  state: Exp;
23007 Added assert for length of filename.
23008 ----------------------------
23009 revision 1.108
23010 date: 1995/01/03 17:33:24;  author: john;  state: Exp;
23011 Made scrolling textbox. Used it for scores cool saying.
23012 ----------------------------
23013 revision 1.107
23014 date: 1994/12/28 10:42:51;  author: john;  state: Exp;
23015 More VFX tweaking.
23016 ----------------------------
23017 revision 1.106
23018 date: 1994/12/28 10:26:19;  author: john;  state: Exp;
23019 Fixed some VFX problems.
23020 ----------------------------
23021 revision 1.105
23022 date: 1994/12/15 16:42:12;  author: adam;  state: Exp;
23023 some fix
23024 ----------------------------
23025 revision 1.104
23026 date: 1994/12/14 11:59:19;  author: john;  state: Exp;
23027 Changed the default high scores.
23028 ----------------------------
23029 revision 1.103
23030 date: 1994/12/09 00:41:12;  author: mike;  state: Exp;
23031 fix hang in automap print screen
23032 ----------------------------
23033 revision 1.102
23034 date: 1994/12/07 00:36:26;  author: mike;  state: Exp;
23035 scores sequencing stuff.
23036 ----------------------------
23037 revision 1.101
23038 date: 1994/12/06 15:14:21;  author: yuan;  state: Exp;
23039 Localization
23040 ----------------------------
23041 revision 1.100
23042 date: 1994/12/03 17:07:52;  author: yuan;  state: Exp;
23043 Localization 368
23044 ----------------------------
23045 revision 1.99
23046 date: 1994/12/03 14:49:27;  author: mark;  state: Exp;
23047 Fixed john's bug with previous.
23048 ----------------------------
23049 revision 1.98
23050 date: 1994/12/03 14:43:54;  author: john;  state: Exp;
23051 Added enter, space  to exit scores.
23052 ----------------------------
23053 revision 1.97
23054 date: 1994/12/03 14:32:34;  author: john;  state: Exp;
23055 Added integrated-super-deluxe-ctrl-r to reset high scores.
23056 ----------------------------
23057 revision 1.96
23058 date: 1994/12/01 20:15:20;  author: yuan;  state: Exp;
23059 Localization
23060 ----------------------------
23061 revision 1.95
23062 date: 1994/11/30 19:36:36;  author: john;  state: Exp;
23063 Made Gravis Ultrasound work again.  Made the scores blink
23064 at a constant rate.  Revamped the newmenu background storage,
23065 which hopefully fixed some bugs.  Made menus in ame not pause
23066 sound, except for the pause key.               ^== Game!
23067 ----------------------------
23068 revision 1.94
23069 date: 1994/11/30 12:32:08;  author: john;  state: Exp;
23070 Made secret levels print correctly.
23071 ----------------------------
23072 revision 1.93
23073 date: 1994/11/30 12:06:47;  author: mike;  state: Exp;
23074 fix bug: looper not initialized.
23075 ----------------------------
23076 revision 1.92
23077 date: 1994/11/29 13:20:04;  author: john;  state: Exp;
23078 changed the "Wow! You placed .." to something better.
23079 ----------------------------
23080 revision 1.91
23081 date: 1994/11/29 01:35:38;  author: john;  state: Exp;
23082 Made it so that even if you don't get a high score, you still show
23083 up on the chart..
23084 ----------------------------
23085 revision 1.90
23086 date: 1994/11/23 17:29:29;  author: mike;  state: Exp;
23087 fix xx-xx level bug in high scores.
23088 ----------------------------
23089 revision 1.89
23090 date: 1994/11/22 16:55:27;  author: mike;  state: Exp;
23091 allow high scores even in pudly trainee level.
23092 ----------------------------
23093 revision 1.88
23094 date: 1994/11/21 17:28:33;  author: john;  state: Exp;
23095 Changed default score values.
23096 ----------------------------
23097 revision 1.87
23098 date: 1994/11/18 23:37:53;  author: john;  state: Exp;
23099 Changed some shorts to ints.
23100 ----------------------------
23101 revision 1.86
23102 date: 1994/11/13 15:39:24;  author: john;  state: Exp;
23103 Added critical error handler to game.  Took out -editor command line
23104 option because it didn't work anymore and wasn't worth fixing.  Made scores
23105 not use MINER enviroment variable on release version, and made scores
23106 not print an error if there is no descent.hi.
23107 ----------------------------
23108 revision 1.85
23109 date: 1994/11/06 10:15:58;  author: john;  state: Exp;
23110 Took out kill % and hostage %
23111 ----------------------------
23112 revision 1.84
23113 date: 1994/11/05 15:03:39;  author: john;  state: Exp;
23114 Added non-popup menu for the main menu, so that scores and credits don't have to save
23115 the background.
23116 ----------------------------
23117 revision 1.83
23118 date: 1994/11/05 14:05:57;  author: john;  state: Exp;
23119 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
23120 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
23121 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
23122 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
23123 ----------------------------
23124 revision 1.82
23125 date: 1994/11/04 20:11:41;  author: john;  state: Exp;
23126 Neatening up palette stuff with demos.
23127 ----------------------------
23128 revision 1.81
23129 date: 1994/11/04 12:02:34;  author: john;  state: Exp;
23130 Fixed fading transitions a bit more.
23131 ----------------------------
23132 revision 1.80
23133 date: 1994/10/27 12:10:39;  author: john;  state: Exp;
23134 Moved kill % a little to the right.
23135 ----------------------------
23136 revision 1.79
23137 date: 1994/10/24 20:25:03;  author: john;  state: Exp;
23138 Fixed bug with space at end of 1 line message.
23139 Made Enter go between the two input lines.
23140 ----------------------------
23141 revision 1.78
23142 date: 1994/10/24 18:20:18;  author: john;  state: Exp;
23143 Made the current high score flash.
23144 ----------------------------
23145 revision 1.77
23146 date: 1994/10/24 13:37:22;  author: mike;  state: Exp;
23147 Fix grammar error.  --anal Mike.
23148 ----------------------------
23149 revision 1.76
23150 date: 1994/10/22 13:19:19;  author: john;  state: Exp;
23151 Made joy/mouse buttons leave score screen.
23152 ----------------------------
23153 revision 1.75
23154 date: 1994/10/21 15:26:57;  author: john;  state: Exp;
23155 Used PrtScr instead of F2.
23156 ----------------------------
23157 revision 1.74
23158 date: 1994/10/21 13:54:21;  author: matt;  state: Exp;
23159 Replace '1' with special wide '1' to make numbers line up
23160 ----------------------------
23161 revision 1.73
23162 date: 1994/10/19 20:48:01;  author: john;  state: Exp;
23163 Made so that people playing on wimp level
23164 can't get high scores.
23165 ----------------------------
23166 revision 1.72
23167 date: 1994/10/19 15:14:05;  author: john;  state: Exp;
23168 Took % hits out of player structure, made %kills work properly.
23169 ----------------------------
23170 revision 1.71
23171 date: 1994/10/19 14:39:27;  author: john;  state: Exp;
23172 Finished up; added keys to prtscr, int3.
23173 ----------------------------
23174 revision 1.70
23175 date: 1994/10/19 12:44:09;  author: john;  state: Exp;
23176 Added hours field to player structure.
23177 ----------------------------
23178 revision 1.69
23179 date: 1994/10/19 11:25:21;  author: john;  state: Exp;
23180 Looking good.
23181 ----------------------------
23182 revision 1.68
23183 date: 1994/10/19 10:54:12;  author: john;  state: Exp;
23184 Test version.
23185 ----------------------------
23186 revision 1.67
23187 date: 1994/10/19 10:00:27;  author: john;  state: Exp;
23188 *** empty log message ***
23189 ----------------------------
23190 revision 1.66
23191 date: 1994/10/19 09:59:03;  author: john;  state: Exp;
23192 Made cool saying have the potential to be up to 50 chars
23193 ----------------------------
23194 revision 1.65
23195 date: 1994/10/19 09:53:30;  author: john;  state: Exp;
23196 Working version of scores.
23197 ----------------------------
23198 revision 1.64
23199 date: 1994/10/18 21:07:46;  author: john;  state: Exp;
23200 Fixed bug that didn't print name correctly.
23201 ----------------------------
23202 revision 1.63
23203 date: 1994/10/18 18:21:46;  author: john;  state: Exp;
23204 NEw score system.
23205 ----------------------------
23206 revision 1.62
23207 date: 1994/10/17 20:31:42;  author: john;  state: Exp;
23208 Made the text for the difficulty labels global so that
23209 the high score screen can print "rookie" or whatever.
23210 ----------------------------
23211 revision 1.61
23212 date: 1994/10/17 17:27:44;  author: john;  state: Exp;
23213 Added starting_level to high score system.
23214 ----------------------------
23215 revision 1.60
23216 date: 1994/10/17 16:56:35;  author: john;  state: Exp;
23217 Added starting level to stats menu.
23218 ----------------------------
23219 revision 1.59
23220 date: 1994/10/17 16:55:25;  author: john;  state: Exp;
23221 Added starting level, but didn't hook it to anything.
23222 ----------------------------
23223 revision 1.58
23224 date: 1994/10/17 16:47:17;  author: john;  state: Exp;
23225 Added diff. level.
23226 ----------------------------
23227 revision 1.57
23228 date: 1994/10/17 15:49:53;  author: john;  state: Exp;
23229 Added stats screen.
23230 ----------------------------
23231 revision 1.56
23232 date: 1994/10/03 23:02:29;  author: matt;  state: Exp;
23233 After player added or not to scores, scores are now displayed
23234 ----------------------------
23235 revision 1.55
23236 date: 1994/09/01 18:09:38;  author: john;  state: Exp;
23237 Made commas in scores work correctly .
23238 ----------------------------
23239 revision 1.54
23240 date: 1994/09/01 18:03:57;  author: john;  state: Exp;
23241 Neatened up scores a bit.
23242 ----------------------------
23243 revision 1.53
23244 date: 1994/08/26 14:27:37;  author: john;  state: Exp;
23245 Made it prompt for name
23246 ----------------------------
23247 revision 1.52
23248 date: 1994/08/26 13:03:17;  author: john;  state: Exp;
23249 *** empty log message ***
23250 ----------------------------
23251 revision 1.51
23252 date: 1994/08/26 13:01:52;  author: john;  state: Exp;
23253 Put high score system in.
23254 ----------------------------
23255 revision 1.50
23256 date: 1994/08/10 19:57:01;  author: john;  state: Exp;
23257 Changed font stuff; Took out old menu; messed up lots of
23258 other stuff like game sequencing messages, etc.
23259 ----------------------------
23260 revision 1.49
23261 date: 1994/07/25 15:40:27;  author: matt;  state: Exp;
23262 Took out debugging code accidentally left in.
23263 =============================================================================
23264 RCS file: /Smoke/miner/source/main/scores.h,v
23265 Working file: main/scores.h
23266 head: 1.1
23267 description: Scores header.
23268 ----------------------------
23269 revision 1.1
23270 date: 1995/05/16 16:02:07;  author: allender;  state: Exp;
23271 Initial revision
23272 ----------------------------
23273 revision 2.0
23274 date: 1995/02/27 11:31:53;  author: john;  state: Exp;
23275 New version 2.0, which has no anonymous unions, builds with
23276 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23277 ----------------------------
23278 revision 1.13
23279 date: 1994/12/07 00:36:36;  author: mike;  state: Exp;
23280 scores sequencing stuff.
23281 ----------------------------
23282 revision 1.12
23283 date: 1994/11/28 11:26:09;  author: matt;  state: Exp;
23284 Took out scores for weapons, which are no longer used
23285 ----------------------------
23286 revision 1.11
23287 date: 1994/10/24 18:20:03;  author: john;  state: Exp;
23288 Made the current high score flash.
23289 ----------------------------
23290 revision 1.10
23291 date: 1994/10/18 18:21:36;  author: john;  state: Exp;
23292 NEw score system.
23293 ----------------------------
23294 revision 1.9
23295 date: 1994/10/03 23:01:58;  author: matt;  state: Exp;
23296 New parms for scores_view()
23297 ----------------------------
23298 revision 1.8
23299 date: 1994/09/27 16:10:37;  author: adam;  state: Exp;
23300 changed scores of course
23301 ----------------------------
23302 revision 1.7
23303 date: 1994/08/31 19:25:46;  author: mike;  state: Exp;
23304 Add score values for new powerups.
23305 ----------------------------
23306 revision 1.6
23307 date: 1994/08/26 16:00:18;  author: mike;  state: Exp;
23308 enhanced (?) scoring.
23309 ----------------------------
23310 revision 1.5
23311 date: 1994/08/26 13:01:45;  author: john;  state: Exp;
23312 Put high score system in.
23313 ----------------------------
23314 revision 1.4
23315 date: 1994/05/30 16:33:21;  author: yuan;  state: Exp;
23316 Revamping high scores.
23317 ----------------------------
23318 revision 1.3
23319 date: 1994/05/14 17:15:07;  author: matt;  state: Exp;
23320 Got rid of externs in source (non-header) files
23321 ----------------------------
23322 revision 1.2
23323 date: 1994/05/13 13:13:57;  author: yuan;  state: Exp;
23324 Added player death...
23325 When you die, if just pops up a a message.
23326 When game is over, a message is popped up, and if you have a high score,
23327 you get to enter it.
23328 ----------------------------
23329 revision 1.1
23330 date: 1994/05/13 10:22:16;  author: yuan;  state: Exp;
23331 Initial revision
23332 =============================================================================
23333 RCS file: /Smoke/miner/source/main/screens.h,v
23334 Working file: main/screens.h
23335 head: 1.1
23336 description: Info on canvases, screens, etc.
23337 ----------------------------
23338 revision 1.1
23339 date: 1995/05/16 16:02:15;  author: allender;  state: Exp;
23340 Initial revision
23341 ----------------------------
23342 revision 2.2
23343 date: 1995/03/14 12:14:00;  author: john;  state: Exp;
23344 Made VR helmets have 4 resolutions to choose from.
23345 ----------------------------
23346 revision 2.1
23347 date: 1995/03/06 15:24:09;  author: john;  state: Exp;
23348 New screen techniques.
23349 ----------------------------
23350 revision 2.0
23351 date: 1995/02/27 11:31:40;  author: john;  state: Exp;
23352 New version 2.0, which has no anonymous unions, builds with
23353 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23354 ----------------------------
23355 revision 1.15
23356 date: 1994/08/10 19:56:45;  author: john;  state: Exp;
23357 Changed font stuff; Took out old menu; messed up lots of
23358 other stuff like game sequencing messages, etc.
23359 ----------------------------
23360 revision 1.14
23361 date: 1994/07/20 21:04:26;  author: john;  state: Exp;
23362 Add VictorMax VR helment support.
23363 ----------------------------
23364 revision 1.13
23365 date: 1994/06/24 17:01:28;  author: john;  state: Exp;
23366 Add VFX support; Took Game Sequencing, like EndGame and stuff and
23367 took it out of game.c and into gameseq.c
23368 ----------------------------
23369 revision 1.12
23370 date: 1994/04/20 20:30:03;  author: john;  state: Exp;
23371 *** empty log message ***
23372 ----------------------------
23373 revision 1.11
23374 date: 1994/03/30 21:12:05;  author: yuan;  state: Exp;
23375 Use only 119 lines (saves 3 scanlines)
23376 ----------------------------
23377 revision 1.10
23378 date: 1994/03/17 16:49:37;  author: john;  state: Exp;
23379 *** empty log message ***
23380 ----------------------------
23381 revision 1.9
23382 date: 1994/02/11 15:07:44;  author: matt;  state: Exp;
23383 Added extern of Canv_game_offscrn
23384 ----------------------------
23385 revision 1.8
23386 date: 1994/01/31 16:52:43;  author: john;  state: Exp;
23387 redid cockpit bounds.
23388 ----------------------------
23389 revision 1.7
23390 date: 1994/01/26 18:13:53;  author: john;  state: Exp;
23391 Changed 3d constants..
23392 ----------------------------
23393 revision 1.6
23394 date: 1994/01/25 17:11:46;  author: john;  state: Exp;
23395 *** empty log message ***
23396 ----------------------------
23397 revision 1.5
23398 date: 1994/01/25 11:43:25;  author: john;  state: Exp;
23399 Changed game window size.
23400 ----------------------------
23401 revision 1.4
23402 date: 1993/12/13 16:32:39;  author: yuan;  state: Exp;
23403 Fixed menu system memory errors, and other bugs.
23404 ----------------------------
23405 revision 1.3
23406 date: 1993/12/10 16:07:23;  author: yuan;  state: Exp;
23407 Working on menu system.  Updated the title screen.
23408 ----------------------------
23409 revision 1.2
23410 date: 1993/12/09 21:27:46;  author: matt;  state: Exp;
23411 Added 3d window sizing constants
23412 ----------------------------
23413 revision 1.1
23414 date: 1993/12/06 09:50:33;  author: matt;  state: Exp;
23415 Initial revision
23416 =============================================================================
23417 RCS file: /Smoke/miner/source/main/segment.h,v
23418 Working file: main/segment.h
23419 head: 1.4
23420 description: Include file for functions which need to access segment data structure.
23421 ----------------------------
23422 revision 1.4
23423 date: 1995/11/03 12:53:11;  author: allender;  state: Exp;
23424 shareware changes
23425 ----------------------------
23426 revision 1.3
23427 date: 1995/07/26 16:53:45;  author: allender;  state: Exp;
23428 put sides and segment structure back the PC way for checksumming reasons
23429 ----------------------------
23430 revision 1.2
23431 date: 1995/06/19 07:55:22;  author: allender;  state: Exp;
23432 rearranged structure members for possible better alignment
23433 ----------------------------
23434 revision 1.1
23435 date: 1995/05/16 16:02:22;  author: allender;  state: Exp;
23436 Initial revision
23437 ----------------------------
23438 revision 2.1
23439 date: 1995/03/20 12:15:22;  author: john;  state: Exp;
23440 Added code to not store the normals in the segment structure.
23441 ----------------------------
23442 revision 2.0
23443 date: 1995/02/27 11:26:49;  author: john;  state: Exp;
23444 New version 2.0, which has no anonymous unions, builds with
23445 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23446 ----------------------------
23447 revision 1.89
23448 date: 1995/01/24 15:07:55;  author: yuan;  state: Exp;
23449 *** empty log message ***
23450 ----------------------------
23451 revision 1.88
23452 date: 1994/12/12 01:04:06;  author: yuan;  state: Exp;
23453 Boosted MAX_GAME_VERTS.
23454 ----------------------------
23455 revision 1.87
23456 date: 1994/12/11 16:18:14;  author: mike;  state: Exp;
23457 add constants so we can detect too-large mines for game while in editor.
23458 ----------------------------
23459 revision 1.86
23460 date: 1994/12/08 15:07:29;  author: yuan;  state: Exp;
23461 *** empty log message ***
23462 ----------------------------
23463 revision 1.85
23464 date: 1994/12/01 21:06:39;  author: matt;  state: Exp;
23465 Moved plane tolerance constant to gameseg.c, the only file that used it.
23466 ----------------------------
23467 revision 1.84
23468 date: 1994/11/27 14:01:41;  author: matt;  state: Exp;
23469 Fixed segment structure so LVLs work
23470 ----------------------------
23471 revision 1.83
23472 date: 1994/11/26 22:50:20;  author: matt;  state: Exp;
23473 Removed editor-only fields from segment structure when editor is compiled
23474 out, and padded segment structure to even multiple of 4 bytes.
23475 ----------------------------
23476 revision 1.82
23477 date: 1994/11/21 11:43:36;  author: mike;  state: Exp;
23478 smaller segment and vertex buffers.
23479 ----------------------------
23480 revision 1.81
23481 date: 1994/11/17 11:39:35;  author: matt;  state: Exp;
23482 Ripped out code to load old mines
23483 ----------------------------
23484 revision 1.80
23485 date: 1994/10/30 14:12:05;  author: mike;  state: Exp;
23486 rip out local segments stuff.
23487 ----------------------------
23488 revision 1.79
23489 date: 1994/10/27 11:33:58;  author: mike;  state: Exp;
23490 lower number of segments by 100, saving 116K.
23491 ----------------------------
23492 revision 1.78
23493 date: 1994/08/25 21:54:50;  author: mike;  state: Exp;
23494 Add macro IS_CHILD to make checking for the presence of a child centralized.
23495 ----------------------------
23496 revision 1.77
23497 date: 1994/08/11 18:58:16;  author: mike;  state: Exp;
23498 Add prototype for Side_to_verts_int.
23499 ----------------------------
23500 revision 1.76
23501 date: 1994/08/01 11:04:13;  author: yuan;  state: Exp;
23502 New materialization centers.
23503 ----------------------------
23504 revision 1.75
23505 date: 1994/07/25 00:04:19;  author: matt;  state: Exp;
23506 Various changes to accomodate new 3d, which no longer takes point numbers
23507 as parms, and now only takes pointers to points.
23508 ----------------------------
23509 revision 1.74
23510 date: 1994/07/21 19:01:30;  author: mike;  state: Exp;
23511 new lsegment structure.
23512 ----------------------------
23513 revision 1.73
23514 date: 1994/06/08 14:30:48;  author: matt;  state: Exp;
23515 Added static_light field to segment structure, and padded side struct
23516 to be longword aligned.
23517 ----------------------------
23518 revision 1.72
23519 date: 1994/05/19 23:25:17;  author: mike;  state: Exp;
23520 Change MINE_VERSION to 15, DEFAULT_LIGHTING to 0
23521 ----------------------------
23522 revision 1.71
23523 date: 1994/05/12 14:45:54;  author: mike;  state: Exp;
23524 New segment data structure (!!), group, special, object, value = short.
23525 ----------------------------
23526 revision 1.70
23527 date: 1994/05/03 11:06:46;  author: mike;  state: Exp;
23528 Remove constants VMAG and UMAG which are editor specific..
23529 ----------------------------
23530 revision 1.69
23531 date: 1994/04/18 10:40:28;  author: yuan;  state: Exp;
23532 Increased segment limit to 1000
23533 (From 500)
23534 =============================================================================
23535 RCS file: /Smoke/miner/source/main/segment2.h,v
23536 Working file: main/segment2.h
23537 head: 1.1
23538 description: Include file for makeseg program, not necessary for game or editor.
23539 ----------------------------
23540 revision 1.1
23541 date: 1995/05/16 16:02:31;  author: allender;  state: Exp;
23542 Initial revision
23543 ----------------------------
23544 revision 1.2
23545 date: 1993/09/20 15:17:49;  author: mike;  state: Exp;
23546 Define constants: NUM_FACES, NUM_VERTICES, NUM_UVS, NUM_RGBS, NUM_FACE_VERTS
23547 ----------------------------
23548 revision 1.1
23549 date: 1993/09/15 19:12:32;  author: matt;  state: Exp;
23550 Initial revision
23551 =============================================================================
23552 RCS file: /Smoke/miner/source/main/segpoint.h,v
23553 Working file: main/segpoint.h
23554 head: 1.1
23555 description: Hopefully temporary file to hold external definition of Segment_points[]
23556 ----------------------------
23557 revision 1.1
23558 date: 1995/05/16 16:02:38;  author: allender;  state: Exp;
23559 Initial revision
23560 ----------------------------
23561 revision 2.0
23562 date: 1995/02/27 11:26:54;  author: john;  state: Exp;
23563 New version 2.0, which has no anonymous unions, builds with
23564 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23565 ----------------------------
23566 revision 1.2
23567 date: 1994/02/16 17:14:40;  author: matt;  state: Exp;
23568 Added include of 3d.h
23569 ----------------------------
23570 revision 1.1
23571 date: 1993/12/06 09:51:37;  author: matt;  state: Exp;
23572 Initial revision
23573 =============================================================================
23574 RCS file: /Smoke/miner/source/main/serial.h,v
23575 Working file: main/serial.h
23576 head: 1.1
23577 description: .
23578 ----------------------------
23579 revision 1.1
23580 date: 1995/05/16 16:02:46;  author: allender;  state: Exp;
23581 Initial revision
23582 ----------------------------
23583 revision 2.0
23584 date: 1995/02/27 11:32:33;  author: john;  state: Exp;
23585 New version 2.0, which has no anonymous unions, builds with
23586 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23587 ----------------------------
23588 revision 1.2
23589 date: 1994/07/21 21:31:33;  author: john;  state: Exp;
23590 First cheapo version of VictorMaxx tracking.
23591 ----------------------------
23592 revision 1.1
23593 date: 1994/07/21 18:40:47;  author: john;  state: Exp;
23594 Initial revision
23595 =============================================================================
23596 RCS file: /Smoke/miner/source/main/ship.h,v
23597 Working file: main/ship.h
23598 head: 1.1
23599 description: Functions that affect the ship (Player_stats)
23600 ----------------------------
23601 revision 1.1
23602 date: 1995/05/16 16:03:01;  author: allender;  state: Exp;
23603 Initial revision
23604 ----------------------------
23605 revision 1.2
23606 date: 1994/03/01 18:12:56;  author: yuan;  state: Exp;
23607 Walls, switches, and triggers...
23608 ----------------------------
23609 revision 1.1
23610 date: 1994/02/25 15:52:13;  author: yuan;  state: Exp;
23611 Initial revision
23612 =============================================================================
23613 RCS file: /Smoke/miner/source/main/slew.c,v
23614 Working file: main/slew.c
23615 head: 1.1
23616 description: Basic slew system for moving around the mine
23617 ----------------------------
23618 revision 1.1
23619 date: 1995/05/16 15:30:57;  author: allender;  state: Exp;
23620 Initial revision
23621 ----------------------------
23622 revision 2.0
23623 date: 1995/02/27 11:29:32;  author: john;  state: Exp;
23624 New version 2.0, which has no anonymous unions, builds with
23625 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23626 ----------------------------
23627 revision 1.34
23628 date: 1995/02/22 14:23:28;  author: allender;  state: Exp;
23629 remove anonymous unions from object structure
23630 ----------------------------
23631 revision 1.33
23632 date: 1995/02/22 13:24:26;  author: john;  state: Exp;
23633 Removed the vecmat anonymous unions.
23634 ----------------------------
23635 revision 1.32
23636 date: 1994/09/10 15:46:42;  author: john;  state: Exp;
23637 First version of new keyboard configuration.
23638 ----------------------------
23639 revision 1.31
23640 date: 1994/08/31 18:29:58;  author: matt;  state: Exp;
23641 Made slew work with new key system
23642 ----------------------------
23643 revision 1.30
23644 date: 1994/08/31 14:10:48;  author: john;  state: Exp;
23645 Made slew go faster.
23646 ----------------------------
23647 revision 1.29
23648 date: 1994/08/29 19:16:38;  author: matt;  state: Exp;
23649 Made slew object not have physics movement type, so slew objects don't
23650 get bumped.
23651 ----------------------------
23652 revision 1.28
23653 date: 1994/08/24 18:59:59;  author: john;  state: Exp;
23654 Changed key_down_time to return fixed seconds instead of
23655 milliseconds.
23656 ----------------------------
23657 revision 1.27
23658 date: 1994/07/01 11:33:05;  author: john;  state: Exp;
23659 Fixed bug with looking for stick even if one not present.
23660 ----------------------------
23661 revision 1.26
23662 date: 1994/05/20 11:56:33;  author: matt;  state: Exp;
23663 Cleaned up find_vector_intersection() interface
23664 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
23665 ----------------------------
23666 revision 1.25
23667 date: 1994/05/19 12:08:41;  author: matt;  state: Exp;
23668 Use new vecmat macros and globals
23669 ----------------------------
23670 revision 1.24
23671 date: 1994/05/14 17:16:18;  author: matt;  state: Exp;
23672 Got rid of externs in source (non-header) files
23673 ----------------------------
23674 revision 1.23
23675 date: 1994/05/03 12:26:38;  author: matt;  state: Exp;
23676 Removed use of physics_info var rotvel, which wasn't used for rotational
23677 velocity at all.
23678 ----------------------------
23679 revision 1.22
23680 date: 1994/02/17 11:32:34;  author: matt;  state: Exp;
23681 Changes in object system
23682 ----------------------------
23683 revision 1.21
23684 date: 1994/01/18 14:03:53;  author: john;  state: Exp;
23685 made joy_get_pos use the new ints instead of
23686 shorts.
23687 ----------------------------
23688 revision 1.20
23689 date: 1994/01/10 17:11:35;  author: mike;  state: Exp;
23690 Add prototype for check_object_seg
23691 ----------------------------
23692 revision 1.19
23693 date: 1994/01/05 10:53:38;  author: john;  state: Exp;
23694 New object code by John.  
23695 ----------------------------
23696 revision 1.18
23697 date: 1993/12/22 15:32:50;  author: john;  state: Exp;
23698 took out previos code that attempted to make
23699 modifiers cancel keydowntime.
23700 ----------------------------
23701 revision 1.17
23702 date: 1993/12/22 11:41:56;  author: john;  state: Exp;
23703 Made so that keydowntime recognizes editor special case!
23704 ----------------------------
23705 revision 1.16
23706 date: 1993/12/14 18:13:52;  author: matt;  state: Exp;
23707 Made slew work in editor even when game isn't in slew mode
23708 ----------------------------
23709 revision 1.15
23710 date: 1993/12/07 23:53:39;  author: matt;  state: Exp;
23711 Made slew work in editor even when game isn't in slew mode
23712 ----------------------------
23713 revision 1.14
23714 date: 1993/12/05 22:47:49;  author: matt;  state: Exp;
23715 Reworked include files in an attempt to cut down on build times
23716 ----------------------------
23717 revision 1.13
23718 date: 1993/12/01 11:44:14;  author: matt;  state: Exp;
23719 Chagned Frfract to FrameTime
23720 ----------------------------
23721 revision 1.12
23722 date: 1993/11/08 16:21:42;  author: john;  state: Exp;
23723 made stop_slew or whatever return an int
23724 ----------------------------
23725 revision 1.11
23726 date: 1993/11/01 13:59:49;  author: john;  state: Exp;
23727 more slew experiments.
23728 =============================================================================
23729 RCS file: /Smoke/miner/source/main/slew.h,v
23730 Working file: main/slew.h
23731 head: 1.1
23732 description: Prototypes, etc., for slew system
23733 ----------------------------
23734 revision 1.1
23735 date: 1995/05/16 16:03:09;  author: allender;  state: Exp;
23736 Initial revision
23737 ----------------------------
23738 revision 2.0
23739 date: 1995/02/27 11:33:05;  author: john;  state: Exp;
23740 New version 2.0, which has no anonymous unions, builds with
23741 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23742 ----------------------------
23743 revision 1.5
23744 date: 1994/12/15 16:43:58;  author: matt;  state: Exp;
23745 Made slew functions compile out for release versions
23746 ----------------------------
23747 revision 1.4
23748 date: 1994/02/17 11:32:41;  author: matt;  state: Exp;
23749 Changes in object system
23750 ----------------------------
23751 revision 1.3
23752 date: 1994/01/05 10:53:42;  author: john;  state: Exp;
23753 New object code by John.  
23754 ----------------------------
23755 revision 1.2
23756 date: 1993/12/05 22:48:57;  author: matt;  state: Exp;
23757 Reworked include files in an attempt to cut down on build times
23758 ----------------------------
23759 revision 1.1
23760 date: 1993/12/05 20:20:16;  author: matt;  state: Exp;
23761 Initial revision
23762 =============================================================================
23763 RCS file: /Smoke/miner/source/main/songs.c,v
23764 Working file: main/songs.c
23765 head: 1.5
23766 description: Routines to manage the songs in Descent.
23767 ----------------------------
23768 revision 1.5
23769 date: 1995/11/03 12:52:59;  author: allender;  state: Exp;
23770 shareware changes
23771 ----------------------------
23772 revision 1.4
23773 date: 1995/10/18 01:51:33;  author: allender;  state: Exp;
23774 fixed up stuff for redbook
23775 ----------------------------
23776 revision 1.3
23777 date: 1995/10/17 13:13:44;  author: allender;  state: Exp;
23778 dont' add resource value to songs to play -- now done in digi
23779 code
23780 ----------------------------
23781 revision 1.2
23782 date: 1995/07/17 08:50:35;  author: allender;  state: Exp;
23783 make work with new music system
23784 ----------------------------
23785 revision 1.1
23786 date: 1995/05/16 15:31:05;  author: allender;  state: Exp;
23787 Initial revision
23788 ----------------------------
23789 revision 2.0
23790 date: 1995/02/27 11:27:13;  author: john;  state: Exp;
23791 New version 2.0, which has no anonymous unions, builds with
23792 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23793 ----------------------------
23794 revision 1.2
23795 date: 1995/02/11 12:42:12;  author: john;  state: Exp;
23796 Added new song method, with FM bank switching..
23797 ----------------------------
23798 revision 1.1
23799 date: 1995/02/11 10:20:33;  author: john;  state: Exp;
23800 Initial revision
23801 =============================================================================
23802 RCS file: /Smoke/miner/source/main/songs.h,v
23803 Working file: main/songs.h
23804 head: 1.5
23805 description: .
23806 ----------------------------
23807 revision 1.5
23808 date: 1995/11/03 12:52:43;  author: allender;  state: Exp;
23809 shareware changes
23810 shareware changes
23811 ----------------------------
23812 revision 1.4
23813 date: 1995/10/18 01:51:45;  author: allender;  state: Exp;
23814 redbook fixes
23815 ----------------------------
23816 revision 1.3
23817 date: 1995/10/17 13:14:14;  author: allender;  state: Exp;
23818 fixed track numbers for redbook
23819 ----------------------------
23820 revision 1.2
23821 date: 1995/07/17 08:50:45;  author: allender;  state: Exp;
23822 changed some constants around
23823 ----------------------------
23824 revision 1.1
23825 date: 1995/05/16 16:03:17;  author: allender;  state: Exp;
23826 Initial revision
23827 ----------------------------
23828 revision 2.0
23829 date: 1995/02/27 11:30:52;  author: john;  state: Exp;
23830 New version 2.0, which has no anonymous unions, builds with
23831 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23832 ----------------------------
23833 revision 1.6
23834 date: 1995/02/11 22:21:44;  author: adam;  state: Exp;
23835 *** empty log message ***
23836 ----------------------------
23837 revision 1.5
23838 date: 1995/02/11 19:10:49;  author: adam;  state: Exp;
23839 *** empty log message ***
23840 ----------------------------
23841 revision 1.4
23842 date: 1995/02/11 18:34:40;  author: adam;  state: Exp;
23843 *** empty log message ***
23844 ----------------------------
23845 revision 1.3
23846 date: 1995/02/11 18:04:51;  author: adam;  state: Exp;
23847 upped songs
23848 ----------------------------
23849 revision 1.2
23850 date: 1995/02/11 12:42:12;  author: john;  state: Exp;
23851 Added new song method, with FM bank switching..
23852 ----------------------------
23853 revision 1.1
23854 date: 1995/02/11 10:20:18;  author: john;  state: Exp;
23855 Initial revision
23856 =============================================================================
23857 RCS file: /Smoke/miner/source/main/sounds.h,v
23858 Working file: main/sounds.h
23859 head: 1.1
23860 description: Numbering system for the sounds.
23861 ----------------------------
23862 revision 1.1
23863 date: 1995/05/16 16:03:32;  author: allender;  state: Exp;
23864 Initial revision
23865 ----------------------------
23866 revision 2.0
23867 date: 1995/02/27 11:27:32;  author: john;  state: Exp;
23868 New version 2.0, which has no anonymous unions, builds with
23869 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
23870 ----------------------------
23871 revision 1.41
23872 date: 1995/02/03 17:08:28;  author: john;  state: Exp;
23873 Changed sound stuff to allow low memory usage.
23874 Also, changed so that Sounds isn't an array of digi_sounds, it
23875 is a ubyte pointing into GameSounds, this way the digi.c code that
23876 locks sounds won't accidentally unlock a sound that is already playing, but
23877 since it's Sounds[soundno] is different, it would erroneously be unlocked.
23878 ----------------------------
23879 revision 1.40
23880 date: 1995/01/30 21:45:17;  author: adam;  state: Exp;
23881 added weapon change sounds
23882 ----------------------------
23883 revision 1.39
23884 date: 1995/01/30 21:11:57;  author: mike;  state: Exp;
23885 Use new weapon selection sounds, different for primary and secondary.
23886 ----------------------------
23887 revision 1.38
23888 date: 1995/01/26 17:02:58;  author: mike;  state: Exp;
23889 make fusion cannon have more chrome, make fusion, mega rock you!
23890 ----------------------------
23891 revision 1.37
23892 date: 1995/01/18 19:46:15;  author: matt;  state: Exp;
23893 Added sound for invulnerability wearing off, and voice message for cheating
23894 ----------------------------
23895 revision 1.36
23896 date: 1995/01/18 19:05:04;  author: john;  state: Exp;
23897 Increased MAX_SOUNDS.
23898 ----------------------------
23899 revision 1.35
23900 date: 1994/12/14 16:57:08;  author: adam;  state: Exp;
23901 *** empty log message ***
23902 ----------------------------
23903 revision 1.34
23904 date: 1994/12/08 21:31:40;  author: adam;  state: Exp;
23905 *** empty log message ***
23906 ----------------------------
23907 revision 1.33
23908 date: 1994/12/08 12:33:01;  author: mike;  state: Exp;
23909 make boss dying more interesting.
23910 ----------------------------
23911 revision 1.32
23912 date: 1994/12/04 21:39:40;  author: matt;  state: Exp;
23913 Added sound constants for endlevel explosions
23914 ----------------------------
23915 revision 1.31
23916 date: 1994/11/30 14:02:58;  author: mike;  state: Exp;
23917 see/claw/attack sounds.
23918 ----------------------------
23919 revision 1.30
23920 date: 1994/11/29 20:43:54;  author: matt;  state: Exp;
23921 Deleted a bunch of unused constants
23922 ----------------------------
23923 revision 1.29
23924 date: 1994/11/29 15:48:11;  author: matt;  state: Exp;
23925 Cleaned up, & added new sounds
23926 ----------------------------
23927 revision 1.28
23928 date: 1994/11/29 14:35:36;  author: adam;  state: Exp;
23929 moved lava noise index
23930 ----------------------------
23931 revision 1.27
23932 date: 1994/11/29 13:23:30;  author: matt;  state: Exp;
23933 Cleaned up sound constants
23934 ----------------------------
23935 revision 1.26
23936 date: 1994/11/29 13:01:04;  author: rob;  state: Exp;
23937 ADded badass explosion define.
23938 ----------------------------
23939 revision 1.25
23940 date: 1994/11/29 11:34:23;  author: rob;  state: Exp;
23941 Added new HUD sounds.
23942 ----------------------------
23943 revision 1.24
23944 date: 1994/11/15 16:52:01;  author: mike;  state: Exp;
23945 hiss sound placeholder.
23946 ----------------------------
23947 revision 1.23
23948 date: 1994/10/25 16:21:45;  author: adam;  state: Exp;
23949 changed homing sound
23950 ----------------------------
23951 revision 1.22
23952 date: 1994/10/23 00:27:34;  author: matt;  state: Exp;
23953 Made exploding wall do one long sound, instead of lots of small ones
23954 ----------------------------
23955 revision 1.21
23956 date: 1994/10/22 14:12:35;  author: mike;  state: Exp;
23957 Add sound for missile tracking player.
23958 ----------------------------
23959 revision 1.20
23960 date: 1994/10/11 12:25:21;  author: matt;  state: Exp;
23961 Added "hot rocks" that create badass explosion when hit by weapons
23962 ----------------------------
23963 revision 1.19
23964 date: 1994/10/10 20:57:50;  author: matt;  state: Exp;
23965 Added sound for exploding wall (hostage door)
23966 ----------------------------
23967 revision 1.18
23968 date: 1994/10/04 15:33:31;  author: john;  state: Exp;
23969 Took out the old PLAY_SOUND??? code and replaced it
23970 with direct calls into digi_link_??? so that all sounds
23971 can be made 3d.
23972 ----------------------------
23973 revision 1.17
23974 date: 1994/09/29 21:13:41;  author: john;  state: Exp;
23975 Added Master volumes for digi and midi. Also took out panning,
23976 because it doesn't work with MasterVolume stuff. 
23977 ----------------------------
23978 revision 1.16
23979 date: 1994/09/29 00:42:29;  author: matt;  state: Exp;
23980 Made hitting a locked door play a sound
23981 ----------------------------
23982 revision 1.15
23983 date: 1994/09/20 19:14:34;  author: john;  state: Exp;
23984 Massaged the sound system; used a better formula for determining
23985 which l/r balance, also, put in Mike's stuff that searches for a connection
23986 between the 2 sounds' segments, stopping for closed doors, etc.
23987 ----------------------------
23988 revision 1.14
23989 date: 1994/07/06 15:23:59;  author: john;  state: Exp;
23990 Revamped hostage sound.
23991 ----------------------------
23992 revision 1.13
23993 date: 1994/06/21 19:13:27;  author: john;  state: Exp;
23994 *** empty log message ***
23995 ----------------------------
23996 revision 1.12
23997 date: 1994/06/21 12:09:54;  author: adam;  state: Exp;
23998 *** empty log message ***
23999 ----------------------------
24000 revision 1.11
24001 date: 1994/06/21 12:03:15;  author: john;  state: Exp;
24002 Added more sounds.
24003 ----------------------------
24004 revision 1.10
24005 date: 1994/06/20 22:01:54;  author: matt;  state: Exp;
24006 Added prototype for Play3D()
24007 ----------------------------
24008 revision 1.9
24009 date: 1994/06/20 21:06:06;  author: yuan;  state: Exp;
24010 Fixed up menus.
24011 ----------------------------
24012 revision 1.8
24013 date: 1994/06/17 12:21:54;  author: mike;  state: Exp;
24014 Hook for robot hits player.
24015 ----------------------------
24016 revision 1.7
24017 date: 1994/06/15 19:01:35;  author: john;  state: Exp;
24018 Added the capability to make 3d sounds play just once for the
24019 laser hit wall effects.
24020 ----------------------------
24021 revision 1.6
24022 date: 1994/06/08 11:43:03;  author: john;  state: Exp;
24023 Enable 3D sound.
24024 ----------------------------
24025 revision 1.5
24026 date: 1994/06/07 18:21:20;  author: john;  state: Exp;
24027 Start changing sound to the new 3D system.
24028 ----------------------------
24029 revision 1.4
24030 date: 1994/05/16 16:17:41;  author: john;  state: Exp;
24031 Bunch of stuff on my Inferno Task list May16-23
24032 ----------------------------
24033 revision 1.3
24034 date: 1994/05/09 21:11:38;  author: john;  state: Exp;
24035 Sound changes; pass index instead of pointer to digi routines.
24036 Made laser sound cut off the last laser sound.
24037 ----------------------------
24038 revision 1.2
24039 date: 1994/04/27 11:47:46;  author: john;  state: Exp;
24040 First version.
24041 ----------------------------
24042 revision 1.1
24043 date: 1994/04/26 10:44:36;  author: john;  state: Exp;
24044 Initial revision
24045 =============================================================================
24046 RCS file: /Smoke/miner/source/main/state.c,v
24047 Working file: main/state.c
24048 head: 1.7
24049 description: Functions to save/restore game state.
24050 ----------------------------
24051 revision 1.7
24052 date: 1995/10/31 10:18:25;  author: allender;  state: Exp;
24053 shareware stuff
24054 ----------------------------
24055 revision 1.6
24056 date: 1995/10/21 22:25:45;  author: allender;  state: Exp;
24057 put in creator code and file type for saved games.
24058 put save games in players folder
24059 ----------------------------
24060 revision 1.5
24061 date: 1995/10/20 00:51:21;  author: allender;  state: Exp;
24062 close boxes and proper mouse support on save game stuff
24063 ----------------------------
24064 revision 1.4
24065 date: 1995/10/17 13:19:02;  author: allender;  state: Exp;
24066 close boxes for load and save game
24067 ----------------------------
24068 revision 1.3
24069 date: 1995/09/18 08:09:15;  author: allender;  state: Exp;
24070 made larger thumbnail and handled NULL gr_bitmap pointers
24071 better
24072 ----------------------------
24073 revision 1.2
24074 date: 1995/08/14 14:36:12;  author: allender;  state: Exp;
24075 change transparency to 0
24076 ----------------------------
24077 revision 1.1
24078 date: 1995/05/16 15:31:12;  author: allender;  state: Exp;
24079 Initial revision
24080 ----------------------------
24081 revision 2.13
24082 date: 1995/04/06 15:12:20;  author: john;  state: Exp;
24083 Fixed bug with lunacy not working.
24084 ----------------------------
24085 revision 2.12
24086 date: 1995/04/04 13:33:05;  author: john;  state: Exp;
24087 Removed multiplayer save.
24088 ----------------------------
24089 revision 2.11
24090 date: 1995/03/31 13:42:10;  author: john;  state: Exp;
24091 Made saved games from the bogus saturn version read in
24092 correctly.
24093 ----------------------------
24094 revision 2.10
24095 date: 1995/03/31 12:45:28;  author: john;  state: Exp;
24096 Fixed bug with previous.
24097 ----------------------------
24098 revision 2.9
24099 date: 1995/03/31 12:24:40;  author: john;  state: Exp;
24100 I had changed alt_textures from a pointer to a byte. This hosed old
24101 saved games, so I restored it to an int.
24102 ----------------------------
24103 revision 2.8
24104 date: 1995/03/28 11:22:47;  author: john;  state: Exp;
24105 Added cheats to save file. Changed lunacy text.
24106 ----------------------------
24107 revision 2.7
24108 date: 1995/03/27 21:41:03;  author: john;  state: Exp;
24109 Added code to verify that the proper multi save file
24110 is used when restoring a network game.
24111 ----------------------------
24112 revision 2.6
24113 date: 1995/03/27 18:04:18;  author: john;  state: Exp;
24114 Made multi save/restore require the -multisave command line arg.
24115 ----------------------------
24116 revision 2.5
24117 date: 1995/03/27 17:01:52;  author: john;  state: Exp;
24118 Made deafult choice work better.
24119 ----------------------------
24120 revision 2.4
24121 date: 1995/03/27 15:49:44;  author: john;  state: Exp;
24122 Added slots to save games.
24123 ----------------------------
24124 revision 2.3
24125 date: 1995/03/27 12:59:19;  author: john;  state: Exp;
24126 Initial version of multiplayer save games.
24127 ----------------------------
24128 revision 2.2
24129 date: 1995/03/24 13:11:35;  author: john;  state: Exp;
24130 Added save game during briefing screens.
24131 ----------------------------
24132 revision 2.1
24133 date: 1995/03/21 14:38:36;  author: john;  state: Exp;
24134 Ifdef'd out the NETWORK code.
24135 ----------------------------
24136 revision 2.0
24137 date: 1995/02/27 11:27:00;  author: john;  state: Exp;
24138 New version 2.0, which has no anonymous unions, builds with
24139 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24140 ----------------------------
24141 revision 1.43
24142 date: 1995/02/22 14:32:41;  author: allender;  state: Exp;
24143 remove anonymous unions from object structure
24144 ----------------------------
24145 revision 1.42
24146 date: 1995/02/13 20:34:33;  author: john;  state: Exp;
24147 Lintized
24148 ----------------------------
24149 revision 1.41
24150 date: 1995/02/13 10:37:30;  author: john;  state: Exp;
24151 Saved Buggin' cheat mode to save file.
24152 ----------------------------
24153 revision 1.40
24154 date: 1995/02/09 10:24:25;  author: john;  state: Exp;
24155 *** empty log message ***
24156 ----------------------------
24157 revision 1.39
24158 date: 1995/02/09 10:22:20;  author: john;  state: Exp;
24159 Fixed bug with callsign getting trashed if you copy somebody else
24160 's save game file into your directory.
24161 ----------------------------
24162 revision 1.38
24163 date: 1995/02/08 21:01:27;  author: john;  state: Exp;
24164 Closed state file around the code that shows briefing screens so that the
24165 code works on machines with clean boot with only 5 file handles.
24166 ----------------------------
24167 revision 1.37
24168 date: 1995/02/07 14:02:33;  author: john;  state: Exp;
24169 Added code to verify game restore.
24170 ----------------------------
24171 revision 1.36
24172 date: 1995/02/07 11:07:43;  author: john;  state: Exp;
24173 Added hooks for confirm on game state restore.
24174 ----------------------------
24175 revision 1.35
24176 date: 1995/02/03 11:27:36;  author: john;  state: Exp;
24177 Made inbetween level save's thumbnail's have correct aspect.
24178 ----------------------------
24179 revision 1.34
24180 date: 1995/02/03 10:58:43;  author: john;  state: Exp;
24181 Added code to save shareware style saved games into new format...
24182 Also, made new player file format not have the saved game array in it.
24183 ----------------------------
24184 revision 1.33
24185 date: 1995/02/02 19:40:52;  author: john;  state: Exp;
24186 Added 10 save game slots.
24187 ----------------------------
24188 revision 1.32
24189 date: 1995/02/02 12:23:20;  author: john;  state: Exp;
24190 Made between level saves have picture.
24191 ----------------------------
24192 revision 1.31
24193 date: 1995/01/31 11:21:43;  author: john;  state: Exp;
24194 Added code for fixed with menus.
24195 ----------------------------
24196 revision 1.30
24197 date: 1995/01/29 21:37:29;  author: mike;  state: Exp;
24198 initialize variables on game load so you don't drain your energy when you fire.
24199 ----------------------------
24200 revision 1.29
24201 date: 1995/01/29 13:47:58;  author: mike;  state: Exp;
24202 Restore some variables on game load (in game).
24203 ----------------------------
24204 revision 1.28
24205 date: 1995/01/26 10:46:57;  author: john;  state: Exp;
24206 Fixed bug with state names getting hosed.
24207 ----------------------------
24208 revision 1.27
24209 date: 1995/01/26 09:51:23;  author: john;  state: Exp;
24210 Fixed bug with game descriptions getting hosed.
24211 ----------------------------
24212 revision 1.26
24213 date: 1995/01/25 16:35:49;  author: john;  state: Exp;
24214 Made so that when you hit enter during
24215 game save, -empty- goes away.
24216 ----------------------------
24217 revision 1.25
24218 date: 1995/01/25 15:01:39;  author: john;  state: Exp;
24219 Upped the save file version.
24220 ----------------------------
24221 revision 1.24
24222 date: 1995/01/24 20:35:35;  author: john;  state: Exp;
24223 *** empty log message ***
24224 ----------------------------
24225 revision 1.23
24226 date: 1995/01/24 20:34:24;  author: john;  state: Exp;
24227 Fixed bug with player stats not being set right for in
24228 between level saves.
24229 ----------------------------
24230 revision 1.22
24231 date: 1995/01/23 10:39:03;  author: john;  state: Exp;
24232 Added mission stuff to game saves.
24233 ----------------------------
24234 revision 1.21
24235 date: 1995/01/22 16:07:12;  author: mike;  state: Exp;
24236 localization.
24237 ----------------------------
24238 revision 1.20
24239 date: 1995/01/22 15:58:32;  author: mike;  state: Exp;
24240 localization
24241 ----------------------------
24242 revision 1.19
24243 date: 1995/01/20 11:04:40;  author: john;  state: Exp;
24244 Upped state save version.
24245 ----------------------------
24246 revision 1.18
24247 date: 1995/01/19 17:00:44;  author: john;  state: Exp;
24248 Made save game work between levels.
24249 ----------------------------
24250 revision 1.17
24251 date: 1995/01/17 14:27:33;  author: john;  state: Exp;
24252 *** empty log message ***
24253 ----------------------------
24254 revision 1.16
24255 date: 1995/01/17 13:36:37;  author: john;  state: Exp;
24256 Moved pig loading into StartNewLevelSub.
24257 ----------------------------
24258 revision 1.15
24259 date: 1995/01/16 16:53:38;  author: john;  state: Exp;
24260 Added code to save cheat state during save game.
24261 ----------------------------
24262 revision 1.14
24263 date: 1995/01/15 16:55:22;  author: john;  state: Exp;
24264 Improved mine texture parsing.
24265 ----------------------------
24266 revision 1.13
24267 date: 1995/01/12 10:45:15;  author: john;  state: Exp;
24268 Added difficulty level to save/restore game.
24269 ----------------------------
24270 revision 1.12
24271 date: 1995/01/05 15:46:55;  author: john;  state: Exp;
24272 Made weapons not rearm when starting a saved game.
24273 ----------------------------
24274 revision 1.11
24275 date: 1995/01/05 11:51:45;  author: john;  state: Exp;
24276 Added better Abort game menu.
24277 Made save state return success or nopt.
24278 ----------------------------
24279 revision 1.10
24280 date: 1995/01/05 11:34:51;  author: john;  state: Exp;
24281 Took out endlevel save stuff for registered.
24282 ----------------------------
24283 revision 1.9
24284 date: 1995/01/04 18:19:52;  author: john;  state: Exp;
24285 Added automap visited list saving.
24286 ----------------------------
24287 revision 1.8
24288 date: 1995/01/04 17:29:56;  author: john;  state: Exp;
24289 Made save/restore ALT+F?. Also made them not work
24290 in network mode, and if recording a demo, will 
24291 quit recording.
24292 ----------------------------
24293 revision 1.7
24294 date: 1995/01/04 13:18:31;  author: john;  state: Exp;
24295 Added cool 6 game save.
24296 ----------------------------
24297 revision 1.6
24298 date: 1995/01/03 20:38:46;  author: john;  state: Exp;
24299 Saved morph objects.
24300 ----------------------------
24301 revision 1.5
24302 date: 1995/01/03 20:19:29;  author: john;  state: Exp;
24303 Pretty good working version of game save.
24304 ----------------------------
24305 revision 1.4
24306 date: 1995/01/03 14:18:18;  author: matt;  state: Exp;
24307 ifdefs added to compile code add.  Added by Mike, I think.
24308 ----------------------------
24309 revision 1.3
24310 date: 1994/12/29 18:40:19;  author: john;  state: Exp;
24311 Initial version.
24312 ----------------------------
24313 revision 1.2
24314 date: 1994/12/29 15:26:40;  author: john;  state: Exp;
24315 Put in hooks for saving/restoring game state.
24316 ----------------------------
24317 revision 1.1
24318 date: 1994/12/29 15:16:02;  author: john;  state: Exp;
24319 Initial revision
24320 =============================================================================
24321 RCS file: /Smoke/miner/source/main/state.h,v
24322 Working file: main/state.h
24323 head: 1.1
24324 description: Prototypes for state saving functions.
24325 ----------------------------
24326 revision 1.1
24327 date: 1995/05/16 16:03:40;  author: allender;  state: Exp;
24328 Initial revision
24329 ----------------------------
24330 revision 2.1
24331 date: 1995/03/27 21:40:35;  author: john;  state: Exp;
24332 Added code to verify that the proper multi save file
24333 is used when restoring a network game.
24334 ----------------------------
24335 revision 2.0
24336 date: 1995/02/27 11:28:44;  author: john;  state: Exp;
24337 New version 2.0, which has no anonymous unions, builds with
24338 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24339 ----------------------------
24340 revision 1.6
24341 date: 1995/02/07 10:54:05;  author: john;  state: Exp;
24342 *** empty log message ***
24343 ----------------------------
24344 revision 1.5
24345 date: 1995/02/03 10:58:12;  author: john;  state: Exp;
24346 Added code to save shareware style saved games into new format...
24347 Also, made new player file format not have the saved game array in it.
24348 ----------------------------
24349 revision 1.4
24350 date: 1995/01/19 17:00:51;  author: john;  state: Exp;
24351 Made save game work between levels.
24352 ----------------------------
24353 revision 1.3
24354 date: 1995/01/05 11:51:44;  author: john;  state: Exp;
24355 Added better Abort game menu.
24356 Made save state return success or nopt.
24357 ----------------------------
24358 revision 1.2
24359 date: 1994/12/29 15:26:39;  author: john;  state: Exp;
24360 Put in hooks for saving/restoring game state.
24361 ----------------------------
24362 revision 1.1
24363 date: 1994/12/29 15:15:47;  author: john;  state: Exp;
24364 Initial revision
24365 =============================================================================
24366 RCS file: /Smoke/miner/source/main/switch.c,v
24367 Working file: main/switch.c
24368 head: 1.2
24369 description: New Triggers and Switches.
24370 ----------------------------
24371 revision 1.2
24372 date: 1995/10/31 10:18:10;  author: allender;  state: Exp;
24373 shareware stuff
24374 ----------------------------
24375 revision 1.1
24376 date: 1995/05/16 15:31:21;  author: allender;  state: Exp;
24377 Initial revision
24378 ----------------------------
24379 revision 2.1
24380 date: 1995/03/21 08:39:08;  author: john;  state: Exp;
24381 Ifdef'd out the NETWORK code.
24382 ----------------------------
24383 revision 2.0
24384 date: 1995/02/27 11:28:41;  author: john;  state: Exp;
24385 New version 2.0, which has no anonymous unions, builds with
24386 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24387 ----------------------------
24388 revision 1.51
24389 date: 1995/01/31 15:26:23;  author: rob;  state: Exp;
24390 Don't trigger matcens in anarchy games.
24391 ----------------------------
24392 revision 1.50
24393 date: 1995/01/26 12:18:26;  author: rob;  state: Exp;
24394 Changed network_do_frame call.
24395 ----------------------------
24396 revision 1.49
24397 date: 1995/01/18 18:50:35;  author: allender;  state: Exp;
24398 don't process triggers if in demo playback mode.  Fix for Rob to only do
24399 multi_send_endlevel_start if in multi player game
24400 ----------------------------
24401 revision 1.48
24402 date: 1995/01/13 11:59:40;  author: rob;  state: Exp;
24403 Added palette fade after secret level exit.
24404 ----------------------------
24405 revision 1.47
24406 date: 1995/01/12 17:00:41;  author: rob;  state: Exp;
24407 Fixed a problem with switches and secret levels.
24408 ----------------------------
24409 revision 1.46
24410 date: 1995/01/12 13:35:11;  author: rob;  state: Exp;
24411 Added data flush after secret level exit.
24412 ----------------------------
24413 revision 1.45
24414 date: 1995/01/03 15:25:11;  author: rob;  state: Exp;
24415 Fixed a compile error.
24416 ----------------------------
24417 revision 1.44
24418 date: 1995/01/03 15:12:02;  author: rob;  state: Exp;
24419 Adding multiplayer switching.
24420 ----------------------------
24421 revision 1.43
24422 date: 1994/11/29 16:52:12;  author: yuan;  state: Exp;
24423 Removed some obsolete commented out code.
24424 ----------------------------
24425 revision 1.42
24426 date: 1994/11/27 23:15:07;  author: matt;  state: Exp;
24427 Made changes for new mprintf calling convention
24428 ----------------------------
24429 revision 1.41
24430 date: 1994/11/22 18:36:45;  author: rob;  state: Exp;
24431 Added new hook for endlevel for secret doors.
24432 ----------------------------
24433 revision 1.40
24434 date: 1994/11/21 17:29:43;  author: matt;  state: Exp;
24435 Cleaned up sequencing & game saving for secret levels
24436 ----------------------------
24437 revision 1.39
24438 date: 1994/11/19 15:20:32;  author: mike;  state: Exp;
24439 rip out unused code and data
24440 ----------------------------
24441 revision 1.38
24442 date: 1994/10/25 16:09:52;  author: yuan;  state: Exp;
24443 Fixed byte bug.
24444 ----------------------------
24445 revision 1.37
24446 date: 1994/10/24 16:05:28;  author: matt;  state: Exp;
24447 Removed clear of fuelcen_control_center_destroyed
24448 ----------------------------
24449 revision 1.36
24450 date: 1994/10/08 14:21:13;  author: matt;  state: Exp;
24451 Added include
24452 ----------------------------
24453 revision 1.35
24454 date: 1994/10/07 12:34:09;  author: matt;  state: Exp;
24455 Added code fot going to/from secret levels
24456 ----------------------------
24457 revision 1.34
24458 date: 1994/10/05 15:16:10;  author: rob;  state: Exp;
24459 Used to be that only player #0 could trigger switches, now only the
24460 LOCAL player can do it (and he's expected to tell the other guy with
24461 a com message if its important!)
24462 ----------------------------
24463 revision 1.33
24464 date: 1994/09/24 17:42:03;  author: mike;  state: Exp;
24465 Kill temporary version of function written by Yuan, replaced by MK.
24466 ----------------------------
24467 revision 1.32
24468 date: 1994/09/24 17:10:00;  author: yuan;  state: Exp;
24469 Added Matcen triggers.
24470 ----------------------------
24471 revision 1.31
24472 date: 1994/09/23 18:02:21;  author: yuan;  state: Exp;
24473 Completed wall checking.
24474 ----------------------------
24475 revision 1.30
24476 date: 1994/08/19 20:09:41;  author: matt;  state: Exp;
24477 Added end-of-level cut scene with external scene
24478 ----------------------------
24479 revision 1.29
24480 date: 1994/08/18 10:47:36;  author: john;  state: Exp;
24481 Cleaned up game sequencing and player death stuff
24482 in preparation for making the player explode into
24483 pieces when dead.
24484 ----------------------------
24485 revision 1.28
24486 date: 1994/08/12 22:42:11;  author: john;  state: Exp;
24487 Took away Player_stats; added Players array.
24488 ----------------------------
24489 revision 1.27
24490 date: 1994/07/02 13:50:44;  author: matt;  state: Exp;
24491 Cleaned up includes
24492 ----------------------------
24493 revision 1.26
24494 date: 1994/06/27 16:32:25;  author: yuan;  state: Exp;
24495 Commented out incomplete code...
24496 ----------------------------
24497 revision 1.25
24498 date: 1994/06/27 15:53:27;  author: john;  state: Exp;
24499 #define'd out the newdemo stuff
24500 ----------------------------
24501 revision 1.24
24502 date: 1994/06/27 15:10:04;  author: yuan;  state: Exp;
24503 Might mess up triggers.
24504 ----------------------------
24505 revision 1.23
24506 date: 1994/06/24 17:01:43;  author: john;  state: Exp;
24507 Add VFX support; Took Game Sequencing, like EndGame and stuff and
24508 took it out of game.c and into gameseq.c
24509 ----------------------------
24510 revision 1.22
24511 date: 1994/06/16 16:20:15;  author: john;  state: Exp;
24512 Made player start out in physics mode; Neatend up game loop a bit.
24513 ----------------------------
24514 revision 1.21
24515 date: 1994/06/15 14:57:22;  author: john;  state: Exp;
24516 Added triggers to demo recording.
24517 ----------------------------
24518 revision 1.20
24519 date: 1994/06/10 17:44:25;  author: mike;  state: Exp;
24520 Assert on result of find_connect_side == -1
24521 ----------------------------
24522 revision 1.19
24523 date: 1994/06/08 10:20:15;  author: yuan;  state: Exp;
24524 Removed unused testing.
24525 ----------------------------
24526 revision 1.18
24527 date: 1994/06/07 13:10:48;  author: yuan;  state: Exp;
24528 Fixed bug in check trigger... Still working on other bugs.
24529 ----------------------------
24530 revision 1.17
24531 date: 1994/05/30 20:22:04;  author: yuan;  state: Exp;
24532 New triggers.
24533 ----------------------------
24534 revision 1.16
24535 date: 1994/05/27 10:32:46;  author: yuan;  state: Exp;
24536 New dialog boxes (Walls and Triggers) added.
24537 ----------------------------
24538 revision 1.15
24539 date: 1994/05/25 18:06:46;  author: yuan;  state: Exp;
24540 Making new dialog box controls for walls and triggers.
24541 ----------------------------
24542 revision 1.14
24543 date: 1994/05/10 19:05:32;  author: yuan;  state: Exp;
24544 Made end of level flag rather than menu popping up
24545 ----------------------------
24546 revision 1.13
24547 date: 1994/04/29 15:05:25;  author: yuan;  state: Exp;
24548 Added menu pop-up at exit trigger.
24549 =============================================================================
24550 RCS file: /Smoke/miner/source/main/switch.h,v
24551 Working file: main/switch.h
24552 head: 1.1
24553 description: Triggers and Switches.
24554 ----------------------------
24555 revision 1.1
24556 date: 1995/05/16 16:03:48;  author: allender;  state: Exp;
24557 Initial revision
24558 ----------------------------
24559 revision 2.0
24560 date: 1995/02/27 11:26:52;  author: john;  state: Exp;
24561 New version 2.0, which has no anonymous unions, builds with
24562 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24563 ----------------------------
24564 revision 1.19
24565 date: 1995/01/12 17:00:36;  author: rob;  state: Exp;
24566 Fixed a problem with switches and secret levels.
24567 ----------------------------
24568 revision 1.18
24569 date: 1994/10/06 21:24:40;  author: matt;  state: Exp;
24570 Added switch for exit to secret level
24571 ----------------------------
24572 revision 1.17
24573 date: 1994/09/29 17:05:52;  author: matt;  state: Exp;
24574 Removed unused constant
24575 ----------------------------
24576 revision 1.16
24577 date: 1994/09/24 17:10:07;  author: yuan;  state: Exp;
24578 Added Matcen triggers.
24579 ----------------------------
24580 revision 1.15
24581 date: 1994/08/15 18:06:39;  author: yuan;  state: Exp;
24582 Added external trigger.
24583 ----------------------------
24584 revision 1.14
24585 date: 1994/06/16 16:20:52;  author: john;  state: Exp;
24586 Made player start out in physics mode; Neatend up game loop a bit.
24587 ----------------------------
24588 revision 1.13
24589 date: 1994/05/30 20:22:08;  author: yuan;  state: Exp;
24590 New triggers.
24591 ----------------------------
24592 revision 1.12
24593 date: 1994/05/27 10:32:44;  author: yuan;  state: Exp;
24594 New dialog boxes (Walls and Triggers) added.
24595 ----------------------------
24596 revision 1.11
24597 date: 1994/05/25 18:06:32;  author: yuan;  state: Exp;
24598 Making new dialog box controls for walls and triggers.
24599 ----------------------------
24600 revision 1.10
24601 date: 1994/04/28 18:04:40;  author: yuan;  state: Exp;
24602 Gamesave added.
24603 Trigger problem fixed (seg pointer is replaced by index now.)
24604 ----------------------------
24605 revision 1.9
24606 date: 1994/04/26 11:19:01;  author: yuan;  state: Exp;
24607 Make it so a trigger can only be triggered every 5 seconds.
24608 =============================================================================
24609 RCS file: /Smoke/miner/source/main/terrain.c,v
24610 Working file: main/terrain.c
24611 head: 1.1
24612 description: Code to render cool external-scene terrain
24613 ----------------------------
24614 revision 1.1
24615 date: 1995/05/16 15:31:29;  author: allender;  state: Exp;
24616 Initial revision
24617 ----------------------------
24618 revision 2.0
24619 date: 1995/02/27 11:31:27;  author: john;  state: Exp;
24620 New version 2.0, which has no anonymous unions, builds with
24621 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24622 ----------------------------
24623 revision 1.12
24624 date: 1994/12/03 00:18:00;  author: matt;  state: Exp;
24625 Made endlevel sequence cut off early
24626 Made exit model and bit explosion always plot last (after all terrain)
24627 ----------------------------
24628 revision 1.11
24629 date: 1994/11/27 23:13:46;  author: matt;  state: Exp;
24630 Made changes for new mprintf calling convention
24631 ----------------------------
24632 revision 1.10
24633 date: 1994/11/21 18:04:36;  author: matt;  state: Exp;
24634 Fixed alloc/free problem with height array
24635 ----------------------------
24636 revision 1.9
24637 date: 1994/11/21 17:30:42;  author: matt;  state: Exp;
24638 Properly free light array
24639 ----------------------------
24640 revision 1.8
24641 date: 1994/11/19 12:40:55;  author: matt;  state: Exp;
24642 Added system to read endlevel data from file, and to make it work
24643 with any exit tunnel.
24644 ----------------------------
24645 revision 1.7
24646 date: 1994/11/16 11:49:44;  author: matt;  state: Exp;
24647 Added code to rotate terrain to match mine
24648 ----------------------------
24649 revision 1.6
24650 date: 1994/11/02 16:22:59;  author: matt;  state: Exp;
24651 Killed mprintf
24652 ----------------------------
24653 revision 1.5
24654 date: 1994/10/30 20:09:19;  author: matt;  state: Exp;
24655 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
24656 go out; made more explosions on walls.
24657 ----------------------------
24658 revision 1.4
24659 date: 1994/10/27 21:15:07;  author: matt;  state: Exp;
24660 Added better error handling
24661 ----------------------------
24662 revision 1.3
24663 date: 1994/10/27 01:03:17;  author: matt;  state: Exp;
24664 Made terrain renderer use aribtary point in height array as origin
24665 ----------------------------
24666 revision 1.2
24667 date: 1994/08/19 20:09:44;  author: matt;  state: Exp;
24668 Added end-of-level cut scene with external scene
24669 ----------------------------
24670 revision 1.1
24671 date: 1994/08/17 20:20:49;  author: matt;  state: Exp;
24672 Initial revision
24673 =============================================================================
24674 RCS file: /Smoke/miner/source/main/terrain.h,v
24675 Working file: main/terrain.h
24676 head: 1.1
24677 description: Header for terrain.c
24678 ----------------------------
24679 revision 1.1
24680 date: 1995/05/16 16:03:56;  author: allender;  state: Exp;
24681 Initial revision
24682 ----------------------------
24683 revision 2.0
24684 date: 1995/02/27 11:32:53;  author: john;  state: Exp;
24685 New version 2.0, which has no anonymous unions, builds with
24686 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24687 ----------------------------
24688 revision 1.3
24689 date: 1994/10/27 01:03:51;  author: matt;  state: Exp;
24690 Made terrain renderer use aribtary point in height array as origin
24691 ----------------------------
24692 revision 1.2
24693 date: 1994/08/19 20:09:45;  author: matt;  state: Exp;
24694 Added end-of-level cut scene with external scene
24695 ----------------------------
24696 revision 1.1
24697 date: 1994/08/17 20:33:36;  author: matt;  state: Exp;
24698 Initial revision
24699 =============================================================================
24700 RCS file: /Buggin/miner/source/main/texmerge.c,v
24701 Working file: main/texmerge.c
24702 head: 1.1
24703 description: Routines to cache merged textures.
24704 ----------------------------
24705 revision 1.1
24706 date: 1995/05/16 15:31:36;  author: allender;  state: Exp;
24707 Initial revision
24708 ----------------------------
24709 revision 2.0
24710 date: 1995/02/27 11:31:08;  author: john;  state: Exp;
24711 New version 2.0, which has no anonymous unions, builds with
24712 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24713 ----------------------------
24714 revision 1.28
24715 date: 1995/01/14 19:16:56;  author: john;  state: Exp;
24716 First version of new bitmap paging code.
24717 ----------------------------
24718 revision 1.27
24719 date: 1994/12/14 18:21:58;  author: yuan;  state: Exp;
24720 *** empty log message ***
24721 ----------------------------
24722 revision 1.26
24723 date: 1994/12/13 09:50:08;  author: john;  state: Exp;
24724 Added Asserts to stop if wall looks like door.
24725 ----------------------------
24726 revision 1.25
24727 date: 1994/12/07 00:35:24;  author: mike;  state: Exp;
24728 change how flat shading average color is computed for paste-ons.
24729 ----------------------------
24730 revision 1.24
24731 date: 1994/11/19 15:20:29;  author: mike;  state: Exp;
24732 rip out unused code and data
24733 ----------------------------
24734 revision 1.23
24735 date: 1994/11/12 16:38:51;  author: mike;  state: Exp;
24736 deal with avg_color in texture merging.
24737 ----------------------------
24738 revision 1.22
24739 date: 1994/11/09 19:55:39;  author: john;  state: Exp;
24740 Added full rle support with texture rle caching.
24741 ----------------------------
24742 revision 1.21
24743 date: 1994/10/20 15:21:16;  author: john;  state: Exp;
24744 Took out the texmerge caching.
24745 ----------------------------
24746 revision 1.20
24747 date: 1994/10/10 19:00:57;  author: john;  state: Exp;
24748 Made caching info print every 1000 frames.
24749 ----------------------------
24750 revision 1.19
24751 date: 1994/10/10 18:41:21;  author: john;  state: Exp;
24752 Printed out texture caching info.
24753 ----------------------------
24754 revision 1.18
24755 date: 1994/08/11 18:59:02;  author: mike;  state: Exp;
24756 Use new assembler version of merge functions.
24757 ----------------------------
24758 revision 1.17
24759 date: 1994/06/09 12:13:14;  author: john;  state: Exp;
24760 Changed selectors so that all bitmaps have a selector of
24761 0, but inside the texture mapper they get a selector set.
24762 ----------------------------
24763 revision 1.16
24764 date: 1994/05/14 17:15:15;  author: matt;  state: Exp;
24765 Got rid of externs in source (non-header) files
24766 ----------------------------
24767 revision 1.15
24768 date: 1994/05/09 17:21:09;  author: john;  state: Exp;
24769 Took out mprintf with cache hits/misses.
24770 ----------------------------
24771 revision 1.14
24772 date: 1994/05/05 12:55:07;  author: john;  state: Exp;
24773 Made SuperTransparency work.
24774 ----------------------------
24775 revision 1.13
24776 date: 1994/05/04 11:15:37;  author: john;  state: Exp;
24777 Added Super Transparency
24778 ----------------------------
24779 revision 1.12
24780 date: 1994/04/28 23:36:04;  author: john;  state: Exp;
24781 Took out a debugging mprintf.
24782 ----------------------------
24783 revision 1.11
24784 date: 1994/04/22 17:44:48;  author: john;  state: Exp;
24785 Made top 2 bits of paste-ons pick the
24786 orientation of the bitmap.
24787 ----------------------------
24788 revision 1.10
24789 date: 1994/03/31 12:05:51;  author: matt;  state: Exp;
24790 Cleaned up includes
24791 ----------------------------
24792 revision 1.9
24793 date: 1994/03/15 16:31:52;  author: yuan;  state: Exp;
24794 Cleaned up bm-loading code.
24795 (And structures)
24796 ----------------------------
24797 revision 1.8
24798 date: 1994/01/24 13:15:19;  author: john;  state: Exp;
24799 Made caching work with pointers, not texture numbers,
24800 that way, the animated textures cache.
24801 ----------------------------
24802 revision 1.7
24803 date: 1994/01/21 16:38:10;  author: john;  state: Exp;
24804 Took out debug info.
24805 ----------------------------
24806 revision 1.6
24807 date: 1994/01/21 16:28:43;  author: john;  state: Exp;
24808 added warning to print cache hit/miss.
24809 ----------------------------
24810 revision 1.5
24811 date: 1994/01/21 16:22:30;  author: john;  state: Exp;
24812 Put in caching/
24813 ----------------------------
24814 revision 1.4
24815 date: 1994/01/21 15:34:49;  author: john;  state: Exp;
24816 *** empty log message ***
24817 ----------------------------
24818 revision 1.3
24819 date: 1994/01/21 15:33:08;  author: john;  state: Exp;
24820 *** empty log message ***
24821 ----------------------------
24822 revision 1.2
24823 date: 1994/01/21 15:15:35;  author: john;  state: Exp;
24824 Created new module texmerge, that merges textures together and 
24825 caches the results.
24826 ----------------------------
24827 revision 1.1
24828 date: 1994/01/21 14:55:29;  author: john;  state: Exp;
24829 Initial revision
24830 =============================================================================
24831 RCS file: /Smoke/miner/source/main/texmerge.h,v
24832 Working file: main/texmerge.h
24833 head: 1.1
24834 description: Definitions for texture merging caching stuff.
24835 ----------------------------
24836 revision 1.1
24837 date: 1995/05/16 16:04:03;  author: allender;  state: Exp;
24838 Initial revision
24839 ----------------------------
24840 revision 2.0
24841 date: 1995/02/27 11:28:05;  author: john;  state: Exp;
24842 New version 2.0, which has no anonymous unions, builds with
24843 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24844 ----------------------------
24845 revision 1.4
24846 date: 1995/01/14 19:16:26;  author: john;  state: Exp;
24847 First version of new bitmap paging code.
24848 ----------------------------
24849 revision 1.3
24850 date: 1994/01/21 15:23:26;  author: john;  state: Exp;
24851 made texmerge_close return void.
24852 ----------------------------
24853 revision 1.2
24854 date: 1994/01/21 15:16:01;  author: john;  state: Exp;
24855 Created new module texmerge, that merges textures together and 
24856 caches the results.
24857 ----------------------------
24858 revision 1.1
24859 date: 1994/01/21 15:03:36;  author: john;  state: Exp;
24860 Initial revision
24861 =============================================================================
24862 RCS file: /Smoke/miner/source/main/text.c,v
24863 Working file: main/text.c
24864 head: 1.1
24865 description: Code for localizable text
24866 ----------------------------
24867 revision 1.1
24868 date: 1995/05/16 15:31:44;  author: allender;  state: Exp;
24869 Initial revision
24870 ----------------------------
24871 revision 2.0
24872 date: 1995/02/27 11:33:09;  author: john;  state: Exp;
24873 New version 2.0, which has no anonymous unions, builds with
24874 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24875 ----------------------------
24876 revision 1.11
24877 date: 1994/12/14 12:53:23;  author: matt;  state: Exp;
24878 Improved error handling
24879 ----------------------------
24880 revision 1.10
24881 date: 1994/12/09 18:36:44;  author: john;  state: Exp;
24882 Added code to make text read from hogfile.
24883 ----------------------------
24884 revision 1.9
24885 date: 1994/12/08 20:56:34;  author: john;  state: Exp;
24886 More cfile stuff.
24887 ----------------------------
24888 revision 1.8
24889 date: 1994/12/08 17:20:06;  author: yuan;  state: Exp;
24890 Cfiling stuff.
24891 ----------------------------
24892 revision 1.7
24893 date: 1994/12/05 15:10:36;  author: allender;  state: Exp;
24894 support encoded descent.tex file (descent.txb)
24895 ----------------------------
24896 revision 1.6
24897 date: 1994/12/01 14:18:34;  author: matt;  state: Exp;
24898 Now support backslash chars in descent.tex file
24899 ----------------------------
24900 revision 1.5
24901 date: 1994/10/27 00:13:10;  author: john;  state: Exp;
24902 Took out cfile.
24903 ----------------------------
24904 revision 1.4
24905 date: 1994/07/11 15:33:49;  author: matt;  state: Exp;
24906 Put in command-line switch to load different text files
24907 ----------------------------
24908 revision 1.3
24909 date: 1994/07/10 09:56:25;  author: yuan;  state: Exp;
24910 #include <stdio.h> added for FILE type.
24911 ----------------------------
24912 revision 1.2
24913 date: 1994/07/09 22:48:14;  author: matt;  state: Exp;
24914 Added localizable text
24915 ----------------------------
24916 revision 1.1
24917 date: 1994/07/09 21:30:46;  author: matt;  state: Exp;
24918 Initial revision
24919 =============================================================================
24920 RCS file: /Smoke/miner/source/main/text.h,v
24921 Working file: main/text.h
24922 head: 1.3
24923 description: Header for text.c, including symbolics for text messages
24924 ----------------------------
24925 revision 1.3
24926 date: 1995/10/18 23:30:29;  author: allender;  state: Exp;
24927 fixed horrendous misspelling
24928 ----------------------------
24929 revision 1.2
24930 date: 1995/10/18 23:27:33;  author: allender;  state: Exp;
24931 added new printscreen line to end of text string
24932 ----------------------------
24933 revision 1.1
24934 date: 1995/05/16 16:04:11;  author: allender;  state: Exp;
24935 Initial revision
24936 ----------------------------
24937 revision 2.2
24938 date: 1995/03/30 16:36:22;  author: mike;  state: Exp;
24939 text localization.
24940 ----------------------------
24941 revision 2.1
24942 date: 1995/03/08 15:33:24;  author: allender;  state: Exp;
24943 *** empty log message ***
24944 ----------------------------
24945 revision 2.0
24946 date: 1995/02/27 11:30:21;  author: john;  state: Exp;
24947 New version 2.0, which has no anonymous unions, builds with
24948 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
24949 ----------------------------
24950 revision 1.63
24951 date: 1995/02/11 14:59:42;  author: rob;  state: Exp;
24952 Added string for controlcen invul.
24953 ----------------------------
24954 revision 1.62
24955 date: 1995/02/10 15:19:38;  author: allender;  state: Exp;
24956 added text for bad write on demo write
24957 ----------------------------
24958 revision 1.61
24959 date: 1995/02/08 10:59:11;  author: rob;  state: Exp;
24960 Added string used in kill list view.
24961 ----------------------------
24962 revision 1.60
24963 date: 1995/02/07 20:38:40;  author: rob;  state: Exp;
24964 Added new localized strings for new multi options.
24965 ----------------------------
24966 revision 1.59
24967 date: 1995/02/02 15:29:17;  author: matt;  state: Exp;
24968 Changed & localized secret level text
24969 ----------------------------
24970 revision 1.58
24971 date: 1995/02/02 12:24:14;  author: adam;  state: Exp;
24972 added automap string
24973 ----------------------------
24974 revision 1.57
24975 date: 1995/02/01 18:06:50;  author: rob;  state: Exp;
24976 Localize default macros, other stuff frm network.c
24977 ----------------------------
24978 revision 1.56
24979 date: 1995/01/30 15:29:53;  author: rob;  state: Exp;
24980 Localizing.
24981 ----------------------------
24982 revision 1.55
24983 date: 1995/01/30 13:54:25;  author: allender;  state: Exp;
24984 added mission/demo text
24985 ----------------------------
24986 revision 1.54
24987 date: 1995/01/24 22:03:22;  author: mike;  state: Exp;
24988 text localization.
24989 ----------------------------
24990 revision 1.53
24991 date: 1995/01/23 13:05:59;  author: adam;  state: Exp;
24992 added save/load game text
24993 ----------------------------
24994 revision 1.52
24995 date: 1995/01/22 15:58:42;  author: mike;  state: Exp;
24996 localization
24997 ----------------------------
24998 revision 1.51
24999 date: 1994/12/29 12:08:47;  author: rob;  state: Exp;
25000 removed new text strings.
25001 ----------------------------
25002 revision 1.50
25003 date: 1994/12/28 16:47:14;  author: rob;  state: Exp;
25004 Added new com setup strings.
25005 ----------------------------
25006 revision 1.49
25007 date: 1994/12/15 23:24:22;  author: rob;  state: Exp;
25008 Added string for rejoin failure.
25009 ----------------------------
25010 revision 1.48
25011 date: 1994/12/15 10:16:06;  author: adam;  state: Exp;
25012 added lame trademark notice
25013 ----------------------------
25014 revision 1.47
25015 date: 1994/12/14 18:21:23;  author: yuan;  state: Exp;
25016 *** empty log message ***
25017 ----------------------------
25018 revision 1.46
25019 date: 1994/12/14 16:57:01;  author: matt;  state: Exp;
25020 Added text for hat2
25021 ----------------------------
25022 revision 1.45
25023 date: 1994/12/14 08:50:12;  author: allender;  state: Exp;
25024 *** empty log message ***
25025 ----------------------------
25026 revision 1.44
25027 date: 1994/12/13 19:43:29;  author: rob;  state: Exp;
25028 Added string.
25029 ----------------------------
25030 revision 1.43
25031 date: 1994/12/13 12:54:45;  author: mike;  state: Exp;
25032 add strings for hostages on board when you die.
25033 ----------------------------
25034 revision 1.42
25035 date: 1994/12/13 10:04:09;  author: allender;  state: Exp;
25036 *** empty log message ***
25037 ----------------------------
25038 revision 1.41
25039 date: 1994/12/12 22:20:23;  author: rob;  state: Exp;
25040 Added two new localized strings for modem.c
25041 ----------------------------
25042 revision 1.40
25043 date: 1994/12/09 19:46:26;  author: yuan;  state: Exp;
25044 Localized the sucker.
25045 ----------------------------
25046 revision 1.39
25047 date: 1994/12/09 14:35:30;  author: yuan;  state: Exp;
25048 Added localization string for Rob.
25049 ----------------------------
25050 revision 1.38
25051 date: 1994/12/09 14:08:16;  author: mike;  state: Exp;
25052 text message for remaining ships at end bonus.
25053 ----------------------------
25054 revision 1.37
25055 date: 1994/12/09 00:28:26;  author: rob;  state: Exp;
25056 Added "died in mine" string.
25057 ----------------------------
25058 revision 1.36
25059 date: 1994/12/08 14:30:31;  author: yuan;  state: Exp;
25060 Fixed off by one problem.
25061 ----------------------------
25062 revision 1.35
25063 date: 1994/12/08 11:18:56;  author: allender;  state: Exp;
25064 demo text string
25065 ----------------------------
25066 revision 1.33
25067 date: 1994/12/07 19:14:33;  author: matt;  state: Exp;
25068 Cleaned up command-line options and command-line help message
25069 ----------------------------
25070 revision 1.32
25071 date: 1994/12/07 17:20:34;  author: yuan;  state: Exp;
25072 Localization
25073 ----------------------------
25074 revision 1.31
25075 date: 1994/12/07 16:49:15;  author: yuan;  state: Exp;
25076 More localization
25077 ----------------------------
25078 revision 1.30
25079 date: 1994/12/07 14:52:11;  author: yuan;  state: Exp;
25080 Localization 492
25081 ----------------------------
25082 revision 1.29
25083 date: 1994/12/07 11:28:12;  author: matt;  state: Exp;
25084 Did a little localization support
25085 ----------------------------
25086 revision 1.28
25087 date: 1994/12/06 18:29:31;  author: mike;  state: Exp;
25088 Add text for cheat: Start at any level.
25089 ----------------------------
25090 revision 1.27
25091 date: 1994/12/06 16:30:39;  author: yuan;  state: Exp;
25092 Localization
25093 ----------------------------
25094 revision 1.26
25095 date: 1994/12/06 15:14:55;  author: yuan;  state: Exp;
25096 Fixed number of textstrings.
25097 ----------------------------
25098 revision 1.25
25099 date: 1994/12/06 15:13:52;  author: yuan;  state: Exp;
25100 Localization
25101 ----------------------------
25102 revision 1.24
25103 date: 1994/12/06 13:46:24;  author: adam;  state: Exp;
25104 *** empty log message ***
25105 ----------------------------
25106 revision 1.23
25107 date: 1994/12/05 23:17:28;  author: yuan;  state: Exp;
25108 Localization bugs fixed.
25109 ----------------------------
25110 revision 1.22
25111 date: 1994/12/05 23:05:41;  author: yuan;  state: Exp;
25112 Localization 425
25113 ----------------------------
25114 revision 1.21
25115 date: 1994/12/05 22:42:27;  author: rob;  state: Exp;
25116 Added new connect status strings
25117 ----------------------------
25118 revision 1.20
25119 date: 1994/12/05 16:47:30;  author: rob;  state: Exp;
25120 Added a new string.
25121 ----------------------------
25122 revision 1.19
25123 date: 1994/12/03 22:35:17;  author: yuan;  state: Exp;
25124 Localization 412
25125 ----------------------------
25126 revision 1.18
25127 date: 1994/12/03 17:53:42;  author: yuan;  state: Exp;
25128 382.
25129 =============================================================================
25130 RCS file: /Smoke/miner/source/main/textures.h,v
25131 Working file: main/textures.h
25132 head: 1.1
25133 description: Array of textures, and other stuff
25134 ----------------------------
25135 revision 1.1
25136 date: 1995/05/16 16:04:20;  author: allender;  state: Exp;
25137 Initial revision
25138 ----------------------------
25139 revision 2.0
25140 date: 1995/02/27 11:31:54;  author: john;  state: Exp;
25141 New version 2.0, which has no anonymous unions, builds with
25142 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25143 ----------------------------
25144 revision 1.3
25145 date: 1994/03/15 16:32:56;  author: yuan;  state: Exp;
25146 Cleaned up bm-loading code.
25147 (Fixed structures too)
25148 ----------------------------
25149 revision 1.2
25150 date: 1993/12/05 22:49:53;  author: matt;  state: Exp;
25151 Reworked include files in an attempt to cut down on build times
25152 ----------------------------
25153 revision 1.1
25154 date: 1993/12/05 20:16:26;  author: matt;  state: Exp;
25155 Initial revision
25156 =============================================================================
25157 RCS file: /Smoke/miner/source/main/titles.c,v
25158 Working file: main/titles.c
25159 head: 1.13
25160 description: Routines to display title screens...
25161 ----------------------------
25162 revision 1.13
25163 date: 1995/11/03 12:52:23;  author: allender;  state: Exp;
25164 shareware changes
25165 ----------------------------
25166 revision 1.12
25167 date: 1995/10/31 10:17:56;  author: allender;  state: Exp;
25168 shareware stuff
25169 ----------------------------
25170 revision 1.11
25171 date: 1995/10/24 18:12:02;  author: allender;  state: Exp;
25172 don't do special processing on do_appl_quit anymore
25173 ----------------------------
25174 revision 1.10
25175 date: 1995/10/21 22:25:02;  author: allender;  state: Exp;
25176 added bald guy cheat
25177 ----------------------------
25178 revision 1.9
25179 date: 1995/10/17 13:14:30;  author: allender;  state: Exp;
25180 mouse will now move through title stuff
25181 ----------------------------
25182 revision 1.8
25183 date: 1995/10/15 23:00:34;  author: allender;  state: Exp;
25184 made mouse move through screens and do event processing
25185 at title screens
25186 ----------------------------
25187 revision 1.7
25188 date: 1995/10/10 11:52:10;  author: allender;  state: Exp;
25189 use appropriate end01 file for registered
25190 ----------------------------
25191 revision 1.6
25192 date: 1995/09/24 10:53:09;  author: allender;  state: Exp;
25193 added cmd-q to quit during titles screens and briefing screens
25194 ----------------------------
25195 revision 1.5
25196 date: 1995/08/25 15:39:37;  author: allender;  state: Exp;
25197 save and resotre interpolation method during briefing screens
25198 ----------------------------
25199 revision 1.4
25200 date: 1995/08/24 16:10:57;  author: allender;  state: Exp;
25201 endgame screen changes, and fixups to other stuff
25202 ----------------------------
25203 revision 1.3
25204 date: 1995/08/14 14:40:37;  author: allender;  state: Exp;
25205 fixed up briefing screens to look correct.
25206 made robot canvas smaller for now for speec
25207 ----------------------------
25208 revision 1.2
25209 date: 1995/06/13 13:07:05;  author: allender;  state: Exp;
25210 do a bitblt during tight loops to get spinning robots and cursor flashing
25211 ----------------------------
25212 revision 1.1
25213 date: 1995/05/16 15:31:52;  author: allender;  state: Exp;
25214 Initial revision
25215 ----------------------------
25216 revision 2.7
25217 date: 1995/03/24 13:11:36;  author: john;  state: Exp;
25218 Added save game during briefing screens.
25219 ----------------------------
25220 revision 2.6
25221 date: 1995/03/21 14:41:17;  author: john;  state: Exp;
25222 Ifdef'd out the NETWORK code.
25223 ----------------------------
25224 revision 2.5
25225 date: 1995/03/15 14:33:45;  author: john;  state: Exp;
25226 Added code to force the Descent CD-rom in the drive.
25227 ----------------------------
25228 revision 2.4
25229 date: 1995/03/14 18:24:50;  author: john;  state: Exp;
25230 Force Destination Saturn to use CD-ROM drive.
25231 ----------------------------
25232 revision 2.3
25233 date: 1995/03/10 13:05:52;  author: john;  state: Exp;
25234 Added code so that palette is correct for VFX1 helmets.
25235 ----------------------------
25236 revision 2.2
25237 date: 1995/03/07 14:19:28;  author: mike;  state: Exp;
25238 More destination saturn stuff.
25239 ----------------------------
25240 revision 2.1
25241 date: 1995/03/06 15:24:16;  author: john;  state: Exp;
25242 New screen techniques.
25243 ----------------------------
25244 revision 2.0
25245 date: 1995/02/27 11:32:50;  author: john;  state: Exp;
25246 New version 2.0, which has no anonymous unions, builds with
25247 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25248 ----------------------------
25249 revision 1.95
25250 date: 1995/02/12 04:07:19;  author: matt;  state: Exp;
25251 After freeing Robot_canv, set ptr to NULL
25252 ----------------------------
25253 revision 1.94
25254 date: 1995/02/11 12:41:57;  author: john;  state: Exp;
25255 Added new song method, with FM bank switching..
25256 ----------------------------
25257 revision 1.93
25258 date: 1995/02/11 09:51:59;  author: john;  state: Exp;
25259 Stripped out all SVGA references.
25260 ----------------------------
25261 revision 1.92
25262 date: 1995/02/07 09:56:10;  author: john;  state: Exp;
25263 Fixed bug with wrong title screen drawing during save btwn lvls.
25264 ----------------------------
25265 revision 1.91
25266 date: 1995/02/04 13:53:16;  author: john;  state: Exp;
25267 Added code to display the correct titles between levels
25268 that have robot maps..
25269 ----------------------------
25270 revision 1.90
25271 date: 1995/02/02 16:36:33;  author: adam;  state: Exp;
25272 *** empty log message ***
25273 ----------------------------
25274 revision 1.89
25275 date: 1995/02/02 12:23:30;  author: john;  state: Exp;
25276 Made between level saves have picture.
25277 ----------------------------
25278 revision 1.88
25279 date: 1995/02/02 01:50:16;  author: adam;  state: Exp;
25280 rearranged robot briefings.
25281 ----------------------------
25282 revision 1.87
25283 date: 1995/02/01 22:28:54;  author: mike;  state: Exp;
25284 *** empty log message ***
25285 ----------------------------
25286 revision 1.86
25287 date: 1995/02/01 17:12:21;  author: mike;  state: Exp;
25288 Make score come after endgame screens.
25289 ----------------------------
25290 revision 1.85
25291 date: 1995/02/01 14:04:17;  author: adam;  state: Exp;
25292 mucked with screens
25293 ----------------------------
25294 revision 1.84
25295 date: 1995/01/28 16:59:30;  author: adam;  state: Exp;
25296 added hook for special first briefing music
25297 ----------------------------
25298 revision 1.83
25299 date: 1995/01/21 17:04:35;  author: mike;  state: Exp;
25300 fix endgame text bogosity.
25301 ----------------------------
25302 revision 1.82
25303 date: 1995/01/21 16:26:29;  author: matt;  state: Exp;
25304 Made endlevel briefing work with missions
25305 ----------------------------
25306 revision 1.81
25307 date: 1995/01/21 13:15:20;  author: adam;  state: Exp;
25308 added new robot briefings.
25309 ----------------------------
25310 revision 1.80
25311 date: 1995/01/20 22:47:33;  author: matt;  state: Exp;
25312 Mission system implemented, though imcompletely
25313 ----------------------------
25314 revision 1.79
25315 date: 1995/01/20 14:57:52;  author: mike;  state: Exp;
25316 support arbitrary number of screens/level.
25317 ----------------------------
25318 revision 1.78
25319 date: 1995/01/15 14:29:12;  author: john;  state: Exp;
25320 Made the exit door page in.
25321 ----------------------------
25322 revision 1.77
25323 date: 1995/01/15 14:27:09;  author: adam;  state: Exp;
25324 messed with endgame stuff
25325 ----------------------------
25326 revision 1.76
25327 date: 1995/01/14 15:42:49;  author: mike;  state: Exp;
25328 Make endgame for registered support 3 screens.
25329 ----------------------------
25330 revision 1.75
25331 date: 1995/01/14 14:00:59;  author: adam;  state: Exp;
25332 *** empty log message ***
25333 ----------------------------
25334 revision 1.74
25335 date: 1995/01/09 11:28:53;  author: mike;  state: Exp;
25336 Support new $O thingy for bitmaps which cycle and are not the exit door.
25337 ----------------------------
25338 revision 1.73
25339 date: 1995/01/02 12:39:13;  author: mike;  state: Exp;
25340 fix secret level sequencing.
25341 ----------------------------
25342 revision 1.72
25343 date: 1994/12/12 19:44:14;  author: rob;  state: Exp;
25344 Added kill matrix to end of game sequence.
25345 ----------------------------
25346 revision 1.71
25347 date: 1994/12/09 22:32:57;  author: adam;  state: Exp;
25348 messed with text positioning
25349 ----------------------------
25350 revision 1.70
25351 date: 1994/12/09 14:08:37;  author: mike;  state: Exp;
25352 make briefing text work with hog files.
25353 ----------------------------
25354 revision 1.69
25355 date: 1994/12/09 00:41:47;  author: mike;  state: Exp;
25356 fix hang in automap print screen.
25357 ----------------------------
25358 revision 1.68
25359 date: 1994/12/08 20:56:36;  author: john;  state: Exp;
25360 More cfile stuff.
25361 ----------------------------
25362 revision 1.67
25363 date: 1994/12/08 17:19:11;  author: yuan;  state: Exp;
25364 Cfiling stuff.
25365 ----------------------------
25366 revision 1.66
25367 date: 1994/12/07 11:28:00;  author: matt;  state: Exp;
25368 Did a localization suppport
25369 ----------------------------
25370 revision 1.65
25371 date: 1994/12/06 17:10:23;  author: yuan;  state: Exp;
25372 Fixed missing )
25373 ----------------------------
25374 revision 1.64
25375 date: 1994/12/06 17:00:45;  author: rob;  state: Exp;
25376 Fixed problem with finishing the game in modem/serial mode.
25377 ----------------------------
25378 revision 1.63
25379 date: 1994/12/06 16:58:37;  author: matt;  state: Exp;
25380 Killed warnings
25381 ----------------------------
25382 revision 1.62
25383 date: 1994/12/06 15:54:28;  author: mike;  state: Exp;
25384 fix guy at end...
25385 =============================================================================
25386 RCS file: /Smoke/miner/source/main/titles.h,v
25387 Working file: main/titles.h
25388 head: 1.1
25389 description: .
25390 ----------------------------
25391 revision 1.1
25392 date: 1995/05/16 16:04:28;  author: allender;  state: Exp;
25393 Initial revision
25394 ----------------------------
25395 revision 2.0
25396 date: 1995/02/27 11:27:40;  author: john;  state: Exp;
25397 New version 2.0, which has no anonymous unions, builds with
25398 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25399 ----------------------------
25400 revision 1.12
25401 date: 1995/02/02 12:23:29;  author: john;  state: Exp;
25402 Made between level saves have picture.
25403 ----------------------------
25404 revision 1.11
25405 date: 1995/01/21 16:27:11;  author: matt;  state: Exp;
25406 Made endlevel briefing work with missions
25407 ----------------------------
25408 revision 1.10
25409 date: 1995/01/20 22:48:02;  author: matt;  state: Exp;
25410 Mission system implemented, though imcompletely
25411 ----------------------------
25412 revision 1.9
25413 date: 1994/12/07 19:14:07;  author: matt;  state: Exp;
25414 Kill briefing screen disable switch for release version
25415 ----------------------------
25416 revision 1.8
25417 date: 1994/11/21 16:40:24;  author: matt;  state: Exp;
25418 Added prototype
25419 ----------------------------
25420 revision 1.7
25421 date: 1994/11/05 14:05:54;  author: john;  state: Exp;
25422 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
25423 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
25424 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
25425 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
25426 ----------------------------
25427 revision 1.6
25428 date: 1994/11/01 17:57:48;  author: mike;  state: Exp;
25429 Briefing screens.
25430 ----------------------------
25431 revision 1.5
25432 date: 1994/10/31 22:28:04;  author: mike;  state: Exp;
25433 briefing screens
25434 ----------------------------
25435 revision 1.4
25436 date: 1994/09/16 16:14:31;  author: john;  state: Exp;
25437 Added acrade sequencing.
25438 ----------------------------
25439 revision 1.3
25440 date: 1994/06/22 00:26:53;  author: matt;  state: Exp;
25441 Added support for Interplay's animating title sequence
25442 ----------------------------
25443 revision 1.2
25444 date: 1994/06/17 12:13:36;  author: john;  state: Exp;
25445 More newdemo stuff; made editor->game transition start in slew mode.
25446 ----------------------------
25447 revision 1.1
25448 date: 1994/06/17 10:50:12;  author: john;  state: Exp;
25449 Initial revision
25450 =============================================================================
25451 RCS file: /Smoke/miner/source/main/vclip.c,v
25452 Working file: main/vclip.c
25453 head: 1.2
25454 description: Routines for vclips.
25455 ----------------------------
25456 revision 1.2
25457 date: 1995/09/14 14:14:31;  author: allender;  state: Exp;
25458 return void in draw_vclip_object
25459 ----------------------------
25460 revision 1.1
25461 date: 1995/05/16 15:32:00;  author: allender;  state: Exp;
25462 Initial revision
25463 ----------------------------
25464 revision 2.0
25465 date: 1995/02/27 11:32:41;  author: john;  state: Exp;
25466 New version 2.0, which has no anonymous unions, builds with
25467 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25468 ----------------------------
25469 revision 1.8
25470 date: 1994/09/25 23:40:52;  author: matt;  state: Exp;
25471 Changed the object load & save code to read/write the structure fields one
25472 at a time (rather than the whole structure at once).  This mean that the
25473 object structure can be changed without breaking the load/save functions.
25474 As a result of this change, the local_object data can be and has been 
25475 incorporated into the object array.  Also, timeleft is now a property 
25476 of all objects, and the object structure has been otherwise cleaned up.
25477 ----------------------------
25478 revision 1.7
25479 date: 1994/09/25 15:45:26;  author: matt;  state: Exp;
25480 Added OBJ_LIGHT, a type of object that casts light
25481 Added generalized lifeleft, and moved it to local_object
25482 ----------------------------
25483 revision 1.6
25484 date: 1994/09/09 20:05:57;  author: mike;  state: Exp;
25485 Add vclips for weapons.
25486 ----------------------------
25487 revision 1.5
25488 date: 1994/06/14 21:14:35;  author: matt;  state: Exp;
25489 Made rod objects draw lighted or not depending on a parameter, so the
25490 materialization effect no longer darkens.
25491 ----------------------------
25492 revision 1.4
25493 date: 1994/06/08 18:16:24;  author: john;  state: Exp;
25494 Bunch of new stuff that basically takes constants out of the code
25495 and puts them into bitmaps.tbl.
25496 ----------------------------
25497 revision 1.3
25498 date: 1994/06/03 10:47:17;  author: matt;  state: Exp;
25499 Made vclips (used by explosions) which can be either rods or blobs, as
25500 specified in BITMAPS.TBL.  (This is for the materialization center effect).
25501 ----------------------------
25502 revision 1.2
25503 date: 1994/05/11 09:25:25;  author: john;  state: Exp;
25504 Abandoned new vclip system for now because each wallclip, vclip,
25505 etc, is different and it would be a huge pain to change all of them.
25506 ----------------------------
25507 revision 1.1
25508 date: 1994/05/10 15:21:12;  author: john;  state: Exp;
25509 Initial revision
25510 =============================================================================
25511 RCS file: /Smoke/miner/source/main/vclip.h,v
25512 Working file: main/vclip.h
25513 head: 1.2
25514 description: Stuff for video clips.
25515 ----------------------------
25516 revision 1.2
25517 date: 1995/09/14 14:14:45;  author: allender;  state: Exp;
25518 return void in draw_vclip_object
25519 ----------------------------
25520 revision 1.1
25521 date: 1995/05/16 16:04:35;  author: allender;  state: Exp;
25522 Initial revision
25523 ----------------------------
25524 revision 2.0
25525 date: 1995/02/27 11:32:42;  author: john;  state: Exp;
25526 New version 2.0, which has no anonymous unions, builds with
25527 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25528 ----------------------------
25529 revision 1.33
25530 date: 1994/11/21 11:17:57;  author: adam;  state: Exp;
25531 *** empty log message ***
25532 ----------------------------
25533 revision 1.32
25534 date: 1994/10/12 13:07:07;  author: mike;  state: Exp;
25535 Add VCLIP_POWERUP_DISAPPEARANCE.
25536 ----------------------------
25537 revision 1.31
25538 date: 1994/10/12 10:23:54;  author: adam;  state: Exp;
25539 *** empty log message ***
25540 ----------------------------
25541 revision 1.30
25542 date: 1994/10/11 12:25:21;  author: matt;  state: Exp;
25543 Added "hot rocks" that create badass explosion when hit by weapons
25544 ----------------------------
25545 revision 1.29
25546 date: 1994/10/06 14:10:07;  author: matt;  state: Exp;
25547 Added constant for player appearence effect
25548 ----------------------------
25549 revision 1.28
25550 date: 1994/09/26 08:40:30;  author: adam;  state: Exp;
25551 *** empty log message ***
25552 ----------------------------
25553 revision 1.27
25554 date: 1994/09/10 17:30:57;  author: mike;  state: Exp;
25555 move a prototype here, had been defined in object.c
25556 ----------------------------
25557 revision 1.26
25558 date: 1994/09/09 20:04:25;  author: mike;  state: Exp;
25559 Add weapon_vclip.
25560 ----------------------------
25561 revision 1.25
25562 date: 1994/08/31 19:27:09;  author: mike;  state: Exp;
25563 Increase max number of Vclips for new pile of weapon powerups.
25564 ----------------------------
25565 revision 1.24
25566 date: 1994/08/14 23:14:43;  author: matt;  state: Exp;
25567 Added animating bitmap hostages, and cleaned up vclips a bit
25568 ----------------------------
25569 revision 1.23
25570 date: 1994/07/23 19:56:39;  author: matt;  state: Exp;
25571 Took out unused constant
25572 ----------------------------
25573 revision 1.22
25574 date: 1994/07/22 10:42:10;  author: adam;  state: Exp;
25575 upped max no. of vclips
25576 ----------------------------
25577 revision 1.21
25578 date: 1994/06/14 21:15:14;  author: matt;  state: Exp;
25579 Made rod objects draw lighted or not depending on a parameter, so the
25580 materialization effect no longer darkens.
25581 ----------------------------
25582 revision 1.20
25583 date: 1994/06/09 19:38:16;  author: john;  state: Exp;
25584 Made each Vclip have its own sound... but only used in the
25585 materialization center.
25586 ----------------------------
25587 revision 1.19
25588 date: 1994/06/09 11:46:26;  author: john;  state: Exp;
25589 Took out unused vclip defines.
25590 ----------------------------
25591 revision 1.18
25592 date: 1994/06/08 18:16:33;  author: john;  state: Exp;
25593 Bunch of new stuff that basically takes constants out of the code
25594 and puts them into bitmaps.tbl.
25595 ----------------------------
25596 revision 1.17
25597 date: 1994/06/08 12:49:01;  author: mike;  state: Exp;
25598 Add light_value to vclip.
25599 ----------------------------
25600 revision 1.16
25601 date: 1994/06/08 11:43:28;  author: mike;  state: Exp;
25602 Allow 20 vclips, I think (anyway, more than it used to be, probably 12).
25603 ----------------------------
25604 revision 1.15
25605 date: 1994/06/03 10:48:22;  author: matt;  state: Exp;
25606 Made vclips (used by explosions) which can be either rods or blobs, as
25607 specified in BITMAPS.TBL.  (This is for the materialization center effect).
25608 ----------------------------
25609 revision 1.14
25610 date: 1994/06/01 17:21:08;  author: john;  state: Exp;
25611 Added muzzle flash
25612 ----------------------------
25613 revision 1.13
25614 date: 1994/06/01 10:34:02;  author: john;  state: Exp;
25615 Added robot morphing effect.
25616 ----------------------------
25617 revision 1.12
25618 date: 1994/05/16 16:17:38;  author: john;  state: Exp;
25619 Bunch of stuff on my Inferno Task list May16-23
25620 ----------------------------
25621 revision 1.11
25622 date: 1994/05/10 18:32:50;  author: john;  state: Exp;
25623 *** empty log message ***
25624 ----------------------------
25625 revision 1.10
25626 date: 1994/04/29 14:35:52;  author: matt;  state: Exp;
25627 Added second kind of fireball
25628 ----------------------------
25629 revision 1.9
25630 date: 1994/04/11 10:36:31;  author: yuan;  state: Exp;
25631 Started adding types for exploding hostages.
25632 ----------------------------
25633 revision 1.8
25634 date: 1994/04/07 16:27:43;  author: yuan;  state: Exp;
25635 Added SUPERPIG the robot with 200 hit points.
25636 Now robots can take multiple hits before blowing up.
25637 ----------------------------
25638 revision 1.7
25639 date: 1994/04/07 13:45:58;  author: yuan;  state: Exp;
25640 Defined Pclips... maybe shouldn't be in this file.
25641 ----------------------------
25642 revision 1.6
25643 date: 1994/03/28 20:58:22;  author: yuan;  state: Exp;
25644 Added blood vclip constant
25645 ----------------------------
25646 revision 1.5
25647 date: 1994/03/15 16:31:56;  author: yuan;  state: Exp;
25648 Cleaned up bm-loading code.
25649 (And structures)
25650 ----------------------------
25651 revision 1.4
25652 date: 1994/03/04 17:09:43;  author: yuan;  state: Exp;
25653 New wall stuff
25654 ----------------------------
25655 revision 1.3
25656 date: 1994/01/11 10:59:01;  author: yuan;  state: Exp;
25657 Added effects
25658 ----------------------------
25659 revision 1.2
25660 date: 1994/01/06 17:13:15;  author: john;  state: Exp;
25661 Added Video clip functionality
25662 ----------------------------
25663 revision 1.1
25664 date: 1994/01/06 15:10:15;  author: john;  state: Exp;
25665 Initial revision
25666 =============================================================================
25667 RCS file: /Smoke/miner/source/main/vfx.h,v
25668 Working file: main/vfx.h
25669 head: 1.1
25670 description: Prototypes for vfx.c
25671 ----------------------------
25672 revision 1.1
25673 date: 1995/05/16 16:04:51;  author: allender;  state: Exp;
25674 Initial revision
25675 ----------------------------
25676 revision 2.1
25677 date: 1995/03/10 12:58:04;  author: john;  state: Exp;
25678 Added vfx_set_palette_sub function.
25679 ----------------------------
25680 revision 2.0
25681 date: 1995/02/27 11:31:19;  author: john;  state: Exp;
25682 New version 2.0, which has no anonymous unions, builds with
25683 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25684 ----------------------------
25685 revision 1.5
25686 date: 1994/12/28 10:43:02;  author: john;  state: Exp;
25687 More VFX tweaking.
25688 ----------------------------
25689 revision 1.4
25690 date: 1994/12/28 10:26:49;  author: john;  state: Exp;
25691 Fixed some VFX problems.
25692 ----------------------------
25693 revision 1.3
25694 date: 1994/09/20 19:36:01;  author: matt;  state: Exp;
25695 Added seperate function to set palette
25696 ----------------------------
25697 revision 1.2
25698 date: 1994/06/24 17:03:51;  author: john;  state: Exp;
25699 Added VFX support. Also took all game sequencing stuff like
25700 EndGame out and put it into gameseq.c
25701 ----------------------------
25702 revision 1.1
25703 date: 1994/06/23 09:14:16;  author: john;  state: Exp;
25704 Initial revision
25705 =============================================================================
25706 RCS file: /Smoke/miner/source/main/vfx1.h,v
25707 Working file: main/vfx1.h
25708 head: 1.1
25709 description: .
25710 ----------------------------
25711 revision 1.1
25712 date: 1995/05/16 16:04:59;  author: allender;  state: Exp;
25713 Initial revision
25714 ----------------------------
25715 revision 2.0
25716 date: 1995/02/27 11:28:52;  author: john;  state: Exp;
25717 New version 2.0, which has no anonymous unions, builds with
25718 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25719 ----------------------------
25720 revision 1.3
25721 date: 1994/09/15 16:11:26;  author: john;  state: Exp;
25722 Added support for VFX1 head tracking. Fixed bug with memory over-
25723 write when using stereo mode.
25724 ----------------------------
25725 revision 1.2
25726 date: 1994/06/24 17:03:54;  author: john;  state: Exp;
25727 Added VFX support. Also took all game sequencing stuff like
25728 EndGame out and put it into gameseq.c
25729 ----------------------------
25730 revision 1.1
25731 date: 1994/06/23 17:59:56;  author: john;  state: Exp;
25732 Initial revision
25733 =============================================================================
25734 RCS file: /Smoke/miner/source/main/victor.h,v
25735 Working file: main/victor.h
25736 head: 1.1
25737 description: Prototypes for the VictorMaxx VR helment.
25738 ----------------------------
25739 revision 1.1
25740 date: 1995/05/16 16:05:07;  author: allender;  state: Exp;
25741 Initial revision
25742 ----------------------------
25743 revision 2.0
25744 date: 1995/02/27 11:27:31;  author: john;  state: Exp;
25745 New version 2.0, which has no anonymous unions, builds with
25746 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25747 ----------------------------
25748 revision 1.4
25749 date: 1994/11/12 14:46:55;  author: john;  state: Exp;
25750 Added support for victor head tracking.
25751 ----------------------------
25752 revision 1.3
25753 date: 1994/07/21 21:31:12;  author: john;  state: Exp;
25754 First cheapo version of VictorMaxx tracking.
25755 ----------------------------
25756 revision 1.2
25757 date: 1994/07/20 21:04:32;  author: john;  state: Exp;
25758 Add VictorMax VR helment support.
25759 ----------------------------
25760 revision 1.1
25761 date: 1994/07/20 20:49:19;  author: john;  state: Exp;
25762 Initial revision
25763 =============================================================================
25764 RCS file: /Smoke/miner/source/main/wall.c,v
25765 Working file: main/wall.c
25766 head: 1.1
25767 description: Destroyable wall stuff
25768 ----------------------------
25769 revision 1.1
25770 date: 1995/05/16 15:32:08;  author: allender;  state: Exp;
25771 Initial revision
25772 ----------------------------
25773 revision 2.1
25774 date: 1995/03/21 08:39:04;  author: john;  state: Exp;
25775 Ifdef'd out the NETWORK code.
25776 ----------------------------
25777 revision 2.0
25778 date: 1995/02/27 11:28:32;  author: john;  state: Exp;
25779 New version 2.0, which has no anonymous unions, builds with
25780 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25781 ----------------------------
25782 revision 1.112
25783 date: 1995/02/22 13:53:07;  author: allender;  state: Exp;
25784 remove anonymous unions from object structure
25785 ----------------------------
25786 revision 1.111
25787 date: 1995/02/01 17:32:17;  author: adam;  state: Exp;
25788 Took out a bogus int3.
25789 ----------------------------
25790 revision 1.110
25791 date: 1995/02/01 17:20:24;  author: john;  state: Exp;
25792 Lintized.
25793 ----------------------------
25794 revision 1.109
25795 date: 1995/01/21 17:39:50;  author: matt;  state: Exp;
25796 Cleaned up laser/player hit wall confusions
25797 ----------------------------
25798 revision 1.108
25799 date: 1995/01/21 17:14:17;  author: rob;  state: Exp;
25800 Fixed bug in multiplayer door-butting.
25801 ----------------------------
25802 revision 1.107
25803 date: 1995/01/18 18:57:11;  author: rob;  state: Exp;
25804 Added new hostage door hooks.
25805 ----------------------------
25806 revision 1.106
25807 date: 1995/01/18 18:48:18;  author: allender;  state: Exp;
25808 removed #ifdef newdemo's.  Added function call to record a door that
25809 starts to open. This fixes the rewind problem
25810 ----------------------------
25811 revision 1.105
25812 date: 1995/01/16 11:55:39;  author: mike;  state: Exp;
25813 make control center (and robots whose id == your playernum) not able to open doors.
25814 ----------------------------
25815 revision 1.104
25816 date: 1994/12/11 23:07:21;  author: matt;  state: Exp;
25817 Fixed stuck objects & blastable walls
25818 ----------------------------
25819 revision 1.103
25820 date: 1994/12/10 16:44:34;  author: matt;  state: Exp;
25821 Added debugging code to track down door that turns into rock
25822 ----------------------------
25823 revision 1.102
25824 date: 1994/12/06 16:27:05;  author: matt;  state: Exp;
25825 Added debugging
25826 ----------------------------
25827 revision 1.101
25828 date: 1994/12/02 10:50:27;  author: yuan;  state: Exp;
25829 Localization
25830 ----------------------------
25831 revision 1.100
25832 date: 1994/11/30 19:41:22;  author: rob;  state: Exp;
25833 Put in a fix so that door opening sounds travel through the door.
25834 ----------------------------
25835 revision 1.99
25836 date: 1994/11/28 11:59:50;  author: yuan;  state: Exp;
25837 *** empty log message ***
25838 ----------------------------
25839 revision 1.98
25840 date: 1994/11/28 11:25:45;  author: matt;  state: Exp;
25841 Cleaned up key hud messages
25842 ----------------------------
25843 revision 1.97
25844 date: 1994/11/27 23:15:11;  author: matt;  state: Exp;
25845 Made changes for new mprintf calling convention
25846 ----------------------------
25847 revision 1.96
25848 date: 1994/11/19 15:18:29;  author: mike;  state: Exp;
25849 rip out unused code and data.
25850 ----------------------------
25851 revision 1.95
25852 date: 1994/11/17 14:57:12;  author: mike;  state: Exp;
25853 moved segment validation functions from editor to main.
25854 ----------------------------
25855 revision 1.94
25856 date: 1994/11/07 08:47:30;  author: john;  state: Exp;
25857 Made wall state record.
25858 ----------------------------
25859 revision 1.93
25860 date: 1994/11/04 16:06:37;  author: rob;  state: Exp;
25861 Fixed network damage of blastable walls.
25862 ----------------------------
25863 revision 1.92
25864 date: 1994/11/02 21:54:01;  author: matt;  state: Exp;
25865 Don't let objects with zero size keep door from shutting
25866 ----------------------------
25867 revision 1.91
25868 date: 1994/10/31 13:48:42;  author: rob;  state: Exp;
25869 Fixed bug in opening doors over network/modem.  Added a new message
25870 type to multi.c that communicates door openings across the net. 
25871 Changed includes in multi.c and wall.c to accomplish this.
25872 ----------------------------
25873 revision 1.90
25874 date: 1994/10/28 14:42:41;  author: john;  state: Exp;
25875 Added sound volumes to all sound calls.
25876 ----------------------------
25877 revision 1.89
25878 date: 1994/10/23 19:16:55;  author: matt;  state: Exp;
25879 Fixed bug with "no key" messages
25880 =============================================================================
25881 RCS file: /Smoke/miner/source/main/wall.h,v
25882 Working file: main/wall.h
25883 head: 1.1
25884 description: ----------------------------
25885 revision 1.1
25886 date: 1995/05/16 16:05:14;  author: allender;  state: Exp;
25887 Initial revision
25888 ----------------------------
25889 revision 2.0
25890 date: 1995/02/27 11:31:36;  author: john;  state: Exp;
25891 New version 2.0, which has no anonymous unions, builds with
25892 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
25893 ----------------------------
25894 revision 1.47
25895 date: 1994/11/19 15:20:35;  author: mike;  state: Exp;
25896 rip out unused code and data
25897 ----------------------------
25898 revision 1.46
25899 date: 1994/10/25 15:40:12;  author: yuan;  state: Exp;
25900 MAX_WALLS pumped up
25901 ----------------------------
25902 revision 1.45
25903 date: 1994/10/23 19:17:07;  author: matt;  state: Exp;
25904 Fixed bug with "no key" messages
25905 ----------------------------
25906 revision 1.44
25907 date: 1994/10/18 15:38:03;  author: mike;  state: Exp;
25908 Define hidden walls.
25909 ----------------------------
25910 revision 1.43
25911 date: 1994/10/04 13:32:26;  author: adam;  state: Exp;
25912 commented out MAX_DOOR_ANIMS
25913 ----------------------------
25914 revision 1.42
25915 date: 1994/10/04 13:31:21;  author: adam;  state: Exp;
25916 upped MAX_WALL_ANIMS to 30
25917 ----------------------------
25918 revision 1.41
25919 date: 1994/09/29 00:42:30;  author: matt;  state: Exp;
25920 Made hitting a locked door play a sound
25921 ----------------------------
25922 revision 1.40
25923 date: 1994/09/27 15:42:41;  author: mike;  state: Exp;
25924 Prototype Wall_names.
25925 ----------------------------
25926 revision 1.39
25927 date: 1994/09/23 22:15:32;  author: matt;  state: Exp;
25928 Made doors not close on objects, made doors open again if shot while
25929 closing, and cleaned up walls/doors a bit.
25930 ----------------------------
25931 revision 1.38
25932 date: 1994/09/22 15:31:33;  author: matt;  state: Exp;
25933 Mucked with, and hopefully improved, exploding walls
25934 ----------------------------
25935 revision 1.37
25936 date: 1994/09/21 17:17:05;  author: mike;  state: Exp;
25937 Make objects stuck in doors go away when door opens.
25938 ----------------------------
25939 revision 1.36
25940 date: 1994/09/13 21:10:46;  author: matt;  state: Exp;
25941 Added wclips that use tmap1 instead of tmap2, saving lots of merging
25942 ----------------------------
25943 revision 1.35
25944 date: 1994/09/13 20:11:08;  author: yuan;  state: Exp;
25945 *** empty log message ***
25946 ----------------------------
25947 revision 1.34
25948 date: 1994/09/10 13:31:53;  author: matt;  state: Exp;
25949 Made exploding walls a type of blastable walls.
25950 Cleaned up blastable walls, making them tmap2 bitmaps.
25951 ----------------------------
25952 revision 1.33
25953 date: 1994/08/17 12:55:34;  author: matt;  state: Exp;
25954 Added external walls to wall_is_doorway
25955 ----------------------------
25956 revision 1.32
25957 date: 1994/08/15 17:54:35;  author: john;  state: Exp;
25958 *** empty log message ***
25959 ----------------------------
25960 revision 1.31
25961 date: 1994/08/15 17:46:56;  author: yuan;  state: Exp;
25962 Added external walls, fixed blastable walls.
25963 ----------------------------
25964 revision 1.30
25965 date: 1994/08/05 21:17:21;  author: matt;  state: Exp;
25966 Allow two doors to be linked together
25967 ----------------------------
25968 revision 1.29
25969 date: 1994/08/01 10:39:10;  author: matt;  state: Exp;
25970 Parenthesized parms to WID() macro
25971 ----------------------------
25972 revision 1.28
25973 date: 1994/07/20 17:35:03;  author: yuan;  state: Exp;
25974 Some minor bug fixes and new key gauges...
25975 ----------------------------
25976 revision 1.27
25977 date: 1994/07/19 14:32:03;  author: yuan;  state: Exp;
25978 Fixed keys bug... renumbered some constants.
25979 ----------------------------
25980 revision 1.26
25981 date: 1994/07/14 22:38:29;  author: matt;  state: Exp;
25982 Added exploding doors
25983 ----------------------------
25984 revision 1.25
25985 date: 1994/07/11 15:08:43;  author: yuan;  state: Exp;
25986 Wall anim file names stored in structure.
25987  
25988 =============================================================================
25989 RCS file: /Smoke/miner/source/main/weapon.c,v
25990 Working file: main/weapon.c
25991 head: 1.2
25992 description: Functions for weapons...
25993 ----------------------------
25994 revision 1.2
25995 date: 1995/10/31 10:17:39;  author: allender;  state: Exp;
25996 new shareware stuff
25997 ----------------------------
25998 revision 1.1
25999 date: 1995/05/16 15:32:16;  author: allender;  state: Exp;
26000 Initial revision
26001 ----------------------------
26002 revision 2.1
26003 date: 1995/03/21 08:38:43;  author: john;  state: Exp;
26004 Ifdef'd out the NETWORK code.
26005 ----------------------------
26006 revision 2.0
26007 date: 1995/02/27 11:27:25;  author: john;  state: Exp;
26008 New version 2.0, which has no anonymous unions, builds with
26009 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
26010 ----------------------------
26011 revision 1.54
26012 date: 1995/02/15 15:21:48;  author: mike;  state: Exp;
26013 make smart missile select if mega missiles used up.
26014 ----------------------------
26015 revision 1.53
26016 date: 1995/02/12 02:12:30;  author: john;  state: Exp;
26017 Fixed bug with state restore making weapon beeps.
26018 ----------------------------
26019 revision 1.52
26020 date: 1995/02/09 20:42:15;  author: mike;  state: Exp;
26021 change weapon autoselect, always autoselect smart, mega.
26022 ----------------------------
26023 revision 1.51
26024 date: 1995/02/07 20:44:26;  author: mike;  state: Exp;
26025 autoselect mega, smart when you pick them up.
26026 ----------------------------
26027 revision 1.50
26028 date: 1995/02/07 13:32:25;  author: rob;  state: Exp;
26029 Added include of multi.h
26030 ----------------------------
26031 revision 1.49
26032 date: 1995/02/07 13:21:33;  author: yuan;  state: Exp;
26033 Fixed 2nd typo
26034 ----------------------------
26035 revision 1.48
26036 date: 1995/02/07 13:16:39;  author: yuan;  state: Exp;
26037 Fixed typo.
26038 ----------------------------
26039 revision 1.47
26040 date: 1995/02/07 12:53:12;  author: rob;  state: Exp;
26041 Added network sound prop. to weapon switch.
26042 ----------------------------
26043 revision 1.46
26044 date: 1995/02/06 15:53:17;  author: mike;  state: Exp;
26045 don't autoselect smart or mega missile when you pick it up.
26046 ----------------------------
26047 revision 1.45
26048 date: 1995/02/02 21:43:34;  author: mike;  state: Exp;
26049 make autoselection better.
26050 ----------------------------
26051 revision 1.44
26052 date: 1995/02/02 16:27:21;  author: mike;  state: Exp;
26053 make concussion missiles trade up.
26054 ----------------------------
26055 revision 1.43
26056 date: 1995/02/01 23:34:57;  author: adam;  state: Exp;
26057 messed with weapon change sounds
26058 ----------------------------
26059 revision 1.42
26060 date: 1995/02/01 17:12:47;  author: mike;  state: Exp;
26061 Make smart missile, mega missile not auto-select.
26062 ----------------------------
26063 revision 1.41
26064 date: 1995/02/01 15:50:54;  author: mike;  state: Exp;
26065 fix bogus weapon selection sound code.
26066 ----------------------------
26067 revision 1.40
26068 date: 1995/01/31 16:16:31;  author: mike;  state: Exp;
26069 Separate smart blobs for robot and player.
26070 ----------------------------
26071 revision 1.39
26072 date: 1995/01/30 21:12:11;  author: mike;  state: Exp;
26073 Use new weapon selection sounds, different for primary and secondary.
26074 ----------------------------
26075 revision 1.38
26076 date: 1995/01/29 13:46:52;  author: mike;  state: Exp;
26077 Don't auto-select fusion cannon when you run out of energy.
26078 ----------------------------
26079 revision 1.37
26080 date: 1995/01/20 11:11:13;  author: allender;  state: Exp;
26081 record weapon changes again.  (John somehow lost my 1.35 changes).
26082 ----------------------------
26083 revision 1.36
26084 date: 1995/01/19 17:00:46;  author: john;  state: Exp;
26085 Made save game work between levels.
26086 ----------------------------
26087 revision 1.34
26088 date: 1995/01/09 17:03:48;  author: mike;  state: Exp;
26089 fix autoselection of weapons.
26090 ----------------------------
26091 revision 1.33
26092 date: 1995/01/05 15:46:31;  author: john;  state: Exp;
26093 Made weapons not rearm when starting a saved game.
26094 ----------------------------
26095 revision 1.32
26096 date: 1995/01/03 12:34:23;  author: mike;  state: Exp;
26097 autoselect next lower weapon if run out of smart or mega missile.
26098 ----------------------------
26099 revision 1.31
26100 date: 1994/12/12 21:39:37;  author: matt;  state: Exp;
26101 Changed vulcan ammo: 10K max, 5K w/weapon, 1250 per powerup
26102 ----------------------------
26103 revision 1.30
26104 date: 1994/12/09 19:55:04;  author: matt;  state: Exp;
26105 Added weapon name in "not available in shareware" message
26106 ----------------------------
26107 revision 1.29
26108 date: 1994/12/06 13:50:24;  author: adam;  state: Exp;
26109 added shareware msg. when choosing 4 top weapons
26110 ----------------------------
26111 revision 1.28
26112 date: 1994/12/02 22:07:13;  author: mike;  state: Exp;
26113 if you gots 19 concussion missiles and you runs over 4, say you picks up 1, not 4, we do the math, see?
26114 ----------------------------
26115 revision 1.27
26116 date: 1994/12/02 20:06:24;  author: matt;  state: Exp;
26117 Made vulcan ammo print at approx 25 times actual
26118 ----------------------------
26119 revision 1.26
26120 date: 1994/12/02 15:05:03;  author: matt;  state: Exp;
26121 Fixed bogus weapon constants and arrays
26122 ----------------------------
26123 revision 1.25
26124 date: 1994/12/02 10:50:34;  author: yuan;  state: Exp;
26125 Localization
26126 ----------------------------
26127 revision 1.24
26128 date: 1994/11/29 15:48:28;  author: matt;  state: Exp;
26129 selecting weapon now makes sound
26130 ----------------------------
26131 revision 1.23
26132 date: 1994/11/28 11:26:58;  author: matt;  state: Exp;
26133 Cleaned up hud message printing for picking up weapons
26134 ----------------------------
26135 revision 1.22
26136 date: 1994/11/27 23:13:39;  author: matt;  state: Exp;
26137 Made changes for new mprintf calling convention
26138 ----------------------------
26139 revision 1.21
26140 date: 1994/11/12 16:38:34;  author: mike;  state: Exp;
26141 clean up default ammo stuff.
26142 ----------------------------
26143 revision 1.20
26144 date: 1994/11/07 17:41:18;  author: mike;  state: Exp;
26145 messages for when you try to fire a weapon you don't have or don't have ammo for.
26146 ----------------------------
26147 revision 1.19
26148 date: 1994/10/21 20:40:05;  author: mike;  state: Exp;
26149 fix double vulcan ammo.
26150 ----------------------------
26151 revision 1.18
26152 date: 1994/10/20 09:49:05;  author: mike;  state: Exp;
26153 kill messages no one liked...*sniff* *sniff*
26154 ----------------------------
26155 revision 1.17
26156 date: 1994/10/19 11:17:07;  author: mike;  state: Exp;
26157 Limit amount of player ammo.
26158 ----------------------------
26159 revision 1.16
26160 date: 1994/10/12 08:04:18;  author: mike;  state: Exp;
26161 Fix proximity/homing confusion.
26162 ----------------------------
26163 revision 1.15
26164 date: 1994/10/11 18:27:58;  author: matt;  state: Exp;
26165 Changed auto selection of secondary weapons
26166 ----------------------------
26167 revision 1.14
26168 date: 1994/10/08 23:37:54;  author: matt;  state: Exp;
26169 Don't pick up weapons you already have; also fixed auto_select bug
26170 for seconary weapons
26171 ----------------------------
26172 revision 1.13
26173 date: 1994/10/08 14:55:47;  author: matt;  state: Exp;
26174 Fixed bug that selected vulcan cannon when picked up ammo, even though
26175 you didn't have the weapon.
26176 ----------------------------
26177 revision 1.12
26178 date: 1994/10/08 12:50:32;  author: matt;  state: Exp;
26179 Fixed bug that let you select weapons you don't have
26180 ----------------------------
26181 revision 1.11
26182 date: 1994/10/07 23:37:56;  author: matt;  state: Exp;
26183 Made weapons select when pick up better one
26184 ----------------------------
26185 revision 1.10
26186 date: 1994/10/07 16:02:08;  author: matt;  state: Exp;
26187 Fixed problem with weapon auto-select
26188 ----------------------------
26189 revision 1.9
26190 date: 1994/10/05 17:00:20;  author: matt;  state: Exp;
26191 Made player_has_weapon() public and moved constants to header file
26192 ----------------------------
26193 revision 1.8
26194 date: 1994/09/26 11:27:13;  author: mike;  state: Exp;
26195 Fix auto selection of weapon when you run out of ammo.
26196 ----------------------------
26197 revision 1.7
26198 date: 1994/09/13 16:40:45;  author: mike;  state: Exp;
26199 Add rearm delay and missile firing delay.
26200 ----------------------------
26201 revision 1.6
26202 date: 1994/09/13 14:43:12;  author: matt;  state: Exp;
26203 Added cockpit weapon displays
26204 ----------------------------
26205 revision 1.5
26206 date: 1994/09/03 15:23:06;  author: mike;  state: Exp;
26207 Auto select next weaker weapon when one runs out, clean up code.
26208 ----------------------------
26209 revision 1.4
26210 date: 1994/09/02 16:38:19;  author: mike;  state: Exp;
26211 Eliminate a pile of arrays, associate weapon data with Weapon_info.
26212 ----------------------------
26213 revision 1.3
26214 date: 1994/09/02 11:57:10;  author: mike;  state: Exp;
26215 Add a bunch of stuff, I forget what.
26216 ----------------------------
26217 revision 1.2
26218 date: 1994/06/03 16:26:32;  author: john;  state: Exp;
26219 Initial version.
26220 ----------------------------
26221 revision 1.1
26222 date: 1994/06/03 14:40:43;  author: john;  state: Exp;
26223 Initial revision
26224 =============================================================================
26225 RCS file: /Smoke/miner/source/main/weapon.h,v
26226 Working file: main/weapon.h
26227 head: 1.2
26228 description: Protypes for weapon stuff.
26229 ----------------------------
26230 revision 1.2
26231 date: 1995/09/14 14:07:10;  author: allender;  state: Exp;
26232 fixed prototypes to have return value
26233 ----------------------------
26234 revision 1.1
26235 date: 1995/05/16 16:05:22;  author: allender;  state: Exp;
26236 Initial revision
26237 ----------------------------
26238 revision 2.0
26239 date: 1995/02/27 11:31:10;  author: john;  state: Exp;
26240 New version 2.0, which has no anonymous unions, builds with
26241 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
26242 ----------------------------
26243 revision 1.44
26244 date: 1995/01/30 17:14:18;  author: mike;  state: Exp;
26245 halve rate of vulcan ammo consumption.
26246 ----------------------------
26247 revision 1.43
26248 date: 1995/01/19 17:45:04;  author: mike;  state: Exp;
26249 damage_force removed, that information coming from strength field.
26250 ----------------------------
26251 revision 1.42
26252 date: 1995/01/05 15:46:11;  author: john;  state: Exp;
26253 Made weapons not rearm when starting a saved game.
26254 ----------------------------
26255 revision 1.41
26256 date: 1995/01/04 12:20:27;  author: john;  state: Exp;
26257 Declearations to work better with game state save.
26258 ----------------------------
26259 revision 1.40
26260 date: 1994/12/13 12:54:16;  author: mike;  state: Exp;
26261 fix proximity, homing flags, backwards!
26262 ----------------------------
26263 revision 1.39
26264 date: 1994/12/11 16:17:57;  author: mike;  state: Exp;
26265 change default weapon life so shots from ctrlcen on level 6 won't evaporate before they hit you.
26266 ----------------------------
26267 revision 1.38
26268 date: 1994/12/09 19:55:26;  author: matt;  state: Exp;
26269 Added weapon name in "not available in shareware" message
26270 ----------------------------
26271 revision 1.37
26272 date: 1994/12/07 12:55:27;  author: mike;  state: Exp;
26273 tweak vulcan amounts.
26274 ----------------------------
26275 revision 1.36
26276 date: 1994/12/03 19:03:56;  author: matt;  state: Exp;
26277 Fixed vulcan ammo HUD message
26278 ----------------------------
26279 revision 1.35
26280 date: 1994/12/02 15:05:02;  author: matt;  state: Exp;
26281 Fixed bogus weapon constants and arrays
26282 ----------------------------
26283 revision 1.34
26284 date: 1994/11/29 14:26:05;  author: john;  state: Exp;
26285 Again.
26286 ----------------------------
26287 revision 1.33
26288 date: 1994/11/29 14:13:47;  author: adam;  state: Exp;
26289 Changed the byte flash sound to short.
26290 ----------------------------
26291 revision 1.32
26292 date: 1994/11/12 16:36:55;  author: mike;  state: Exp;
26293 default ammo stuff.
26294 ----------------------------
26295 revision 1.31
26296 date: 1994/10/21 10:55:24;  author: adam;  state: Exp;
26297 upped MAX_WEAPON_TYPES to 30
26298 ----------------------------
26299 revision 1.30
26300 date: 1994/10/19 11:16:37;  author: mike;  state: Exp;
26301 Limit ammo amounts.
26302 ----------------------------
26303 revision 1.29
26304 date: 1994/10/12 08:05:04;  author: mike;  state: Exp;
26305 Clean up homing/proximity mess.
26306 ----------------------------
26307 revision 1.28
26308 date: 1994/10/08 23:37:53;  author: matt;  state: Exp;
26309 Don't pick up weapons you already have; also fixed auto_select bug
26310 for seconary weapons
26311 ----------------------------
26312 revision 1.27
26313 date: 1994/10/07 23:37:56;  author: matt;  state: Exp;
26314 Made weapons select when pick up better one
26315 ----------------------------
26316 revision 1.26
26317 date: 1994/10/07 16:02:17;  author: matt;  state: Exp;
26318 Fixed problem with weapon auto-select
26319 ----------------------------
26320 revision 1.25
26321 date: 1994/10/05 17:07:44;  author: matt;  state: Exp;
26322 Made player_has_weapon() public and moved constants to header file
26323 ----------------------------
26324 revision 1.24
26325 date: 1994/09/30 21:50:49;  author: mike;  state: Exp;
26326 Add homing_flag and 3 dummy bytes to weapon_info.
26327 ----------------------------
26328 revision 1.23
26329 date: 1994/09/30 13:47:41;  author: mike;  state: Exp;
26330 Make speed and strength be difficulty level based.
26331 ----------------------------
26332 revision 1.22
26333 date: 1994/09/20 16:10:13;  author: mike;  state: Exp;
26334 Prototype Primary_weapon_names and Secondary_weapon_names.
26335 ----------------------------
26336 revision 1.21
26337 date: 1994/09/20 12:17:21;  author: adam;  state: Exp;
26338 upped weapon types
26339 ----------------------------
26340 revision 1.20
26341 date: 1994/09/13 16:40:29;  author: mike;  state: Exp;
26342 Define REARM_TIME -- time it takes until you can fire a newly armed weapon.
26343 ----------------------------
26344 revision 1.19
26345 date: 1994/09/13 14:43:03;  author: matt;  state: Exp;
26346 Added cockpit weapon displays
26347 ----------------------------
26348 revision 1.18
26349 date: 1994/09/11 15:50:34;  author: mike;  state: Exp;
26350 Add matter and bounce to weapon_info.
26351 ----------------------------
26352 revision 1.17
26353 date: 1994/09/10 17:32:17;  author: mike;  state: Exp;
26354 Add thrust to weapon_info.
26355 ----------------------------
26356 revision 1.16
26357 date: 1994/09/09 20:04:54;  author: mike;  state: Exp;
26358 Add vclips for weapons.
26359 ----------------------------
26360 revision 1.15
26361 date: 1994/09/07 15:59:14;  author: mike;  state: Exp;
26362 Add default lifetimes to weapons, destroyable, lifetime, damage_radius, damage_force fields to weapons.
26363 ----------------------------
26364 revision 1.14
26365 date: 1994/09/03 15:18:06;  author: mike;  state: Exp;
26366 Add prototype for auto_select_weapon.
26367 ----------------------------
26368 revision 1.13
26369 date: 1994/09/02 16:38:33;  author: mike;  state: Exp;
26370 Move data from global arrays to Weapon_info.
26371 ----------------------------
26372 revision 1.12
26373 date: 1994/09/02 11:54:59;  author: mike;  state: Exp;
26374 Add a whole slew of constants for the whole slew of new weapons.
26375 ----------------------------
26376 revision 1.11
26377 date: 1994/08/23 16:39:15;  author: mike;  state: Exp;
26378 Add light to weapon struct
26379 =============================================================================
26380 RCS file: /Smoke/miner/source/mem/mem.c,v
26381 Working file: mem/mem.c
26382 head: 1.16
26383 description: Files for debugging memory allocator
26384 ----------------------------
26385 revision 1.16
26386 date: 1995/10/26 19:24:31;  author: allender;  state: Exp;
26387 removed stray character
26388 ----------------------------
26389 revision 1.15
26390 date: 1995/10/26 14:13:25;  author: allender;  state: Exp;
26391 removed output to file for debugging
26392 ----------------------------
26393 revision 1.14
26394 date: 1995/10/21 23:49:58;  author: allender;  state: Exp;
26395 took out memory output to external file #define
26396 ----------------------------
26397 revision 1.13
26398 date: 1995/09/13 12:13:35;  author: allender;  state: Exp;
26399 assignments should be = not ==
26400 ----------------------------
26401 revision 1.12
26402 date: 1995/09/13 11:42:28;  author: allender;  state: Exp;
26403 free space in heap calcs and warning messages
26404 ----------------------------
26405 revision 1.11
26406 date: 1995/09/04 11:39:10;  author: allender;  state: Exp;
26407 took out some debug stuff and fixed the mem_align call
26408 ----------------------------
26409 revision 1.10
26410 date: 1995/08/31 15:45:03;  author: allender;  state: Exp;
26411 memory debugging stuff
26412 ----------------------------
26413 revision 1.9
26414 date: 1995/07/05 16:16:46;  author: allender;  state: Exp;
26415 use newptrclear instead of just NewPtr
26416 ----------------------------
26417 revision 1.8
26418 date: 1995/06/25 21:54:25;  author: allender;  state: Exp;
26419 comment out align malloc for debug purposes
26420 ----------------------------
26421 revision 1.7
26422 date: 1995/06/15 09:51:29;  author: allender;  state: Exp;
26423 new malloc to align data on specified memory boundry
26424 ----------------------------
26425 revision 1.6
26426 date: 1995/06/07 08:02:54;  author: allender;  state: Exp;
26427 misspelling
26428 ----------------------------
26429 revision 1.5
26430 date: 1995/06/07 08:01:34;  author: allender;  state: Exp;
26431 make unfreed bytes only show if show_mem_info is true. (I think
26432 the info is not right anyway.)
26433 ----------------------------
26434 revision 1.4
26435 date: 1995/05/12 11:24:45;  author: allender;  state: Exp;
26436 removed full memory checking -- Zero out all bytes on NewPtr
26437 ----------------------------
26438 revision 1.3
26439 date: 1995/05/04 20:08:57;  author: allender;  state: Exp;
26440 call NewPtr instead of malloc
26441 ----------------------------
26442 revision 1.2
26443 date: 1995/03/27 14:51:48;  author: allender;  state: Exp;
26444 *** empty log message ***
26445 ----------------------------
26446 revision 1.1
26447 date: 1995/03/09 09:57:42;  author: allender;  state: Exp;
26448 Initial revision
26449 ----------------------------
26450 revision 1.17
26451 date: 1994/11/29 15:40:38;  author: matt;  state: Exp;
26452 Added extra newline after message
26453 ----------------------------
26454 revision 1.16
26455 date: 1994/11/15 18:27:56;  author: john;  state: Exp;
26456 Took away show mem info by default.
26457 ----------------------------
26458 revision 1.15
26459 date: 1994/11/10 10:00:37;  author: john;  state: Exp;
26460 Made it show_mem_info by default.
26461 ----------------------------
26462 revision 1.14
26463 date: 1994/11/10 09:53:06;  author: john;  state: Exp;
26464 Put in more efficient, but less debugging info version.
26465 ----------------------------
26466 revision 1.13
26467 date: 1994/10/27 00:56:45;  author: john;  state: Exp;
26468 Reduced number of blocks; made show mem usage by default.
26469 ----------------------------
26470 revision 1.12
26471 date: 1994/10/06 19:15:17;  author: john;  state: Exp;
26472 Upped the number of blocks.
26473 ----------------------------
26474 revision 1.11
26475 date: 1994/07/27 20:04:22;  author: john;  state: Exp;
26476 Neatend printed output.
26477 ----------------------------
26478 revision 1.10
26479 date: 1994/07/20 10:22:17;  author: yuan;  state: Exp;
26480 Added overwrite error
26481 ----------------------------
26482 revision 1.9
26483 date: 1994/03/23 12:58:43;  author: john;  state: Exp;
26484 Made message global.
26485 ----------------------------
26486 revision 1.8
26487 date: 1994/03/15 11:12:59;  author: john;  state: Exp;
26488 Made calloc fill block with zeros like it's
26489 supposed to.
26490 ----------------------------
26491 revision 1.7
26492 date: 1994/02/18 12:43:21;  author: john;  state: Exp;
26493 Only print mem debugging info if show_mem_info
26494 is true. Need to set in debugger, btw.
26495 ----------------------------
26496 revision 1.6
26497 date: 1994/02/17 17:01:34;  author: john;  state: Exp;
26498 Took out MEM_LEAKAGE warning!
26499 ----------------------------
26500 revision 1.5
26501 date: 1994/01/24 16:04:47;  author: john;  state: Exp;
26502 Added mem_print_all function to dump all
26503 allocated memory to inferno.mem file.
26504 ----------------------------
26505 revision 1.4
26506 date: 1994/01/18 11:01:41;  author: john;  state: Exp;
26507 *** empty log message ***
26508 ----------------------------
26509 revision 1.3
26510 date: 1993/12/10 12:20:50;  author: john;  state: Exp;
26511 Speed up by replacing mem_find_unused_id with a table lookup.
26512 ----------------------------
26513 revision 1.2
26514 date: 1993/12/08 12:38:22;  author: mike;  state: Exp;
26515 Change 10000 to MAX_INDEX
26516 Use LargestIndex in place of MAX_INDEX as appropriate.
26517 ----------------------------
26518 revision 1.1
26519 date: 1993/11/02 17:45:28;  author: john;  state: Exp;
26520 Initial revision
26521 =============================================================================
26522 RCS file: /Smoke/miner/source/mem/mem.h,v
26523 Working file: mem/mem.h
26524 head: 1.6
26525 description: Headers for safe malloc stuff.
26526 ----------------------------
26527 revision 1.6
26528 date: 1995/09/04 11:39:39;  author: allender;  state: Exp;
26529 change mem_align macro to call normal malloc
26530 ----------------------------
26531 revision 1.5
26532 date: 1995/06/15 09:51:22;  author: allender;  state: Exp;
26533 new malloc prototype
26534 ----------------------------
26535 revision 1.4
26536 date: 1995/05/12 11:28:34;  author: allender;  state: Exp;
26537 have two sets of memory routines which do the same thing to cover all bases
26538 ----------------------------
26539 revision 1.3
26540 date: 1995/05/12 11:24:04;  author: allender;  state: Exp;
26541 changed #defines so that it is more clear which memory functions we are using
26542 ----------------------------
26543 revision 1.2
26544 date: 1995/05/04 20:09:25;  author: allender;  state: Exp;
26545 removed some ifdefs which should probably be added back
26546 ----------------------------
26547 revision 1.1
26548 date: 1995/03/09 09:58:08;  author: allender;  state: Exp;
26549 Initial revision
26550 ----------------------------
26551 revision 1.4
26552 date: 1994/11/27 21:10:58;  author: matt;  state: Exp;
26553 Now supports NDEBUG to turn off all special mem checking
26554 ----------------------------
26555 revision 1.3
26556 date: 1994/03/15 11:12:40;  author: john;  state: Exp;
26557 Made calloc fill block with zeros like it's
26558 supposed to.
26559 ----------------------------
26560 revision 1.2
26561 date: 1993/11/04 14:02:39;  author: matt;  state: Exp;
26562 Added calloc() macro
26563 ----------------------------
26564 revision 1.1
26565 date: 1993/11/02 17:45:33;  author: john;  state: Exp;
26566 Initial revision
26567 =============================================================================
26568 RCS file: /Smoke/miner/source/misc/byteswap.c,v
26569 Working file: misc/byteswap.c
26570 head: 1.3
26571 description: code to swap bytes because of big/little endian problems.
26572 ----------------------------
26573 revision 1.3
26574 date: 1995/08/18 15:51:17;  author: allender;  state: Exp;
26575 put back in old byteswapping code
26576 ----------------------------
26577 revision 1.2
26578 date: 1995/05/04 20:10:06;  author: allender;  state: Exp;
26579 use unsigned to prevent sign problems
26580 ----------------------------
26581 revision 1.1
26582 date: 1995/03/30 15:01:49;  author: allender;  state: Exp;
26583 Initial revision
26584 =============================================================================
26585 RCS file: /Smoke/miner/source/misc/byteswap.h,v
26586 Working file: misc/byteswap.h
26587 head: 1.4
26588 description: code to swap bytes because of big/little endian problems.
26589 ----------------------------
26590 revision 1.4
26591 date: 1995/08/23 21:28:15;  author: allender;  state: Exp;
26592 fix mcc compiler warning
26593 ----------------------------
26594 revision 1.3
26595 date: 1995/08/18 15:51:42;  author: allender;  state: Exp;
26596 put back in old byteswapping code
26597 ----------------------------
26598 revision 1.2
26599 date: 1995/05/04 20:10:18;  author: allender;  state: Exp;
26600 proper prototypes
26601 ----------------------------
26602 revision 1.1
26603 date: 1995/03/30 15:02:11;  author: allender;  state: Exp;
26604 Initial revision
26605 =============================================================================
26606 RCS file: /Smoke/miner/source/misc/error.c,v
26607 Working file: misc/error.c
26608 head: 1.10
26609 description: functions to deal with error and warning dialogs
26610 ----------------------------
26611 revision 1.10
26612 date: 1995/10/13 14:42:34;  author: allender;  state: Exp;
26613 *** empty log message ***
26614 ----------------------------
26615 revision 1.9
26616 date: 1995/10/12 17:40:45;  author: allender;  state: Exp;
26617 fixed code so error/warning dialogs will display properly
26618 on second monitor
26619 ----------------------------
26620 revision 1.8
26621 date: 1995/07/31 15:25:53;  author: allender;  state: Exp;
26622 *** empty log message ***
26623 ----------------------------
26624 revision 1.7
26625 date: 1995/07/28 13:11:52;  author: allender;  state: Exp;
26626 cursor manipulation during warning and error dialogs
26627 ----------------------------
26628 revision 1.6
26629 date: 1995/07/13 11:16:13;  author: allender;  state: Exp;
26630 call to debug_video mode on error or warning
26631 ----------------------------
26632 revision 1.5
26633 date: 1995/07/05 16:21:45;  author: allender;  state: Exp;
26634 extern definitions
26635 ----------------------------
26636 revision 1.4
26637 date: 1995/06/06 12:19:14;  author: allender;  state: Exp;
26638 call comm_close on error to close the comm port
26639 ----------------------------
26640 revision 1.3
26641 date: 1995/05/12 13:06:24;  author: allender;  state: Exp;
26642 removed Error call from MyAssert so tracing out of this
26643 function is possible
26644 ----------------------------
26645 revision 1.2
26646 date: 1995/05/11 12:57:22;  author: allender;  state: Exp;
26647 added MyAssert function
26648 ----------------------------
26649 revision 1.1
26650 date: 1995/05/04 20:12:23;  author: allender;  state: Exp;
26651 Initial revision
26652 ----------------------------
26653 revision 1.2
26654 date: 1995/03/17 09:40:01;  author: allender;  state: Exp;
26655 *** empty log message ***
26656 ----------------------------
26657 revision 1.1
26658 date: 1995/03/09 09:30:21;  author: allender;  state: Exp;
26659 Initial revision
26660 =============================================================================
26661 RCS file: /Smoke/miner/source/misc/error.h,v
26662 Working file: misc/error.h
26663 head: 1.6
26664 description: prototypes for error and warning dialogs
26665 ----------------------------
26666 revision 1.6
26667 date: 1995/09/04 11:42:21;  author: allender;  state: Exp;
26668 made call to debug_video_mode on error and warning
26669 in case screen is faded
26670 ----------------------------
26671 revision 1.5
26672 date: 1995/08/23 21:28:44;  author: allender;  state: Exp;
26673 fix mcc compiler warning
26674 ----------------------------
26675 revision 1.4
26676 date: 1995/08/16 10:00:59;  author: allender;  state: Exp;
26677 call key_close on Int3 -- made bios code restart key handler
26678 if not installed
26679 ----------------------------
26680 revision 1.3
26681 date: 1995/07/05 16:18:21;  author: allender;  state: Exp;
26682 new macro for Int3 to restore colors for debugger
26683 ----------------------------
26684 revision 1.2
26685 date: 1995/05/11 12:57:11;  author: allender;  state: Exp;
26686 changed assert macro to do something useful
26687 ----------------------------
26688 revision 1.1
26689 date: 1995/05/04 20:12:10;  author: allender;  state: Exp;
26690 Initial revision
26691 ----------------------------
26692 revision 1.2
26693 date: 1995/04/18 16:03:06;  author: allender;  state: Exp;
26694 *** empty log message ***
26695 ----------------------------
26696 revision 1.1
26697 date: 1995/03/09 09:31:23;  author: allender;  state: Exp;
26698 Initial revision
26699 =============================================================================
26700 RCS file: /Smoke/miner/source/misc/fileutil.c,v
26701 Working file: misc/fileutil.c
26702 head: 1.6
26703 description: utilities for file manipulation
26704 ----------------------------
26705 revision 1.6
26706 date: 1995/10/30 11:09:51;  author: allender;  state: Exp;
26707 use FILE, not CFILE on the write* routines
26708 ----------------------------
26709 revision 1.5
26710 date: 1995/05/11 13:00:34;  author: allender;  state: Exp;
26711 added write functions which swap bytes
26712 ----------------------------
26713 revision 1.4
26714 date: 1995/05/04 20:10:38;  author: allender;  state: Exp;
26715 remove include for fcntl
26716 ----------------------------
26717 revision 1.3
26718 date: 1995/04/26 10:14:39;  author: allender;  state: Exp;
26719 added byteswap header file
26720 ----------------------------
26721 revision 1.2
26722 date: 1995/04/26 10:13:21;  author: allender;  state: Exp;
26723 ----------------------------
26724 revision 1.1
26725 date: 1995/03/30 15:02:34;  author: allender;  state: Exp;
26726 Initial revision
26727 =============================================================================
26728 RCS file: /Smoke/miner/source/misc/fileutil.h,v
26729 Working file: misc/fileutil.h
26730 head: 1.4
26731 description: header file for file utilities
26732 ----------------------------
26733 revision 1.4
26734 date: 1995/10/25 14:06:34;  author: allender;  state: Exp;
26735 don't write with CFILE -- use FILE
26736 ----------------------------
26737 revision 1.3
26738 date: 1995/05/11 13:00:45;  author: allender;  state: Exp;
26739 added functions which write swapped bytes
26740 ----------------------------
26741 revision 1.2
26742 date: 1995/04/26 10:13:12;  author: allender;  state: Exp;
26743 added routines to read basic data types
26744 ----------------------------
26745 revision 1.1
26746 date: 1995/03/30 15:02:51;  author: allender;  state: Exp;
26747 Initial revision
26748 =============================================================================
26749 RCS file: /Smoke/miner/source/misc/strutil.c,v
26750 Working file: misc/strutil.c
26751 head: 1.3
26752 description: string manipulation utility code
26753 ----------------------------
26754 revision 1.3
26755 date: 1995/07/17 10:44:11;  author: allender;  state: Exp;
26756 fixed strrev
26757 ----------------------------
26758 revision 1.2
26759 date: 1995/05/04 20:10:59;  author: allender;  state: Exp;
26760 added some string routines
26761 ----------------------------
26762 revision 1.1
26763 date: 1995/03/30 15:03:55;  author: allender;  state: Exp;
26764 Initial revision
26765 =============================================================================
26766 RCS file: /Buggin/miner/source/misc/strutil.h,v
26767 Working file: misc/strutil.h
26768 head: 1.2
26769 description: header file for string utilities
26770 ----------------------------
26771 revision 1.2
26772 date: 1995/05/04 20:11:07;  author: allender;  state: Exp;
26773 add string utilities prototypes
26774 ----------------------------
26775 revision 1.1
26776 date: 1995/03/30 15:04:12;  author: allender;  state: Exp;
26777 Initial revision
26778 =============================================================================
26779 RCS file: /Smoke/miner/source/resource/resource.h,v
26780 Working file: resource/resource.h
26781 head: 1.4
26782 description:  macros and definitions for resource values
26783 ----------------------------
26784 revision 1.4
26785 date: 1995/10/07 16:57:58;  author: allender;  state: Exp;
26786 added MEMORY_ALERT for not enough memory warning
26787 ----------------------------
26788 revision 1.3
26789 date: 1995/09/13 08:42:44;  author: allender;  state: Exp;
26790 changed resource ids around
26791 ----------------------------
26792 revision 1.2
26793 date: 1995/04/04 13:59:45;  author: allender;  state: Exp;
26794 *** empty log message ***
26795 ----------------------------
26796 revision 1.1
26797 date: 1995/03/09 10:03:45;  author: allender;  state: Exp;
26798 Initial revision
26799 =============================================================================
26800 RCS file: /Smoke/miner/source/texmap/ntmap.c,v
26801 Working file: texmap/ntmap.c
26802 head: 1.8
26803 description: Start of conversion to new texture mapper.
26804 ----------------------------
26805 revision 1.8
26806 date: 1995/09/13 08:43:11;  author: allender;  state: Exp;
26807 put in Mike's check to help with overflow
26808 ----------------------------
26809 revision 1.7
26810 date: 1995/09/04 14:21:50;  author: allender;  state: Exp;
26811 brute force texture points inbetween buffer bounds
26812 ----------------------------
26813 revision 1.6
26814 date: 1995/08/31 15:48:41;  author: allender;  state: Exp;
26815 call assembly on no light texture map
26816 ----------------------------
26817 revision 1.5
26818 date: 1995/08/14 14:28:05;  author: allender;  state: Exp;
26819 has quadtratic interpolator
26820 ----------------------------
26821 revision 1.54
26822 date: 1995/05/26 16:08:03;  author: matt;  state: Exp;
26823 Took out evil include of Descent main directory header file
26824 ----------------------------
26825 revision 1.53
26826 date: 1995/04/18 14:36:14;  author: matt;  state: Exp;
26827 Moved window_clip vars to texmap library from Descent main source
26828 ----------------------------
26829 revision 1.52
26830 date: 1995/03/14 15:13:06;  author: john;  state: Exp;
26831 Increased MAX_Y_Pointers to 480.
26832 ----------------------------
26833 revision 1.51
26834 date: 1995/02/23 14:25:09;  author: john;  state: Exp;
26835 Added editor tmap.
26836 ----------------------------
26837 revision 1.50
26838 date: 1995/02/20 18:22:58;  author: john;  state: Exp;
26839 Put all the externs in the assembly modules into tmap_inc.asm.
26840 Also, moved all the C versions of the inner loops into a new module, 
26841 scanline.c.
26842 ----------------------------
26843 revision 1.49
26844 date: 1995/02/20 17:09:11;  author: john;  state: Exp;
26845 Added code so that you can build the tmapper with no assembly!
26846 ----------------------------
26847 revision 1.48
26848 date: 1995/01/06 11:11:30;  author: mike;  state: Exp;
26849 even when not in editor, have 400 lines in texture map scanline table.
26850 ----------------------------
26851 revision 1.47
26852 date: 1994/12/15 16:43:25;  author: matt;  state: Exp;
26853 Took out code only needed by editor
26854 ----------------------------
26855 revision 1.46
26856 date: 1994/12/09 22:35:37;  author: mike;  state: Exp;
26857 fix bug in before call to asm_tmap_scanline_per causing write of pixel onto past right border onto left.
26858 ----------------------------
26859 revision 1.45
26860 date: 1994/12/06 16:31:06;  author: mike;  state: Exp;
26861 fix bug in asm_tmap_scanline_matt interface.
26862 ----------------------------
26863 revision 1.44
26864 date: 1994/12/04 20:37:18;  author: mike;  state: Exp;
26865 *** empty log message ***
26866 ----------------------------
26867 revision 1.43
26868 date: 1994/12/02 23:30:04;  author: mike;  state: Exp;
26869 optimizations.
26870 ----------------------------
26871 revision 1.42
26872 date: 1994/11/30 00:57:43;  author: mike;  state: Exp;
26873 optimizations.
26874 ----------------------------
26875 revision 1.41
26876 date: 1994/11/28 13:34:27;  author: mike;  state: Exp;
26877 optimizations.
26878 ----------------------------
26879 revision 1.40
26880 date: 1994/11/28 01:30:01;  author: mike;  state: Exp;
26881 kill warning.
26882 ----------------------------
26883 revision 1.39
26884 date: 1994/11/28 01:28:59;  author: mike;  state: Exp;
26885 optimizations.
26886 ----------------------------
26887 revision 1.38
26888 date: 1994/11/21 14:08:07;  author: john;  state: Exp;
26889 Took out all multiple instead of divide code.
26890 ----------------------------
26891 revision 1.37
26892 date: 1994/11/19 15:21:52;  author: mike;  state: Exp;
26893 rip out unused code.
26894 ----------------------------
26895 revision 1.36
26896 date: 1994/11/14 11:42:51;  author: mike;  state: Exp;
26897 optimization.
26898 ----------------------------
26899 revision 1.35
26900 date: 1994/11/12 16:41:36;  author: mike;  state: Exp;
26901 *** empty log message ***
26902 ----------------------------
26903 revision 1.34
26904 date: 1994/11/10 21:28:41;  author: mike;  state: Exp;
26905 remove call to init_interface_vars_to_assembler.
26906 ----------------------------
26907 revision 1.33
26908 date: 1994/11/10 11:08:59;  author: mike;  state: Exp;
26909 detail level stuff.
26910 ----------------------------
26911 revision 1.32
26912 date: 1994/11/09 22:55:52;  author: matt;  state: Exp;
26913 Added variable Current_seg_depth for detail level optimization
26914 ----------------------------
26915 revision 1.31
26916 date: 1994/11/09 19:57:31;  author: john;  state: Exp;
26917 Added texture rle caching.
26918 ----------------------------
26919 revision 1.30
26920 date: 1994/11/09 19:54:48;  author: mike;  state: Exp;
26921 Call flat shader if Tmap_flat_flag set.
26922 ----------------------------
26923 revision 1.29
26924 date: 1994/11/02 21:33:31;  author: john;  state: Exp;
26925 Added Burger Bill's optimization, ie.. 2 muls per 8 pixels.
26926 ----------------------------
26927 revision 1.28
26928 date: 1994/11/02 11:32:16;  author: john;  state: Exp;
26929 Added code for c callable inner loop and code to 
26930 test dividing out z0.
26931 ----------------------------
26932 revision 1.27
26933 date: 1994/10/28 20:54:32;  author: matt;  state: Exp;
26934 Added error checking
26935 ----------------------------
26936 revision 1.26
26937 date: 1994/10/25 11:20:20;  author: mike;  state: Exp;
26938 fix bug in lighting overflow checking for one scanline tall linear texture maps.
26939 ----------------------------
26940 revision 1.25
26941 date: 1994/08/03 15:40:33;  author: mike;  state: Exp;
26942 Prevent divide overflows, decrease occurrence of precision-caused glitches.
26943 ----------------------------
26944 revision 1.24
26945 date: 1994/07/27 09:31:16;  author: mike;  state: Exp;
26946 Fix concave texture map problem, decrease occurrence of unimportant int 3.
26947 ----------------------------
26948 revision 1.23
26949 date: 1994/06/17 12:23:31;  author: mike;  state: Exp;
26950 Support non-lighted texture maps.
26951 ----------------------------
26952 revision 1.22
26953 date: 1994/06/11 08:10:24;  author: mike;  state: Exp;
26954 Fix mysterious hang bug, lighting value was out of range.
26955 ----------------------------
26956 revision 1.21
26957 date: 1994/06/09 16:10:16;  author: mike;  state: Exp;
26958 Change SC2000 from constant to variable.
26959 =============================================================================
26960 RCS file: /Smoke/miner/source/texmap/scanline.c,v
26961 Working file: texmap/scanline.c
26962 head: 1.4
26963 description: Routines to draw the texture mapped scanlines.
26964 ----------------------------
26965 revision 1.4
26966 date: 1995/08/14 14:28:28;  author: allender;  state: Exp;
26967 changed transparency color to 0
26968 ----------------------------
26969 revision 1.3
26970 date: 1995/07/05 16:22:47;  author: allender;  state: Exp;
26971 all asm verison when necessary
26972 ----------------------------
26973 revision 1.2
26974 date: 1995/05/11 12:59:05;  author: allender;  state: Exp;
26975 mike subdivision, plus change transparency color
26976 ----------------------------
26977 revision 1.1
26978 date: 1995/05/04 20:14:19;  author: allender;  state: Exp;
26979 Initial revision
26980 ----------------------------
26981 revision 1.2
26982 date: 1995/02/20 18:23:39;  author: john;  state: Exp;
26983 Added new module for C versions of inner loops.
26984 ----------------------------
26985 revision 1.1
26986 date: 1995/02/20 17:42:27;  author: john;  state: Exp;
26987 Initial revision
26988 =============================================================================
26989 RCS file: /Smoke/miner/source/texmap/scanline.h,v
26990 Working file: texmap/scanline.h
26991 head: 1.1
26992 description: Prototypes for C versions of texture mapped scanlines.
26993 ----------------------------
26994 revision 1.1
26995 date: 1995/05/04 20:14:36;  author: allender;  state: Exp;
26996 Initial revision
26997 ----------------------------
26998 revision 1.2
26999 date: 1995/02/20 18:23:40;  author: john;  state: Exp;
27000 Added new module for C versions of inner loops.
27001 ----------------------------
27002 revision 1.1
27003 date: 1995/02/20 17:44:16;  author: john;  state: Exp;
27004 Initial revision
27005 =============================================================================
27006 RCS file: /Smoke/miner/source/texmap/texmap.h,v
27007 Working file: texmap/texmap.h
27008 head: 1.2
27009 description: Include file for entities using texture mapper library.
27010 ----------------------------
27011 revision 1.2
27012 date: 1995/09/04 14:22:10;  author: allender;  state: Exp;
27013 #defines for fixed point limits on render buffer
27014 ----------------------------
27015 revision 1.1
27016 date: 1995/05/04 20:14:50;  author: allender;  state: Exp;
27017 Initial revision
27018 ----------------------------
27019 revision 1.17
27020 date: 1994/11/10 11:09:16;  author: mike;  state: Exp;
27021 detail level stuff.
27022 ----------------------------
27023 revision 1.16
27024 date: 1994/11/09 22:55:32;  author: matt;  state: Exp;
27025 Added variable Current_seg_depth for detail level optimization
27026 ----------------------------
27027 revision 1.15
27028 date: 1994/06/09 16:10:04;  author: mike;  state: Exp;
27029 Add prototype for SC2000
27030 ----------------------------
27031 revision 1.14
27032 date: 1994/05/25 18:46:16;  author: matt;  state: Exp;
27033 Added gr_upoly_tmap_ylr(), which generates ylr's for a polygon
27034 ----------------------------
27035 revision 1.13
27036 date: 1994/05/25 09:47:12;  author: mike;  state: Exp;
27037 Added interface support for linear texture mapper (Mike change, Matt commnet)
27038 ----------------------------
27039 revision 1.12
27040 date: 1994/05/24 17:30:43;  author: mike;  state: Exp;
27041 Prototype a bunch of linear, vertical scanning functions.
27042 ----------------------------
27043 revision 1.11
27044 date: 1994/05/19 23:26:14;  author: mike;  state: Exp;
27045 Add constants NUM_LIGHTING_VALUES, MAX_LIGHTING_VALUE, MIN_LIGHTING_VALUE,
27046 all part of new lighting_values_in_0_to_1 system.
27047 ----------------------------
27048 revision 1.10
27049 date: 1994/05/14 17:19:21;  author: matt;  state: Exp;
27050 Added externs
27051 ----------------------------
27052 revision 1.9
27053 date: 1994/04/13 23:55:44;  author: matt;  state: Exp;
27054 Increased max_tmap_verts from 16 to 25
27055 ----------------------------
27056 revision 1.8
27057 date: 1994/03/31 08:35:43;  author: mike;  state: Exp;
27058 Prototype for gr_upoly_tmap.
27059 ----------------------------
27060 revision 1.7
27061 date: 1994/02/08 15:17:54;  author: mike;  state: Exp;
27062 define label for MAX_TMAP_VERTS
27063 ----------------------------
27064 revision 1.6
27065 date: 1994/01/31 15:41:51;  author: mike;  state: Exp;
27066 Add texture_map_lin_lin_sky_v
27067 ----------------------------
27068 revision 1.5
27069 date: 1994/01/18 10:49:40;  author: mike;  state: Exp;
27070 prototype for texture_map_lin_lin_sky
27071 ----------------------------
27072 revision 1.4
27073 date: 1993/11/30 17:09:46;  author: mike;  state: Exp;
27074 prototype for compute_lighting_value.
27075 ----------------------------
27076 revision 1.3
27077 date: 1993/11/22 10:50:38;  author: matt;  state: Exp;
27078 Add ifndef around body of file
27079 ----------------------------
27080 revision 1.2
27081 date: 1993/10/06 12:41:25;  author: mike;  state: Exp;
27082 Change prototype for draw_tmap.
27083 ----------------------------
27084 revision 1.1
27085 date: 1993/09/08 17:29:11;  author: mike;  state: Exp;
27086 Initial revision
27087 =============================================================================
27088 RCS file: /Buggin/miner/source/texmap/texmapl.h,v
27089 Working file: texmap/texmapl.h
27090 head: 1.1
27091 description: Local include file for texture mapper library -- NOT to be included by users.
27092 ----------------------------
27093 revision 1.1
27094 date: 1995/05/04 20:15:25;  author: allender;  state: Exp;
27095 Initial revision
27096 ----------------------------
27097 revision 1.14
27098 date: 1995/02/20 18:23:02;  author: john;  state: Exp;
27099 Put all the externs in the assembly modules into tmap_inc.asm.
27100 Also, moved all the C versions of the inner loops into a new module, 
27101 scanline.c.
27102 ----------------------------
27103 revision 1.13
27104 date: 1995/02/20 17:09:16;  author: john;  state: Exp;
27105 Added code so that you can build the tmapper with no assembly!
27106 ----------------------------
27107 revision 1.12
27108 date: 1994/11/28 13:34:34;  author: mike;  state: Exp;
27109 optimizations.
27110 ----------------------------
27111 revision 1.11
27112 date: 1994/11/12 16:41:27;  author: mike;  state: Exp;
27113 function prototype.
27114 ----------------------------
27115 revision 1.10
27116 date: 1994/05/24 17:30:00;  author: mike;  state: Exp;
27117 Prototype fix_recip, asm_tmap_scanline_lin_v.
27118 ----------------------------
27119 revision 1.9
27120 date: 1994/04/21 15:04:26;  author: mike;  state: Exp;
27121 Add prototype for texmapl.h
27122 ----------------------------
27123 revision 1.8
27124 date: 1994/03/31 08:34:53;  author: mike;  state: Exp;
27125 *** empty log message ***
27126 ----------------------------
27127 revision 1.7
27128 date: 1994/03/22 20:37:04;  author: mike;  state: Exp;
27129 *** empty log message ***
27130 ----------------------------
27131 revision 1.6
27132 date: 1994/03/14 15:43:03;  author: mike;  state: Exp;
27133 streamline code.
27134 ----------------------------
27135 revision 1.5
27136 date: 1994/01/31 15:43:18;  author: mike;  state: Exp;
27137 window_height, asm_tmap_scanline_lin_sky_v
27138 ----------------------------
27139 revision 1.4
27140 date: 1994/01/21 21:12:27;  author: mike;  state: Exp;
27141 Prototype asm_tmap_scanline_lin_sky
27142 ----------------------------
27143 revision 1.3
27144 date: 1994/01/14 14:01:45;  author: mike;  state: Exp;
27145 Add a bunch of variables.
27146 ----------------------------
27147 revision 1.2
27148 date: 1993/11/22 10:25:11;  author: mike;  state: Exp;
27149 *** empty log message ***
27150 ----------------------------
27151 revision 1.1
27152 date: 1993/09/08 17:29:13;  author: mike;  state: Exp;
27153 Initial revision
27154 =============================================================================
27155 RCS file: /Buggin/miner/source/texmap/tmap.c,v
27156 Working file: texmap/tmap.c
27157 head: 1.1
27158 description: Texture mapper
27159 ----------------------------
27160 revision 1.1
27161 date: 1995/05/04 20:15:38;  author: allender;  state: Exp;
27162 Initial revision
27163 ----------------------------
27164 revision 1.19
27165 date: 1994/03/14 15:44:27;  author: mike;  state: Exp;
27166 Streamline code, rendering this file obsolete, replaced by ntmap.c
27167 ----------------------------
27168 revision 1.18
27169 date: 1994/02/10 18:35:15;  author: matt;  state: Exp;
27170 Got rid of DEBUG_ON define, now replaced by NDEBUG system
27171 ----------------------------
27172 revision 1.17
27173 date: 1994/02/08 15:21:28;  author: mike;  state: Exp;
27174 sc2000 stuff.
27175 ----------------------------
27176 revision 1.16
27177 date: 1994/01/31 15:43:01;  author: mike;  state: Exp;
27178 who knows, probably a lot of stuff...
27179 ----------------------------
27180 revision 1.15
27181 date: 1994/01/26 11:50:28;  author: mike;  state: Exp;
27182 Don't make dark textures not plot.
27183 ----------------------------
27184 revision 1.14
27185 date: 1994/01/21 21:12:53;  author: mike;  state: Exp;
27186 sky stuff.
27187 ----------------------------
27188 revision 1.13
27189 date: 1994/01/21 11:58:47;  author: john;  state: Exp;
27190 Changed lighting.
27191 ----------------------------
27192 revision 1.12
27193 date: 1994/01/18 10:51:11;  author: mike;  state: Exp;
27194 Interface to sky texture mapper.
27195 ----------------------------
27196 revision 1.11
27197 date: 1994/01/14 14:02:43;  author: mike;  state: Exp;
27198 *** empty log message ***
27199 ----------------------------
27200 revision 1.10
27201 date: 1993/12/20 13:56:45;  author: mike;  state: Exp;
27202 Remove "negative lighting value" message.
27203 ----------------------------
27204 revision 1.9
27205 date: 1993/12/17 19:59:58;  author: mike;  state: Exp;
27206 Change lighting.
27207 ----------------------------
27208 revision 1.8
27209 date: 1993/12/07 12:28:01;  author: john;  state: Exp;
27210 Moved bmd_palette to gr_palette
27211 ----------------------------
27212 revision 1.7
27213 date: 1993/12/06 13:28:11;  author: mike;  state: Exp;
27214 Prevent divide overflow.
27215 ----------------------------
27216 revision 1.6
27217 date: 1993/11/30 17:17:11;  author: john;  state: Exp;
27218 *** empty log message ***
27219 ----------------------------
27220 revision 1.5
27221 date: 1993/11/23 18:08:13;  author: mike;  state: Exp;
27222 Put in check for under/over flowing lighting values.
27223 ----------------------------
27224 revision 1.4
27225 date: 1993/11/23 15:09:19;  author: mike;  state: Exp;
27226 Added lighting to perspective tmapper
27227 ----------------------------
27228 revision 1.3
27229 date: 1993/11/22 10:24:04;  author: mike;  state: Exp;
27230 *** empty log message ***
27231 ----------------------------
27232 revision 1.2
27233 date: 1993/10/06 12:41:45;  author: mike;  state: Exp;
27234 Change draw_tmap to conform to Matt's new interface.
27235 ----------------------------
27236 revision 1.1
27237 date: 1993/09/08 17:29:09;  author: mike;  state: Exp;
27238 Initial revision
27239 =============================================================================
27240 RCS file: /Smoke/miner/source/texmap/tmapflat.c,v
27241 Working file: texmap/tmapflat.c
27242 head: 1.4
27243 description: Flat shader derived from texture mapper (a little slow)
27244 ----------------------------
27245 revision 1.4
27246 date: 1995/09/04 14:22:26;  author: allender;  state: Exp;
27247 brute force texture points to stay in buffer bounds
27248 ----------------------------
27249 revision 1.3
27250 date: 1995/08/10 16:22:43;  author: allender;  state: Exp;
27251 conditional compile NASM being defined
27252 ----------------------------
27253 revision 1.2
27254 date: 1995/06/25 21:52:24;  author: allender;  state: Exp;
27255 call c versions of asm routines for now since some asm not
27256 implemented yet
27257 ----------------------------
27258 revision 1.1
27259 date: 1995/05/04 20:15:55;  author: allender;  state: Exp;
27260 Initial revision
27261 ----------------------------
27262 revision 1.13
27263 date: 1995/02/20 18:23:24;  author: john;  state: Exp;
27264 Added new module for C versions of inner loops.
27265 ----------------------------
27266 revision 1.12
27267 date: 1995/02/20 17:09:17;  author: john;  state: Exp;
27268 Added code so that you can build the tmapper with no assembly!
27269 ----------------------------
27270 revision 1.11
27271 date: 1994/11/30 00:58:01;  author: mike;  state: Exp;
27272 optimizations.
27273 ----------------------------
27274 revision 1.10
27275 date: 1994/11/28 13:34:32;  author: mike;  state: Exp;
27276 optimizations.
27277 ----------------------------
27278 revision 1.9
27279 date: 1994/11/19 15:21:46;  author: mike;  state: Exp;
27280 rip out unused code.
27281 ----------------------------
27282 revision 1.8
27283 date: 1994/11/12 16:41:41;  author: mike;  state: Exp;
27284 *** empty log message ***
27285 ----------------------------
27286 revision 1.7
27287 date: 1994/11/09 23:05:12;  author: mike;  state: Exp;
27288 do lighting on texture maps which get flat shaded instead.
27289 ----------------------------
27290 revision 1.6
27291 date: 1994/10/06 19:53:07;  author: matt;  state: Exp;
27292 Added function that takes same parms as draw_tmap(), but renders flat
27293 ----------------------------
27294 revision 1.5
27295 date: 1994/10/06 18:38:12;  author: john;  state: Exp;
27296 Added the ability to fade a scanline by calling gr_upoly_tmap
27297 with Gr_scanline_darkening_level with a value < MAX_FADE_LEVELS.
27298 ----------------------------
27299 revision 1.4
27300 date: 1994/05/25 18:46:32;  author: matt;  state: Exp;
27301 Added gr_upoly_tmap_ylr(), which generates ylr's for a polygon
27302 ----------------------------
27303 revision 1.3
27304 date: 1994/04/08 16:25:58;  author: mike;  state: Exp;
27305 Comment out some includes (of header files)
27306 call init_interface_vars_to_assembler.
27307 ----------------------------
27308 revision 1.2
27309 date: 1994/03/31 08:33:44;  author: mike;  state: Exp;
27310 Fixup flat shading version of texture mapper (get it?)
27311 (Or maybe not, I admit to not testing my code...hahahah!)
27312 ----------------------------
27313 revision 1.1
27314 date: 1993/09/08 17:29:10;  author: mike;  state: Exp;
27315 Initial revision
27316 =============================================================================
27317 RCS file: /Smoke/miner/source/vecmat/vecmat.c,v
27318 Working file: vecmat/vecmat.c
27319 head: 1.5
27320 description: C version of vecmat library
27321 ----------------------------
27322 revision 1.5
27323 date: 1995/10/30 11:08:16;  author: allender;  state: Exp;
27324 fix check_vec to return if vector is the NULL vector
27325 ----------------------------
27326 revision 1.4
27327 date: 1995/09/23 09:38:14;  author: allender;  state: Exp;
27328 removed calls for PPC that are now handled in asm
27329 ----------------------------
27330 revision 1.3
27331 date: 1995/08/31 15:50:24;  author: allender;  state: Exp;
27332 fixing up of functions for PPC
27333 ----------------------------
27334 revision 1.2
27335 date: 1995/07/05 16:40:21;  author: allender;  state: Exp;
27336 some vecmat stuff might be using isqrt -- commented out
27337 for now
27338 ----------------------------
27339 revision 1.1
27340 date: 1995/04/17 16:18:02;  author: allender;  state: Exp;
27341 Initial revision
27342 ----------------------------
27343 revision 1.1
27344 date: 1995/03/08 15:56:50;  author: matt;  state: Exp;
27345 Initial revision
27346 =============================================================================
27347 RCS file: /Buggin/miner/source/vecmat/vecmat.h,v
27348 Working file: vecmat/vecmat.h
27349 head: 1.1
27350 description: Header file for vector/matrix library
27351 ----------------------------
27352 revision 1.1
27353 date: 1995/04/17 16:18:05;  author: allender;  state: Exp;
27354 Initial revision
27355 ----------------------------
27356 revision 1.37
27357 date: 1995/02/22 13:23:22;  author: john;  state: Exp;
27358 Added the vms_vector_array structure, to access a vms_vector
27359 with an array.
27360 ----------------------------
27361 revision 1.36
27362 date: 1995/02/22 12:34:33;  author: john;  state: Exp;
27363 Took out anonymous unions.
27364 ----------------------------
27365 revision 1.35
27366 date: 1994/12/13 14:44:20;  author: matt;  state: Exp;
27367 Added vm_vector_2_matrix_norm()
27368 ----------------------------
27369 revision 1.34
27370 date: 1994/09/11 19:22:55;  author: matt;  state: Exp;
27371 Added vm_vec_normalized_dir_quick()
27372 ----------------------------
27373 revision 1.33
27374 date: 1994/08/04 19:45:38;  author: matt;  state: Exp;
27375 Added option to make a bunch of functions (add, sub, dotprod) inline
27376 ----------------------------
27377 revision 1.32
27378 date: 1994/07/19 18:52:36;  author: matt;  state: Exp;
27379 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
27380 ----------------------------
27381 revision 1.31
27382 date: 1994/06/16 18:24:30;  author: matt;  state: Exp;
27383 Added vm_vec_mag_quick()
27384 ----------------------------
27385 revision 1.30
27386 date: 1994/06/10 23:19:00;  author: matt;  state: Exp;
27387 New register usage for vm_vec_ang_2_matrix()
27388 ----------------------------
27389 revision 1.29
27390 date: 1994/06/01 17:32:06;  author: matt;  state: Exp;
27391 Fixed modify list for vm_vec_normalized_dir()
27392 ----------------------------
27393 revision 1.28
27394 date: 1994/05/19 12:07:20;  author: matt;  state: Exp;
27395 Fixed globals and macros and added a constant
27396 ----------------------------
27397 revision 1.27
27398 date: 1994/05/19 09:19:15;  author: matt;  state: Exp;
27399 Made vm_vec_normalized_dir() return mag of vector
27400 ----------------------------
27401 revision 1.26
27402 date: 1994/05/18 22:28:57;  author: matt;  state: Exp;
27403 Added function vm_vec_normalized_dir()
27404 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
27405 Added C global static vars vmd_zero_vector & vmd_identity_matrix
27406 ----------------------------
27407 revision 1.25
27408 date: 1994/05/18 21:45:06;  author: matt;  state: Exp;
27409 Added functions:
27410   vm_extract_angles_vector()
27411   vm_extract_angles_vector_normalized()
27412   vm_vec_copy_normalize()
27413 ----------------------------
27414 revision 1.24
27415 date: 1994/05/13 12:42:16;  author: matt;  state: Exp;
27416 Added new function, vm_vec_dist_quick(), which does an approximation.
27417 ----------------------------
27418 revision 1.23
27419 date: 1994/03/30 13:37:34;  author: matt;  state: Exp;
27420 Added prototype for vm_vec_scale_add(), and fixed typos
27421 ----------------------------
27422 revision 1.22
27423 date: 1994/03/30 13:29:42;  author: matt;  state: Exp;
27424 Header for vm_vec_scale_add2()
27425 ----------------------------
27426 revision 1.21
27427 date: 1994/01/31 19:45:13;  author: matt;  state: Exp;
27428 Added function vm_extract_angles_matrix()
27429 ----------------------------
27430 revision 1.20
27431 date: 1993/12/21 19:46:14;  author: matt;  state: Exp;
27432 Added function vm_dist_to_plane()
27433 ----------------------------
27434 revision 1.19
27435 date: 1993/12/13 17:26:41;  author: matt;  state: Exp;
27436 Added vm_vec_dist()
27437 ----------------------------
27438 revision 1.18
27439 date: 1993/12/02 12:45:11;  author: matt;  state: Exp;
27440 New functions: vm_vec_copy_scale(), vm_vec_scale2()
27441 Aliases: vm_transpose(), vm_vec_dot(), vm_vec_cross(), vm_copy_transpose()
27442 ----------------------------
27443 revision 1.17
27444 date: 1993/10/29 22:38:36;  author: matt;  state: Exp;
27445 Changed matrix order, making direction vectors the rows
27446 ----------------------------
27447 revision 1.16
27448 date: 1993/10/25 11:49:57;  author: matt;  state: Exp;
27449 Made vm_vec_delta_ang() take optional forward vector to return signed delta
27450 ----------------------------
27451 revision 1.15
27452 date: 1993/10/20 01:10:05;  author: matt;  state: Exp;
27453 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
27454 ----------------------------
27455 revision 1.14
27456 date: 1993/10/17 17:02:52;  author: matt;  state: Exp;
27457 vm_vector_2_matrix() now takes optional right vector
27458 ----------------------------
27459 revision 1.13
27460 date: 1993/10/12 19:31:39;  author: matt;  state: Exp;
27461 Added IDENTITY_MATRIX constant
27462 ----------------------------
27463 revision 1.12
27464 date: 1993/10/08 18:10:16;  author: matt;  state: Exp;
27465 Changed vm_vec_make() and vm_angvec_make() to be inline assembly 
27466 functions, to get rid of compiler warnings.  Did not change vm_mat_make(),
27467 which could still get warnings if the return value is unused.
27468 ----------------------------
27469 revision 1.11
27470 date: 1993/09/29 12:10:07;  author: matt;  state: Exp;
27471 Changed modified regs in pragmas to include return register
27472 ----------------------------
27473 revision 1.10
27474 date: 1993/09/28 12:15:41;  author: matt;  state: Exp;
27475 Added func vm_vector_2_matrix()
27476 ----------------------------
27477 revision 1.9
27478 date: 1993/09/24 21:18:38;  author: matt;  state: Exp;
27479 Added vm_vec_avg(), vm_vec_avg4(), and vm_angvec_make().
27480 Documented which functions could have dest==source
27481 ----------------------------
27482 revision 1.8
27483 date: 1993/09/20 14:56:11;  author: matt;  state: Exp;
27484 Added new function, vm_vec_perp()
27485 ----------------------------
27486 revision 1.7
27487 date: 1993/09/20 14:27:42;  author: mike;  state: Exp;
27488 unfix last fix which introduced a bug
27489 ----------------------------
27490 revision 1.6
27491 date: 1993/09/20 10:11:53;  author: mike;  state: Exp;
27492 no changes
27493 ----------------------------
27494 revision 1.5
27495 date: 1993/09/20 09:58:58;  author: mike;  state: Exp;
27496 Re-fix vm_vec_make
27497 ----------------------------
27498 revision 1.4
27499 date: 1993/09/20 09:41:21;  author: mike;  state: Exp;
27500 Correct vm_vec_make and vm_mat_make macros to return the destination
27501 as the value of the macro.
27502 ----------------------------
27503 revision 1.3
27504 date: 1993/09/17 11:23:47;  author: matt;  state: Exp;
27505 Added row access (via xrow,yrow,zrow) to vms_matrix
27506 Added macro vm_mat_make(), like vm_vec_make()
27507 ----------------------------
27508 revision 1.2
27509 date: 1993/09/17 11:10:32;  author: matt;  state: Exp;
27510 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
27511 ----------------------------
27512 revision 1.1
27513 date: 1993/09/16 20:10:01;  author: matt;  state: Exp;
27514 Initial revision
27515 =============================================================================
27516 RCS file: f:/miner/source/vecmat/vecmat.inc,v
27517 Working file: vecmat/vecmat.inc
27518 head: 1.21
27519 description: Header file for vector/matrix library
27520 ----------------------------
27521 revision 1.21
27522 date: 1994/12/13 14:44:21;  author: matt;  state: Exp;
27523 Added vm_vector_2_matrix_norm()
27524 ----------------------------
27525 revision 1.20
27526 date: 1994/09/11 19:23:04;  author: matt;  state: Exp;
27527 Added vm_vec_normalized_dir_quick()
27528 ----------------------------
27529 revision 1.19
27530 date: 1994/07/19 18:52:55;  author: matt;  state: Exp;
27531 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
27532 ----------------------------
27533 revision 1.18
27534 date: 1994/06/16 18:24:31;  author: matt;  state: Exp;
27535 Added vm_vec_mag_quick()
27536 ----------------------------
27537 revision 1.17
27538 date: 1994/05/19 12:07:20;  author: matt;  state: Exp;
27539 Fixed globals and macros and added a constant
27540 ----------------------------
27541 revision 1.16
27542 date: 1994/05/18 22:28:55;  author: matt;  state: Exp;
27543 Added function vm_vec_normalized_dir()
27544 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
27545 Added C global static vars vmd_zero_vector & vmd_identity_matrix
27546 ----------------------------
27547 revision 1.15
27548 date: 1994/05/18 21:45:05;  author: matt;  state: Exp;
27549 Added functions:
27550   vm_extract_angles_vector()
27551   vm_extract_angles_vector_normalized()
27552   vm_vec_copy_normalize()
27553 ----------------------------
27554 revision 1.14
27555 date: 1994/05/13 12:42:09;  author: matt;  state: Exp;
27556 Added new function, vm_vec_dist_quick(), which does an approximation.
27557 ----------------------------
27558 revision 1.13
27559 date: 1994/03/30 15:43:54;  author: matt;  state: Exp;
27560 Added two functions, vm_vec_scale_add() & vm_vec_scale_add2()
27561 ----------------------------
27562 revision 1.12
27563 date: 1994/01/31 19:45:24;  author: matt;  state: Exp;
27564 Added function vm_extract_angles_matrix()
27565 ----------------------------
27566 revision 1.11
27567 date: 1993/12/21 19:46:29;  author: matt;  state: Exp;
27568 Added function vm_dist_to_plane()
27569 ----------------------------
27570 revision 1.10
27571 date: 1993/12/13 17:26:40;  author: matt;  state: Exp;
27572 Added vm_vec_dist()
27573 ----------------------------
27574 revision 1.9
27575 date: 1993/12/02 12:44:04;  author: matt;  state: Exp;
27576 New functions: vm_vec_copy_scale(), vm_vec_scale2()
27577 ----------------------------
27578 revision 1.8
27579 date: 1993/10/29 22:39:08;  author: matt;  state: Exp;
27580 Changed matrix order, making direction vectors the rows
27581 ----------------------------
27582 revision 1.7
27583 date: 1993/10/25 11:49:58;  author: matt;  state: Exp;
27584 Made vm_vec_delta_ang() take optional forward vector to return signed delta
27585 ----------------------------
27586 revision 1.6
27587 date: 1993/10/20 01:10:04;  author: matt;  state: Exp;
27588 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
27589 ----------------------------
27590 revision 1.5
27591 date: 1993/09/28 12:16:04;  author: matt;  state: Exp;
27592 Added func vm_vector_2_matrix()
27593 ----------------------------
27594 revision 1.4
27595 date: 1993/09/24 21:19:14;  author: matt;  state: Exp;
27596 Added vm_vec_avg() and vm_vec_avg4()
27597 ----------------------------
27598 revision 1.3
27599 date: 1993/09/20 14:56:35;  author: matt;  state: Exp;
27600 Added new function, vm_vec_perp()
27601 ----------------------------
27602 revision 1.2
27603 date: 1993/09/17 11:09:57;  author: matt;  state: Exp;
27604 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
27605 ----------------------------
27606 revision 1.1
27607 date: 1993/09/16 20:19:29;  author: matt;  state: Exp;
27608 Initial revision
27609 =============================================================================
27610 RCS file: f:/miner/source/fix/fix.inc,v
27611 Working file: fix/fix.inc
27612 head: 1.7
27613 description: Header for fixed-point library
27614 ----------------------------
27615 revision 1.7
27616 date: 1994/01/19 23:12:00;  author: matt;  state: Exp;
27617 Made fix_atan2() left-handed, like our coordinate system
27618 ----------------------------
27619 revision 1.6
27620 date: 1993/10/20 01:08:49;  author: matt;  state: Exp;
27621 Add fix_asin(), improved fix_atan2()
27622 ----------------------------
27623 revision 1.5
27624 date: 1993/10/19 23:53:36;  author: matt;  state: Exp;
27625 Added fix_atan2()
27626 ----------------------------
27627 revision 1.4
27628 date: 1993/10/19 22:32:12;  author: matt;  state: Exp;
27629 Added fix_acos()
27630 ----------------------------
27631 revision 1.3
27632 date: 1993/09/13 12:09:42;  author: matt;  state: Exp;
27633 Added extf,extfa macros to generate externdef's of fixed-point types
27634 ----------------------------
27635 revision 1.2
27636 date: 1993/09/10 11:54:12;  author: matt;  state: Exp;
27637 Added missing 'endif' at end of file
27638 ----------------------------
27639 revision 1.1
27640 date: 1993/08/24 12:59:36;  author: matt;  state: Exp;
27641 Initial revision
27642 =============================================================================
27643 RCS file: f:/miner/source/3d/3d.h,v
27644 Working file: 3d/3d.h
27645 head: 1.34
27646 branch:
27647 description: Header file for 3d library
27648 ----------------------------
27649 revision 1.34
27650 date: 1994/11/11 19:22:14;  author: matt;  state: Exp;
27651 Added new function, g3_calc_point_depth()
27652 ----------------------------
27653 revision 1.33
27654 date: 1994/09/09 14:23:58;  author: matt;  state: Exp;
27655 Added support for glowing textures, to add engine glow to Descent.
27656 ----------------------------
27657 revision 1.32
27658 date: 1994/09/01 10:42:27;  author: matt;  state: Exp;
27659 Blob routine, renamed g3_draw_bitmap(), now takes seperate 3d width & height.
27660 ----------------------------
27661 revision 1.31
27662 date: 1994/07/29 18:16:14;  author: matt;  state: Exp;
27663 Added instance by angles, and corrected parms for g3_init()
27664 ----------------------------
27665 revision 1.30
27666 date: 1994/07/25 00:00:00;  author: matt;  state: Exp;
27667 Made 3d no longer deal with point numbers, but only with pointers.
27668 ----------------------------
27669 revision 1.29
27670 date: 1994/07/22 17:57:27;  author: matt;  state: Exp;
27671 Changed the name of the rod functions, and took out some debugging code
27672 ----------------------------
27673 revision 1.28
27674 date: 1994/06/07 16:49:12;  author: matt;  state: Exp;
27675 Made interpreter take lighting value as parm, rather than in global var
27676 ----------------------------
27677 revision 1.27
27678 date: 1994/05/31 18:35:28;  author: matt;  state: Exp;
27679 Added light value to g3_draw_facing_bitmap()
27680 ----------------------------
27681 revision 1.26
27682 date: 1994/05/30 22:48:04;  author: matt;  state: Exp;
27683 Added support for morph effect
27684 ----------------------------
27685 revision 1.25
27686 date: 1994/05/30 11:34:57;  author: matt;  state: Exp;
27687 Added g3_set_special_render() to allow a user to specify functions to
27688 call for 2d draws.
27689 ----------------------------
27690 revision 1.24
27691 date: 1994/05/19 21:46:31;  author: matt;  state: Exp;
27692 Moved texture lighting out of 3d and into the game
27693 ----------------------------
27694 revision 1.23
27695 date: 1994/05/14 15:26:48;  author: matt;  state: Exp;
27696 Added extern for polyobj outline flag
27697 ----------------------------
27698 revision 1.22
27699 date: 1994/04/19 18:26:33;  author: matt;  state: Exp;
27700 Added g3_draw_sphere() function.
27701 ----------------------------
27702 revision 1.21
27703 date: 1994/03/25 18:22:28;  author: matt;  state: Exp;
27704 g3_draw_polygon_model() now takes ptr to list of angles
27705 ----------------------------
27706 revision 1.20
27707 date: 1994/03/15 21:23:23;  author: matt;  state: Exp;
27708 Added interpreter functions
27709 ----------------------------
27710 revision 1.19
27711 date: 1994/02/15 17:37:34;  author: matt;  state: Exp;
27712 New function, g3_draw_blob()
27713 ----------------------------
27714 revision 1.18
27715 date: 1994/02/09 11:47:47;  author: matt;  state: Exp;
27716 Added rod & delta point functions
27717 ----------------------------
27718 revision 1.17
27719 date: 1994/01/26 12:38:11;  author: matt;  state: Exp;
27720 Added function g3_compute_lighting_value()
27721 ----------------------------
27722 revision 1.16
27723 date: 1994/01/25 18:00:02;  author: yuan;  state: Exp;
27724 Fixed variable beam_brightness...
27725 ----------------------------
27726 revision 1.15
27727 date: 1994/01/24 14:08:34;  author: matt;  state: Exp;
27728 Added instancing functions
27729 ----------------------------
27730 revision 1.14
27731 date: 1994/01/22 18:21:48;  author: matt;  state: Exp;
27732 New lighting stuff now done in 3d; g3_draw_tmap() takes lighting parm
27733 ----------------------------
27734 revision 1.13
27735 date: 1994/01/20 17:21:24;  author: matt;  state: Exp;
27736 New function g3_compute_sky_polygon()
27737 ----------------------------
27738 revision 1.12
27739 date: 1994/01/14 17:20:25;  author: matt;  state: Exp;
27740 Added prototype for new function g3_draw_horizon()
27741 ----------------------------
27742 revision 1.10
27743 date: 1993/12/20 20:21:52;  author: matt;  state: Exp;
27744 Added g3_point_2_vec()
27745 ----------------------------
27746 revision 1.9
27747 date: 1993/12/07 23:05:47;  author: matt;  state: Exp;
27748 Fixed mistyped function name.
27749 ----------------------------
27750 revision 1.8
27751 date: 1993/12/05 23:47:03;  author: matt;  state: Exp;
27752 Added function g3_draw_line_ptrs()
27753 ----------------------------
27754 revision 1.7
27755 date: 1993/12/05 23:13:22;  author: matt;  state: Exp;
27756 Added prototypes for g3_rotate_point() and g3_project_point()
27757 ----------------------------
27758 revision 1.6
27759 date: 1993/12/05 23:03:28;  author: matt;  state: Exp;
27760 Changed uvl structs to g3s_uvl
27761 ----------------------------
27762 revision 1.5
27763 date: 1993/11/22 10:51:09;  author: matt;  state: Exp;
27764 Moved uvl structure here from segment.h, made texture map functions use it
27765 ----------------------------
27766 revision 1.4
27767 date: 1993/11/21 20:08:31;  author: matt;  state: Exp;
27768 Added function g3_draw_object()
27769 ----------------------------
27770 revision 1.3
27771 date: 1993/11/04 18:49:19;  author: matt;  state: Exp;
27772 Added system to only rotate points once per frame
27773 ----------------------------
27774 revision 1.2
27775 date: 1993/11/04 08:16:06;  author: mike;  state: Exp;
27776 Add light field (p3_l) to g3s_point.
27777 ----------------------------
27778 revision 1.1
27779 date: 1993/10/29 22:20:56;  author: matt;  state: Exp;
27780 Initial revision
27781 =============================================================================
27782 RCS file: f:/miner/source/bios/dpmi.c,v
27783 Working file: bios/dpmi.c
27784 head: 1.19
27785 branch:
27786 description: Routines that access DPMI services...
27787 ----------------------------
27788 revision 1.19
27789 date: 1995/02/23 09:02:57;  author: john;  state: Exp;
27790 Fixed bug with dos_selector.
27791 ----------------------------
27792 revision 1.18
27793 date: 1995/02/02 11:10:22;  author: john;  state: Exp;
27794 Made real mode calls have a 2K stack.
27795 ----------------------------
27796 revision 1.17
27797 date: 1995/01/14 19:20:28;  author: john;  state: Exp;
27798 Added function to set a selector's base address.
27799 ----------------------------
27800 revision 1.16
27801 date: 1994/12/14 16:11:40;  author: john;  state: Exp;
27802 Locked down the memory referenced by GETDS.
27803 ----------------------------
27804 revision 1.15
27805 date: 1994/12/06 16:08:06;  author: john;  state: Exp;
27806 MAde memory checking return better results.
27807 ----------------------------
27808 revision 1.14
27809 date: 1994/12/05 23:34:54;  author: john;  state: Exp;
27810 Made dpmi_init lock down GETDS and chain_intr.
27811 ----------------------------
27812 revision 1.13
27813 date: 1994/11/28 21:19:02;  author: john;  state: Exp;
27814 Made memory checking a bit better.
27815 ----------------------------
27816 revision 1.12
27817 date: 1994/11/28 20:22:18;  author: john;  state: Exp;
27818 Added some variables that return the amount of available 
27819 memory.
27820 ----------------------------
27821 revision 1.11
27822 date: 1994/11/15 18:27:21;  author: john;  state: Exp;
27823 *** empty log message ***
27824 ----------------------------
27825 revision 1.10
27826 date: 1994/11/15 18:26:45;  author: john;  state: Exp;
27827 Added verbose flag.
27828 ----------------------------
27829 revision 1.9
27830 date: 1994/10/27 19:54:37;  author: john;  state: Exp;
27831 Added unlock region function,.
27832 ----------------------------
27833 revision 1.8
27834 date: 1994/10/05 16:17:31;  author: john;  state: Exp;
27835 Took out locked down message.
27836 ----------------------------
27837 revision 1.7
27838 date: 1994/10/03 17:21:20;  author: john;  state: Exp;
27839 Added the code that allocates a 1K DOS buffer.
27840 ----------------------------
27841 revision 1.6
27842 date: 1994/09/29 18:29:40;  author: john;  state: Exp;
27843 Shorted mem info printout
27844 ----------------------------
27845 revision 1.5
27846 date: 1994/09/27 11:54:35;  author: john;  state: Exp;
27847 Added DPMI init function.
27848 ----------------------------
27849 revision 1.4
27850 date: 1994/09/19 14:50:43;  author: john;  state: Exp;
27851 Took out mono debug.
27852 ----------------------------
27853 revision 1.3
27854 date: 1994/09/19 14:41:23;  author: john;  state: Exp;
27855 Fixed some bugs with allocating selectors.
27856 ----------------------------
27857 revision 1.2
27858 date: 1994/08/24 18:53:51;  author: john;  state: Exp;
27859 Made Cyberman read like normal mouse; added dpmi module; moved
27860 mouse from assembly to c. Made mouse buttons return time_down.
27861 ----------------------------
27862 revision 1.1
27863 date: 1994/08/24 10:22:34;  author: john;  state: Exp;
27864 Initial revision
27865 =============================================================================
27866 RCS file: f:/miner/source/bios/dpmi.h,v
27867 Working file: bios/dpmi.h
27868 head: 1.9
27869 branch:
27870 description: Prototypes for DPMI services.
27871 ----------------------------
27872 revision 1.9
27873 date: 1995/01/14 19:20:14;  author: john;  state: Exp;
27874 Added function to set a selector's base address.
27875 ----------------------------
27876 revision 1.8
27877 date: 1994/11/28 20:22:03;  author: john;  state: Exp;
27878 Added some variables that return the amount of available 
27879 memory.
27880 ----------------------------
27881 revision 1.7
27882 date: 1994/11/15 18:26:38;  author: john;  state: Exp;
27883 Added verbose flag.
27884 ----------------------------
27885 revision 1.6
27886 date: 1994/11/07 11:35:05;  author: john;  state: Exp;
27887 Added prototype for real_free
27888 ----------------------------
27889 revision 1.5
27890 date: 1994/10/27 19:54:48;  author: john;  state: Exp;
27891 Added unlock region function,.
27892 ----------------------------
27893 revision 1.4
27894 date: 1994/09/27 18:27:56;  author: john;  state: Exp;
27895 Added pragma to make inp,outp,enable,disable intrinsic
27896 ----------------------------
27897 revision 1.3
27898 date: 1994/09/27 11:54:45;  author: john;  state: Exp;
27899 Added DPMI init function.
27900 ----------------------------
27901 revision 1.2
27902 date: 1994/08/24 18:53:51;  author: john;  state: Exp;
27903 Made Cyberman read like normal mouse; added dpmi module; moved
27904 mouse from assembly to c. Made mouse buttons return time_down.
27905 ----------------------------
27906 revision 1.1
27907 date: 1994/08/24 10:22:48;  author: john;  state: Exp;
27908 Initial revision
27909 =============================================================================
27910 RCS file: f:/miner/source/bios/ipx.c,v
27911 Working file: bios/ipx.c
27912 head: 2.10
27913 branch:
27914 description: Routines for IPX communications.
27915 ----------------------------
27916 revision 2.10
27917 date: 1995/03/29 17:27:55;  author: john;  state: Exp;
27918 Added code to not duplicate broadcasts.
27919 ----------------------------
27920 revision 2.9
27921 date: 1995/03/29 15:32:07;  author: john;  state: Exp;
27922 NEatened.
27923 ----------------------------
27924 revision 2.8
27925 date: 1995/03/29 15:07:31;  author: john;  state: Exp;
27926 Added network support.
27927 ----------------------------
27928 revision 2.7
27929 date: 1995/03/29 11:22:27;  author: john;  state: Exp;
27930 Added broadcasting over a net.
27931 ----------------------------
27932 revision 2.6
27933 date: 1995/03/28 20:05:03;  author: john;  state: Exp;
27934 Took away alternate server stuff.
27935 ----------------------------
27936 revision 2.5
27937 date: 1995/03/23 19:14:29;  author: john;  state: Exp;
27938 Added better MAX_USERS message.
27939 ----------------------------
27940 revision 2.4
27941 date: 1995/03/23 19:00:02;  author: john;  state: Exp;
27942 Added user list capabitly.
27943 ----------------------------
27944 revision 2.3
27945 date: 1995/03/23 12:27:05;  author: john;  state: Exp;
27946 Move IPX into bios lib.
27947 ----------------------------
27948 revision 2.2
27949 date: 1995/03/22 19:08:15;  author: john;  state: Exp;
27950 Added code to fix sending packets over router... now
27951 we just need to make broadcasts go over router!!
27952 ----------------------------
27953 revision 2.1
27954 date: 1995/03/21 08:40:16;  author: john;  state: Exp;
27955 Ifdef'd out the NETWORK code.
27956 ----------------------------
27957 revision 2.0
27958 date: 1995/02/27 11:30:45;  author: john;  state: Exp;
27959 New version 2.0, which has no anonymous unions, builds with
27960 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
27961 ----------------------------
27962 revision 1.31
27963 date: 1995/02/16 17:35:03;  author: john;  state: Exp;
27964 Added code to allow dynamic socket changing.
27965 ----------------------------
27966 revision 1.30
27967 date: 1995/02/01 21:03:45;  author: john;  state: Exp;
27968 Lintified.
27969 ----------------------------
27970 revision 1.29
27971 date: 1995/01/22 14:31:05;  author: john;  state: Exp;
27972 Added key.h
27973 ----------------------------
27974 revision 1.28
27975 date: 1995/01/22 14:29:26;  author: john;  state: Exp;
27976 Added code to bypass broadcast messages.
27977 ----------------------------
27978 revision 1.27
27979 date: 1995/01/03 13:46:16;  author: john;  state: Exp;
27980 Added code that should make ipx work over different servers,
27981 but ifdef'd it out with SHAREWARE in ipx.c.  I haven't tested
27982 this, and I hope it doesn't introduce net bugs.
27983 ----------------------------
27984 revision 1.26
27985 date: 1994/12/14 11:54:37;  author: rob;  state: Exp;
27986 Reduce # of ipx packets.
27987 ----------------------------
27988 revision 1.25
27989 date: 1994/12/11 00:43:28;  author: john;  state: Exp;
27990 Locked down DOS ipx buffers... probably not necessary, tho.
27991 ----------------------------
27992 revision 1.24
27993 date: 1994/12/08 15:49:58;  author: rob;  state: Exp;
27994 Bumped up the # of ipx packets.
27995 ----------------------------
27996 revision 1.23
27997 date: 1994/12/04 15:23:54;  author: rob;  state: Exp;
27998 Reduced packet # constants.
27999 ----------------------------
28000 revision 1.22
28001 date: 1994/11/27 23:12:39;  author: matt;  state: Exp;
28002 Made changes for new mprintf calling convention
28003 ----------------------------
28004 revision 1.21
28005 date: 1994/11/19 15:15:19;  author: mike;  state: Exp;
28006 remove unused code and data
28007 ----------------------------
28008 revision 1.20
28009 date: 1994/11/10 11:06:07;  author: rob;  state: Exp;
28010 Raised number of ipx packets to 64 and buffers to 128 (for 8-way games)
28011 Removed (commented out) all the spx support stuff.
28012 ----------------------------
28013 revision 1.19
28014 date: 1994/11/07 17:50:12;  author: rob;  state: Exp;
28015 Bumped up max_packets and ipx_num_packets to double their previous
28016 values.
28017 ----------------------------
28018 revision 1.18
28019 date: 1994/11/07 15:39:01;  author: rob;  state: Exp;
28020 Removed temporary hacked ipx_send_object function.
28021 Replaced with a more general thing.
28022 ----------------------------
28023 revision 1.17
28024 date: 1994/11/05 16:08:40;  author: rob;  state: Exp;
28025 Made a change necessary for object syncing on rejoin.
28026 ----------------------------
28027 revision 1.16
28028 date: 1994/11/01 15:57:12;  author: rob;  state: Exp;
28029 Added support for SPX sockets for critical messages.
28030 ----------------------------
28031 revision 1.15
28032 date: 1994/10/31 19:21:01;  author: rob;  state: Exp;
28033 Added a routine for sending objects via ipx.  Its a hack and shoukld
28034 be replaced by something more general time permitting.
28035 ----------------------------
28036 revision 1.14
28037 date: 1994/10/20 14:57:42;  author: john;  state: Exp;
28038 Some test stuff.
28039 ----------------------------
28040 revision 1.13
28041 date: 1994/10/20 11:22:45;  author: john;  state: Exp;
28042 Tweaked the number of waiting packets. Added code to print 
28043 total packets missed, and to limit the packet send rate to
28044 10 packets per second unless firing.
28045 ----------------------------
28046 revision 1.12
28047 date: 1994/10/03 20:50:11;  author: john;  state: Exp;
28048 Started adding sound pause functions.
28049 ----------------------------
28050 revision 1.11
28051 date: 1994/09/15 08:54:24;  author: mike;  state: Exp;
28052 comment out a mprintf.
28053 ----------------------------
28054 revision 1.10
28055 date: 1994/09/12 19:38:20;  author: john;  state: Exp;
28056 Made some stuff that prints to the DOS screen go to the
28057 mono instead, since it really is debugging info.
28058 ----------------------------
28059 revision 1.9
28060 date: 1994/09/07 13:32:03;  author: john;  state: Exp;
28061 Made ipx_close explicitly close the socket we were using,
28062 because it seems that VLM's don't automatically close them
28063 like the older NETX stuff did (Going from Novell 3.11 driver
28064 to 3.12 anyway).
28065 ----------------------------
28066 revision 1.8
28067 date: 1994/09/06 19:29:20;  author: john;  state: Exp;
28068 Added trial version of rejoin function.
28069 ----------------------------
28070 revision 1.7
28071 date: 1994/08/09 19:31:50;  author: john;  state: Exp;
28072 Networking changes.
28073 ----------------------------
28074 revision 1.6
28075 date: 1994/08/05 16:11:41;  author: john;  state: Exp;
28076 Psuedo working version of networking.
28077 ----------------------------
28078 revision 1.5
28079 date: 1994/08/04 19:17:21;  author: john;  state: Exp;
28080 Inbetween version of network stuff.
28081 ----------------------------
28082 revision 1.4
28083 date: 1994/07/29 16:08:57;  author: john;  state: Exp;
28084 *** empty log message ***
28085 ----------------------------
28086 revision 1.3
28087 date: 1994/07/25 12:33:31;  author: john;  state: Exp;
28088 Network "pinging" in.
28089 ----------------------------
28090 revision 1.2
28091 date: 1994/07/20 15:58:28;  author: john;  state: Exp;
28092 First installment of ipx stuff.
28093 ----------------------------
28094 revision 1.1
28095 date: 1994/07/19 15:42:00;  author: john;  state: Exp;
28096 Initial revision
28097 =============================================================================
28098 RCS file: f:/miner/source/bios/ipx.h,v
28099 Working file: bios/ipx.h
28100 head: 2.6
28101 branch:
28102 description: Prototype for IPX communications.
28103 ----------------------------
28104 revision 2.6
28105 date: 1995/03/29 11:19:32;  author: john;  state: Exp;
28106 Added broadcasting over a net.
28107 ----------------------------
28108 revision 2.5
28109 date: 1995/03/28 20:04:43;  author: john;  state: Exp;
28110 Took away alternate server stuff.
28111 ----------------------------
28112 revision 2.4
28113 date: 1995/03/23 19:00:10;  author: john;  state: Exp;
28114 Added user list capabitly.
28115 ----------------------------
28116 revision 2.3
28117 date: 1995/03/23 12:26:57;  author: john;  state: Exp;
28118 Move IPX into bios lib.
28119 ----------------------------
28120 revision 2.2
28121 date: 1995/03/22 19:08:14;  author: john;  state: Exp;
28122 Added code to fix sending packets over router... now
28123 we just need to make broadcasts go over router!!
28124 ----------------------------
28125 revision 2.1
28126 date: 1995/03/21 08:39:56;  author: john;  state: Exp;
28127 Ifdef'd out the NETWORK code.
28128 ----------------------------
28129 revision 2.0
28130 date: 1995/02/27 11:30:16;  author: john;  state: Exp;
28131 New version 2.0, which has no anonymous unions, builds with
28132 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
28133 ----------------------------
28134 revision 1.16
28135 date: 1995/02/16 17:34:52;  author: john;  state: Exp;
28136 Added code to allow dynamic socket changing.
28137 ----------------------------
28138 revision 1.15
28139 date: 1995/01/04 21:43:27;  author: rob;  state: Exp;
28140 Remove SPX size definition.
28141 ----------------------------
28142 revision 1.14
28143 date: 1995/01/03 13:46:18;  author: john;  state: Exp;
28144 Added code that should make ipx work over different servers,
28145 but ifdef'd it out with SHAREWARE in ipx.c.  I haven't tested
28146 this, and I hope it doesn't introduce net bugs.
28147 ----------------------------
28148 revision 1.13
28149 date: 1994/11/02 11:37:16;  author: rob;  state: Exp;
28150 Changed default socket number to a higher regions.
28151 ----------------------------
28152 revision 1.12
28153 date: 1994/11/01 15:56:51;  author: rob;  state: Exp;
28154 Added defines for SPX socketsx.
28155 ----------------------------
28156 revision 1.11
28157 date: 1994/10/31 19:23:31;  author: rob;  state: Exp;
28158 Added a prototype for the new object send function.
28159 ----------------------------
28160 revision 1.10
28161 date: 1994/09/07 13:37:25;  author: john;  state: Exp;
28162 Changed default socket to 0x4000, because 
28163 the ipx/spx book says that we can only use
28164 sockets 0x4000 - 0x7fff.
28165 ----------------------------
28166 revision 1.9
28167 date: 1994/08/25 18:14:45;  author: matt;  state: Exp;
28168 Changed socket because of packet change
28169 ----------------------------
28170 revision 1.8
28171 date: 1994/08/12 22:42:24;  author: john;  state: Exp;
28172 Took away Player_stats; added Players array.
28173 ----------------------------
28174 revision 1.7
28175 date: 1994/08/09 19:31:47;  author: john;  state: Exp;
28176 Networking changes.
28177 ----------------------------
28178 revision 1.6
28179 date: 1994/08/05 16:11:46;  author: john;  state: Exp;
28180 Psuedo working version of networking.
28181 ----------------------------
28182 revision 1.5
28183 date: 1994/08/04 19:17:20;  author: john;  state: Exp;
28184 Inbetween version of network stuff.
28185 ----------------------------
28186 revision 1.4
28187 date: 1994/07/29 16:08:59;  author: john;  state: Exp;
28188 *** empty log message ***
28189 ----------------------------
28190 revision 1.3
28191 date: 1994/07/25 12:33:22;  author: john;  state: Exp;
28192 Network "pinging" in.
28193 ----------------------------
28194 revision 1.2
28195 date: 1994/07/20 15:58:29;  author: john;  state: Exp;
28196 First installment of ipx stuff.
28197 ----------------------------
28198 revision 1.1
28199 date: 1994/07/19 15:43:05;  author: john;  state: Exp;
28200 Initial revision
28201 =============================================================================
28202 RCS file: f:/miner/source/bios/joy.h,v
28203 Working file: bios/joy.h
28204 head: 1.17
28205 branch:
28206 description: Headers for joystick functions
28207 ----------------------------
28208 revision 1.17
28209 date: 1995/10/07 13:22:30;  author: john;  state: Exp;
28210 Added new method of reading joystick that allows higher-priority
28211 interrupts to go off.
28212 ----------------------------
28213 revision 1.16
28214 date: 1995/02/14 11:17:13;  author: john;  state: Exp;
28215 Added BIOS readings for stick.
28216 ----------------------------
28217 revision 1.15
28218 date: 1995/02/14 10:09:58;  author: john;  state: Exp;
28219 Added OS2 switch.
28220 ----------------------------
28221 revision 1.14
28222 date: 1994/12/28 13:49:20;  author: john;  state: Exp;
28223 Added function to set joystick for slow reading
28224 ----------------------------
28225 revision 1.13
28226 date: 1994/10/13 11:36:06;  author: john;  state: Exp;
28227 Made joy_down_time be kept track of in fixed seconds,
28228 not ticks.
28229 ----------------------------
28230 revision 1.12
28231 date: 1994/10/12 17:03:16;  author: john;  state: Exp;
28232 Added prototype for joy_get_scaled_reading.
28233 ----------------------------
28234 revision 1.11
28235 date: 1994/10/12 16:57:55;  author: john;  state: Exp;
28236 Added function to set a joystick button's state.
28237 ----------------------------
28238 revision 1.10
28239 date: 1994/09/22 16:09:00;  author: john;  state: Exp;
28240 Fixed some virtual memory lockdown problems with timer and
28241 joystick.
28242 ----------------------------
28243 revision 1.9
28244 date: 1994/08/31 09:54:57;  author: john;  state: Exp;
28245 *** empty log message ***
28246 ----------------------------
28247 revision 1.8
28248 date: 1994/08/29 21:02:24;  author: john;  state: Exp;
28249 Added joy_set_cal_values...
28250 ----------------------------
28251 revision 1.7
28252 date: 1994/08/29 20:51:52;  author: john;  state: Exp;
28253 Added better cyberman support; also, joystick calibration
28254 value return funcctiionn,
28255 ----------------------------
28256 revision 1.6
28257 date: 1994/07/01 10:55:44;  author: john;  state: Exp;
28258 Fixed some bugs... added support for 4 axis.
28259 ----------------------------
28260 revision 1.5
28261 date: 1994/06/30 20:36:51;  author: john;  state: Exp;
28262 Revamped joystick code.
28263 ----------------------------
28264 revision 1.4
28265 date: 1994/04/22 12:52:10;  author: john;  state: Exp;
28266 *** empty log message ***
28267 ----------------------------
28268 revision 1.3
28269 date: 1994/01/18 13:53:39;  author: john;  state: Exp;
28270 Made all joystick functions return int's instead of
28271 shorts.  Also made the stick reading be CPU speed
28272 independant by using the timer_get_Stamp_64 
28273 function.
28274 ----------------------------
28275 revision 1.2
28276 date: 1994/01/18 10:58:42;  author: john;  state: Exp;
28277 *** empty log message ***
28278 ----------------------------
28279 revision 1.1
28280 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
28281 Initial revision
28282 =============================================================================
28283 RCS file: f:/miner/source/bios/joyc.c,v
28284 Working file: bios/joyc.c
28285 head: 1.37
28286 branch:
28287 description: Routines for joystick reading.
28288 ----------------------------
28289 revision 1.37
28290 date: 1995/10/07 13:22:31;  author: john;  state: Exp;
28291 Added new method of reading joystick that allows higher-priority
28292 interrupts to go off.
28293 ----------------------------
28294 revision 1.36
28295 date: 1995/03/30 11:03:40;  author: john;  state: Exp;
28296 Made -JoyBios read buttons using BIOS.
28297 ----------------------------
28298 revision 1.35
28299 date: 1995/02/14 11:39:25;  author: john;  state: Exp;
28300 Added polled/bios joystick readers..
28301 ----------------------------
28302 revision 1.34
28303 date: 1995/02/10 17:06:12;  author: john;  state: Exp;
28304 Fixed bug with plugging in a joystick not getting detected.
28305 ----------------------------
28306 revision 1.33
28307 date: 1995/01/27 16:39:42;  author: john;  state: Exp;
28308 Made so that if no joystick detected, it wont't
28309 read buttons.
28310 ----------------------------
28311 revision 1.32
28312 date: 1995/01/12 13:16:40;  author: john;  state: Exp;
28313 Made it so that joystick can't lose an axis
28314 by 1 weird reading. Reading has to occurr during
28315 calibration for this to happen.
28316 ----------------------------
28317 revision 1.31
28318 date: 1994/12/28 15:56:03;  author: john;  state: Exp;
28319 Fixed bug that refused to read joysticks whose 
28320 min,cen,max were less than 100 apart.
28321 ----------------------------
28322 revision 1.30
28323 date: 1994/12/28 15:31:53;  author: john;  state: Exp;
28324 Added code to read joystick axis not all at one time.
28325 ----------------------------
28326 revision 1.29
28327 date: 1994/12/27 15:44:36;  author: john;  state: Exp;
28328 Made the joystick timeout be at 1/100th of a second, 
28329 regardless of CPU speed.
28330 ----------------------------
28331 revision 1.28
28332 date: 1994/12/04 11:54:54;  author: john;  state: Exp;
28333 Made stick read at whatever rate the clock is at, not
28334 at 18.2 times/second.
28335 ----------------------------
28336 revision 1.27
28337 date: 1994/11/29 02:25:40;  author: john;  state: Exp;
28338 Made it so that the scaled reading returns 0 
28339 if the calibration factors look funny..
28340 ----------------------------
28341 revision 1.26
28342 date: 1994/11/22 11:08:07;  author: john;  state: Exp;
28343 Commented out the ARCADE joystick.
28344 ----------------------------
28345 revision 1.25
28346 date: 1994/11/14 19:40:26;  author: john;  state: Exp;
28347 Fixed bug with no joystick being detected.
28348 ----------------------------
28349 revision 1.24
28350 date: 1994/11/14 19:36:40;  author: john;  state: Exp;
28351 Took out initial cheapy calibration.
28352 ----------------------------
28353 revision 1.23
28354 date: 1994/11/14 19:13:27;  author: john;  state: Exp;
28355 Took out the calibration in joy_init
28356 ----------------------------
28357 revision 1.22
28358 date: 1994/10/17 10:09:57;  author: john;  state: Exp;
28359 Made the state look at last_State, so that a joy_flush
28360 doesn't cause a new down state to be added next reading.
28361 ----------------------------
28362 revision 1.21
28363 date: 1994/10/13 11:36:23;  author: john;  state: Exp;
28364 Made joy_down_time be kept track of in fixed seconds,
28365 not ticks.
28366 ----------------------------
28367 revision 1.20
28368 date: 1994/10/12 16:58:50;  author: john;  state: Exp;
28369 Fixed bug w/ previous comment.
28370 ----------------------------
28371 revision 1.19
28372 date: 1994/10/12 16:57:44;  author: john;  state: Exp;
28373 Added function to set a joystick button's state.
28374 ----------------------------
28375 revision 1.18
28376 date: 1994/10/11 10:20:13;  author: john;  state: Exp;
28377 Fixed Flightstick Pro/
28378 ..
28379 ----------------------------
28380 revision 1.17
28381 date: 1994/09/29 18:29:20;  author: john;  state: Exp;
28382 *** empty log message ***
28383 ----------------------------
28384 revision 1.16
28385 date: 1994/09/27 19:17:23;  author: john;  state: Exp;
28386 Added code so that is joy_init is never called, joystick is not
28387 used at all.
28388 ----------------------------
28389 revision 1.15
28390 date: 1994/09/22 16:09:23;  author: john;  state: Exp;
28391 Fixed some virtual memory lockdown problems with timer and
28392 joystick.
28393 ----------------------------
28394 revision 1.14
28395 date: 1994/09/16 11:44:42;  author: john;  state: Exp;
28396 Fixed bug with slow joystick.
28397 ----------------------------
28398 revision 1.13
28399 date: 1994/09/16 11:36:15;  author: john;  state: Exp;
28400 Fixed bug with reading non-present channels.
28401 ----------------------------
28402 revision 1.12
28403 date: 1994/09/15 20:52:48;  author: john;  state: Exp;
28404 rme john
28405 Added support for the Arcade style joystick.
28406 ----------------------------
28407 revision 1.11
28408 date: 1994/09/13 20:04:49;  author: john;  state: Exp;
28409 Fixed bug with joystick button down_time.
28410 ----------------------------
28411 revision 1.10
28412 date: 1994/09/10 13:48:07;  author: john;  state: Exp;
28413 Made all 20 buttons read.
28414 ----------------------------
28415 revision 1.9
28416 date: 1994/08/31 09:55:02;  author: john;  state: Exp;
28417 *** empty log message ***
28418 ----------------------------
28419 revision 1.8
28420 date: 1994/08/29 21:02:14;  author: john;  state: Exp;
28421 Added joy_set_cal_values...
28422 ----------------------------
28423 revision 1.7
28424 date: 1994/08/29 20:52:17;  author: john;  state: Exp;
28425 Added better cyberman support; also, joystick calibration
28426 value return funcctiionn,
28427 ----------------------------
28428 revision 1.6
28429 date: 1994/08/24 18:53:12;  author: john;  state: Exp;
28430 Made Cyberman read like normal mouse; added dpmi module; moved
28431 mouse from assembly to c. Made mouse buttons return time_down.
28432 ----------------------------
28433 revision 1.5
28434 date: 1994/07/14 22:12:23;  author: john;  state: Exp;
28435 Used intrinsic forms of outp to fix vmm error.
28436 ----------------------------
28437 revision 1.4
28438 date: 1994/07/07 19:52:59;  author: matt;  state: Exp;
28439 Made joy_init() return success/fail flag
28440 Made joy_init() properly detect a stick if one is plugged in after joy_init()
28441 was called the first time.
28442 ----------------------------
28443 revision 1.3
28444 date: 1994/07/01 10:55:55;  author: john;  state: Exp;
28445 Fixed some bugs... added support for 4 axis.
28446 ----------------------------
28447 revision 1.2
28448 date: 1994/06/30 20:36:55;  author: john;  state: Exp;
28449 Revamped joystick code.
28450 ----------------------------
28451 revision 1.1
28452 date: 1994/06/30 15:42:15;  author: john;  state: Exp;
28453 Initial revision
28454 =============================================================================
28455 RCS file: f:/miner/source/bios/key.c,v
28456 Working file: bios/key.c
28457 head: 1.35
28458 branch:
28459 description: Functions for keyboard handler.
28460 ----------------------------
28461 revision 1.35
28462 date: 1995/01/25 20:13:30;  author: john;  state: Exp;
28463 Took out not passing keys to debugger if w10.
28464 ----------------------------
28465 revision 1.34
28466 date: 1995/01/14 19:19:31;  author: john;  state: Exp;
28467 Made so when you press Shift+Baskspace, it release keys autmatically.
28468 ----------------------------
28469 revision 1.33
28470 date: 1994/12/13 09:21:48;  author: john;  state: Exp;
28471 Took out keyd_editor_mode, and KEY_DEBUGGED stuff for NDEBUG versions.
28472 ----------------------------
28473 revision 1.32
28474 date: 1994/11/12 13:52:01;  author: john;  state: Exp;
28475 Fixed bug with code that cleared bios buffer.
28476 ----------------------------
28477 revision 1.31
28478 date: 1994/10/24 15:16:16;  author: john;  state: Exp;
28479 Added code to detect KEY_PAUSE.
28480 ----------------------------
28481 revision 1.30
28482 date: 1994/10/24 13:57:53;  author: john;  state: Exp;
28483 Hacked in support for pause key onto code 0x61.
28484 ----------------------------
28485 revision 1.29
28486 date: 1994/10/21 15:18:13;  author: john;  state: Exp;
28487 *** empty log message ***
28488 ----------------------------
28489 revision 1.28
28490 date: 1994/10/21 15:17:24;  author: john;  state: Exp;
28491 Made LSHIFT+BACKSPACE do what PrtScr used to.
28492 ----------------------------
28493 revision 1.27
28494 date: 1994/09/22 16:09:18;  author: john;  state: Exp;
28495 Fixed some virtual memory lockdown problems with timer and
28496 joystick.
28497 ----------------------------
28498 revision 1.26
28499 date: 1994/09/15 21:32:47;  author: john;  state: Exp;
28500 Added bounds checking for down_count scancode
28501 parameter.
28502 ----------------------------
28503 revision 1.25
28504 date: 1994/08/31 12:22:20;  author: john;  state: Exp;
28505 Added KEY_DEBUGGED
28506 ----------------------------
28507 revision 1.24
28508 date: 1994/08/24 18:53:48;  author: john;  state: Exp;
28509 Made Cyberman read like normal mouse; added dpmi module; moved
28510 mouse from assembly to c. Made mouse buttons return time_down.
28511 ----------------------------
28512 revision 1.23
28513 date: 1994/08/18 15:17:51;  author: john;  state: Exp;
28514 *** empty log message ***
28515 ----------------------------
28516 revision 1.22
28517 date: 1994/08/18 15:16:38;  author: john;  state: Exp;
28518 fixed some bugs with clear_key_times and then
28519 removed it because i fixed key_flush to do the
28520 same.
28521 ----------------------------
28522 revision 1.21
28523 date: 1994/08/17 19:01:25;  author: john;  state: Exp;
28524 Attempted to fix a bug with a key being held down
28525 key_flush called, then the key released having too 
28526 long of a time.
28527 ----------------------------
28528 revision 1.20
28529 date: 1994/08/08 10:43:48;  author: john;  state: Exp;
28530 Recorded when a key was pressed for key_inkey_time.
28531 ----------------------------
28532 revision 1.19
28533 date: 1994/06/22 15:00:03;  author: john;  state: Exp;
28534 Made keyboard close automatically on exit.
28535 ----------------------------
28536 revision 1.18
28537 date: 1994/06/21 09:16:29;  author: john;  state: Exp;
28538 *** empty log message ***
28539 ----------------------------
28540 revision 1.17
28541 date: 1994/06/21 09:08:23;  author: john;  state: Exp;
28542 *** empty log message ***
28543 ----------------------------
28544 revision 1.16
28545 date: 1994/06/21 09:05:01;  author: john;  state: Exp;
28546 *** empty log message ***
28547 ----------------------------
28548 revision 1.15
28549 date: 1994/06/21 09:04:24;  author: john;  state: Exp;
28550 Made PrtScreen do an int5
28551 ----------------------------
28552 revision 1.14
28553 date: 1994/06/17 17:17:06;  author: john;  state: Exp;
28554 Added keyd_time_last_key_was_pressed or something like that.
28555 ----------------------------
28556 revision 1.13
28557 date: 1994/05/14 13:55:16;  author: matt;  state: Exp;
28558 Added #define to control key passing to bios
28559 ----------------------------
28560 revision 1.12
28561 date: 1994/05/05 18:09:39;  author: john;  state: Exp;
28562 Took out BIOS to prevent stuck keys.
28563 ----------------------------
28564 revision 1.11
28565 date: 1994/05/03 17:39:12;  author: john;  state: Exp;
28566 *** empty log message ***
28567 ----------------------------
28568 revision 1.10
28569 date: 1994/04/29 12:14:20;  author: john;  state: Exp;
28570 Locked all memory used during interrupts so that program
28571 won't hang when using virtual memory.
28572 ----------------------------
28573 revision 1.9
28574 date: 1994/04/28 23:49:41;  author: john;  state: Exp;
28575 Made key_flush flush more keys and also did something else but i forget what.
28576 ----------------------------
28577 revision 1.8
28578 date: 1994/04/22 12:52:12;  author: john;  state: Exp;
28579 *** empty log message ***
28580 ----------------------------
28581 revision 1.7
28582 date: 1994/04/01 10:44:59;  author: mike;  state: Exp;
28583 Change key_getch() to call getch() if our interrupt hasn't been installed.
28584 ----------------------------
28585 revision 1.6
28586 date: 1994/03/09 10:45:48;  author: john;  state: Exp;
28587 Neatend code a bit.
28588 ----------------------------
28589 revision 1.5
28590 date: 1994/02/17 17:24:16;  author: john;  state: Exp;
28591 Neatened up a bit.
28592 ----------------------------
28593 revision 1.4
28594 date: 1994/02/17 16:30:29;  author: john;  state: Exp;
28595 Put in code to pass keys when in debugger.
28596 ----------------------------
28597 revision 1.3
28598 date: 1994/02/17 15:57:59;  author: john;  state: Exp;
28599 Made handler not chain to BIOS handler.
28600 ----------------------------
28601 revision 1.2
28602 date: 1994/02/17 15:56:06;  author: john;  state: Exp;
28603 Initial version.
28604 ----------------------------
28605 revision 1.1
28606 date: 1994/02/17 15:54:07;  author: john;  state: Exp;
28607 Initial revision
28608 =============================================================================
28609 RCS file: f:/miner/source/bios/key.h,v
28610 Working file: bios/key.h
28611 head: 1.19
28612 branch:
28613 description: Header for keyboard functions
28614 ----------------------------
28615 revision 1.19
28616 date: 1994/10/24 13:58:12;  author: john;  state: Exp;
28617 Hacked in support for pause key onto code 0x61.
28618 ----------------------------
28619 revision 1.18
28620 date: 1994/10/21 15:17:10;  author: john;  state: Exp;
28621 Added KEY_PRINT_SCREEN
28622 ----------------------------
28623 revision 1.17
28624 date: 1994/08/31 12:22:13;  author: john;  state: Exp;
28625 Added KEY_DEBUGGED
28626 ----------------------------
28627 revision 1.16
28628 date: 1994/08/24 18:53:50;  author: john;  state: Exp;
28629 Made Cyberman read like normal mouse; added dpmi module; moved
28630 mouse from assembly to c. Made mouse buttons return time_down.
28631 ----------------------------
28632 revision 1.15
28633 date: 1994/08/18 14:56:16;  author: john;  state: Exp;
28634 *** empty log message ***
28635 ----------------------------
28636 revision 1.14
28637 date: 1994/08/08 10:43:24;  author: john;  state: Exp;
28638 Recorded when a key was pressed for key_inkey_time.
28639 ----------------------------
28640 revision 1.13
28641 date: 1994/06/17 17:17:28;  author: john;  state: Exp;
28642 Added keyd_time_last_key_was_pressed or something like that.
28643 ----------------------------
28644 revision 1.12
28645 date: 1994/04/29 12:14:19;  author: john;  state: Exp;
28646 Locked all memory used during interrupts so that program
28647 won't hang when using virtual memory.
28648 ----------------------------
28649 revision 1.11
28650 date: 1994/02/17 15:57:14;  author: john;  state: Exp;
28651 Changed key libary to C.
28652 ----------------------------
28653 revision 1.10
28654 date: 1994/01/31 08:34:09;  author: john;  state: Exp;
28655 Fixed reversed lshift/rshift keys.
28656 ----------------------------
28657 revision 1.9
28658 date: 1994/01/18 10:58:17;  author: john;  state: Exp;
28659 *** empty log message ***
28660 ----------------------------
28661 revision 1.8
28662 date: 1993/10/16 19:24:43;  author: matt;  state: Exp;
28663 Added new function key_clear_times() & key_clear_counts()
28664 ----------------------------
28665 revision 1.7
28666 date: 1993/10/15 10:17:09;  author: john;  state: Exp;
28667 added keyd_last_key_pressed and released for use with recorder.
28668 ----------------------------
28669 revision 1.6
28670 date: 1993/10/06 16:20:37;  author: john;  state: Exp;
28671 fixed down arrow bug
28672 ----------------------------
28673 revision 1.5
28674 date: 1993/10/04 13:26:42;  author: john;  state: Exp;
28675 changed the #defines for scan codes.
28676 ----------------------------
28677 revision 1.4
28678 date: 1993/09/28 11:35:20;  author: john;  state: Exp;
28679 added key_peekkey
28680 ----------------------------
28681 revision 1.3
28682 date: 1993/09/20 18:36:43;  author: john;  state: Exp;
28683 *** empty log message ***
28684 ----------------------------
28685 revision 1.1
28686 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
28687 Initial revision
28688 =============================================================================
28689 RCS file: f:/miner/source/bios/key.h,v
28690 Working file: bios/key.h
28691 head: 1.1
28692 branch:
28693 description: Header for keyboard functions
28694 ----------------------------
28695 revision 1.1
28696 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
28697 Initial revision
28698 =============================================================================
28699 RCS file: f:/miner/source/bios/mono.c,v
28700 Working file: bios/mono.c
28701 head: 1.12
28702 branch:
28703 description: Library functions for printing to mono card.
28704 ----------------------------
28705 revision 1.12
28706 date: 1995/02/23 11:59:57;  author: john;  state: Exp;
28707 Made the windows smaller so they don't overwrite the debug file menus.
28708 ----------------------------
28709 revision 1.11
28710 date: 1994/11/27 23:07:50;  author: matt;  state: Exp;
28711 Made changes needed to be able to compile out monochrome debugging code
28712 ----------------------------
28713 revision 1.10
28714 date: 1994/10/26 22:23:43;  author: john;  state: Exp;
28715 Limited windows to 2.  Took away saving what was under
28716 a window.
28717 ----------------------------
28718 revision 1.9
28719 date: 1994/07/14 23:25:44;  author: matt;  state: Exp;
28720 Allow window 0 to be opened; don't allow mono to be initialized twice
28721 ----------------------------
28722 revision 1.8
28723 date: 1994/03/09 10:45:38;  author: john;  state: Exp;
28724 Sped up scroll.
28725 ----------------------------
28726 revision 1.7
28727 date: 1994/01/26 08:56:55;  author: mike;  state: Exp;
28728 Comment out int3 in mputc.
28729 ----------------------------
28730 revision 1.6
28731 date: 1994/01/12 15:56:34;  author: john;  state: Exp;
28732 made backspace do an int3 during mono stuff.
28733 .,
28734 ----------------------------
28735 revision 1.5
28736 date: 1993/12/07 12:33:23;  author: john;  state: Exp;
28737 *** empty log message ***
28738 ----------------------------
28739 revision 1.4
28740 date: 1993/10/15 10:10:25;  author: john;  state: Exp;
28741 *** empty log message ***
28742 ----------------------------
28743 revision 1.3
28744 date: 1993/09/14 20:55:13;  author: matt;  state: Exp;
28745 Made minit() and mopen() check for presence of mono card in machine.
28746 ----------------------------
28747 revision 1.2
28748 date: 1993/07/22 13:10:21;  author: john;  state: Exp;
28749 *** empty log message ***
28750 ----------------------------
28751 revision 1.1
28752 date: 1993/07/10 13:10:38;  author: matt;  state: Exp;
28753 Initial revision
28754 =============================================================================
28755 RCS file: f:/miner/source/bios/mono.h,v
28756 Working file: bios/mono.h
28757 head: 1.6
28758 branch:
28759 description: Header for monochrome/mprintf functions
28760 ----------------------------
28761 revision 1.6
28762 date: 1994/12/03 17:07:37;  author: matt;  state: Exp;
28763 Made mono code turn off with either NDEBUG or NMONO
28764 ----------------------------
28765 revision 1.5
28766 date: 1994/11/27 23:07:28;  author: matt;  state: Exp;
28767 Made changes needed to be able to compile out monochrome debugging code
28768 ----------------------------
28769 revision 1.4
28770 date: 1993/12/07 12:33:28;  author: john;  state: Exp;
28771 *** empty log message ***
28772 ----------------------------
28773 revision 1.3
28774 date: 1993/09/14 20:54:50;  author: matt;  state: Exp;
28775 Made minit() check for mono card, return -1 if present, 0 if not
28776 ----------------------------
28777 revision 1.2
28778 date: 1993/07/22 13:05:40;  author: john;  state: Exp;
28779 added macros to print variables
28780 ----------------------------
28781 revision 1.1
28782 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
28783 Initial revision
28784 =============================================================================
28785 RCS file: f:/miner/source/bios/mouse.c,v
28786 Working file: bios/mouse.c
28787 head: 1.11
28788 branch:
28789 description: Functions to access Mouse and Cyberman...
28790 ----------------------------
28791 revision 1.11
28792 date: 1995/02/10 18:52:17;  author: john;  state: Exp;
28793 Fixed bug with mouse not getting closed.
28794 ----------------------------
28795 revision 1.10
28796 date: 1995/02/02 11:10:33;  author: john;  state: Exp;
28797 Changed a bunch of mouse stuff around to maybe get
28798 around PS/2 mouse hang.
28799 ----------------------------
28800 revision 1.9
28801 date: 1995/01/14 19:19:52;  author: john;  state: Exp;
28802 Fixed signed short error cmp with -1 that caused mouse
28803 to break under Watcom 10.0
28804 ----------------------------
28805 revision 1.8
28806 date: 1994/12/27 12:38:23;  author: john;  state: Exp;
28807 Made mouse use temporary dos buffer instead of
28808 allocating its own.
28809 ----------------------------
28810 revision 1.7
28811 date: 1994/12/05 23:54:53;  author: john;  state: Exp;
28812 Fixed bug with mouse_get_delta only returning positive numbers..
28813 ----------------------------
28814 revision 1.6
28815 date: 1994/11/18 23:18:18;  author: john;  state: Exp;
28816 Changed some shorts to ints.
28817 ----------------------------
28818 revision 1.5
28819 date: 1994/09/13 12:34:02;  author: john;  state: Exp;
28820 Added functions to get down count and state.
28821 ----------------------------
28822 revision 1.4
28823 date: 1994/08/29 20:52:19;  author: john;  state: Exp;
28824 Added better cyberman support; also, joystick calibration
28825 value return funcctiionn,
28826 ----------------------------
28827 revision 1.3
28828 date: 1994/08/24 18:54:32;  author: john;  state: Exp;
28829 *** empty log message ***
28830 ----------------------------
28831 revision 1.2
28832 date: 1994/08/24 18:53:46;  author: john;  state: Exp;
28833 Made Cyberman read like normal mouse; added dpmi module; moved
28834 mouse from assembly to c. Made mouse buttons return time_down.
28835 ----------------------------
28836 revision 1.1
28837 date: 1994/08/24 13:56:37;  author: john;  state: Exp;
28838 Initial revision
28839 =============================================================================
28840 RCS file: f:/miner/source/bios/mouse.h,v
28841 Working file: bios/mouse.h
28842 head: 1.10
28843 branch:
28844 description: Header for mouse functions
28845 ----------------------------
28846 revision 1.10
28847 date: 1995/02/02 10:22:29;  author: john;  state: Exp;
28848 Added cyberman init parameter.
28849 ----------------------------
28850 revision 1.9
28851 date: 1994/11/18 23:18:09;  author: john;  state: Exp;
28852 Changed some shorts to ints.
28853 ----------------------------
28854 revision 1.8
28855 date: 1994/09/13 12:33:49;  author: john;  state: Exp;
28856 Added functions to get down count and state.
28857 ----------------------------
28858 revision 1.7
28859 date: 1994/08/29 20:52:20;  author: john;  state: Exp;
28860 Added better cyberman support; also, joystick calibration
28861 value return funcctiionn,
28862 ----------------------------
28863 revision 1.6
28864 date: 1994/08/24 17:54:35;  author: john;  state: Exp;
28865 *** empty log message ***
28866 ----------------------------
28867 revision 1.5
28868 date: 1994/08/24 17:51:43;  author: john;  state: Exp;
28869 Added transparent cyberman support
28870 ----------------------------
28871 revision 1.4
28872 date: 1993/07/27 09:32:22;  author: john;  state: Exp;
28873 *** empty log message ***
28874 ----------------------------
28875 revision 1.3
28876 date: 1993/07/26 10:46:44;  author: john;  state: Exp;
28877 added definition for mouse_set_pos
28878 ----------------------------
28879 revision 1.2
28880 date: 1993/07/22 13:07:59;  author: john;  state: Exp;
28881 added header for mousesetlimts
28882 ----------------------------
28883 revision 1.1
28884 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
28885 Initial revision
28886 =============================================================================
28887 RCS file: f:/miner/source/bios/mousec.c,v
28888 Working file: bios/mousec.c
28889 head: 1.1
28890 branch:
28891 description: Routines to access a mouse..
28892 ----------------------------
28893 revision 1.1
28894 date: 1994/08/24 12:19:13;  author: john;  state: Exp;
28895 Initial revision
28896 =============================================================================
28897 RCS file: f:/miner/source/bios/speaker.c,v
28898 Working file: bios/speaker.c
28899 head: 1.1
28900 branch:
28901 description: Controlling the PC speaker
28902 ----------------------------
28903 revision 1.1
28904 date: 1994/04/04 16:30:41;  author: yuan;  state: Exp;
28905 Initial revision
28906 =============================================================================
28907 RCS file: f:/miner/source/bios/swiftcfg.h,v
28908 Working file: bios/swiftcfg.h
28909 head: 1.2
28910 branch:
28911 description: .
28912 ----------------------------
28913 revision 1.2
28914 date: 1994/04/01 16:09:50;  author: john;  state: Exp;
28915 Added Cyberman supprt
28916 ----------------------------
28917 revision 1.1
28918 date: 1994/04/01 14:04:16;  author: john;  state: Exp;
28919 Initial revision
28920 =============================================================================
28921 RCS file: f:/miner/source/bios/t.h,v
28922 Working file: bios/t.h
28923 head: 1.1
28924 branch:
28925 description: .
28926 ----------------------------
28927 revision 1.1
28928 date: 1994/12/10 12:09:47;  author: john;  state: Exp;
28929 Initial revision
28930 =============================================================================
28931 RCS file: f:/miner/source/bios/timer.h,v
28932 Working file: bios/timer.h
28933 head: 1.8
28934 branch:
28935 description: Header for timer functions
28936 ----------------------------
28937 revision 1.8
28938 date: 1994/12/10 12:27:23;  author: john;  state: Exp;
28939 Added timer_get_approx_seconds.
28940 ----------------------------
28941 revision 1.7
28942 date: 1994/12/10 12:10:25;  author: john;  state: Exp;
28943 Added types.h.
28944 ----------------------------
28945 revision 1.6
28946 date: 1994/12/10 12:07:06;  author: john;  state: Exp;
28947 Added tick counter variable.
28948 ----------------------------
28949 revision 1.5
28950 date: 1994/11/15 12:04:15;  author: john;  state: Exp;
28951 Cleaned up timer code a bit... took out unused functions
28952 like timer_get_milliseconds, etc.
28953 ----------------------------
28954 revision 1.4
28955 date: 1994/04/28 23:50:08;  author: john;  state: Exp;
28956 Changed calling for init_timer.  Made the function that the
28957 timer calls be a far function. All of this was done to make
28958 our timer system compatible with the HMI sound stuff.
28959 ----------------------------
28960 revision 1.3
28961 date: 1994/02/17 15:57:12;  author: john;  state: Exp;
28962 Changed key libary to C.
28963 ----------------------------
28964 revision 1.2
28965 date: 1994/01/18 10:58:34;  author: john;  state: Exp;
28966 Added timer_get_fixed_seconds
28967 ----------------------------
28968 revision 1.1
28969 date: 1993/07/10 13:10:41;  author: matt;  state: Exp;
28970 Initial revision
28971 =============================================================================
28972 RCS file: f:/miner/source/bios/joy.h,v
28973 Working file: bios/joy.h
28974 head: 1.16
28975 branch:
28976 description: Headers for joystick functions
28977 ----------------------------
28978 revision 1.16
28979 date: 1995/02/14 11:17:13;  author: john;  state: Exp;
28980 Added BIOS readings for stick.
28981 ----------------------------
28982 revision 1.15
28983 date: 1995/02/14 10:09:58;  author: john;  state: Exp;
28984 Added OS2 switch.
28985 ----------------------------
28986 revision 1.14
28987 date: 1994/12/28 13:49:20;  author: john;  state: Exp;
28988 Added function to set joystick for slow reading
28989 ----------------------------
28990 revision 1.13
28991 date: 1994/10/13 11:36:06;  author: john;  state: Exp;
28992 Made joy_down_time be kept track of in fixed seconds,
28993 not ticks.
28994 ----------------------------
28995 revision 1.12
28996 date: 1994/10/12 17:03:16;  author: john;  state: Exp;
28997 Added prototype for joy_get_scaled_reading.
28998 ----------------------------
28999 revision 1.11
29000 date: 1994/10/12 16:57:55;  author: john;  state: Exp;
29001 Added function to set a joystick button's state.
29002 ----------------------------
29003 revision 1.10
29004 date: 1994/09/22 16:09:00;  author: john;  state: Exp;
29005 Fixed some virtual memory lockdown problems with timer and
29006 joystick.
29007 ----------------------------
29008 revision 1.9
29009 date: 1994/08/31 09:54:57;  author: john;  state: Exp;
29010 *** empty log message ***
29011 ----------------------------
29012 revision 1.8
29013 date: 1994/08/29 21:02:24;  author: john;  state: Exp;
29014 Added joy_set_cal_values...
29015 ----------------------------
29016 revision 1.7
29017 date: 1994/08/29 20:51:52;  author: john;  state: Exp;
29018 Added better cyberman support; also, joystick calibration
29019 value return funcctiionn,
29020 ----------------------------
29021 revision 1.6
29022 date: 1994/07/01 10:55:44;  author: john;  state: Exp;
29023 Fixed some bugs... added support for 4 axis.
29024 ----------------------------
29025 revision 1.5
29026 date: 1994/06/30 20:36:51;  author: john;  state: Exp;
29027 Revamped joystick code.
29028 ----------------------------
29029 revision 1.4
29030 date: 1994/04/22 12:52:10;  author: john;  state: Exp;
29031 *** empty log message ***
29032 ----------------------------
29033 revision 1.3
29034 date: 1994/01/18 13:53:39;  author: john;  state: Exp;
29035 Made all joystick functions return int's instead of
29036 shorts.  Also made the stick reading be CPU speed
29037 independant by using the timer_get_Stamp_64 
29038 function.
29039 ----------------------------
29040 revision 1.2
29041 date: 1994/01/18 10:58:42;  author: john;  state: Exp;
29042 *** empty log message ***
29043 ----------------------------
29044 revision 1.1
29045 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
29046 Initial revision
29047 =============================================================================
29048 RCS file: f:/miner/source/bios/joyc.c,v
29049 Working file: bios/joyc.c
29050 head: 1.36
29051 branch:
29052 description: Routines for joystick reading.
29053 ----------------------------
29054 revision 1.36
29055 date: 1995/03/30 11:03:40;  author: john;  state: Exp;
29056 Made -JoyBios read buttons using BIOS.
29057 ----------------------------
29058 revision 1.35
29059 date: 1995/02/14 11:39:25;  author: john;  state: Exp;
29060 Added polled/bios joystick readers..
29061 ----------------------------
29062 revision 1.34
29063 date: 1995/02/10 17:06:12;  author: john;  state: Exp;
29064 Fixed bug with plugging in a joystick not getting detected.
29065 ----------------------------
29066 revision 1.33
29067 date: 1995/01/27 16:39:42;  author: john;  state: Exp;
29068 Made so that if no joystick detected, it wont't
29069 read buttons.
29070 ----------------------------
29071 revision 1.32
29072 date: 1995/01/12 13:16:40;  author: john;  state: Exp;
29073 Made it so that joystick can't lose an axis
29074 by 1 weird reading. Reading has to occurr during
29075 calibration for this to happen.
29076 ----------------------------
29077 revision 1.31
29078 date: 1994/12/28 15:56:03;  author: john;  state: Exp;
29079 Fixed bug that refused to read joysticks whose 
29080 min,cen,max were less than 100 apart.
29081 ----------------------------
29082 revision 1.30
29083 date: 1994/12/28 15:31:53;  author: john;  state: Exp;
29084 Added code to read joystick axis not all at one time.
29085 ----------------------------
29086 revision 1.29
29087 date: 1994/12/27 15:44:36;  author: john;  state: Exp;
29088 Made the joystick timeout be at 1/100th of a second, 
29089 regardless of CPU speed.
29090 ----------------------------
29091 revision 1.28
29092 date: 1994/12/04 11:54:54;  author: john;  state: Exp;
29093 Made stick read at whatever rate the clock is at, not
29094 at 18.2 times/second.
29095 ----------------------------
29096 revision 1.27
29097 date: 1994/11/29 02:25:40;  author: john;  state: Exp;
29098 Made it so that the scaled reading returns 0 
29099 if the calibration factors look funny..
29100 ----------------------------
29101 revision 1.26
29102 date: 1994/11/22 11:08:07;  author: john;  state: Exp;
29103 Commented out the ARCADE joystick.
29104 ----------------------------
29105 revision 1.25
29106 date: 1994/11/14 19:40:26;  author: john;  state: Exp;
29107 Fixed bug with no joystick being detected.
29108 ----------------------------
29109 revision 1.24
29110 date: 1994/11/14 19:36:40;  author: john;  state: Exp;
29111 Took out initial cheapy calibration.
29112 ----------------------------
29113 revision 1.23
29114 date: 1994/11/14 19:13:27;  author: john;  state: Exp;
29115 Took out the calibration in joy_init
29116 ----------------------------
29117 revision 1.22
29118 date: 1994/10/17 10:09:57;  author: john;  state: Exp;
29119 Made the state look at last_State, so that a joy_flush
29120 doesn't cause a new down state to be added next reading.
29121 ----------------------------
29122 revision 1.21
29123 date: 1994/10/13 11:36:23;  author: john;  state: Exp;
29124 Made joy_down_time be kept track of in fixed seconds,
29125 not ticks.
29126 ----------------------------
29127 revision 1.20
29128 date: 1994/10/12 16:58:50;  author: john;  state: Exp;
29129 Fixed bug w/ previous comment.
29130 ----------------------------
29131 revision 1.19
29132 date: 1994/10/12 16:57:44;  author: john;  state: Exp;
29133 Added function to set a joystick button's state.
29134 ----------------------------
29135 revision 1.18
29136 date: 1994/10/11 10:20:13;  author: john;  state: Exp;
29137 Fixed Flightstick Pro/
29138 ..
29139 ----------------------------
29140 revision 1.17
29141 date: 1994/09/29 18:29:20;  author: john;  state: Exp;
29142 *** empty log message ***
29143 ----------------------------
29144 revision 1.16
29145 date: 1994/09/27 19:17:23;  author: john;  state: Exp;
29146 Added code so that is joy_init is never called, joystick is not
29147 used at all.
29148 ----------------------------
29149 revision 1.15
29150 date: 1994/09/22 16:09:23;  author: john;  state: Exp;
29151 Fixed some virtual memory lockdown problems with timer and
29152 joystick.
29153 ----------------------------
29154 revision 1.14
29155 date: 1994/09/16 11:44:42;  author: john;  state: Exp;
29156 Fixed bug with slow joystick.
29157 ----------------------------
29158 revision 1.13
29159 date: 1994/09/16 11:36:15;  author: john;  state: Exp;
29160 Fixed bug with reading non-present channels.
29161 ----------------------------
29162 revision 1.12
29163 date: 1994/09/15 20:52:48;  author: john;  state: Exp;
29164 rme john
29165 Added support for the Arcade style joystick.
29166 ----------------------------
29167 revision 1.11
29168 date: 1994/09/13 20:04:49;  author: john;  state: Exp;
29169 Fixed bug with joystick button down_time.
29170 ----------------------------
29171 revision 1.10
29172 date: 1994/09/10 13:48:07;  author: john;  state: Exp;
29173 Made all 20 buttons read.
29174 ----------------------------
29175 revision 1.9
29176 date: 1994/08/31 09:55:02;  author: john;  state: Exp;
29177 *** empty log message ***
29178 ----------------------------
29179 revision 1.8
29180 date: 1994/08/29 21:02:14;  author: john;  state: Exp;
29181 Added joy_set_cal_values...
29182 ----------------------------
29183 revision 1.7
29184 date: 1994/08/29 20:52:17;  author: john;  state: Exp;
29185 Added better cyberman support; also, joystick calibration
29186 value return funcctiionn,
29187 ----------------------------
29188 revision 1.6
29189 date: 1994/08/24 18:53:12;  author: john;  state: Exp;
29190 Made Cyberman read like normal mouse; added dpmi module; moved
29191 mouse from assembly to c. Made mouse buttons return time_down.
29192 ----------------------------
29193 revision 1.5
29194 date: 1994/07/14 22:12:23;  author: john;  state: Exp;
29195 Used intrinsic forms of outp to fix vmm error.
29196 ----------------------------
29197 revision 1.4
29198 date: 1994/07/07 19:52:59;  author: matt;  state: Exp;
29199 Made joy_init() return success/fail flag
29200 Made joy_init() properly detect a stick if one is plugged in after joy_init()
29201 was called the first time.
29202 ----------------------------
29203 revision 1.3
29204 date: 1994/07/01 10:55:55;  author: john;  state: Exp;
29205 Fixed some bugs... added support for 4 axis.
29206 ----------------------------
29207 revision 1.2
29208 date: 1994/06/30 20:36:55;  author: john;  state: Exp;
29209 Revamped joystick code.
29210 ----------------------------
29211 revision 1.1
29212 date: 1994/06/30 15:42:15;  author: john;  state: Exp;
29213 Initial revision
29214 =============================================================================
29215 RCS file: f:/miner/source/div/div0.h,v
29216 Working file: div/div0.h
29217 head: 1.2
29218 branch:
29219 description: Header file for divide by zero handler
29220 ----------------------------
29221 revision 1.2
29222 date: 1994/01/14 15:34:25;  author: john;  state: Exp;
29223 Added counters for number of overflows.
29224 ----------------------------
29225 revision 1.1
29226 date: 1993/09/17 12:37:58;  author: john;  state: Exp;
29227 Initial revision
29228 =============================================================================
29229 RCS file: f:/miner/source/fix/fix.h,v
29230 Working file: fix/fix.h
29231 head: 1.13
29232 branch:
29233 description: FIX.H - prototypes and macros for fixed-point functions
29234 Copyright (c) 1993  Matt Toschlog & Mike Kulas
29235 ----------------------------
29236 revision 1.13
29237 date: 1994/12/06 13:52:34;  author: matt;  state: Exp;
29238 Added f2ir(), which is fix-to-int with rounding
29239 ----------------------------
29240 revision 1.12
29241 date: 1994/05/18 21:45:16;  author: matt;  state: Exp;
29242 Added comments
29243 ----------------------------
29244 revision 1.11
29245 date: 1994/01/19 23:12:02;  author: matt;  state: Exp;
29246 Made fix_atan2() left-handed, like our coordinate system
29247 ----------------------------
29248 revision 1.10
29249 date: 1993/10/20 01:09:00;  author: matt;  state: Exp;
29250 Add fix_asin(), improved fix_atan2()
29251 ----------------------------
29252 revision 1.9
29253 date: 1993/10/19 23:53:46;  author: matt;  state: Exp;
29254 Added fix_atan2()
29255 ----------------------------
29256 revision 1.8
29257 date: 1993/10/19 22:22:40;  author: matt;  state: Exp;
29258 Added fix_acos()
29259 ----------------------------
29260 revision 1.7
29261 date: 1993/09/17 11:37:01;  author: mike;  state: Exp;
29262 Add capitalized versions of "some handy constants", eg:
29263 #define F1_0 f1_0
29264 ----------------------------
29265 revision 1.6
29266 date: 1993/08/24 13:00:48;  author: matt;  state: Exp;
29267 Adopted new standard, and made assembly-callable routines not trash any regs
29268 ----------------------------
29269 revision 1.5
29270 date: 1993/08/12 13:12:45;  author: matt;  state: Exp;
29271 Changed fixmul() to use SHRD instead of shl,shr,or
29272 ----------------------------
29273 revision 1.4
29274 date: 1993/08/04 19:57:18;  author: matt;  state: Exp;
29275 Added parens in fix/float conversion macros
29276 ----------------------------
29277 revision 1.3
29278 date: 1993/08/04 11:41:45;  author: matt;  state: Exp;
29279 Fixed bogus constants
29280 ----------------------------
29281 revision 1.2
29282 date: 1993/08/04 09:30:11;  author: matt;  state: Exp;
29283 Added more constants
29284 ----------------------------
29285 revision 1.1
29286 date: 1993/08/03 17:45:53;  author: matt;  state: Exp;
29287 Initial revision
29288 =============================================================================
29289 RCS file: f:/miner/source/iff/iff.h,v
29290 Working file: iff/iff.h
29291 head: 1.12
29292 branch:
29293 description: Header for IFF routines
29294 ----------------------------
29295 revision 1.12
29296 date: 1994/11/07 21:26:53;  author: matt;  state: Exp;
29297 Added new function iff_read_into_bitmap()
29298 ----------------------------
29299 revision 1.11
29300 date: 1994/05/06 19:37:38;  author: matt;  state: Exp;
29301 Improved error handling and checking
29302 ----------------------------
29303 revision 1.10
29304 date: 1994/04/16 20:12:54;  author: matt;  state: Exp;
29305 Made masked (stenciled) bitmaps work
29306 ----------------------------
29307 revision 1.9
29308 date: 1994/04/13 23:46:00;  author: matt;  state: Exp;
29309 Added function, iff_errormsg(), which returns ptr to error message.
29310 ----------------------------
29311 revision 1.8
29312 date: 1994/04/13 23:27:10;  author: matt;  state: Exp;
29313 Put in support for anim brushes (.abm files)
29314 ----------------------------
29315 revision 1.7
29316 date: 1994/04/06 23:08:02;  author: matt;  state: Exp;
29317 Cleaned up code; added prototype (but no new code) for anim brush read
29318 ----------------------------
29319 revision 1.6
29320 date: 1994/01/22 14:40:59;  author: john;  state: Exp;
29321 Fixed bug with declareations.
29322 ----------------------------
29323 revision 1.5
29324 date: 1994/01/22 14:23:13;  author: john;  state: Exp;
29325 Added global vars to check transparency
29326 ----------------------------
29327 revision 1.4
29328 date: 1993/10/27 12:47:42;  author: john;  state: Exp;
29329 Extended the comments
29330 ----------------------------
29331 revision 1.3
29332 date: 1993/09/22 19:17:20;  author: matt;  state: Exp;
29333 Fixed handling of pad byte in ILBM/PPB body - was writing pad byte to
29334 destination buffer.
29335 ----------------------------
29336 revision 1.2
29337 date: 1993/09/08 19:23:25;  author: matt;  state: Exp;
29338 Added additional return code, IFF_BAD_BM_TYPE
29339 ----------------------------
29340 revision 1.1
29341 date: 1993/09/08 14:24:21;  author: matt;  state: Exp;
29342 Initial revision
29343 =============================================================================
29344 RCS file: f:/miner/source/iff/iff.c,v
29345 Working file: iff/iff.c
29346 head: 1.43
29347 branch:
29348 description: Routines for reading and writing IFF files
29349 ----------------------------
29350 revision 1.43
29351 date: 1994/12/08 19:03:17;  author: john;  state: Exp;
29352 Added code to use cfile.
29353 ----------------------------
29354 revision 1.42
29355 date: 1994/12/08 17:45:32;  author: john;  state: Exp;
29356 Put back in cfile stuff.
29357 ----------------------------
29358 revision 1.41
29359 date: 1994/11/19 16:41:06;  author: matt;  state: Exp;
29360 Took out unused code
29361 ----------------------------
29362 revision 1.40
29363 date: 1994/11/07 21:26:39;  author: matt;  state: Exp;
29364 Added new function iff_read_into_bitmap()
29365 ----------------------------
29366 revision 1.39
29367 date: 1994/10/27 00:12:03;  author: john;  state: Exp;
29368 Used nocfile
29369 ----------------------------
29370 revision 1.38
29371 date: 1994/08/10 19:49:58;  author: matt;  state: Exp;
29372 Fixed bitmaps in ILBM format with masking (stencil) on.
29373 ----------------------------
29374 revision 1.37
29375 date: 1994/06/02 18:53:17;  author: matt;  state: Exp;
29376 Clear flags & selector in new bitmap structure
29377 ----------------------------
29378 revision 1.36
29379 date: 1994/05/17 14:00:33;  author: matt;  state: Exp;
29380 Fixed bug with odd-width deltas & odd-length body chunks
29381 ----------------------------
29382 revision 1.35
29383 date: 1994/05/16 20:38:55;  author: matt;  state: Exp;
29384 Made anim brushes work when odd width
29385 ----------------------------
29386 revision 1.34
29387 date: 1994/05/06 19:37:26;  author: matt;  state: Exp;
29388 Improved error handling and checking
29389 ----------------------------
29390 revision 1.33
29391 date: 1994/04/27 20:57:07;  author: matt;  state: Exp;
29392 Fixed problem with RLE decompression and odd-width bitmap
29393 Added more error checking
29394 ----------------------------
29395 revision 1.32
29396 date: 1994/04/16 21:44:19;  author: matt;  state: Exp;
29397 Fixed bug introduced last version
29398 ----------------------------
29399 revision 1.31
29400 date: 1994/04/16 20:12:40;  author: matt;  state: Exp;
29401 Made masked (stenciled) bitmaps work
29402 ----------------------------
29403 revision 1.30
29404 date: 1994/04/13 23:46:16;  author: matt;  state: Exp;
29405 Added function, iff_errormsg(), which returns ptr to error message.
29406 ----------------------------
29407 revision 1.29
29408 date: 1994/04/13 23:27:25;  author: matt;  state: Exp;
29409 Put in support for anim brushes (.abm files)
29410 ----------------------------
29411 revision 1.28
29412 date: 1994/04/13 16:33:31;  author: matt;  state: Exp;
29413 Cleaned up file read code, adding fake_file structure (FFILE), which
29414 cleanly implements reading the entire file into a buffer and then reading
29415 out of that buffer.
29416 ----------------------------
29417 revision 1.27
29418 date: 1994/04/06 23:07:43;  author: matt;  state: Exp;
29419 Cleaned up code; added prototype (but no new code) for anim brush read
29420 ----------------------------
29421 revision 1.26
29422 date: 1994/03/19 02:51:52;  author: matt;  state: Exp;
29423 Really did what I said I did last revision.
29424 ----------------------------
29425 revision 1.25
29426 date: 1994/03/19 02:16:07;  author: matt;  state: Exp;
29427 Made work ILBMs which didn't have 8 planes
29428 ----------------------------
29429 revision 1.24
29430 date: 1994/03/15 14:45:26;  author: matt;  state: Exp;
29431 When error, only free memory if has been allocated
29432 ----------------------------
29433 revision 1.23
29434 date: 1994/02/18 12:39:05;  author: john;  state: Exp;
29435 Made code read from buffer.
29436 ----------------------------
29437 revision 1.22
29438 date: 1994/02/15 18:15:26;  author: john;  state: Exp;
29439 Took out cfile attempt (too slow)
29440 ----------------------------
29441 revision 1.21
29442 date: 1994/02/15 13:17:48;  author: john;  state: Exp;
29443 added assert to cfseek.
29444 ----------------------------
29445 revision 1.20
29446 date: 1994/02/15 13:13:11;  author: john;  state: Exp;
29447 Made iff code work normally.
29448 ----------------------------
29449 revision 1.19
29450 date: 1994/02/15 12:51:07;  author: john;  state: Exp;
29451 crappy inbetween version.
29452 ----------------------------
29453 revision 1.18
29454 date: 1994/02/10 18:31:32;  author: matt;  state: Exp;
29455 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
29456 ----------------------------
29457 revision 1.17
29458 date: 1994/01/24 11:51:26;  author: john;  state: Exp;
29459 Made write routine write transparency info.
29460 ----------------------------
29461 revision 1.16
29462 date: 1994/01/22 14:41:11;  author: john;  state: Exp;
29463 Fixed bug with declareations.
29464 ----------------------------
29465 revision 1.15
29466 date: 1994/01/22 14:23:00;  author: john;  state: Exp;
29467 Added global vars to check transparency
29468 ----------------------------
29469 revision 1.14
29470 date: 1993/12/08 19:00:42;  author: matt;  state: Exp;
29471 Changed while loop to memset
29472 ----------------------------
29473 revision 1.13
29474 date: 1993/12/08 17:23:51;  author: mike;  state: Exp;
29475 Speedup by converting while...getc to fread.
29476 ----------------------------
29477 revision 1.12
29478 date: 1993/12/08 12:37:35;  author: mike;  state: Exp;
29479 Optimize parse_body.
29480 ----------------------------
29481 revision 1.11
29482 date: 1993/12/05 17:30:14;  author: matt;  state: Exp;
29483 Made bitmaps with width <= 64 not compress
29484 ----------------------------
29485 revision 1.10
29486 date: 1993/12/03 12:24:51;  author: matt;  state: Exp;
29487 Fixed TINY chunk when bitmap was part of a larger bitmap
29488 ----------------------------
29489 revision 1.9
29490 date: 1993/11/22 17:26:43;  author: matt;  state: Exp;
29491 iff write now writes out a tiny chunk
29492 ----------------------------
29493 revision 1.8
29494 date: 1993/11/21 22:04:13;  author: matt;  state: Exp;
29495 Fixed error with non-compressed bitmaps
29496 Added Yuan's code to free raw data if we get an error parsing the body
29497 ----------------------------
29498 revision 1.7
29499 date: 1993/11/11 12:12:12;  author: yuan;  state: Exp;
29500 Changed mallocs to MALLOCs.
29501 ----------------------------
29502 revision 1.6
29503 date: 1993/11/01 19:02:23;  author: matt;  state: Exp;
29504 Fixed a couple bugs in rle compression
29505 ----------------------------
29506 revision 1.5
29507 date: 1993/10/27 12:47:39;  author: john;  state: Exp;
29508 *** empty log message ***
29509 ----------------------------
29510 revision 1.4
29511 date: 1993/10/27 12:37:31;  author: yuan;  state: Exp;
29512 Added mem.h
29513 ----------------------------
29514 revision 1.3
29515 date: 1993/09/22 19:16:57;  author: matt;  state: Exp;
29516 Added new error type, IFF_CORRUPT, for internally bad IFF files.
29517 ----------------------------
29518 revision 1.2
29519 date: 1993/09/08 19:24:16;  author: matt;  state: Exp;
29520 Fixed bug in RLE compression
29521 Changed a bunch of unimportant values like aspect and page size when writing
29522 Added new error condition, IFF_BAD_BM_TYPE
29523 Make sub-bitmaps work correctly
29524 Added compile flag to turn compression off (COMPRESS)
29525 ----------------------------
29526 revision 1.1
29527 date: 1993/09/08 14:24:15;  author: matt;  state: Exp;
29528 Initial revision
29529 =============================================================================
29530 RCS file: f:/miner/source/includes/types.h,v
29531 Working file: includes/types.h
29532 head: 1.2
29533 branch:
29534 description: Common types for use in Miner
29535 ----------------------------
29536 revision 1.2
29537 date: 1993/09/14 12:12:30;  author: matt;  state: Exp;
29538 Added #define for NULL
29539 ----------------------------
29540 revision 1.1
29541 date: 1993/08/24 12:50:40;  author: matt;  state: Exp;
29542 Initial revision
29543 =============================================================================
29544 RCS file: h:/miner/source/xcolor/xcolor.c,v
29545 head: 1.1
29546 branch:
29547 description: .
29548 ----------------------------
29549 revision 1.1
29550 date: 1994/01/24 11:09:24;  author: john;  state: Exp;
29551 Initial revision
29552 =============================================================================
29553 RCS file: f:/miner/source/main/ai.h,v
29554 Working file: main/ai.h
29555 head: 2.0
29556 branch:
29557 description: Header file for AI system.
29558 ----------------------------
29559 revision 2.0
29560 date: 1995/02/27 11:33:07;  author: john;  state: Exp;
29561 New version 2.0, which has no anonymous unions, builds with
29562 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29563 ----------------------------
29564 revision 1.57
29565 date: 1995/02/04 17:28:31;  author: mike;  state: Exp;
29566 make station guys return better.
29567 ----------------------------
29568 revision 1.56
29569 date: 1995/02/04 10:03:23;  author: mike;  state: Exp;
29570 Fly to exit cheat.
29571 ----------------------------
29572 revision 1.55
29573 date: 1995/02/01 19:23:52;  author: rob;  state: Exp;
29574 Externed a boss var.
29575 ----------------------------
29576 revision 1.54
29577 date: 1995/01/30 13:00:58;  author: mike;  state: Exp;
29578 Make robots fire at player other than one they are controlled by sometimes.
29579 ----------------------------
29580 revision 1.53
29581 date: 1995/01/26 15:09:16;  author: rob;  state: Exp;
29582 Changed robot gating to accomodate multiplayer.
29583 ----------------------------
29584 revision 1.52
29585 date: 1995/01/26 12:23:12;  author: rob;  state: Exp;
29586 Added new externs needed for multiplayer.
29587 ----------------------------
29588 revision 1.51
29589 date: 1995/01/21 21:22:14;  author: mike;  state: Exp;
29590 Kill prototype of init_boss_segments, which didn't need to be public
29591 and had changed.
29592 ----------------------------
29593 revision 1.50
29594 date: 1995/01/16 19:24:29;  author: mike;  state: Exp;
29595 Publicize BOSS_GATE_MATCEN_NUM and Boss_been_hit.
29596 ----------------------------
29597 revision 1.49
29598 date: 1995/01/02 16:17:35;  author: mike;  state: Exp;
29599 prototype some super boss function for gameseq.
29600 ----------------------------
29601 revision 1.48
29602 date: 1994/12/19 17:08:06;  author: mike;  state: Exp;
29603 deal with new ai_multiplayer_awareness which returns a value saying whether this object can be moved by this player.
29604 ----------------------------
29605 revision 1.47
29606 date: 1994/12/12 17:18:04;  author: mike;  state: Exp;
29607 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
29608 ----------------------------
29609 revision 1.46
29610 date: 1994/12/08 15:46:16;  author: mike;  state: Exp;
29611 better robot behavior.
29612 ----------------------------
29613 revision 1.45
29614 date: 1994/11/27 23:16:08;  author: matt;  state: Exp;
29615 Made debug code go away when debugging turned off
29616 ----------------------------
29617 revision 1.44
29618 date: 1994/11/16 23:38:41;  author: mike;  state: Exp;
29619 new improved boss teleportation behavior.
29620 ----------------------------
29621 revision 1.43
29622 date: 1994/11/10 17:45:11;  author: mike;  state: Exp;
29623 debugging.
29624 ----------------------------
29625 revision 1.42
29626 date: 1994/11/07 10:37:42;  author: mike;  state: Exp;
29627 hooks for rob's network code.
29628 ----------------------------
29629 revision 1.41
29630 date: 1994/11/06 15:10:50;  author: mike;  state: Exp;
29631 prototype a debug function for dumping ai info.
29632 ----------------------------
29633 revision 1.40
29634 date: 1994/11/02 17:57:30;  author: rob;  state: Exp;
29635 Added extern of Believe_player_pos needed to get control centers
29636 locating people.
29637 ----------------------------
29638 revision 1.39
29639 date: 1994/10/28 19:43:39;  author: mike;  state: Exp;
29640 Prototype Boss_cloak_start_time, Boss_cloak_end_time.
29641 ----------------------------
29642 revision 1.38
29643 date: 1994/10/22 14:14:42;  author: mike;  state: Exp;
29644 Prototype ai_reset_all_paths.
29645 ----------------------------
29646 revision 1.37
29647 date: 1994/10/21 20:42:01;  author: mike;  state: Exp;
29648 Define MAX_PATH_LENGTH: maximum allowed length of a path.
29649 ----------------------------
29650 revision 1.36
29651 date: 1994/10/20 09:49:18;  author: mike;  state: Exp;
29652 Prototype something.
29653 ----------------------------
29654 revision 1.35
29655 date: 1994/10/18 15:37:52;  author: mike;  state: Exp;
29656 Define ROBOT_BOSS1.
29657 ----------------------------
29658 revision 1.34
29659 date: 1994/10/13 11:12:25;  author: mike;  state: Exp;
29660 Prototype some door functions.
29661 ----------------------------
29662 revision 1.33
29663 date: 1994/10/12 21:28:51;  author: mike;  state: Exp;
29664 Prototype create_n_segment_path_to_door
29665 Prototype ai_open_doors_in_segment
29666 Prototype ai_door_is_openable.
29667 ----------------------------
29668 revision 1.32
29669 date: 1994/10/11 15:59:41;  author: mike;  state: Exp;
29670 Prototype Robot_firing_enabled.
29671 ----------------------------
29672 revision 1.31
29673 date: 1994/10/09 22:02:48;  author: mike;  state: Exp;
29674 Adapt create_path_points and create_n_segment_path prototypes to use avoid_seg for player evasion.
29675 ----------------------------
29676 revision 1.30
29677 date: 1994/09/18 18:07:44;  author: mike;  state: Exp;
29678 Update prototypes for create_path_points and create_path_to_player.
29679 ----------------------------
29680 revision 1.29
29681 date: 1994/09/15 16:34:08;  author: mike;  state: Exp;
29682 Prototype do_ai_robot_hit_attack.
29683 ----------------------------
29684 revision 1.28
29685 date: 1994/09/12 19:12:35;  author: mike;  state: Exp;
29686 Prototype attempt_to_resume_path.
29687 ----------------------------
29688 revision 1.27
29689 date: 1994/08/25 21:55:32;  author: mike;  state: Exp;
29690 Add some prototypes.
29691 ----------------------------
29692 revision 1.26
29693 date: 1994/08/10 19:53:24;  author: mike;  state: Exp;
29694 Prototype create_path_to_player and init_robots_for_level.
29695 ----------------------------
29696 revision 1.25
29697 date: 1994/08/04 16:32:58;  author: mike;  state: Exp;
29698 prototype create_path_to_player.
29699 ----------------------------
29700 revision 1.24
29701 date: 1994/08/03 15:17:20;  author: mike;  state: Exp;
29702 Prototype make_random_vector.
29703 ----------------------------
29704 revision 1.23
29705 date: 1994/07/31 18:10:34;  author: mike;  state: Exp;
29706 Update prototype for create_path_points.
29707 ----------------------------
29708 revision 1.22
29709 date: 1994/07/28 12:36:14;  author: matt;  state: Exp;
29710 Cleaned up object bumping code
29711 =============================================================================
29712 RCS file: f:/miner/source/main/aistruct.h,v
29713 Working file: main/aistruct.h
29714 head: 2.0
29715 branch:
29716 description: Structs and constants for AI system.
29717 object.h depends on this.
29718 ai.h depends on object.h.
29719 Get it?
29720 ----------------------------
29721 revision 2.0
29722 date: 1995/02/27 11:30:19;  author: john;  state: Exp;
29723 New version 2.0, which has no anonymous unions, builds with
29724 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29725 ----------------------------
29726 revision 1.34
29727 date: 1995/01/25 13:50:46;  author: mike;  state: Exp;
29728 Robots make angry sounds.
29729 ----------------------------
29730 revision 1.33
29731 date: 1994/12/29 12:44:56;  author: rob;  state: Exp;
29732 Added new coop robot flag.
29733 ----------------------------
29734 revision 1.32
29735 date: 1994/12/20 20:41:54;  author: rob;  state: Exp;
29736 Added new ai flag for multiplayer robots.
29737 ----------------------------
29738 revision 1.31
29739 date: 1994/12/19 16:37:39;  author: rob;  state: Exp;
29740 Added a new flag for remote controlled objects.
29741 ----------------------------
29742 revision 1.30
29743 date: 1994/12/07 00:36:07;  author: mike;  state: Exp;
29744 fix phys_apply_rot for robots -- ai was bashing effect in next frame.
29745 ----------------------------
29746 revision 1.29
29747 date: 1994/12/02 22:06:28;  author: mike;  state: Exp;
29748 add fields to allow robots to make awareness sounds every so often, not every damn blasted frame
29749 ----------------------------
29750 revision 1.28
29751 date: 1994/11/04 17:18:35;  author: yuan;  state: Exp;
29752 Increased MAX_SEG_POINTS to 2500.
29753 ----------------------------
29754 revision 1.27
29755 date: 1994/10/17 21:19:22;  author: mike;  state: Exp;
29756 robot cloaking.
29757 ----------------------------
29758 revision 1.26
29759 date: 1994/10/12 21:28:38;  author: mike;  state: Exp;
29760 Add new ai mode: AIM_OPEN_DOOR.
29761 Add GOALSIDE to aip.
29762 ----------------------------
29763 revision 1.25
29764 date: 1994/09/25 23:41:08;  author: matt;  state: Exp;
29765 Changed the object load & save code to read/write the structure fields one
29766 at a time (rather than the whole structure at once).  This mean that the
29767 object structure can be changed without breaking the load/save functions.
29768 As a result of this change, the local_object data can be and has been 
29769 incorporated into the object array.  Also, timeleft is now a property 
29770 of all objects, and the object structure has been otherwise cleaned up.
29771 ----------------------------
29772 revision 1.24
29773 date: 1994/09/21 12:28:11;  author: mike;  state: Exp;
29774 Change AI behavior for when player cloaked
29775 ----------------------------
29776 revision 1.23
29777 date: 1994/09/19 21:43:00;  author: mike;  state: Exp;
29778 Add follow_path_start_seg and follow_path_end_seg to aistruct.h.
29779 ----------------------------
29780 revision 1.22
29781 date: 1994/09/18 18:06:14;  author: mike;  state: Exp;
29782 Add Last_uncloaked_time and Last_uncloaked_position variables.
29783 ----------------------------
29784 revision 1.21
29785 date: 1994/09/15 16:31:38;  author: mike;  state: Exp;
29786 Define GREEN_GUY
29787 Add previous_visibility to ai_local struct.
29788 ----------------------------
29789 revision 1.20
29790 date: 1994/09/12 19:12:45;  author: mike;  state: Exp;
29791 Change some bytes to ints in ai_local so I could set watchpoints.
29792 ----------------------------
29793 revision 1.19
29794 date: 1994/08/25 21:53:31;  author: mike;  state: Exp;
29795 Add behavior, taking place of what used to be mode.
29796 ----------------------------
29797 revision 1.18
29798 date: 1994/08/23 16:38:09;  author: mike;  state: Exp;
29799 rapidfire_count in ai_local.
29800 ----------------------------
29801 revision 1.17
29802 date: 1994/08/19 17:38:23;  author: mike;  state: Exp;
29803 *** empty log message ***
29804 ----------------------------
29805 revision 1.16
29806 date: 1994/08/17 22:18:58;  author: mike;  state: Exp;
29807 add time_since_processed to ai_local.
29808 ----------------------------
29809 revision 1.15
29810 date: 1994/08/10 19:52:25;  author: mike;  state: Exp;
29811 Add Overall_agitation.
29812 ----------------------------
29813 revision 1.14
29814 date: 1994/08/04 16:32:32;  author: mike;  state: Exp;
29815 Add time_player_seen.
29816 ----------------------------
29817 revision 1.13
29818 date: 1994/07/28 16:58:11;  author: mike;  state: Exp;
29819 Move constants from ai.c
29820 ----------------------------
29821 revision 1.12
29822 date: 1994/07/19 15:26:24;  author: mike;  state: Exp;
29823 New ai_static and ai_local structures.
29824 ----------------------------
29825 revision 1.11
29826 date: 1994/07/15 15:17:19;  author: matt;  state: Exp;
29827 Changes MAX_AI_FLAGS for better alignment
29828 =============================================================================
29829 RCS file: f:/miner/source/main/arcade.h,v
29830 Working file: main/arcade.h
29831 head: 2.0
29832 branch:
29833 description: Routines for arcade version.
29834 ----------------------------
29835 revision 2.0
29836 date: 1995/02/27 11:27:27;  author: john;  state: Exp;
29837 New version 2.0, which has no anonymous unions, builds with
29838 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29839 ----------------------------
29840 revision 1.4
29841 date: 1994/09/16 21:44:06;  author: matt;  state: Exp;
29842 Made arcade code based on #define
29843 ----------------------------
29844 revision 1.3
29845 date: 1994/09/16 16:14:52;  author: john;  state: Exp;
29846 Added acrade sequencing.
29847 ----------------------------
29848 revision 1.2
29849 date: 1994/09/16 11:51:01;  author: john;  state: Exp;
29850 Added first version of arcade joystick support;
29851 Also fixed some bugs in kconfig.c, such as reading non-present
29852 joysticks, which killed frame rate, and not reading key_down_time
29853 when in slide mode or bank mode.
29854 ----------------------------
29855 revision 1.1
29856 date: 1994/09/16 09:59:29;  author: john;  state: Exp;
29857 Initial revision
29858 =============================================================================
29859 RCS file: f:/miner/source/main/args.h,v
29860 Working file: main/args.h
29861 head: 2.0
29862 branch:
29863 description: Prototypes for accessing arguments.
29864 ----------------------------
29865 revision 2.0
29866 date: 1995/02/27 11:33:09;  author: john;  state: Exp;
29867 New version 2.0, which has no anonymous unions, builds with
29868 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29869 ----------------------------
29870 revision 1.4
29871 date: 1994/07/11 16:27:28;  author: matt;  state: Exp;
29872 Took out prototypes for netipx funcs
29873 ----------------------------
29874 revision 1.3
29875 date: 1994/05/11 19:45:34;  author: john;  state: Exp;
29876 *** empty log message ***
29877 ----------------------------
29878 revision 1.2
29879 date: 1994/05/09 17:02:55;  author: john;  state: Exp;
29880 Split command line parameters into arg.c and arg.h.
29881 Also added /dma, /port, /irq to digi.c
29882 ----------------------------
29883 revision 1.1
29884 date: 1994/05/09 16:47:49;  author: john;  state: Exp;
29885 Initial revision
29886 =============================================================================
29887 RCS file: f:/miner/source/main/automap.h,v
29888 Working file: main/automap.h
29889 head: 2.0
29890 branch:
29891 description: Prototypes for auto-map stuff.
29892 ----------------------------
29893 revision 2.0
29894 date: 1995/02/27 11:29:35;  author: john;  state: Exp;
29895 New version 2.0, which has no anonymous unions, builds with
29896 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29897 ----------------------------
29898 revision 1.5
29899 date: 1994/12/09 00:41:21;  author: mike;  state: Exp;
29900 fix hang in automap print screen
29901 ----------------------------
29902 revision 1.4
29903 date: 1994/07/14 11:25:29;  author: john;  state: Exp;
29904 Made control centers destroy better; made automap use Tab key.
29905 ----------------------------
29906 revision 1.3
29907 date: 1994/07/12 15:45:51;  author: john;  state: Exp;
29908 Made paritial map.
29909 ----------------------------
29910 revision 1.2
29911 date: 1994/07/07 18:35:05;  author: john;  state: Exp;
29912 First version of automap
29913 ----------------------------
29914 revision 1.1
29915 date: 1994/07/07 15:12:13;  author: john;  state: Exp;
29916 Initial revision
29917 =============================================================================
29918 RCS file: f:/miner/source/main/bm.h,v
29919 Working file: main/bm.h
29920 head: 2.0
29921 branch:
29922 description: Bitmap and Palette loading functions.
29923 ----------------------------
29924 revision 2.0
29925 date: 1995/02/27 11:32:59;  author: john;  state: Exp;
29926 New version 2.0, which has no anonymous unions, builds with
29927 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29928 ----------------------------
29929 revision 1.60
29930 date: 1994/12/06 13:24:58;  author: matt;  state: Exp;
29931 Made exit model come out of bitmaps.tbl
29932 ----------------------------
29933 revision 1.59
29934 date: 1994/11/10 14:02:48;  author: matt;  state: Exp;
29935 Hacked in support for player ships with different textures
29936 ----------------------------
29937 revision 1.58
29938 date: 1994/10/27 13:32:17;  author: john;  state: Exp;
29939 Made TmapList only be in if editor
29940 ----------------------------
29941 revision 1.57
29942 date: 1994/10/11 12:25:20;  author: matt;  state: Exp;
29943 Added "hot rocks" that create badass explosion when hit by weapons
29944 ----------------------------
29945 revision 1.56
29946 date: 1994/09/29 12:38:13;  author: matt;  state: Exp;
29947 Took out include of digi.h, saving hours of unneeded compiles
29948 ----------------------------
29949 revision 1.55
29950 date: 1994/09/25 00:39:51;  author: matt;  state: Exp;
29951 Added the ability to make eclips (monitors, fans) which can be blown up
29952 ----------------------------
29953 revision 1.54
29954 date: 1994/09/17 01:40:59;  author: matt;  state: Exp;
29955 Added status bar/sizable window mode, and in the process revamped the
29956 whole cockpit mode system.
29957 ----------------------------
29958 revision 1.53
29959 date: 1994/09/08 16:20:48;  author: matt;  state: Exp;
29960 Gave textures the ability to cause damage when scraped
29961 ----------------------------
29962 revision 1.52
29963 date: 1994/08/30 22:23:43;  author: matt;  state: Exp;
29964 Added cabability for player ship to have alternate model to use to
29965 create debris.
29966 ----------------------------
29967 revision 1.51
29968 date: 1994/08/26 15:35:57;  author: matt;  state: Exp;
29969 Made eclips usable on more than one object at a time
29970 ----------------------------
29971 revision 1.50
29972 date: 1994/08/23 16:59:51;  author: john;  state: Exp;
29973 Added 3 cockpuits
29974 ----------------------------
29975 revision 1.49
29976 date: 1994/08/19 20:09:43;  author: matt;  state: Exp;
29977 Added end-of-level cut scene with external scene
29978 ----------------------------
29979 revision 1.48
29980 date: 1994/08/12 22:20:45;  author: matt;  state: Exp;
29981 Generalized polygon objects (such as control center)
29982 ----------------------------
29983 revision 1.47
29984 date: 1994/08/09 16:04:21;  author: john;  state: Exp;
29985 Added network players to editor.
29986 ----------------------------
29987 revision 1.46
29988 date: 1994/08/09 09:01:31;  author: john;  state: Exp;
29989 Increase MAX_TEXTURES
29990 ----------------------------
29991 revision 1.45
29992 date: 1994/07/13 00:14:57;  author: matt;  state: Exp;
29993 Moved all (or nearly all) of the values that affect player movement to 
29994 bitmaps.tbl
29995 ----------------------------
29996 revision 1.44
29997 date: 1994/06/20 21:33:15;  author: matt;  state: Exp;
29998 Made bm.h not include sounds.h, to reduce dependencies
29999 ----------------------------
30000 revision 1.43
30001 date: 1994/06/15 11:55:58;  author: matt;  state: Exp;
30002 Added 3d model for player
30003 ----------------------------
30004 revision 1.42
30005 date: 1994/06/13 16:09:11;  author: adam;  state: Exp;
30006 increased max textures to 600
30007 ----------------------------
30008 revision 1.41
30009 date: 1994/06/06 15:38:58;  author: john;  state: Exp;
30010 Made fullscreen view be just another cockpit, but the "hole"
30011 in the cockpit is just bigger.
30012 ----------------------------
30013 revision 1.40
30014 date: 1994/05/26 21:08:59;  author: matt;  state: Exp;
30015 Moved robot stuff out of polygon model and into robot_info struct
30016 Made new file, robot.c, to deal with robots
30017 ----------------------------
30018 revision 1.39
30019 date: 1994/05/18 11:00:05;  author: mike;  state: Exp;
30020 Add robot_info stuff.
30021 ----------------------------
30022 revision 1.38
30023 date: 1994/05/17 14:44:56;  author: mike;  state: Exp;
30024 Get object type and id from ObjType and ObjId.
30025 ----------------------------
30026 revision 1.37
30027 date: 1994/05/17 12:04:45;  author: mike;  state: Exp;
30028 Deal with little known fact that polygon object != robot.
30029 ----------------------------
30030 revision 1.36
30031 date: 1994/05/16 16:17:35;  author: john;  state: Exp;
30032 Bunch of stuff on my Inferno Task list May16-23
30033 ----------------------------
30034 revision 1.35
30035 date: 1994/04/27 11:43:42;  author: john;  state: Exp;
30036 First version of sound! Yay!
30037 ----------------------------
30038 revision 1.34
30039 date: 1994/04/22 10:53:48;  author: john;  state: Exp;
30040 Increased MAX_TEXTURES to 500.
30041 ----------------------------
30042 revision 1.33
30043 date: 1994/04/01 11:15:05;  author: yuan;  state: Exp;
30044 Added multiple bitmap functionality to all objects...
30045 (hostages, powerups, lasers, etc.)  
30046 Hostages and powerups are implemented in the object system,
30047 just need to finish function call to "affect" player.
30048 ----------------------------
30049 revision 1.32
30050 date: 1994/03/25 17:30:37;  author: yuan;  state: Exp;
30051 Checking in hostage stuff.
30052 ----------------------------
30053 revision 1.31
30054 date: 1994/03/17 18:07:28;  author: yuan;  state: Exp;
30055 Removed switch code... Now we just have Walls, Triggers, and Links...
30056 ----------------------------
30057 revision 1.30
30058 date: 1994/03/15 17:03:51;  author: yuan;  state: Exp;
30059 Added Robot/object bitmap capability
30060 ----------------------------
30061 revision 1.29
30062 date: 1994/03/15 16:32:58;  author: yuan;  state: Exp;
30063 Cleaned up bm-loading code.
30064 (Fixed structures too)
30065 ----------------------------
30066 revision 1.28
30067 date: 1994/03/04 17:09:13;  author: yuan;  state: Exp;
30068 New door stuff.
30069 ----------------------------
30070 revision 1.27
30071 date: 1994/01/31 14:50:09;  author: yuan;  state: Exp;
30072 Added Robotex
30073 ----------------------------
30074 revision 1.26
30075 date: 1994/01/31 12:27:14;  author: yuan;  state: Exp;
30076 Added demo stuff (menu, etc.)
30077 ----------------------------
30078 revision 1.25
30079 date: 1994/01/25 17:11:43;  author: john;  state: Exp;
30080 New texmaped lasers.
30081 ----------------------------
30082 revision 1.24
30083 date: 1994/01/24 11:48:06;  author: yuan;  state: Exp;
30084 Lighting stuff
30085 ----------------------------
30086 revision 1.23
30087 date: 1994/01/22 13:40:15;  author: yuan;  state: Exp;
30088 Modified the bmd_bitmap structure a bit.
30089 (Saves some memory, and added reflection)
30090 ----------------------------
30091 revision 1.22
30092 date: 1994/01/11 10:58:38;  author: yuan;  state: Exp;
30093 Added effects system
30094 ----------------------------
30095 revision 1.21
30096 date: 1994/01/06 17:13:12;  author: john;  state: Exp;
30097 Added Video clip functionality
30098 ----------------------------
30099 revision 1.20
30100 date: 1993/12/21 20:00:15;  author: john;  state: Exp;
30101 moved selector stuff to grs_bitmap
30102 ----------------------------
30103 revision 1.19
30104 date: 1993/12/21 19:33:58;  author: john;  state: Exp;
30105 Added selector to bmd_bitmap.
30106 ----------------------------
30107 revision 1.18
30108 date: 1993/12/07 12:28:48;  author: john;  state: Exp;
30109 moved bmd_palette to gr_palette
30110 ----------------------------
30111 revision 1.17
30112 date: 1993/12/06 18:40:37;  author: matt;  state: Exp;
30113 Changed object loading & handling
30114 ----------------------------
30115 revision 1.16
30116 date: 1993/12/05 23:05:03;  author: matt;  state: Exp;
30117 Added include of gr.h
30118 ----------------------------
30119 revision 1.15
30120 date: 1993/12/03 17:38:04;  author: yuan;  state: Exp;
30121 Ooops. meant to say:
30122 Moved MAX variables to bm.c, Arrays left open.
30123 ----------------------------
30124 revision 1.14
30125 date: 1993/12/03 17:37:26;  author: yuan;  state: Exp;
30126 Added Asserts.
30127 ----------------------------
30128 revision 1.13
30129 date: 1993/12/02 17:22:54;  author: yuan;  state: Exp;
30130 New global var. Num_object_types
30131 ----------------------------
30132 revision 1.12
30133 date: 1993/12/02 16:34:39;  author: yuan;  state: Exp;
30134 Added fireball hack stuff.
30135 ----------------------------
30136 revision 1.11
30137 date: 1993/12/02 15:45:14;  author: yuan;  state: Exp;
30138 Added a buncha constants, variables, and function prototypes
30139 for the new bitmaps.tbl format.
30140 ----------------------------
30141 revision 1.10
30142 date: 1993/12/01 11:25:11;  author: yuan;  state: Exp;
30143 Changed MALLOC'd buffers for filename and type in
30144 the bmd_bitmap structure into arrays... Saves time
30145 at load up.
30146 ----------------------------
30147 revision 1.9
30148 date: 1993/12/01 00:28:09;  author: yuan;  state: Exp;
30149 New bitmap system structure.
30150 ----------------------------
30151 revision 1.8
30152 date: 1993/11/03 11:34:08;  author: john;  state: Exp;
30153 made it use bitmaps.tbl
30154 ----------------------------
30155 revision 1.7
30156 date: 1993/10/26 18:11:03;  author: john;  state: Exp;
30157 made all palette data be statically allocated
30158 ----------------------------
30159 revision 1.6
30160 date: 1993/10/19 12:17:51;  author: john;  state: Exp;
30161 *** empty log message ***
30162 ----------------------------
30163 revision 1.5
30164 date: 1993/10/16 20:02:41;  author: matt;  state: Exp;
30165 Changed name of backdrop bitmap file
30166 ----------------------------
30167 revision 1.4
30168 date: 1993/10/12 15:08:52;  author: matt;  state: Exp;
30169 Added a bunch of new textures
30170 ----------------------------
30171 revision 1.3
30172 date: 1993/10/12 12:30:41;  author: john;  state: Exp;
30173 *** empty log message ***
30174 ----------------------------
30175 revision 1.2
30176 date: 1993/10/12 11:27:58;  author: john;  state: Exp;
30177 added more bitmaps
30178 ----------------------------
30179 revision 1.1
30180 date: 1993/09/23 13:09:10;  author: john;  state: Exp;
30181 Initial revision
30182 =============================================================================
30183 RCS file: f:/miner/source/main/cdrom.h,v
30184 Working file: main/cdrom.h
30185 head: 1.2
30186 branch:
30187 description: Prototypes for cdrom.c
30188 ----------------------------
30189 revision 1.2
30190 date: 1995/03/20 15:01:12;  author: john;  state: Exp;
30191 Initial revision.
30192 ----------------------------
30193 revision 1.1
30194 date: 1995/03/14 17:01:37;  author: john;  state: Exp;
30195 Initial revision
30196 =============================================================================
30197 RCS file: f:/miner/source/main/editor/centers.h,v
30198 Working file: main/editor/centers.h
30199 head: 2.0
30200 branch:
30201 description: Center header
30202 ----------------------------
30203 revision 2.0
30204 date: 1995/02/27 11:35:02;  author: john;  state: Exp;
30205 Version 2.0! No anonymous unions, Watcom 10.0, with no need
30206 for bitmaps.tbl.
30207 ----------------------------
30208 revision 1.3
30209 date: 1994/08/02 12:16:27;  author: mike;  state: Exp;
30210 Prototype Center_names.
30211 ----------------------------
30212 revision 1.2
30213 date: 1994/07/21 19:35:20;  author: yuan;  state: Exp;
30214 Fixed #include problem
30215 ----------------------------
30216 revision 1.1
30217 date: 1994/07/21 19:11:36;  author: yuan;  state: Exp;
30218 Initial revision
30219 =============================================================================
30220 RCS file: f:/miner/source/cfile/cfile.h,v
30221 Working file: cfile/cfile.h
30222 head: 1.10
30223 branch:
30224 description: Prototypes for compressed file functions...
30225 ----------------------------
30226 revision 1.10
30227 date: 1995/03/13 15:16:47;  author: john;  state: Exp;
30228 Added alternate directory stuff.
30229 ----------------------------
30230 revision 1.9
30231 date: 1995/02/01 20:56:40;  author: john;  state: Exp;
30232 Added cfexist function
30233 ----------------------------
30234 revision 1.8
30235 date: 1995/01/21 17:53:41;  author: john;  state: Exp;
30236 Added alternate pig file thing.
30237 ----------------------------
30238 revision 1.7
30239 date: 1994/12/12 13:19:47;  author: john;  state: Exp;
30240 Made cfile work with fiellentth.
30241 ----------------------------
30242 revision 1.6
30243 date: 1994/12/08 19:02:52;  author: john;  state: Exp;
30244 Added cfgets.
30245 ----------------------------
30246 revision 1.5
30247 date: 1994/12/07 21:34:07;  author: john;  state: Exp;
30248 Stripped out compression stuff...
30249 ----------------------------
30250 revision 1.4
30251 date: 1994/07/13 00:16:53;  author: matt;  state: Exp;
30252 Added include
30253 ----------------------------
30254 revision 1.3
30255 date: 1994/02/17 17:36:19;  author: john;  state: Exp;
30256 Added CF_READ_MODE and CF_WRITE_MODE constants.
30257 ----------------------------
30258 revision 1.2
30259 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
30260 Crappy inbetween version
30261 ----------------------------
30262 revision 1.1
30263 date: 1994/02/15 10:54:23;  author: john;  state: Exp;
30264 Initial revision
30265 ----------------------------
30266 revision 1.1
30267 date: 1994/02/10 15:50:54;  author: john;  state: Exp;
30268 Initial revision
30269 =============================================================================
30270 RCS file: f:/miner/source/pslib/cflib.h,v
30271 Working file: pslib/cflib.h
30272 head: 1.13
30273 branch:
30274 description: Sample setup for RCS header
30275 ----------------------------
30276 revision 1.13
30277 date: 1994/02/15 12:53:06;  author: john;  state: Exp;
30278 Made numfiles stored in library be a short instead of char.
30279 ----------------------------
30280 revision 1.12
30281 date: 1993/12/08 17:06:34;  author: yuan;  state: Exp;
30282 Added CheckFile.
30283 ----------------------------
30284 revision 1.11
30285 date: 1993/10/28 15:16:54;  author: yuan;  state: Exp;
30286 Added WriteFile and AppendFile prototypes.
30287 ----------------------------
30288 revision 1.10
30289 date: 1993/10/28 14:41:13;  author: yuan;  state: Exp;
30290 New cfread functions added to cflib.
30291 ----------------------------
30292 revision 1.9
30293 date: 1993/10/27 12:41:58;  author: yuan;  state: Exp;
30294 Added prototype for ReadFileBuf.
30295 ----------------------------
30296 revision 1.8
30297 date: 1993/10/19 12:39:13;  author: matt;  state: Exp;
30298 Added '#ifndef' around body of file
30299 Added new error codes
30300 Included readfile.h
30301 ----------------------------
30302 revision 1.7
30303 date: 1993/09/29 17:53:38;  author: yuan;  state: Exp;
30304 lzw_compression and lzw_expand documented more clearly (hopefully)
30305 some error flags added.
30306 ----------------------------
30307 revision 1.6
30308 date: 1993/09/27 17:12:21;  author: yuan;  state: Exp;
30309 Documentation for using lib_init(), lib_close(), and LibReadFile() added.
30310 ----------------------------
30311 revision 1.5
30312 date: 1993/09/21 17:22:22;  author: yuan;  state: Exp;
30313 *** empty log message ***
30314 ----------------------------
30315 revision 1.4
30316 date: 1993/09/21 17:16:56;  author: yuan;  state: Exp;
30317 cleaning up
30318 ----------------------------
30319 revision 1.3
30320 date: 1993/09/21 17:07:01;  author: yuan;  state: Exp;
30321 broken and unbroken
30322 ----------------------------
30323 revision 1.2
30324 date: 1993/09/20 12:26:25;  author: yuan;  state: Exp;
30325 ReadFile, WriteFile, AppendFile removed to readfile.h
30326 ----------------------------
30327 revision 1.1
30328 date: 1993/09/14 13:15:30;  author: yuan;  state: Exp;
30329 Initial revision
30330 ----------------------------
30331 revision 1.3
30332 date: 1993/09/09 15:41:22;  author: yuan;  state: Exp;
30333 pslib.exe docs removed.
30334 ----------------------------
30335 revision 1.2
30336 date: 1993/09/09 12:40:03;  author: yuan;  state: Exp;
30337 compression routine prototypes from library.h added.
30338 ----------------------------
30339 revision 1.1
30340 date: 1993/09/08 16:16:57;  author: yuan;  state: Exp;
30341 Initial revision
30342 =============================================================================
30343 RCS file: f:/miner/source/main/cntrlcen.h,v
30344 Working file: main/cntrlcen.h
30345 head: 2.0
30346 branch:
30347 description: Header for cntrlcen.c
30348 ----------------------------
30349 revision 2.0
30350 date: 1995/02/27 11:30:40;  author: john;  state: Exp;
30351 New version 2.0, which has no anonymous unions, builds with
30352 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30353 ----------------------------
30354 revision 1.7
30355 date: 1995/02/01 16:34:14;  author: john;  state: Exp;
30356 Linted.
30357 ----------------------------
30358 revision 1.6
30359 date: 1995/01/03 20:19:14;  author: john;  state: Exp;
30360 Pretty good working version of game save.
30361 ----------------------------
30362 revision 1.5
30363 date: 1994/11/08 12:18:28;  author: mike;  state: Exp;
30364 small explosions on control center.
30365 ----------------------------
30366 revision 1.4
30367 date: 1994/11/02 18:00:12;  author: rob;  state: Exp;
30368 Added extern for Gun_pos array for network hooks.
30369 ----------------------------
30370 revision 1.3
30371 date: 1994/10/20 09:47:37;  author: mike;  state: Exp;
30372 *** empty log message ***
30373 ----------------------------
30374 revision 1.2
30375 date: 1994/10/17 21:35:10;  author: matt;  state: Exp;
30376 Added support for new Control Center/Main Reactor
30377 ----------------------------
30378 revision 1.1
30379 date: 1994/10/17 20:24:28;  author: matt;  state: Exp;
30380 Initial revision
30381 =============================================================================
30382 RCS file: f:/miner/source/main/coindev.h,v
30383 Working file: main/coindev.h
30384 head: 2.0
30385 branch:
30386 description: Routines to read the coin counter.
30387 ----------------------------
30388 revision 2.0
30389 date: 1995/02/27 11:30:38;  author: john;  state: Exp;
30390 New version 2.0, which has no anonymous unions, builds with
30391 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30392 ----------------------------
30393 revision 1.2
30394 date: 1994/09/16 16:15:10;  author: john;  state: Exp;
30395 Added acrade sequencing.
30396 ----------------------------
30397 revision 1.1
30398 date: 1994/09/16 12:56:24;  author: john;  state: Exp;
30399 Initial revision
30400 =============================================================================
30401 RCS file: f:/miner/source/main/collide.h,v
30402 Working file: main/collide.h
30403 head: 2.0
30404 branch:
30405 description: .
30406 ----------------------------
30407 revision 2.0
30408 date: 1995/02/27 11:28:59;  author: john;  state: Exp;
30409 New version 2.0, which has no anonymous unions, builds with
30410 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30411 ----------------------------
30412 revision 1.23
30413 date: 1995/01/26 22:11:47;  author: mike;  state: Exp;
30414 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
30415 ----------------------------
30416 revision 1.22
30417 date: 1994/12/21 19:03:24;  author: rob;  state: Exp;
30418 Fixing score accounting for multiplayer robots
30419 ----------------------------
30420 revision 1.21
30421 date: 1994/12/21 11:34:56;  author: mike;  state: Exp;
30422 make control center take badass damage.
30423 ----------------------------
30424 revision 1.20
30425 date: 1994/10/29 16:53:16;  author: allender;  state: Exp;
30426 added check_effect_blowup for demo recording to record monitor explosions
30427 ----------------------------
30428 revision 1.19
30429 date: 1994/10/09 13:46:48;  author: mike;  state: Exp;
30430 Make public collide_player_and_powerup.
30431 ----------------------------
30432 revision 1.18
30433 date: 1994/10/05 14:54:29;  author: rob;  state: Exp;
30434 Added serial game support in control center sequence..
30435 ----------------------------
30436 revision 1.17
30437 date: 1994/09/15 16:32:12;  author: mike;  state: Exp;
30438 Prototype collide_player_and_nasty_robot.
30439 ----------------------------
30440 revision 1.16
30441 date: 1994/09/11 15:49:04;  author: mike;  state: Exp;
30442 Prototype for maybe_detonate_weapon.
30443 ----------------------------
30444 revision 1.15
30445 date: 1994/09/09 14:20:07;  author: matt;  state: Exp;
30446 Added prototype for scrape function
30447 ----------------------------
30448 revision 1.14
30449 date: 1994/09/02 14:00:44;  author: matt;  state: Exp;
30450 Simplified explode_object() & mutliple-stage explosions
30451 ----------------------------
30452 revision 1.13
30453 date: 1994/08/18 10:47:35;  author: john;  state: Exp;
30454 Cleaned up game sequencing and player death stuff
30455 in preparation for making the player explode into
30456 pieces when dead.
30457 ----------------------------
30458 revision 1.12
30459 date: 1994/08/17 16:50:08;  author: john;  state: Exp;
30460 Added damaging fireballs, missiles.
30461 ----------------------------
30462 revision 1.11
30463 date: 1994/08/03 16:45:31;  author: mike;  state: Exp;
30464 Prototype a function.
30465 ----------------------------
30466 revision 1.10
30467 date: 1994/08/03 15:17:41;  author: mike;  state: Exp;
30468 make matcen whack on you if it's ready to make a robot.
30469 ----------------------------
30470 revision 1.9
30471 date: 1994/07/22 12:08:03;  author: mike;  state: Exp;
30472 Make robot hit vclip and sound weapon-based until robot dies, then robot-based.
30473 ----------------------------
30474 revision 1.8
30475 date: 1994/07/09 17:36:31;  author: mike;  state: Exp;
30476 Prototype apply_damage_to_robot.
30477 ----------------------------
30478 revision 1.7
30479 date: 1994/07/09 13:20:36;  author: mike;  state: Exp;
30480 Prototype apply_damage_to_player.
30481 ----------------------------
30482 revision 1.6
30483 date: 1994/06/20 23:35:52;  author: john;  state: Exp;
30484 Bunch of stuff.
30485 ----------------------------
30486 revision 1.5
30487 date: 1994/06/17 18:04:03;  author: yuan;  state: Exp;
30488 Added Immaterialization...
30489 Fixed Invulnerability to allow being hit.
30490 ----------------------------
30491 revision 1.4
30492 date: 1994/05/13 20:28:02;  author: john;  state: Exp;
30493 Version II of John's new object code.
30494 ----------------------------
30495 revision 1.3
30496 date: 1994/05/13 12:20:35;  author: john;  state: Exp;
30497 Fixed some potential problems with code using global variables
30498 that are set in fvi. 
30499 ----------------------------
30500 revision 1.2
30501 date: 1994/05/12 23:20:32;  author: john;  state: Exp;
30502 Moved all object collision handling into collide.c.
30503 ----------------------------
30504 revision 1.1
30505 date: 1994/05/12 20:39:09;  author: john;  state: Exp;
30506 Initial revision
30507 =============================================================================
30508 RCS file: f:/miner/source/main/compbit.h,v
30509 Working file: main/compbit.h
30510 head: 2.0
30511 branch:
30512 description: Contains encryption key for bitmaps.tbl
30513 ----------------------------
30514 revision 2.0
30515 date: 1995/02/27 11:28:46;  author: john;  state: Exp;
30516 New version 2.0, which has no anonymous unions, builds with
30517 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30518 ----------------------------
30519 revision 1.3
30520 date: 1994/12/05 15:10:28;  author: allender;  state: Exp;
30521 changed extern prototype definition
30522 ----------------------------
30523 revision 1.2
30524 date: 1994/10/19 15:43:33;  author: allender;  state: Exp;
30525 header file which contains the xor value which is used when encrypting
30526 bitmaps.tbl
30527 ----------------------------
30528 revision 1.1
30529 date: 1994/10/19 13:22:19;  author: allender;  state: Exp;
30530 Initial revision
30531 =============================================================================
30532 RCS file: f:/miner/source/main/config.h,v
30533 Working file: main/config.h
30534 head: 2.0
30535 branch:
30536 description: prototype definitions for descent.cfg reading/writing
30537 ----------------------------
30538 revision 2.0
30539 date: 1995/02/27 11:32:48;  author: john;  state: Exp;
30540 New version 2.0, which has no anonymous unions, builds with
30541 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30542 ----------------------------
30543 revision 1.4
30544 date: 1995/02/11 16:20:06;  author: john;  state: Exp;
30545 Added code to make the default mission be the one last played.
30546 ----------------------------
30547 revision 1.3
30548 date: 1994/12/08 10:01:41;  author: john;  state: Exp;
30549 Changed the way the player callsign stuff works.
30550 ----------------------------
30551 revision 1.2
30552 date: 1994/11/14 17:53:17;  author: allender;  state: Exp;
30553 extern definitions for ReadConfigFile and WriteConfigFile
30554 ----------------------------
30555 revision 1.1
30556 date: 1994/11/14 16:56:17;  author: allender;  state: Exp;
30557 Initial revision
30558 =============================================================================
30559 RCS file: f:/miner/source/main/controls.h,v
30560 Working file: main/controls.h
30561 head: 2.0
30562 branch:
30563 description: Header for controls.c
30564 ----------------------------
30565 revision 2.0
30566 date: 1995/02/27 11:27:17;  author: john;  state: Exp;
30567 New version 2.0, which has no anonymous unions, builds with
30568 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30569 ----------------------------
30570 revision 1.4
30571 date: 1994/07/21 18:15:33;  author: matt;  state: Exp;
30572 Ripped out a bunch of unused stuff
30573 ----------------------------
30574 revision 1.3
30575 date: 1994/07/15 09:32:08;  author: john;  state: Exp;
30576 Changes player movement.
30577 ----------------------------
30578 revision 1.2
30579 date: 1994/06/30 19:02:22;  author: matt;  state: Exp;
30580 Moved flying controls code from physics.c to controls.c
30581 ----------------------------
30582 revision 1.1
30583 date: 1994/06/30 18:41:36;  author: matt;  state: Exp;
30584 Initial revision
30585 =============================================================================
30586 RCS file: f:/miner/source/main/credits.h,v
30587 Working file: main/credits.h
30588 head: 2.0
30589 branch:
30590 description: Prototypes for the credit sequence.
30591 ----------------------------
30592 revision 2.0
30593 date: 1995/02/27 11:32:30;  author: john;  state: Exp;
30594 New version 2.0, which has no anonymous unions, builds with
30595 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30596 ----------------------------
30597 revision 1.2
30598 date: 1994/11/03 20:17:40;  author: john;  state: Exp;
30599 Added initial code for showing credits.
30600 ----------------------------
30601 revision 1.1
30602 date: 1994/11/03 20:09:19;  author: john;  state: Exp;
30603 Initial revision
30604 =============================================================================
30605 RCS file: f:/miner/source/main/editor/dcflib.h,v
30606 Working file: main/editor/dcflib.h
30607 head: 2.0
30608 branch:
30609 description: temporary demo version for mine.c
30610 ----------------------------
30611 revision 2.0
30612 date: 1995/02/27 11:34:25;  author: john;  state: Exp;
30613 Version 2.0! No anonymous unions, Watcom 10.0, with no need
30614 for bitmaps.tbl.
30615 ----------------------------
30616 revision 1.3
30617 date: 1994/02/14 20:14:27;  author: john;  state: Exp;
30618 First version working with new cfile stuff.
30619 ----------------------------
30620 revision 1.2
30621 date: 1994/02/08 13:38:21;  author: yuan;  state: Exp;
30622 mine loading functions converted.
30623 ----------------------------
30624 revision 1.1
30625 date: 1994/02/08 13:23:14;  author: yuan;  state: Exp;
30626 Initial revision
30627 =============================================================================
30628 RCS file: f:/miner/source/main/demo.h,v
30629 Working file: main/demo.h
30630 head: 2.0
30631 branch:
30632 description: Demo constants.
30633 ----------------------------
30634 revision 2.0
30635 date: 1995/02/27 11:27:03;  author: john;  state: Exp;
30636 New version 2.0, which has no anonymous unions, builds with
30637 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30638 ----------------------------
30639 revision 1.5
30640 date: 1994/05/14 17:16:10;  author: matt;  state: Exp;
30641 Got rid of externs in source (non-header) files
30642 ----------------------------
30643 revision 1.4
30644 date: 1994/02/02 09:40:49;  author: mike;  state: Exp;
30645 prototypes, change MAX_DEMO_RECORDS.
30646 ----------------------------
30647 revision 1.3
30648 date: 1994/02/01 15:15:02;  author: mike;  state: Exp;
30649 Self-running demo code.
30650 ----------------------------
30651 revision 1.2
30652 date: 1994/02/01 11:51:49;  author: mike;  state: Exp;
30653 demo functions.
30654 ----------------------------
30655 revision 1.1
30656 date: 1994/01/31 19:15:05;  author: mike;  state: Exp;
30657 Initial revision
30658 =============================================================================
30659 RCS file: f:/miner/source/main/desc_id.h,v
30660 Working file: main/desc_id.h
30661 head: 2.0
30662 branch:
30663 description: Header file which contains string for id and timestamp information
30664 ----------------------------
30665 revision 2.0
30666 date: 1995/02/27 11:29:38;  author: john;  state: Exp;
30667 New version 2.0, which has no anonymous unions, builds with
30668 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30669 ----------------------------
30670 revision 1.3
30671 date: 1994/10/19 09:52:57;  author: allender;  state: Exp;
30672 Added variable for bogus error number return when game exits
30673 ----------------------------
30674 revision 1.2
30675 date: 1994/10/18 16:43:52;  author: allender;  state: Exp;
30676 Added constants for id and time stamping
30677 ----------------------------
30678 revision 1.1
30679 date: 1994/10/17 09:56:47;  author: allender;  state: Exp;
30680 Initial revision
30681 =============================================================================
30682 RCS file: f:/miner/source/main/digi.h,v
30683 Working file: main/digi.h
30684 head: 2.0
30685 branch:
30686 description: Include file for sound hardware.
30687 ----------------------------
30688 revision 2.0
30689 date: 1995/02/27 11:28:40;  author: john;  state: Exp;
30690 New version 2.0, which has no anonymous unions, builds with
30691 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30692 ----------------------------
30693 revision 1.29
30694 date: 1995/02/11 12:42:00;  author: john;  state: Exp;
30695 Added new song method, with FM bank switching..
30696 ----------------------------
30697 revision 1.28
30698 date: 1995/02/03 17:08:26;  author: john;  state: Exp;
30699 Changed sound stuff to allow low memory usage.
30700 Also, changed so that Sounds isn't an array of digi_sounds, it
30701 is a ubyte pointing into GameSounds, this way the digi.c code that
30702 locks sounds won't accidentally unlock a sound that is already playing, but
30703 since it's Sounds[soundno] is different, it would erroneously be unlocked.
30704 ----------------------------
30705 revision 1.27
30706 date: 1995/02/01 22:20:31;  author: john;  state: Exp;
30707 Added digi_is_sound_playing.
30708 ----------------------------
30709 revision 1.26
30710 date: 1994/12/20 18:03:51;  author: john;  state: Exp;
30711 Added loop midi flag.
30712 ----------------------------
30713 revision 1.25
30714 date: 1994/12/13 00:46:14;  author: john;  state: Exp;
30715 Split digi and midi volume into 2 seperate functions.
30716 ----------------------------
30717 revision 1.24
30718 date: 1994/12/10 20:34:53;  author: john;  state: Exp;
30719 Added digi_kill_sound_linked_to_object.
30720 ----------------------------
30721 revision 1.23
30722 date: 1994/12/10 15:59:39;  author: mike;  state: Exp;
30723 Fixed bug.
30724 ----------------------------
30725 revision 1.22
30726 date: 1994/12/10 15:44:35;  author: john;  state: Exp;
30727 Added max_distance passing for sound objects.
30728 ----------------------------
30729 revision 1.21
30730 date: 1994/12/05 12:17:40;  author: john;  state: Exp;
30731 Added code that locks/unlocks digital sounds on demand.
30732 ----------------------------
30733 revision 1.20
30734 date: 1994/11/28 18:34:57;  author: john;  state: Exp;
30735 Made the digi_max_channels cut of an old sound instead of
30736 not playing a new sound.
30737 ----------------------------
30738 revision 1.19
30739 date: 1994/11/14 17:53:56;  author: allender;  state: Exp;
30740 made some digi variables extern
30741 ----------------------------
30742 revision 1.18
30743 date: 1994/10/28 14:42:58;  author: john;  state: Exp;
30744 Added sound volumes to all sound calls.
30745 ----------------------------
30746 revision 1.17
30747 date: 1994/10/11 15:25:37;  author: john;  state: Exp;
30748 Added new function to play a sound once...
30749 ----------------------------
30750 revision 1.16
30751 date: 1994/10/03 20:51:44;  author: john;  state: Exp;
30752 Started added pause sound function; for the network I changed to 
30753 packet structure a bit; never tested, though.
30754 ----------------------------
30755 revision 1.15
30756 date: 1994/10/03 13:09:43;  author: john;  state: Exp;
30757 Added Pause function, but never tested it yet.
30758 ----------------------------
30759 revision 1.14
30760 date: 1994/09/30 10:09:24;  author: john;  state: Exp;
30761 Changed sound stuff... made it so the reseting card doesn't hang, 
30762 made volume change only if sound is installed.
30763 ----------------------------
30764 revision 1.13
30765 date: 1994/09/29 21:13:43;  author: john;  state: Exp;
30766 Added Master volumes for digi and midi. Also took out panning,
30767 because it doesn't work with MasterVolume stuff. 
30768 ----------------------------
30769 revision 1.12
30770 date: 1994/09/29 12:42:34;  author: john;  state: Exp;
30771 Added sidenum to keep track of sound pos. Made sound functions
30772 not do anything if nosound. Made sounds_init delete currently
30773 playing sounds.
30774 ----------------------------
30775 revision 1.11
30776 date: 1994/09/29 12:23:42;  author: john;  state: Exp;
30777 Added digi_kill_sound_linked_to_segment function.
30778 ----------------------------
30779 revision 1.10
30780 date: 1994/09/29 11:59:04;  author: john;  state: Exp;
30781 Added digi_kill_sound
30782 ----------------------------
30783 revision 1.9
30784 date: 1994/09/29 10:37:38;  author: john;  state: Exp;
30785 Added sound objects that dynamicaly change volume,pan.
30786 ----------------------------
30787 revision 1.8
30788 date: 1994/09/28 16:18:37;  author: john;  state: Exp;
30789 Added capability to play midi song.
30790 ----------------------------
30791 revision 1.7
30792 date: 1994/06/17 18:01:41;  author: john;  state: Exp;
30793 A bunch of new stuff by John
30794 ----------------------------
30795 revision 1.6
30796 date: 1994/06/15 19:00:58;  author: john;  state: Exp;
30797 Added the capability to make 3d sounds play just once for the
30798 laser hit wall effects.
30799 ----------------------------
30800 revision 1.5
30801 date: 1994/06/07 10:54:30;  author: john;  state: Exp;
30802 Made key S reinit the sound system.
30803 ----------------------------
30804 revision 1.4
30805 date: 1994/05/09 21:11:39;  author: john;  state: Exp;
30806 Sound changes; pass index instead of pointer to digi routines.
30807 Made laser sound cut off the last laser sound.
30808 ----------------------------
30809 revision 1.3
30810 date: 1994/04/27 11:44:25;  author: john;  state: Exp;
30811 First version of sound! Yay!
30812 ----------------------------
30813 revision 1.2
30814 date: 1994/04/20 21:58:50;  author: john;  state: Exp;
30815 First version of sound stuff... hopefully everything
30816 is commented out because it hangs..
30817 ----------------------------
30818 revision 1.1
30819 date: 1994/04/15 14:25:02;  author: john;  state: Exp;
30820 Initial revision
30821 =============================================================================
30822 RCS file: f:/miner/source/main/digicomp.h,v
30823 Working file: main/digicomp.h
30824 head: 2.0
30825 branch:
30826 description: prototypes for digicomp.c
30827 ----------------------------
30828 revision 2.0
30829 date: 1995/02/27 11:27:54;  author: john;  state: Exp;
30830 New version 2.0, which has no anonymous unions, builds with
30831 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
30832 ----------------------------
30833 revision 1.2
30834 date: 1994/12/07 18:42:30;  author: john;  state: Exp;
30835 Initial, unused version..
30836 ----------------------------
30837 revision 1.1
30838 date: 1994/12/05 09:37:23;  author: john;  state: Exp;
30839 Initial revision
30840 =============================================================================
30841 RCS file: f:/miner/source/div/div0.h,v
30842 Working file: div/div0.h
30843 head: 1.2
30844 branch:
30845 description: Header file for divide by zero handler
30846 ----------------------------
30847 revision 1.2
30848 date: 1994/01/14 15:34:25;  author: john;  state: Exp;
30849 Added counters for number of overflows.
30850 ----------------------------
30851 revision 1.1
30852 date: 1993/09/17 12:37:58;  author: john;  state: Exp;
30853 Initial revision
30854 =============================================================================
30855 RCS file: f:/miner/source/bios/dpmi.h,v
30856 Working file: bios/dpmi.h
30857 head: 1.9
30858 branch:
30859 description: Prototypes for DPMI services.
30860 ----------------------------
30861 revision 1.9
30862 date: 1995/01/14 19:20:14;  author: john;  state: Exp;
30863 Added function to set a selector's base address.
30864 ----------------------------
30865 revision 1.8
30866 date: 1994/11/28 20:22:03;  author: john;  state: Exp;
30867 Added some variables that return the amount of available 
30868 memory.
30869 ----------------------------
30870 revision 1.7
30871 date: 1994/11/15 18:26:38;  author: john;  state: Exp;
30872 Added verbose flag.
30873 ----------------------------
30874 revision 1.6
30875 date: 1994/11/07 11:35:05;  author: john;  state: Exp;
30876 Added prototype for real_free
30877 ----------------------------
30878 revision 1.5
30879 date: 1994/10/27 19:54:48;  author: john;  state: Exp;
30880 Added unlock region function,.
30881 ----------------------------
30882 revision 1.4
30883 date: 1994/09/27 18:27:56;  author: john;  state: Exp;
30884 Added pragma to make inp,outp,enable,disable intrinsic
30885 ----------------------------
30886 revision 1.3
30887 date: 1994/09/27 11:54:45;  author: john;  state: Exp;
30888 Added DPMI init function.
30889 ----------------------------
30890 revision 1.2
30891 date: 1994/08/24 18:53:51;  author: john;  state: Exp;
30892 Made Cyberman read like normal mouse; added dpmi module; moved
30893 mouse from assembly to c. Made mouse buttons return time_down.
30894 ----------------------------
30895 revision 1.1
30896 date: 1994/08/24 10:22:48;  author: john;  state: Exp;
30897 Initial revision
30898 =============================================================================
30899 RCS file: f:/miner/source/main/editor/editor.h,v
30900 Working file: main/editor/editor.h
30901 head: 2.0
30902 branch:
30903 description: Header for editor functions, data strcutures, etc.
30904 ----------------------------
30905 revision 2.0
30906 date: 1995/02/27 11:34:47;  author: john;  state: Exp;
30907 Version 2.0! No anonymous unions, Watcom 10.0, with no need
30908 for bitmaps.tbl.
30909 ----------------------------
30910 revision 1.113
30911 date: 1994/11/17 14:47:55;  author: mike;  state: Exp;
30912 validation functions moved from editor to game.
30913 ----------------------------
30914 revision 1.112
30915 date: 1994/08/03 10:30:51;  author: mike;  state: Exp;
30916 Prototype Stretch_scale_x and Stretch_scale_y.
30917 ----------------------------
30918 revision 1.111
30919 date: 1994/08/02 14:18:23;  author: mike;  state: Exp;
30920 Clean up dialog boxes.
30921 ----------------------------
30922 revision 1.110
30923 date: 1994/07/28 16:59:45;  author: mike;  state: Exp;
30924 objects containing objects.
30925 ----------------------------
30926 revision 1.109
30927 date: 1994/07/21 12:45:18;  author: mike;  state: Exp;
30928 Add Editor_time_of_day, prototype render_3d_in_big_window, move_object_to_mouse_click.
30929 ----------------------------
30930 revision 1.108
30931 date: 1994/07/20 16:43:33;  author: mike;  state: Exp;
30932 Move a bunch of things here so eobject can access variables in med
30933 ----------------------------
30934 revision 1.107
30935 date: 1994/07/06 16:36:43;  author: mike;  state: Exp;
30936 Prototype draw_world_from_game.
30937 ----------------------------
30938 revision 1.106
30939 date: 1994/06/24 17:04:26;  author: john;  state: Exp;
30940 *** empty log message ***
30941 ----------------------------
30942 revision 1.105
30943 date: 1994/06/08 18:13:53;  author: mike;  state: Exp;
30944 Add prototype for med_validate_segment_all
30945 ----------------------------
30946 revision 1.104
30947 date: 1994/05/23 14:47:59;  author: mike;  state: Exp;
30948 Make current segment be add segment.
30949 ----------------------------
30950 revision 1.103
30951 date: 1994/05/19 23:34:46;  author: mike;  state: Exp;
30952 Change VMAG to be compatible with new uv coordinates in range 0..1.0.
30953 ----------------------------
30954 revision 1.102
30955 date: 1994/05/19 12:10:12;  author: matt;  state: Exp;
30956 Use new vecmat macros and globals
30957 ----------------------------
30958 revision 1.101
30959 date: 1994/05/14 18:00:34;  author: matt;  state: Exp;
30960 Got rid of externs in source (non-header) files
30961 ----------------------------
30962 revision 1.100
30963 date: 1994/05/14 17:18:12;  author: matt;  state: Exp;
30964 Got rid of externs in source (non-header) files
30965 ----------------------------
30966 revision 1.99
30967 date: 1994/05/09 23:33:20;  author: mike;  state: Exp;
30968 Current_group, make med_combine_duplicate_vertices take vlp parameter.
30969 Change med_find_closest_threshold_segment_side take threshold as a parameter.
30970 ----------------------------
30971 revision 1.98
30972 date: 1994/05/06 14:39:46;  author: mike;  state: Exp;
30973 Prototype place_object.
30974 ----------------------------
30975 revision 1.97
30976 date: 1994/05/04 19:16:12;  author: mike;  state: Exp;
30977 Add prototype for Degenerate_segment_found.
30978 ----------------------------
30979 revision 1.96
30980 date: 1994/05/04 13:07:34;  author: matt;  state: Exp;
30981 Moved a bunch of color constants to meddraw.c, which was the only file
30982 that used them.
30983 ----------------------------
30984 revision 1.95
30985 date: 1994/05/03 11:06:08;  author: mike;  state: Exp;
30986 Change VMAG, add constants for SEGSIZEMODE_FREE, etc.
30987 ----------------------------
30988 revision 1.94
30989 date: 1994/05/02 17:56:29;  author: yuan;  state: Exp;
30990 Changed undo_status into array rather than malloced pointers.
30991 ----------------------------
30992 revision 1.93
30993 date: 1994/04/19 18:29:37;  author: matt;  state: Exp;
30994 In wire-frame editor window, draw objects as "spheres"
30995 ----------------------------
30996 revision 1.92
30997 date: 1994/04/13 13:25:12;  author: mike;  state: Exp;
30998 Add constant definitions for each keypad.
30999 ----------------------------
31000 revision 1.91
31001 date: 1994/04/01 11:17:08;  author: yuan;  state: Exp;
31002 Added objects to objpage. Added buttons for easier tmap scrolling.
31003 Objects are selected fully from objpage and add object menu or pad.
31004 ----------------------------
31005 revision 1.90
31006 date: 1994/03/21 16:54:16;  author: yuan;  state: Exp;
31007 Fixed bogus group generated by segment rotation.
31008 ----------------------------
31009 revision 1.89
31010 date: 1994/02/16 13:49:07;  author: mike;  state: Exp;
31011 enable editor to compile out.
31012 ----------------------------
31013 revision 1.88
31014 date: 1994/02/10 16:04:57;  author: mike;  state: Exp;
31015 separate editor based on EDITOR flag.
31016 ----------------------------
31017 revision 1.87
31018 date: 1994/02/08 12:41:29;  author: yuan;  state: Exp;
31019 Added med_load_game function prototype
31020 ----------------------------
31021 revision 1.86
31022 date: 1994/01/14 12:16:04;  author: yuan;  state: Exp;
31023 Fixed function prototype for med_find_closest_threshold_segment_side.
31024 ----------------------------
31025 revision 1.85
31026 date: 1994/01/14 11:58:55;  author: yuan;  state: Exp;
31027 New function in build menu. 
31028 "Punch" through walls to force a joint formation with
31029 closest segment:side, if the closest segment:side allows
31030 a connection.
31031 ----------------------------
31032 revision 1.84
31033 date: 1994/01/06 12:57:47;  author: mike;  state: Exp;
31034 Fix bug in assigning texture maps and uv coordinates to removable wall.
31035 ----------------------------
31036 revision 1.83
31037 date: 1994/01/05 17:51:04;  author: mike;  state: Exp;
31038 Add prototypes for create_removable_wall and remove_removable_wall
31039 ----------------------------
31040 revision 1.82
31041 date: 1994/01/05 09:59:09;  author: yuan;  state: Exp;
31042 Added med_load_pmine function prototype
31043 ----------------------------
31044 revision 1.81
31045 date: 1993/12/16 14:00:46;  author: mike;  state: Exp;
31046 Add Curvert and Curedge.
31047 ----------------------------
31048 revision 1.80
31049 date: 1993/12/14 18:33:07;  author: yuan;  state: Exp;
31050 Added prototype for timed autosave.
31051 ----------------------------
31052 revision 1.79
31053 date: 1993/12/10 14:48:48;  author: mike;  state: Exp;
31054 Kill orthogonal views.
31055 ----------------------------
31056 revision 1.78
31057 date: 1993/12/09 16:27:16;  author: yuan;  state: Exp;
31058 Added toggle for autosave
31059 ----------------------------
31060 revision 1.77
31061 date: 1993/12/09 14:02:52;  author: mike;  state: Exp;
31062 Add prototype for med_combine_duplicate_vertices.
31063 ----------------------------
31064 revision 1.76
31065 date: 1993/12/08 10:59:52;  author: mike;  state: Exp;
31066 Add DisplayCurrentRobotType and Cur_object_index.
31067 ----------------------------
31068 revision 1.75
31069 date: 1993/12/06 18:43:49;  author: matt;  state: Exp;
31070 Changed object loading & handling
31071 ----------------------------
31072 revision 1.74
31073 date: 1993/12/05 22:50:49;  author: matt;  state: Exp;
31074 Reworked include files in an attempt to cut down on build times
31075 ----------------------------
31076 revision 1.73
31077 date: 1993/12/02 17:51:31;  author: john;  state: Exp;
31078 Changed my variable to match Mike's
31079 ----------------------------
31080 revision 1.72
31081 date: 1993/12/02 17:36:26;  author: john;  state: Exp;
31082 added cur_obj_type
31083 ----------------------------
31084 revision 1.71
31085 date: 1993/11/30 17:06:33;  author: mike;  state: Exp;
31086 Add prototype for med_set_vertex.
31087 ----------------------------
31088 revision 1.70
31089 date: 1993/11/29 19:47:11;  author: matt;  state: Exp;
31090 Changed how coordinate axes draw routine gets vertices
31091 Added functions alloc_vert() & free_vert()
31092 =============================================================================
31093 RCS file: f:/miner/source/2d/effect2d.h,v
31094 Working file: 2d/effect2d.h
31095 head: 1.2
31096 branch:
31097 description: .
31098 ----------------------------
31099 revision 1.2
31100 date: 1994/02/01 13:18:47;  author: john;  state: Exp;
31101 *** empty log message ***
31102 ----------------------------
31103 revision 1.1
31104 date: 1994/01/28 11:59:37;  author: john;  state: Exp;
31105 Initial revision
31106 =============================================================================
31107 RCS file: f:/miner/source/2d/effects.h,v
31108 Working file: 2d/effects.h
31109 head: 1.2
31110 branch:
31111 description: Special effects stuff.
31112 ----------------------------
31113 revision 1.2
31114 date: 1993/10/26 13:17:58;  author: john;  state: Exp;
31115 *** empty log message ***
31116 ----------------------------
31117 revision 1.1
31118 date: 1993/10/25 14:56:02;  author: john;  state: Exp;
31119 Initial revision
31120 =============================================================================
31121 RCS file: f:/miner/source/main/editor/ehostage.h,v
31122 Working file: main/editor/ehostage.h
31123 head: 2.0
31124 branch:
31125 description: .
31126 ----------------------------
31127 revision 2.0
31128 date: 1995/02/27 11:35:13;  author: john;  state: Exp;
31129 Version 2.0! No anonymous unions, Watcom 10.0, with no need
31130 for bitmaps.tbl.
31131 ----------------------------
31132 revision 1.2
31133 date: 1994/07/01 17:57:14;  author: john;  state: Exp;
31134 First version of not-working hostage system
31135 ----------------------------
31136 revision 1.1
31137 date: 1994/07/01 14:24:41;  author: john;  state: Exp;
31138 Initial revision
31139 =============================================================================
31140 RCS file: f:/miner/source/main/endlevel.h,v
31141 Working file: main/endlevel.h
31142 head: 2.0
31143 branch:
31144 description: Header for newfile.c
31145 ----------------------------
31146 revision 2.0
31147 date: 1995/02/27 11:31:37;  author: john;  state: Exp;
31148 New version 2.0, which has no anonymous unions, builds with
31149 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31150 ----------------------------
31151 revision 1.5
31152 date: 1994/12/06 13:24:55;  author: matt;  state: Exp;
31153 Made exit model come out of bitmaps.tbl
31154 ----------------------------
31155 revision 1.4
31156 date: 1994/11/19 12:41:35;  author: matt;  state: Exp;
31157 Added system to read endlevel data from file, and to make it work
31158 with any exit tunnel.
31159 ----------------------------
31160 revision 1.3
31161 date: 1994/10/30 20:09:20;  author: matt;  state: Exp;
31162 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
31163 go out; made more explosions on walls.
31164 ----------------------------
31165 revision 1.2
31166 date: 1994/08/19 20:09:38;  author: matt;  state: Exp;
31167 Added end-of-level cut scene with external scene
31168 ----------------------------
31169 revision 1.1
31170 date: 1994/08/15 19:18:47;  author: matt;  state: Exp;
31171 Initial revision
31172 =============================================================================
31173 RCS file: f:/miner/source/main/editor/eobject.h,v
31174 Working file: main/editor/eobject.h
31175 head: 2.0
31176 branch:
31177 description: Header for eobject.c
31178 ----------------------------
31179 revision 2.0
31180 date: 1995/02/27 11:35:30;  author: john;  state: Exp;
31181 Version 2.0! No anonymous unions, Watcom 10.0, with no need
31182 for bitmaps.tbl.
31183 ----------------------------
31184 revision 1.5
31185 date: 1994/09/15 22:57:46;  author: matt;  state: Exp;
31186 Made new objects be oriented to their segment
31187 Added keypad function to flip an object upside-down
31188 ----------------------------
31189 revision 1.4
31190 date: 1994/08/25 21:57:23;  author: mike;  state: Exp;
31191 Prototype ObjectSelectPrevInMine, and probably wrote it too, though not in this file.
31192 ----------------------------
31193 revision 1.3
31194 date: 1994/08/05 18:17:48;  author: matt;  state: Exp;
31195 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
31196 ----------------------------
31197 revision 1.2
31198 date: 1994/05/14 18:00:59;  author: matt;  state: Exp;
31199 Got rid of externs in source (non-header) files
31200 ----------------------------
31201 revision 1.1
31202 date: 1994/05/14 17:36:30;  author: matt;  state: Exp;
31203 Initial revision
31204 =============================================================================
31205 RCS file: f:/miner/source/misc/error.h,v
31206 Working file: misc/error.h
31207 head: 1.12
31208 branch:
31209 description: Header for error handling/printing/exiting code
31210 ----------------------------
31211 revision 1.12
31212 date: 1994/06/17 15:22:46;  author: matt;  state: Exp;
31213 Added pragma for Error() for when NDEBUG
31214 ----------------------------
31215 revision 1.11
31216 date: 1994/03/07 13:22:14;  author: matt;  state: Exp;
31217 Since the Error() function has 'aborts' set in pragma, we do a jmp
31218 to the function rather than call.
31219 ----------------------------
31220 revision 1.10
31221 date: 1994/02/17 12:37:15;  author: matt;  state: Exp;
31222 Combined two pragma's for Error(), since second superseded the first
31223 ----------------------------
31224 revision 1.9
31225 date: 1994/02/10 18:02:53;  author: matt;  state: Exp;
31226 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
31227 ----------------------------
31228 revision 1.8
31229 date: 1994/02/09 15:18:29;  author: matt;  state: Exp;
31230 Added pragma saying that Error() never returns
31231 ----------------------------
31232 revision 1.7
31233 date: 1993/10/19 12:57:53;  author: matt;  state: Exp;
31234 If DEBUG_ON not defined, define it to be 1
31235 ----------------------------
31236 revision 1.6
31237 date: 1993/10/15 21:40:39;  author: matt;  state: Exp;
31238 Made error functions generate int3's if debugging on
31239 ----------------------------
31240 revision 1.5
31241 date: 1993/10/14 15:29:22;  author: matt;  state: Exp;
31242 Added new function clear_warn_func()
31243 ----------------------------
31244 revision 1.4
31245 date: 1993/10/08 16:16:47;  author: matt;  state: Exp;
31246 Made Assert() call function _Assert(), rather to do 'if...' inline.
31247 ----------------------------
31248 revision 1.3
31249 date: 1993/09/29 11:39:07;  author: matt;  state: Exp;
31250 Added Assert() macro, like the system one, but calls Error()
31251 ----------------------------
31252 revision 1.2
31253 date: 1993/09/27 11:47:03;  author: matt;  state: Exp;
31254 Added function set_warn_func()
31255 ----------------------------
31256 revision 1.1
31257 date: 1993/09/23 20:17:46;  author: matt;  state: Exp;
31258 Initial revision
31259 =============================================================================
31260 RCS file: f:/miner/source/main/editor/eswitch.h,v
31261 Working file: main/editor/eswitch.h
31262 head: 2.0
31263 branch:
31264 description: Headers for switch adding functions
31265 ----------------------------
31266 revision 2.0
31267 date: 1995/02/27 11:35:40;  author: john;  state: Exp;
31268 Version 2.0! No anonymous unions, Watcom 10.0, with no need
31269 for bitmaps.tbl.
31270 ----------------------------
31271 revision 1.6
31272 date: 1994/05/30 20:22:35;  author: yuan;  state: Exp;
31273 New triggers.
31274 ----------------------------
31275 revision 1.5
31276 date: 1994/05/27 10:34:35;  author: yuan;  state: Exp;
31277 Added new Dialog boxes for Walls and Triggers.
31278 ----------------------------
31279 revision 1.4
31280 date: 1994/05/25 18:08:39;  author: yuan;  state: Exp;
31281 Revamping walls and triggers interface.
31282 Wall interface complete, but triggers are still in progress.
31283 ----------------------------
31284 revision 1.3
31285 date: 1994/04/28 23:46:56;  author: yuan;  state: Exp;
31286 Added prototype for remove_trigger.
31287 ----------------------------
31288 revision 1.2
31289 date: 1994/03/15 16:34:20;  author: yuan;  state: Exp;
31290 Fixed bm loader (might have some changes in walls and switches)
31291 ----------------------------
31292 revision 1.1
31293 date: 1994/03/10 14:49:03;  author: yuan;  state: Exp;
31294 Initial revision
31295 =============================================================================
31296 RCS file: f:/miner/source/main/fireball.h,v
31297 Working file: main/fireball.h
31298 head: 2.0
31299 branch:
31300 description: Header for fireball.c
31301 ----------------------------
31302 revision 2.0
31303 date: 1995/02/27 11:27:03;  author: john;  state: Exp;
31304 New version 2.0, which has no anonymous unions, builds with
31305 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31306 ----------------------------
31307 revision 1.13
31308 date: 1995/01/17 12:14:38;  author: john;  state: Exp;
31309 Made walls, object explosion vclips load at level start.
31310 ----------------------------
31311 revision 1.12
31312 date: 1995/01/13 15:41:52;  author: rob;  state: Exp;
31313 Added prototype for maybe_replace_powerup_with_energy
31314 ----------------------------
31315 revision 1.11
31316 date: 1994/11/17 16:28:36;  author: rob;  state: Exp;
31317 Changed maybe_drop_cloak_powerup to maybe_drop_net_powerup (more
31318 generic and useful)
31319 ----------------------------
31320 revision 1.10
31321 date: 1994/10/12 08:03:42;  author: mike;  state: Exp;
31322 Prototype maybe_drop_cloak_powerup.
31323 ----------------------------
31324 revision 1.9
31325 date: 1994/10/11 12:24:39;  author: matt;  state: Exp;
31326 Cleaned up/change badass explosion calls
31327 ----------------------------
31328 revision 1.8
31329 date: 1994/09/07 16:00:34;  author: mike;  state: Exp;
31330 Add object pointer to parameter list of object_create_badass_explosion.
31331 ----------------------------
31332 revision 1.7
31333 date: 1994/09/02 14:00:39;  author: matt;  state: Exp;
31334 Simplified explode_object() & mutliple-stage explosions
31335 ----------------------------
31336 revision 1.6
31337 date: 1994/08/17 16:49:58;  author: john;  state: Exp;
31338 Added damaging fireballs, missiles.
31339 ----------------------------
31340 revision 1.5
31341 date: 1994/07/14 22:39:19;  author: matt;  state: Exp;
31342 Added exploding doors
31343 ----------------------------
31344 revision 1.4
31345 date: 1994/06/08 10:56:36;  author: matt;  state: Exp;
31346 Improved debris: now get submodel size from new POF files; debris now has
31347 limited life; debris can now be blown up.
31348 ----------------------------
31349 revision 1.3
31350 date: 1994/04/01 13:35:44;  author: matt;  state: Exp;
31351 Added multiple-stage explosions
31352 ----------------------------
31353 revision 1.2
31354 date: 1994/02/17 11:33:32;  author: matt;  state: Exp;
31355 Changes in object system
31356 ----------------------------
31357 revision 1.1
31358 date: 1994/02/16 22:41:15;  author: matt;  state: Exp;
31359 Initial revision
31360 =============================================================================
31361 RCS file: f:/miner/source/fix/fix.h,v
31362 Working file: fix/fix.h
31363 head: 1.13
31364 branch:
31365 description: FIX.H - prototypes and macros for fixed-point functions
31366 Copyright (c) 1993  Matt Toschlog & Mike Kulas
31367 ----------------------------
31368 revision 1.13
31369 date: 1994/12/06 13:52:34;  author: matt;  state: Exp;
31370 Added f2ir(), which is fix-to-int with rounding
31371 ----------------------------
31372 revision 1.12
31373 date: 1994/05/18 21:45:16;  author: matt;  state: Exp;
31374 Added comments
31375 ----------------------------
31376 revision 1.11
31377 date: 1994/01/19 23:12:02;  author: matt;  state: Exp;
31378 Made fix_atan2() left-handed, like our coordinate system
31379 ----------------------------
31380 revision 1.10
31381 date: 1993/10/20 01:09:00;  author: matt;  state: Exp;
31382 Add fix_asin(), improved fix_atan2()
31383 ----------------------------
31384 revision 1.9
31385 date: 1993/10/19 23:53:46;  author: matt;  state: Exp;
31386 Added fix_atan2()
31387 ----------------------------
31388 revision 1.8
31389 date: 1993/10/19 22:22:40;  author: matt;  state: Exp;
31390 Added fix_acos()
31391 ----------------------------
31392 revision 1.7
31393 date: 1993/09/17 11:37:01;  author: mike;  state: Exp;
31394 Add capitalized versions of "some handy constants", eg:
31395 #define F1_0 f1_0
31396 ----------------------------
31397 revision 1.6
31398 date: 1993/08/24 13:00:48;  author: matt;  state: Exp;
31399 Adopted new standard, and made assembly-callable routines not trash any regs
31400 ----------------------------
31401 revision 1.5
31402 date: 1993/08/12 13:12:45;  author: matt;  state: Exp;
31403 Changed fixmul() to use SHRD instead of shl,shr,or
31404 ----------------------------
31405 revision 1.4
31406 date: 1993/08/04 19:57:18;  author: matt;  state: Exp;
31407 Added parens in fix/float conversion macros
31408 ----------------------------
31409 revision 1.3
31410 date: 1993/08/04 11:41:45;  author: matt;  state: Exp;
31411 Fixed bogus constants
31412 ----------------------------
31413 revision 1.2
31414 date: 1993/08/04 09:30:11;  author: matt;  state: Exp;
31415 Added more constants
31416 ----------------------------
31417 revision 1.1
31418 date: 1993/08/03 17:45:53;  author: matt;  state: Exp;
31419 Initial revision
31420 =============================================================================
31421 RCS file: f:/miner/source/main/fuelcen.h,v
31422 Working file: main/fuelcen.h
31423 head: 2.0
31424 branch:
31425 description: Definitions for fueling centers.
31426 ----------------------------
31427 revision 2.0
31428 date: 1995/02/27 11:28:43;  author: john;  state: Exp;
31429 New version 2.0, which has no anonymous unions, builds with
31430 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31431 ----------------------------
31432 revision 1.26
31433 date: 1995/01/26 12:19:16;  author: rob;  state: Exp;
31434 Added externs of things needed for multiplayer.
31435 ----------------------------
31436 revision 1.25
31437 date: 1994/10/30 14:11:10;  author: mike;  state: Exp;
31438 rip out repair center stuff.
31439 ----------------------------
31440 revision 1.24
31441 date: 1994/10/03 23:36:36;  author: mike;  state: Exp;
31442 Add segnum and fuelcen_num (renaming dest_seg and *path) in matcen_info struct.
31443 ----------------------------
31444 revision 1.23
31445 date: 1994/09/30 00:37:44;  author: mike;  state: Exp;
31446 Change FuelCenter struct.
31447 ----------------------------
31448 revision 1.22
31449 date: 1994/09/27 15:42:49;  author: mike;  state: Exp;
31450 Kill some obsolete matcen constants, Prototype Special_names.
31451 ----------------------------
31452 revision 1.21
31453 date: 1994/09/27 00:04:30;  author: mike;  state: Exp;
31454 Moved FuelCenter struct here from fuelcen.c
31455 ----------------------------
31456 revision 1.20
31457 date: 1994/09/25 15:55:37;  author: mike;  state: Exp;
31458 Prototype function disable_matcens.
31459 ----------------------------
31460 revision 1.19
31461 date: 1994/09/24 17:41:34;  author: mike;  state: Exp;
31462 Prototype trigger_matcen.
31463 ----------------------------
31464 revision 1.18
31465 date: 1994/08/03 17:52:19;  author: matt;  state: Exp;
31466 Tidied up repair centers a bit
31467 ----------------------------
31468 revision 1.17
31469 date: 1994/08/02 12:16:01;  author: mike;  state: Exp;
31470 *** empty log message ***
31471 ----------------------------
31472 revision 1.16
31473 date: 1994/08/01 11:04:03;  author: yuan;  state: Exp;
31474 New materialization centers.
31475 ----------------------------
31476 revision 1.15
31477 date: 1994/07/21 19:02:15;  author: mike;  state: Exp;
31478 break repair centers.
31479 ----------------------------
31480 revision 1.14
31481 date: 1994/07/14 11:25:22;  author: john;  state: Exp;
31482 Made control centers destroy better; made automap use Tab key.
31483 ----------------------------
31484 revision 1.13
31485 date: 1994/07/13 10:45:33;  author: john;  state: Exp;
31486 Made control center object switch when dead.
31487 ----------------------------
31488 revision 1.12
31489 date: 1994/07/09 17:36:44;  author: mike;  state: Exp;
31490 Add extern for find_connected_repair_seg.
31491 ----------------------------
31492 revision 1.11
31493 date: 1994/06/15 19:00:32;  author: john;  state: Exp;
31494 Show timer in on top of 3d with mine destroyed...
31495 ----------------------------
31496 revision 1.10
31497 date: 1994/05/31 16:49:46;  author: john;  state: Exp;
31498 Begin to add robot materialization centers.
31499 ----------------------------
31500 revision 1.9
31501 date: 1994/05/30 20:22:03;  author: yuan;  state: Exp;
31502 New triggers.
31503 ----------------------------
31504 revision 1.8
31505 date: 1994/05/05 16:41:14;  author: matt;  state: Exp;
31506 Cleaned up repair center code, and moved some from object.c to fuelcen.c
31507 ----------------------------
31508 revision 1.7
31509 date: 1994/04/21 20:41:21;  author: yuan;  state: Exp;
31510 Added extern.
31511 ----------------------------
31512 revision 1.6
31513 date: 1994/04/21 20:28:32;  author: john;  state: Exp;
31514 Added flag for Yuan to tell when a fuel center is destroyed.
31515 ----------------------------
31516 revision 1.5
31517 date: 1994/04/14 17:00:59;  author: john;  state: Exp;
31518 Made repair cen's work properly; added reset_all_fuelcens.
31519 ----------------------------
31520 revision 1.4
31521 date: 1994/04/12 20:28:04;  author: john;  state: Exp;
31522 Added control center.
31523 ----------------------------
31524 revision 1.3
31525 date: 1994/04/08 15:37:10;  author: john;  state: Exp;
31526 Added repair centers.
31527 ----------------------------
31528 revision 1.2
31529 date: 1994/04/06 19:10:38;  author: john;  state: Exp;
31530 NEw version.
31531 ----------------------------
31532 revision 1.1
31533 date: 1994/04/06 12:39:02;  author: john;  state: Exp;
31534 Initial revision
31535 =============================================================================
31536 RCS file: f:/miner/source/ui/func.h,v
31537 Working file: ui/func.h
31538 head: 1.1
31539 branch:
31540 description: .
31541 ----------------------------
31542 revision 1.1
31543 date: 1994/11/27 14:52:03;  author: matt;  state: Exp;
31544 Initial revision
31545 ----------------------------
31546 revision 1.1
31547 date: 1994/11/21 14:13:31;  author: matt;  state: Exp;
31548 Initial revision
31549 ----------------------------
31550 revision 1.1
31551 date: 1993/11/15 12:28:13;  author: john;  state: Exp;
31552 Initial revision
31553 =============================================================================
31554 RCS file: f:/miner/source/main/fvi.h,v
31555 Working file: main/fvi.h
31556 head: 2.1
31557 branch:
31558 description: Header for fvi.c
31559 ----------------------------
31560 revision 2.1
31561 date: 1995/03/20 18:15:58;  author: john;  state: Exp;
31562 Added code to not store the normals in the segment structure.
31563 ----------------------------
31564 revision 2.0
31565 date: 1995/02/27 11:32:02;  author: john;  state: Exp;
31566 New version 2.0, which has no anonymous unions, builds with
31567 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31568 ----------------------------
31569 revision 1.10
31570 date: 1995/02/02 14:07:58;  author: matt;  state: Exp;
31571 Fixed confusion about which segment you are touching when you're 
31572 touching a wall.  This manifested itself in spurious lava burns.
31573 ----------------------------
31574 revision 1.9
31575 date: 1994/12/04 22:48:04;  author: matt;  state: Exp;
31576 Physics & FVI now only build seglist for player objects, and they 
31577 responsilby deal with buffer full conditions
31578 ----------------------------
31579 revision 1.8
31580 date: 1994/10/31 12:28:01;  author: matt;  state: Exp;
31581 Added new function object_intersects_wall()
31582 ----------------------------
31583 revision 1.7
31584 date: 1994/10/10 13:10:00;  author: matt;  state: Exp;
31585 Increased max_fvi_segs
31586 ----------------------------
31587 revision 1.6
31588 date: 1994/09/25 00:38:29;  author: matt;  state: Exp;
31589 Made the 'find the point in the bitmap where something hit' system
31590 publicly accessible.
31591 ----------------------------
31592 revision 1.5
31593 date: 1994/08/01 13:30:35;  author: matt;  state: Exp;
31594 Made fvi() check holes in transparent walls, and changed fvi() calling
31595 parms to take all input data in query structure.
31596 ----------------------------
31597 revision 1.4
31598 date: 1994/07/13 21:47:59;  author: matt;  state: Exp;
31599 FVI() and physics now keep lists of segments passed through which the
31600 trigger code uses.
31601 ----------------------------
31602 revision 1.3
31603 date: 1994/07/08 14:27:26;  author: matt;  state: Exp;
31604 Non-needed powerups don't get picked up now; this required changing FVI to
31605 take a list of ingore objects rather than just one ignore object.
31606 ----------------------------
31607 revision 1.2
31608 date: 1994/06/09 09:58:39;  author: matt;  state: Exp;
31609 Moved find_vector_intersection() from physics.c to new file fvi.c
31610 ----------------------------
31611 revision 1.1
31612 date: 1994/06/09 09:26:14;  author: matt;  state: Exp;
31613 Initial revision
31614 =============================================================================
31615 RCS file: f:/miner/source/main/game.h,v
31616 Working file: main/game.h
31617 head: 2.1
31618 branch:
31619 description: Constants & prototypes which pertain to the game only
31620 ----------------------------
31621 revision 2.1
31622 date: 1995/03/06 15:23:22;  author: john;  state: Exp;
31623 New screen techniques.
31624 ----------------------------
31625 revision 2.0
31626 date: 1995/02/27 11:28:21;  author: john;  state: Exp;
31627 New version 2.0, which has no anonymous unions, builds with
31628 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31629 ----------------------------
31630 revision 1.79
31631 date: 1995/02/13 10:37:17;  author: john;  state: Exp;
31632 Saved Buggin' cheat mode to save file.
31633 ----------------------------
31634 revision 1.78
31635 date: 1995/02/01 16:34:12;  author: john;  state: Exp;
31636 Linted.
31637 ----------------------------
31638 revision 1.77
31639 date: 1995/01/29 21:37:14;  author: mike;  state: Exp;
31640 initialize variables on game load so you don't drain your energy when you fire.
31641 ----------------------------
31642 revision 1.76
31643 date: 1995/01/26 22:11:36;  author: mike;  state: Exp;
31644 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
31645 ----------------------------
31646 revision 1.75
31647 date: 1995/01/26 16:45:31;  author: mike;  state: Exp;
31648 Add autofire fusion cannon stuff.
31649 ----------------------------
31650 revision 1.74
31651 date: 1994/12/11 23:18:06;  author: john;  state: Exp;
31652 Added -nomusic.
31653 Added RealFrameTime.
31654 Put in a pause when sound initialization error.
31655 Made controlcen countdown and framerate use RealFrameTime.
31656 ----------------------------
31657 revision 1.73
31658 date: 1994/12/09 00:41:24;  author: mike;  state: Exp;
31659 fix hang in automap print screen
31660 ----------------------------
31661 revision 1.72
31662 date: 1994/12/04 13:47:00;  author: mike;  state: Exp;
31663 enhance custom detail level support.
31664 ----------------------------
31665 revision 1.71
31666 date: 1994/12/02 15:05:44;  author: matt;  state: Exp;
31667 Added new "official" cheats
31668 ----------------------------
31669 revision 1.70
31670 date: 1994/11/28 18:14:09;  author: rob;  state: Exp;
31671 Added game_mode flag for team games.
31672 ----------------------------
31673 revision 1.69
31674 date: 1994/11/15 16:51:13;  author: matt;  state: Exp;
31675 Made rear view only switch to rear cockpit if cockpit on in front view
31676 ----------------------------
31677 revision 1.68
31678 date: 1994/11/04 16:26:10;  author: john;  state: Exp;
31679 Fixed bug with letterbox mode game after you finish a game.
31680 ----------------------------
31681 revision 1.67
31682 date: 1994/11/02 11:59:48;  author: john;  state: Exp;
31683 Moved menu out of game into inferno main loop.
31684 ----------------------------
31685 revision 1.66
31686 date: 1994/10/26 23:02:19;  author: matt;  state: Exp;
31687 Made palette flash saturate negative values
31688 ----------------------------
31689 revision 1.65
31690 date: 1994/10/26 15:21:05;  author: mike;  state: Exp;
31691 Detail level stuff.  Make Render_depth public.
31692 ----------------------------
31693 revision 1.64
31694 date: 1994/10/19 00:13:01;  author: matt;  state: Exp;
31695 Added prototypes
31696 ----------------------------
31697 revision 1.63
31698 date: 1994/10/09 14:54:39;  author: matt;  state: Exp;
31699 Made player cockpit state & window size save/restore with saved games & automap
31700 ----------------------------
31701 revision 1.62
31702 date: 1994/10/08 19:56:32;  author: matt;  state: Exp;
31703 Added prototype
31704 ----------------------------
31705 revision 1.61
31706 date: 1994/10/07 22:19:32;  author: mike;  state: Exp;
31707 Increase number of difficulty levels from 4 to 5.
31708 ----------------------------
31709 revision 1.60
31710 date: 1994/10/06 14:14:11;  author: matt;  state: Exp;
31711 Added new function to reset time (to prevent big FrameTime) at start of level
31712 ----------------------------
31713 revision 1.59
31714 date: 1994/10/05 17:08:43;  author: matt;  state: Exp;
31715 Changed order of cockpit bitmaps, since there's no longer a full-screen cockpit
31716 ----------------------------
31717 revision 1.58
31718 date: 1994/10/03 23:44:13;  author: matt;  state: Exp;
31719 Save & restore palette effect around menus & pause message
31720 ----------------------------
31721 revision 1.57
31722 date: 1994/09/29 17:42:12;  author: matt;  state: Exp;
31723 Cleaned up game_mode a little
31724 ----------------------------
31725 revision 1.56
31726 date: 1994/09/28 23:12:01;  author: matt;  state: Exp;
31727 Macroized palette flash system
31728 ----------------------------
31729 revision 1.55
31730 date: 1994/09/24 16:56:13;  author: rob;  state: Exp;
31731 Added new fields for the Game_mode bitvector for modem play.
31732 ----------------------------
31733 revision 1.54
31734 date: 1994/09/24 14:16:20;  author: mike;  state: Exp;
31735 Added new game mode constants.
31736 ----------------------------
31737 revision 1.53
31738 date: 1994/09/22 19:00:57;  author: mike;  state: Exp;
31739 Move NDL from robot.h to here.
31740 ----------------------------
31741 revision 1.52
31742 date: 1994/09/22 10:46:51;  author: mike;  state: Exp;
31743 Add difficulty levels.
31744 ----------------------------
31745 revision 1.51
31746 date: 1994/09/17 01:39:52;  author: matt;  state: Exp;
31747 Added status bar/sizable window mode, and in the process revamped the
31748 whole cockpit mode system.
31749 ----------------------------
31750 revision 1.50
31751 date: 1994/09/15 21:23:10;  author: matt;  state: Exp;
31752 Changed system to keep track of whether & what cockpit is up
31753 ----------------------------
31754 revision 1.49
31755 date: 1994/09/15 16:11:33;  author: john;  state: Exp;
31756 Added support for VFX1 head tracking. Fixed bug with memory over-
31757 write when using stereo mode.
31758 ----------------------------
31759 revision 1.48
31760 date: 1994/09/13 16:40:10;  author: mike;  state: Exp;
31761 Prototype Global_missile_firing_count.
31762 ----------------------------
31763 revision 1.47
31764 date: 1994/09/13 11:19:05;  author: mike;  state: Exp;
31765 Add Next_missile_fire_time.
31766 ----------------------------
31767 revision 1.46
31768 date: 1994/09/12 09:52:50;  author: john;  state: Exp;
31769 Made global flush function that flushes keyboard,mouse, and joystick.
31770 ----------------------------
31771 revision 1.45
31772 date: 1994/09/03 15:24:14;  author: mike;  state: Exp;
31773 Make global Global_laser_firing_count.
31774 ----------------------------
31775 revision 1.44
31776 date: 1994/08/31 19:26:57;  author: mike;  state: Exp;
31777 Prototypes for Next_laser_fire_time, Laser_delay_time.
31778 ----------------------------
31779 revision 1.43
31780 date: 1994/08/18 10:47:22;  author: john;  state: Exp;
31781 Cleaned up game sequencing and player death stuff
31782 in preparation for making the player explode into
31783 pieces when dead.
31784 ----------------------------
31785 revision 1.42
31786 date: 1994/08/11 18:03:53;  author: matt;  state: Exp;
31787 Added prototype
31788 ----------------------------
31789 revision 1.41
31790 date: 1994/06/29 20:41:38;  author: matt;  state: Exp;
31791 Added new pause mode; cleaned up countdown & game startup code
31792 ----------------------------
31793 revision 1.40
31794 date: 1994/06/24 17:03:49;  author: john;  state: Exp;
31795 Added VFX support. Also took all game sequencing stuff like
31796 EndGame out and put it into gameseq.c
31797 ----------------------------
31798 revision 1.39
31799 date: 1994/06/20 15:01:08;  author: yuan;  state: Exp;
31800 Added death when mine blows up...
31801 Continues onto next level.
31802 ----------------------------
31803 revision 1.38
31804 date: 1994/06/17 18:07:20;  author: matt;  state: Exp;
31805 Moved some vars out of ifdef
31806 ----------------------------
31807 revision 1.37
31808 date: 1994/06/15 11:09:22;  author: yuan;  state: Exp;
31809 Moved gauge_message to mono screen for now.
31810 ----------------------------
31811 revision 1.36
31812 date: 1994/05/30 20:22:11;  author: yuan;  state: Exp;
31813 New triggers.
31814 ----------------------------
31815 revision 1.35
31816 date: 1994/05/27 10:32:48;  author: yuan;  state: Exp;
31817 New dialog boxes (Walls and Triggers) added.
31818 ----------------------------
31819 revision 1.34
31820 date: 1994/05/20 11:56:45;  author: matt;  state: Exp;
31821 Cleaned up find_vector_intersection() interface
31822 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
31823 ----------------------------
31824 revision 1.33
31825 date: 1994/05/19 21:45:21;  author: matt;  state: Exp;
31826 Removed unused prototypes
31827 ----------------------------
31828 revision 1.32
31829 date: 1994/05/19 18:53:17;  author: yuan;  state: Exp;
31830 Changing player structure...
31831 ----------------------------
31832 revision 1.31
31833 date: 1994/05/16 16:38:35;  author: yuan;  state: Exp;
31834 Fixed palette add so it doesn't show up in the menu.
31835 ----------------------------
31836 revision 1.30
31837 date: 1994/05/16 09:28:17;  author: matt;  state: Exp;
31838 Renamed init_player() to be init_player_stats(), added new funtion
31839 init_player_object()
31840 ----------------------------
31841 revision 1.29
31842 date: 1994/05/14 17:14:57;  author: matt;  state: Exp;
31843 Got rid of externs in source (non-header) files
31844 =============================================================================
31845 RCS file: f:/miner/source/main/gamefont.h,v
31846 Working file: main/gamefont.h
31847 head: 2.0
31848 branch:
31849 description: Font declarations for the game,.
31850 ----------------------------
31851 revision 2.0
31852 date: 1995/02/27 11:31:09;  author: john;  state: Exp;
31853 New version 2.0, which has no anonymous unions, builds with
31854 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31855 ----------------------------
31856 revision 1.7
31857 date: 1994/11/18 16:41:28;  author: adam;  state: Exp;
31858 trimmed meat
31859 ----------------------------
31860 revision 1.6
31861 date: 1994/11/17 13:07:00;  author: adam;  state: Exp;
31862 removed unused font
31863 ----------------------------
31864 revision 1.5
31865 date: 1994/11/03 21:36:02;  author: john;  state: Exp;
31866 Added code for credit fonts.
31867 ----------------------------
31868 revision 1.4
31869 date: 1994/08/17 20:20:25;  author: matt;  state: Exp;
31870 Took out alternate-color versions of font3, since this is a mono font
31871 ----------------------------
31872 revision 1.3
31873 date: 1994/08/11 12:44:32;  author: adam;  state: Exp;
31874 killed a #define
31875 ----------------------------
31876 revision 1.2
31877 date: 1994/08/10 19:57:16;  author: john;  state: Exp;
31878 Changed font stuff; Took out old menu; messed up lots of
31879 other stuff like game sequencing messages, etc.
31880 ----------------------------
31881 revision 1.1
31882 date: 1994/08/10 17:20:22;  author: john;  state: Exp;
31883 Initial revision
31884 =============================================================================
31885 RCS file: f:/miner/source/main/gamemine.h,v
31886 Working file: main/gamemine.h
31887 head: 2.0
31888 branch:
31889 description: Header for gamemine.c
31890 ----------------------------
31891 revision 2.0
31892 date: 1995/02/27 11:28:50;  author: john;  state: Exp;
31893 New version 2.0, which has no anonymous unions, builds with
31894 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31895 ----------------------------
31896 revision 1.15
31897 date: 1994/11/17 11:39:34;  author: matt;  state: Exp;
31898 Ripped out code to load old mines
31899 ----------------------------
31900 revision 1.14
31901 date: 1994/10/19 16:46:40;  author: matt;  state: Exp;
31902 Made tmap overrides for robots remap texture numbers
31903 ----------------------------
31904 revision 1.13
31905 date: 1994/09/23 22:14:37;  author: matt;  state: Exp;
31906 Took out obsolete structure fields
31907 ----------------------------
31908 revision 1.12
31909 date: 1994/07/22 12:36:32;  author: matt;  state: Exp;
31910 Cleaned up editor/game interactions some more.
31911 ----------------------------
31912 revision 1.11
31913 date: 1994/06/01 11:21:37;  author: yuan;  state: Exp;
31914 Added controlcentertriggers to the gamesave.
31915 ----------------------------
31916 revision 1.10
31917 date: 1994/05/10 12:14:26;  author: yuan;  state: Exp;
31918 Game save/load... Demo levels 1-5 added...
31919 High scores fixed...
31920 ----------------------------
31921 revision 1.9
31922 date: 1994/05/04 18:25:05;  author: yuan;  state: Exp;
31923 Working on gamesave.
31924 ----------------------------
31925 revision 1.8
31926 date: 1994/05/03 15:53:27;  author: yuan;  state: Exp;
31927 Readded structure field groups for backward compatibility...
31928 ----------------------------
31929 revision 1.7
31930 date: 1994/05/03 11:36:26;  author: yuan;  state: Exp;
31931 Stabilizing gamesave stuff.
31932 ----------------------------
31933 revision 1.6
31934 date: 1994/04/28 11:01:32;  author: yuan;  state: Exp;
31935 Added objects in structure.
31936 ----------------------------
31937 revision 1.5
31938 date: 1994/04/06 18:30:03;  author: john;  state: Exp;
31939 Added Refueling segments.
31940 ----------------------------
31941 revision 1.4
31942 date: 1994/03/17 18:06:53;  author: yuan;  state: Exp;
31943 Removed switch code... Now we just have Walls, Triggers, and Links...
31944 ----------------------------
31945 revision 1.3
31946 date: 1994/03/01 18:12:24;  author: yuan;  state: Exp;
31947 Wallswitches, triggers, and more!
31948 ----------------------------
31949 revision 1.2
31950 date: 1994/02/10 15:36:01;  author: matt;  state: Exp;
31951 Various changes to make editor compile out.
31952 ----------------------------
31953 revision 1.1
31954 date: 1994/02/09 17:11:45;  author: matt;  state: Exp;
31955 Initial revision
31956 =============================================================================
31957 RCS file: f:/miner/source/main/gamesave.h,v
31958 Working file: main/gamesave.h
31959 head: 2.0
31960 branch:
31961 description: Headers for gamesave.c
31962 ----------------------------
31963 revision 2.0
31964 date: 1995/02/27 11:30:25;  author: john;  state: Exp;
31965 New version 2.0, which has no anonymous unions, builds with
31966 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
31967 ----------------------------
31968 revision 1.11
31969 date: 1994/11/23 12:19:32;  author: mike;  state: Exp;
31970 detail level menu.
31971 ----------------------------
31972 revision 1.10
31973 date: 1994/10/20 12:47:30;  author: matt;  state: Exp;
31974 Replace old save files (MIN/SAV/HOT) with new LVL files
31975 ----------------------------
31976 revision 1.9
31977 date: 1994/09/27 17:08:47;  author: mike;  state: Exp;
31978 Message boxes when you load bogus mines.
31979 ----------------------------
31980 revision 1.8
31981 date: 1994/09/27 15:43:05;  author: mike;  state: Exp;
31982 Prototype write_game_text.
31983 ----------------------------
31984 revision 1.7
31985 date: 1994/09/14 15:46:39;  author: matt;  state: Exp;
31986 Added function load_mine_only()
31987 ----------------------------
31988 revision 1.6
31989 date: 1994/07/22 12:36:28;  author: matt;  state: Exp;
31990 Cleaned up editor/game interactions some more.
31991 ----------------------------
31992 revision 1.5
31993 date: 1994/07/20 13:38:14;  author: matt;  state: Exp;
31994 Added get_level_name() prototype
31995 ----------------------------
31996 revision 1.4
31997 date: 1994/06/20 22:19:41;  author: john;  state: Exp;
31998 Added Gamesave_num_org_robots.
31999 ----------------------------
32000 revision 1.3
32001 date: 1994/06/14 11:32:49;  author: john;  state: Exp;
32002 Made Newdemo record & restore the current mine.
32003 ----------------------------
32004 revision 1.2
32005 date: 1994/05/14 17:16:25;  author: matt;  state: Exp;
32006 Got rid of externs in source (non-header) files
32007 ----------------------------
32008 revision 1.1
32009 date: 1994/05/14 16:01:26;  author: matt;  state: Exp;
32010 Initial revision
32011 =============================================================================
32012 RCS file: f:/miner/source/main/gameseg.h,v
32013 Working file: main/gameseg.h
32014 head: 2.0
32015 branch:
32016 description: Header file for stuff moved from segment.c to gameseg.c.
32017 ----------------------------
32018 revision 2.0
32019 date: 1995/02/27 11:31:20;  author: john;  state: Exp;
32020 New version 2.0, which has no anonymous unions, builds with
32021 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32022 ----------------------------
32023 revision 1.24
32024 date: 1995/02/01 16:34:03;  author: john;  state: Exp;
32025 Linted.
32026 ----------------------------
32027 revision 1.23
32028 date: 1995/01/16 21:06:36;  author: mike;  state: Exp;
32029 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
32030 ----------------------------
32031 revision 1.22
32032 date: 1994/11/23 12:18:59;  author: mike;  state: Exp;
32033 prototype for level names.
32034 ----------------------------
32035 revision 1.21
32036 date: 1994/11/17 14:56:59;  author: mike;  state: Exp;
32037 moved segment validation functions from editor to main.
32038 ----------------------------
32039 revision 1.20
32040 date: 1994/11/16 23:38:46;  author: mike;  state: Exp;
32041 new improved boss teleportation behavior.
32042 ----------------------------
32043 revision 1.19
32044 date: 1994/10/30 14:12:14;  author: mike;  state: Exp;
32045 rip out local segments stuff.
32046 ----------------------------
32047 revision 1.18
32048 date: 1994/10/09 23:51:07;  author: matt;  state: Exp;
32049 Made find_hitpoint_uv() work with triangulated sides
32050 ----------------------------
32051 revision 1.17
32052 date: 1994/10/06 14:08:22;  author: matt;  state: Exp;
32053 Added new function, extract_orient_from_segment()
32054 ----------------------------
32055 revision 1.16
32056 date: 1994/09/19 21:05:52;  author: mike;  state: Exp;
32057 Prototype for find_connected_distance.
32058 ----------------------------
32059 revision 1.15
32060 date: 1994/08/11 18:58:45;  author: mike;  state: Exp;
32061 Change shorts to ints.
32062 ----------------------------
32063 revision 1.14
32064 date: 1994/08/04 00:21:09;  author: matt;  state: Exp;
32065 Cleaned up fvi & physics error handling; put in code to make sure objects
32066 are in correct segment; simplified segment finding for objects and points
32067 ----------------------------
32068 revision 1.13
32069 date: 1994/08/02 19:04:25;  author: matt;  state: Exp;
32070 Cleaned up vertex list functions
32071 ----------------------------
32072 revision 1.12
32073 date: 1994/07/21 19:01:53;  author: mike;  state: Exp;
32074 lsegment stuff.
32075 ----------------------------
32076 revision 1.11
32077 date: 1994/07/07 09:31:13;  author: matt;  state: Exp;
32078 Added comments
32079 ----------------------------
32080 revision 1.10
32081 date: 1994/06/14 12:21:20;  author: matt;  state: Exp;
32082 Added new function, find_point_seg()
32083 ----------------------------
32084 revision 1.9
32085 date: 1994/05/29 23:17:38;  author: matt;  state: Exp;
32086 Move find_object_seg() from physics.c to gameseg.c
32087 Killed unused find_point_seg()
32088 ----------------------------
32089 revision 1.8
32090 date: 1994/05/20 11:56:57;  author: matt;  state: Exp;
32091 Cleaned up find_vector_intersection() interface
32092 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
32093 ----------------------------
32094 revision 1.7
32095 date: 1994/03/17 18:07:38;  author: yuan;  state: Exp;
32096 Removed switch code... Now we just have Walls, Triggers, and Links...
32097 ----------------------------
32098 revision 1.6
32099 date: 1994/02/22 18:14:44;  author: yuan;  state: Exp;
32100 Added new wall system
32101 ----------------------------
32102 revision 1.5
32103 date: 1994/02/17 11:33:22;  author: matt;  state: Exp;
32104 Changes in object system
32105 ----------------------------
32106 revision 1.4
32107 date: 1994/02/16 13:48:33;  author: mike;  state: Exp;
32108 enable editor to compile out.
32109 ----------------------------
32110 revision 1.3
32111 date: 1994/02/14 12:05:07;  author: mike;  state: Exp;
32112 change segment data structure.
32113 ----------------------------
32114 revision 1.2
32115 date: 1994/02/10 16:07:20;  author: mike;  state: Exp;
32116 separate editor from game based on EDITOR flag.
32117 ----------------------------
32118 revision 1.1
32119 date: 1994/02/09 15:45:38;  author: mike;  state: Exp;
32120 Initial revision
32121 =============================================================================
32122 RCS file: f:/miner/source/main/gameseq.h,v
32123 Working file: main/gameseq.h
32124 head: 2.0
32125 branch:
32126 description: Prototypes for functions for game sequencing.
32127 ----------------------------
32128 revision 2.0
32129 date: 1995/02/27 11:32:03;  author: john;  state: Exp;
32130 New version 2.0, which has no anonymous unions, builds with
32131 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32132 ----------------------------
32133 revision 1.41
32134 date: 1995/02/07 10:51:54;  author: rob;  state: Exp;
32135 fix typo.
32136 ----------------------------
32137 revision 1.40
32138 date: 1995/02/06 20:10:16;  author: rob;  state: Exp;
32139 Extern'ed DoEndLevelScoreGlitz.
32140 ----------------------------
32141 revision 1.39
32142 date: 1995/02/01 16:34:13;  author: john;  state: Exp;
32143 Linted.
32144 ----------------------------
32145 revision 1.38
32146 date: 1995/01/27 11:15:03;  author: rob;  state: Exp;
32147 Added extern for player position vars.
32148 ----------------------------
32149 revision 1.37
32150 date: 1995/01/20 22:47:38;  author: matt;  state: Exp;
32151 Mission system implemented, though imcompletely
32152 ----------------------------
32153 revision 1.36
32154 date: 1995/01/17 13:36:08;  author: john;  state: Exp;
32155 Moved pig loading into StartNewLevelSub.
32156 ----------------------------
32157 revision 1.35
32158 date: 1995/01/04 12:21:28;  author: john;  state: Exp;
32159 *** empty log message ***
32160 ----------------------------
32161 revision 1.34
32162 date: 1995/01/04 12:20:47;  author: john;  state: Exp;
32163 Declearations to work better with game state save.
32164 ----------------------------
32165 revision 1.33
32166 date: 1994/12/08 09:46:35;  author: matt;  state: Exp;
32167 Made level name len a multiple of 4 for alignment
32168 ----------------------------
32169 revision 1.32
32170 date: 1994/11/29 16:33:29;  author: rob;  state: Exp;
32171 Added new defines for last_secret_level based on shareware or not shareware.
32172 ----------------------------
32173 revision 1.31
32174 date: 1994/11/26 15:30:20;  author: matt;  state: Exp;
32175 Allow escape out of change pilot menu
32176 ----------------------------
32177 revision 1.30
32178 date: 1994/11/21 17:29:38;  author: matt;  state: Exp;
32179 Cleaned up sequencing & game saving for secret levels
32180 ----------------------------
32181 revision 1.29
32182 date: 1994/11/21 15:55:03;  author: matt;  state: Exp;
32183 Corrected LAST_LEVEL
32184 ----------------------------
32185 revision 1.28
32186 date: 1994/11/20 22:12:43;  author: mike;  state: Exp;
32187 set LAST_LEVEL based on SHAREWARE.
32188 ----------------------------
32189 revision 1.27
32190 date: 1994/11/09 10:55:51;  author: matt;  state: Exp;
32191 Cleaned up initialization for editor -> game transitions
32192 ----------------------------
32193 revision 1.26
32194 date: 1994/11/08 17:50:48;  author: rob;  state: Exp;
32195 ADded prototype for StartNewLEvel.
32196 ----------------------------
32197 revision 1.25
32198 date: 1994/11/07 17:50:57;  author: rob;  state: Exp;
32199 Added extern prototype for init_player_stats_level called for
32200 network games.
32201 ----------------------------
32202 revision 1.24
32203 date: 1994/10/25 15:40:03;  author: yuan;  state: Exp;
32204 *** empty log message ***
32205 ----------------------------
32206 revision 1.23
32207 date: 1994/10/22 00:08:52;  author: matt;  state: Exp;
32208 Fixed up problems with bonus & game sequencing
32209 Player doesn't get credit for hostages unless he gets them out alive
32210 ----------------------------
32211 revision 1.22
32212 date: 1994/10/18 18:57:08;  author: matt;  state: Exp;
32213 Added main menu option to enter new player name
32214 ----------------------------
32215 revision 1.21
32216 date: 1994/10/07 23:37:32;  author: matt;  state: Exp;
32217 Added prototype
32218 ----------------------------
32219 revision 1.20
32220 date: 1994/10/07 16:02:53;  author: matt;  state: Exp;
32221 Loading saved game no longer clears players weapons & other stats
32222 ----------------------------
32223 revision 1.19
32224 date: 1994/10/06 14:12:46;  author: matt;  state: Exp;
32225 Added flash effect when player appears
32226 ----------------------------
32227 revision 1.18
32228 date: 1994/10/03 13:34:44;  author: matt;  state: Exp;
32229 Added new (and hopefully better) game sequencing functions
32230 ----------------------------
32231 revision 1.17
32232 date: 1994/09/30 15:19:53;  author: matt;  state: Exp;
32233 Added new game sequencing functions, but left them disabled for now.
32234 ----------------------------
32235 revision 1.16
32236 date: 1994/09/28 17:24:34;  author: matt;  state: Exp;
32237 Added first draft of game save/load system
32238 ----------------------------
32239 revision 1.15
32240 date: 1994/09/27 12:29:42;  author: matt;  state: Exp;
32241 Changed level naming
32242 ----------------------------
32243 revision 1.14
32244 date: 1994/09/02 11:53:55;  author: mike;  state: Exp;
32245 Rename init_player_stats to init_player_stats_game.
32246 ----------------------------
32247 revision 1.13
32248 date: 1994/08/31 20:57:34;  author: matt;  state: Exp;
32249 Cleaned up endlevel/death code
32250 ----------------------------
32251 revision 1.12
32252 date: 1994/08/23 18:45:06;  author: yuan;  state: Exp;
32253 Added level 10 capability.. (LEDGES)
32254 ----------------------------
32255 revision 1.11
32256 date: 1994/08/18 10:47:38;  author: john;  state: Exp;
32257 Cleaned up game sequencing and player death stuff
32258 in preparation for making the player explode into
32259 pieces when dead.
32260 ----------------------------
32261 revision 1.10
32262 date: 1994/08/15 15:24:45;  author: john;  state: Exp;
32263 Made players know who killed them; Disabled cheat menu
32264 during net player; fixed bug with not being able to turn
32265 of invulnerability; Made going into edit/starting new leve
32266 l drop you out of a net game; made death dialog box.
32267 ----------------------------
32268 revision 1.9
32269 date: 1994/08/13 12:20:56;  author: john;  state: Exp;
32270 Made the networking uise the Players array.
32271 ----------------------------
32272 revision 1.8
32273 date: 1994/07/22 12:36:24;  author: matt;  state: Exp;
32274 Cleaned up editor/game interactions some more.
32275 ----------------------------
32276 revision 1.7
32277 date: 1994/07/19 20:15:33;  author: matt;  state: Exp;
32278 Name for each level now saved in the .SAV file & stored in Current_level_name
32279 ----------------------------
32280 revision 1.6
32281 date: 1994/07/02 13:49:33;  author: matt;  state: Exp;
32282 Cleaned up includes
32283 ----------------------------
32284 revision 1.5
32285 date: 1994/07/02 13:09:52;  author: matt;  state: Exp;
32286 Moved player stats struct from gameseq.h to player.h
32287 ----------------------------
32288 revision 1.4
32289 date: 1994/07/01 16:35:35;  author: yuan;  state: Exp;
32290 Added key system
32291 ----------------------------
32292 revision 1.3
32293 date: 1994/06/26 14:07:35;  author: matt;  state: Exp;
32294 Added prototypes
32295 ----------------------------
32296 revision 1.2
32297 date: 1994/06/24 17:03:56;  author: john;  state: Exp;
32298 Added VFX support. Also took all game sequencing stuff like
32299 EndGame out and put it into gameseq.c
32300 ----------------------------
32301 revision 1.1
32302 date: 1994/06/24 14:13:53;  author: john;  state: Exp;
32303 Initial revision
32304 =============================================================================
32305 RCS file: f:/miner/source/main/gauges.h,v
32306 Working file: main/gauges.h
32307 head: 2.0
32308 branch:
32309 description: Prototypes and defines for gauges
32310 ----------------------------
32311 revision 2.0
32312 date: 1995/02/27 11:28:45;  author: john;  state: Exp;
32313 New version 2.0, which has no anonymous unions, builds with
32314 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32315 ----------------------------
32316 revision 1.27
32317 date: 1994/12/14 18:06:39;  author: matt;  state: Exp;
32318 Added prototype
32319 ----------------------------
32320 revision 1.26
32321 date: 1994/12/09 16:19:52;  author: yuan;  state: Exp;
32322 kill matrix stuff.
32323 ----------------------------
32324 revision 1.25
32325 date: 1994/10/25 11:07:34;  author: mike;  state: Exp;
32326 Prototype play_homing_warning.
32327 ----------------------------
32328 revision 1.24
32329 date: 1994/10/24 16:34:39;  author: mike;  state: Exp;
32330 Increase MAX_GAUGE_BMS from 56 to 80...
32331 ----------------------------
32332 revision 1.23
32333 date: 1994/10/21 20:43:47;  author: mike;  state: Exp;
32334 Prototype add_bonus_points_to_score.
32335 ----------------------------
32336 revision 1.22
32337 date: 1994/10/14 15:56:33;  author: mike;  state: Exp;
32338 Prototype update_laser_weapon_info.
32339 ----------------------------
32340 revision 1.21
32341 date: 1994/10/13 15:17:26;  author: mike;  state: Exp;
32342 Remove afterburner references.
32343 ----------------------------
32344 revision 1.20
32345 date: 1994/10/05 17:09:46;  author: matt;  state: Exp;
32346 Added functional reticle
32347 ----------------------------
32348 revision 1.19
32349 date: 1994/10/04 21:41:29;  author: matt;  state: Exp;
32350 Added cloaked player gauge effect, and different ship bitmap for each player
32351 ----------------------------
32352 revision 1.18
32353 date: 1994/09/26 13:29:40;  author: matt;  state: Exp;
32354 Added extra life each 100,000 points, and show icons on HUD for num lives
32355 ----------------------------
32356 revision 1.17
32357 date: 1994/09/20 11:56:08;  author: matt;  state: Exp;
32358 Added prototype
32359 ----------------------------
32360 revision 1.16
32361 date: 1994/09/20 00:11:03;  author: matt;  state: Exp;
32362 Finished gauges for Status Bar, including hostage video display.
32363 ----------------------------
32364 revision 1.15
32365 date: 1994/09/17 23:57:18;  author: matt;  state: Exp;
32366 Got some, but not all, off the status bar gauges working
32367 ----------------------------
32368 revision 1.14
32369 date: 1994/09/16 13:08:46;  author: mike;  state: Exp;
32370 Prototype say_afterburner_status.
32371 ----------------------------
32372 revision 1.13
32373 date: 1994/09/14 16:27:03;  author: mike;  state: Exp;
32374 Prototype player_dead_message();
32375 ----------------------------
32376 revision 1.12
32377 date: 1994/07/20 17:34:43;  author: yuan;  state: Exp;
32378 Some minor bug fixes and new key gauges...
32379 ----------------------------
32380 revision 1.11
32381 date: 1994/07/14 14:46:02;  author: yuan;  state: Exp;
32382 Added score effect.
32383 ----------------------------
32384 revision 1.10
32385 date: 1994/07/12 16:22:00;  author: yuan;  state: Exp;
32386 Increased number of maximum gauges.
32387 ----------------------------
32388 revision 1.9
32389 date: 1994/07/11 20:10:36;  author: yuan;  state: Exp;
32390 Numerical gauges.
32391 ----------------------------
32392 revision 1.8
32393 date: 1994/07/10 18:01:28;  author: yuan;  state: Exp;
32394 Added new gauges.
32395 ----------------------------
32396 revision 1.7
32397 date: 1994/06/21 15:08:22;  author: john;  state: Exp;
32398 Made demo record HUD message and cleaned up the HUD code.
32399 ----------------------------
32400 revision 1.6
32401 date: 1994/06/21 12:40:46;  author: yuan;  state: Exp;
32402 Fixing HUD message.
32403 ----------------------------
32404 revision 1.5
32405 date: 1994/06/21 12:11:56;  author: yuan;  state: Exp;
32406 Fixed up menus and added HUDisplay messages.
32407 ----------------------------
32408 revision 1.4
32409 date: 1994/04/28 21:34:24;  author: mike;  state: Exp;
32410 prototype check_erase_gauge
32411 ----------------------------
32412 revision 1.3
32413 date: 1994/04/06 14:42:46;  author: yuan;  state: Exp;
32414 Adding new powerups.
32415 ----------------------------
32416 revision 1.2
32417 date: 1993/12/05 22:48:58;  author: matt;  state: Exp;
32418 Reworked include files in an attempt to cut down on build times
32419 ----------------------------
32420 revision 1.1
32421 date: 1993/12/05 21:07:55;  author: matt;  state: Exp;
32422 Initial revision
32423 =============================================================================
32424 RCS file: f:/miner/source/2d/gr.h,v
32425 Working file: 2d/gr.h
32426 head: 1.45
32427 branch:
32428 description: Definitions for graphics lib.
32429 ----------------------------
32430 revision 1.45
32431 date: 1994/11/18 22:50:21;  author: john;  state: Exp;
32432 Changed shorts to ints in parameters.
32433 ----------------------------
32434 revision 1.44
32435 date: 1994/11/13 13:04:07;  author: john;  state: Exp;
32436 Added paged out bit in bitmap structure.  Commented out the
32437 poly code that is never used.
32438 ----------------------------
32439 revision 1.43
32440 date: 1994/11/09 23:04:56;  author: mike;  state: Exp;
32441 Add avg_color field.
32442 ----------------------------
32443 revision 1.42
32444 date: 1994/10/27 00:53:35;  author: john;  state: Exp;
32445 Added RLE Flag to bitmap structere.
32446 ----------------------------
32447 revision 1.41
32448 date: 1994/10/26 23:55:52;  author: john;  state: Exp;
32449 Took out roller; Took out inverse table.
32450 ----------------------------
32451 revision 1.40
32452 date: 1994/08/11 17:59:12;  author: mike;  state: Exp;
32453 Assembler merge functions written for 3 rotations of bitmaps.
32454 ----------------------------
32455 revision 1.39
32456 date: 1994/08/10 12:24:56;  author: matt;  state: Exp;
32457 Added support for colors fonts & kerned fonts
32458 Made our own font file format
32459 ----------------------------
32460 revision 1.38
32461 date: 1994/07/27 18:30:18;  author: john;  state: Exp;
32462 Took away the blending table.
32463 ----------------------------
32464 revision 1.37
32465 date: 1994/06/16 15:25:06;  author: mike;  state: Exp;
32466 Add flag BM_FLAG_NO_LIGHTING.
32467 ----------------------------
32468 revision 1.36
32469 date: 1994/05/31 10:01:22;  author: john;  state: Exp;
32470 *** empty log message ***
32471 ----------------------------
32472 revision 1.35
32473 date: 1994/05/31 07:53:34;  author: john;  state: Exp;
32474 *** empty log message ***
32475 ----------------------------
32476 revision 1.34
32477 date: 1994/05/14 17:19:41;  author: matt;  state: Exp;
32478 Added externs
32479 ----------------------------
32480 revision 1.33
32481 date: 1994/05/12 17:33:09;  author: john;  state: Exp;
32482 Added circle code.
32483 ----------------------------
32484 revision 1.32
32485 date: 1994/05/06 12:50:16;  author: john;  state: Exp;
32486 Added supertransparency; neatend things up; took out warnings.
32487 ----------------------------
32488 revision 1.31
32489 date: 1994/05/04 10:06:06;  author: john;  state: Exp;
32490 Added flag for bitmap super-transparency.
32491 ----------------------------
32492 revision 1.30
32493 date: 1994/05/03 19:38:56;  author: john;  state: Exp;
32494 *** empty log message ***
32495 ----------------------------
32496 revision 1.29
32497 date: 1994/04/22 11:16:05;  author: john;  state: Exp;
32498 *** empty log message ***
32499 ----------------------------
32500 revision 1.28
32501 date: 1994/04/08 16:59:32;  author: john;  state: Exp;
32502 Add fading poly's; Made palette fade 32 instead of 16.
32503 ----------------------------
32504 revision 1.27
32505 date: 1994/03/16 17:29:52;  author: john;  state: Exp;
32506 *** empty log message ***
32507 ----------------------------
32508 revision 1.26
32509 date: 1994/03/16 17:20:51;  author: john;  state: Exp;
32510 Added slow palette searching options.
32511 ----------------------------
32512 revision 1.25
32513 date: 1994/03/14 17:59:20;  author: john;  state: Exp;
32514 Added function to check bitmap's transparency.
32515 ----------------------------
32516 revision 1.24
32517 date: 1994/03/14 16:56:26;  author: john;  state: Exp;
32518 Changed grs_bitmap structure to include bm_flags.
32519 ----------------------------
32520 revision 1.23
32521 date: 1994/02/18 15:32:30;  author: john;  state: Exp;
32522 *** empty log message ***
32523 ----------------------------
32524 revision 1.22
32525 date: 1994/01/25 11:40:48;  author: john;  state: Exp;
32526 Added gr_check_mode function.
32527 ----------------------------
32528 revision 1.21
32529 date: 1994/01/12 13:45:24;  author: john;  state: Exp;
32530 Added scaler.
32531 ----------------------------
32532 revision 1.20
32533 date: 1993/12/21 19:58:24;  author: john;  state: Exp;
32534 added selector stuff
32535 ----------------------------
32536 revision 1.19
32537 date: 1993/12/21 11:40:40;  author: john;  state: Exp;
32538 *** empty log message ***
32539 ----------------------------
32540 revision 1.18
32541 date: 1993/12/09 15:02:08;  author: john;  state: Exp;
32542 Changed palette stuff majorly
32543 ----------------------------
32544 revision 1.17
32545 date: 1993/12/07 12:32:05;  author: john;  state: Exp;
32546 moved bmd_palette to gr_palette
32547 ----------------------------
32548 revision 1.16
32549 date: 1993/11/28 12:08:06;  author: mike;  state: Exp;
32550 Change prototype for rotate_bitmap.
32551 ----------------------------
32552 revision 1.15
32553 date: 1993/11/18 14:22:51;  author: mike;  state: Exp;
32554 Add prototype for rotate_bitmap.
32555 ----------------------------
32556 revision 1.14
32557 date: 1993/11/17 19:00:59;  author: mike;  state: Exp;
32558 Add prototype for test_rotate_bitmap
32559 ----------------------------
32560 revision 1.13
32561 date: 1993/11/16 11:28:58;  author: john;  state: Exp;
32562 *** empty log message ***
32563 ----------------------------
32564 revision 1.12
32565 date: 1993/10/26 13:17:43;  author: john;  state: Exp;
32566 *** empty log message ***
32567 ----------------------------
32568 revision 1.11
32569 date: 1993/10/15 16:23:37;  author: john;  state: Exp;
32570 y
32571 ----------------------------
32572 revision 1.10
32573 date: 1993/09/28 15:32:33;  author: john;  state: Exp;
32574 added def for save/restore vidmode
32575 ----------------------------
32576 revision 1.9
32577 date: 1993/09/28 12:51:46;  author: matt;  state: Exp;
32578 Added aspect ratio to grs_screen structure
32579 ----------------------------
32580 revision 1.8
32581 date: 1993/09/26 22:45:12;  author: matt;  state: Exp;
32582 Changed prototypes for line functions to take fixes, not ints.
32583 ----------------------------
32584 revision 1.7
32585 date: 1993/09/26 18:58:16;  author: john;  state: Exp;
32586 fadein/out stuff
32587 ----------------------------
32588 revision 1.6
32589 date: 1993/09/14 16:26:44;  author: matt;  state: Exp;
32590 Changed gr_change_mode() to be gr_set_mode()
32591 ----------------------------
32592 revision 1.4
32593 date: 1993/09/14 13:08:45;  author: john;  state: Exp;
32594 added gr_change_mode
32595 ----------------------------
32596 revision 1.3
32597 date: 1993/09/08 13:56:03;  author: matt;  state: Exp;
32598 Put 'if' block around body of file; added bitmap type BM_RGB15
32599 ----------------------------
32600 revision 1.2
32601 date: 1993/09/08 13:02:14;  author: john;  state: Exp;
32602 Changed structure definitions a bit.
32603 ----------------------------
32604 revision 1.1
32605 date: 1993/09/08 11:25:15;  author: john;  state: Exp;
32606 Initial revision
32607 =============================================================================
32608 RCS file: f:/miner/source/2d/grdef.h,v
32609 Working file: 2d/grdef.h
32610 head: 1.9
32611 branch:
32612 description: Internal definitions for graphics lib.
32613 ----------------------------
32614 revision 1.9
32615 date: 1995/03/01 12:31:13;  author: john;  state: Exp;
32616 Added wait for retrace thingy in modex setstart.
32617 ----------------------------
32618 revision 1.8
32619 date: 1994/05/06 12:50:09;  author: john;  state: Exp;
32620 Added supertransparency; neatend things up; took out warnings.
32621 ----------------------------
32622 revision 1.7
32623 date: 1994/01/25 11:40:29;  author: john;  state: Exp;
32624 Added gr_check_mode function.
32625 ----------------------------
32626 revision 1.6
32627 date: 1993/10/15 16:22:53;  author: john;  state: Exp;
32628 y
32629 ----------------------------
32630 revision 1.5
32631 date: 1993/09/29 17:31:00;  author: john;  state: Exp;
32632 added gr_vesa_pixel
32633 ----------------------------
32634 revision 1.4
32635 date: 1993/09/29 16:14:43;  author: john;  state: Exp;
32636 added global canvas descriptors.
32637 ----------------------------
32638 revision 1.3
32639 date: 1993/09/08 17:38:02;  author: john;  state: Exp;
32640 Looking for errors
32641 ----------------------------
32642 revision 1.2
32643 date: 1993/09/08 15:54:29;  author: john;  state: Exp;
32644 *** empty log message ***
32645 ----------------------------
32646 revision 1.1
32647 date: 1993/09/08 11:37:57;  author: john;  state: Exp;
32648 Initial revision
32649 =============================================================================
32650 RCS file: f:/miner/source/main/hash.h,v
32651 Working file: main/hash.h
32652 head: 2.0
32653 branch:
32654 description: .
32655 ----------------------------
32656 revision 2.0
32657 date: 1995/02/27 11:26:46;  author: john;  state: Exp;
32658 New version 2.0, which has no anonymous unions, builds with
32659 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32660 ----------------------------
32661 revision 1.2
32662 date: 1994/05/03 16:45:24;  author: john;  state: Exp;
32663 Added hash table lookup to speed up loading.
32664 ----------------------------
32665 revision 1.1
32666 date: 1994/05/03 11:35:16;  author: john;  state: Exp;
32667 Initial revision
32668 =============================================================================
32669 RCS file: f:/miner/source/main/hostage.h,v
32670 Working file: main/hostage.h
32671 head: 2.0
32672 branch:
32673 description: Header for hostage.c
32674 ----------------------------
32675 revision 2.0
32676 date: 1995/02/27 11:27:50;  author: john;  state: Exp;
32677 New version 2.0, which has no anonymous unions, builds with
32678 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32679 ----------------------------
32680 revision 1.23
32681 date: 1995/01/15 19:42:06;  author: matt;  state: Exp;
32682 Ripped out hostage faces for registered version
32683 ----------------------------
32684 revision 1.22
32685 date: 1994/12/19 16:35:07;  author: john;  state: Exp;
32686 Made hoastage playback end when ship dies.
32687 ----------------------------
32688 revision 1.21
32689 date: 1994/11/30 17:22:12;  author: matt;  state: Exp;
32690 Ripped out hostage faces in shareware version
32691 ----------------------------
32692 revision 1.20
32693 date: 1994/11/19 19:53:43;  author: matt;  state: Exp;
32694 Added code to full support different hostage head clip & message for
32695 each hostage.
32696 ----------------------------
32697 revision 1.19
32698 date: 1994/11/19 16:35:28;  author: matt;  state: Exp;
32699 Got rid of unused code, & made an array smaller
32700 ----------------------------
32701 revision 1.18
32702 date: 1994/10/23 02:10:57;  author: matt;  state: Exp;
32703 Got rid of obsolete hostage_info stuff
32704 ----------------------------
32705 revision 1.17
32706 date: 1994/09/20 00:10:37;  author: matt;  state: Exp;
32707 Finished gauges for Status Bar, including hostage video display.
32708 ----------------------------
32709 revision 1.16
32710 date: 1994/09/01 10:41:24;  author: matt;  state: Exp;
32711 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
32712 correctly if width & height of bitmap are different.
32713 ----------------------------
32714 revision 1.15
32715 date: 1994/08/14 23:15:14;  author: matt;  state: Exp;
32716 Added animating bitmap hostages, and cleaned up vclips a bit
32717 ----------------------------
32718 revision 1.14
32719 date: 1994/07/14 22:06:51;  author: john;  state: Exp;
32720 Fix radar/hostage vclip conflict.
32721 ----------------------------
32722 revision 1.13
32723 date: 1994/07/14 22:05:41;  author: john;  state: Exp;
32724 Made radar display not conflict with hostage
32725 vclip talking.
32726 ----------------------------
32727 revision 1.12
32728 date: 1994/07/06 13:41:46;  author: matt;  state: Exp;
32729 Added support for bitmap hostages
32730 ----------------------------
32731 revision 1.11
32732 date: 1994/07/06 12:43:36;  author: john;  state: Exp;
32733 Made generic messages for hostages.
32734 ----------------------------
32735 revision 1.10
32736 date: 1994/07/06 10:55:09;  author: john;  state: Exp;
32737 New structures for hostages.
32738 ----------------------------
32739 revision 1.9
32740 date: 1994/07/05 12:48:47;  author: john;  state: Exp;
32741 Put functionality of New Hostage spec into code.
32742 ----------------------------
32743 revision 1.8
32744 date: 1994/07/01 17:55:14;  author: john;  state: Exp;
32745 First version of not-working hostage system.
32746 ----------------------------
32747 revision 1.7
32748 date: 1994/06/15 14:57:10;  author: john;  state: Exp;
32749 Added triggers to demo recording.
32750 ----------------------------
32751 revision 1.6
32752 date: 1994/06/08 18:15:49;  author: john;  state: Exp;
32753 Bunch of new stuff that basically takes constants out of the code
32754 and puts them into bitmaps.tbl.
32755 ----------------------------
32756 revision 1.5
32757 date: 1994/05/02 12:43:06;  author: yuan;  state: Exp;
32758 Fixed warnings.
32759 ----------------------------
32760 revision 1.4
32761 date: 1994/04/06 14:42:46;  author: yuan;  state: Exp;
32762 Adding new powerups.
32763 ----------------------------
32764 revision 1.3
32765 date: 1994/04/01 11:15:14;  author: yuan;  state: Exp;
32766 Added multiple bitmap functionality to all objects...
32767 (hostages, powerups, lasers, etc.)  
32768 Hostages and powerups are implemented in the object system,
32769 just need to finish function call to "affect" player.
32770 ----------------------------
32771 revision 1.2
32772 date: 1994/03/31 12:04:35;  author: matt;  state: Exp;
32773 Added prototypes for 2 funcs
32774 ----------------------------
32775 revision 1.1
32776 date: 1994/03/31 11:39:24;  author: matt;  state: Exp;
32777 Initial revision
32778 =============================================================================
32779 RCS file: f:/miner/source/2d/ibitblt.h,v
32780 Working file: 2d/ibitblt.h
32781 head: 1.2
32782 branch:
32783 description: Prototypes for the ibitblt functions.
32784 ----------------------------
32785 revision 1.2
32786 date: 1994/05/31 11:10:56;  author: john;  state: Exp;
32787 *** empty log message ***
32788 ----------------------------
32789 revision 1.1
32790 date: 1994/05/30 16:08:46;  author: john;  state: Exp;
32791 Initial revision
32792 =============================================================================
32793 RCS file: f:/miner/source/iff/iff.h,v
32794 Working file: iff/iff.h
32795 head: 1.12
32796 branch:
32797 description: Header for IFF routines
32798 ----------------------------
32799 revision 1.12
32800 date: 1994/11/07 21:26:53;  author: matt;  state: Exp;
32801 Added new function iff_read_into_bitmap()
32802 ----------------------------
32803 revision 1.11
32804 date: 1994/05/06 19:37:38;  author: matt;  state: Exp;
32805 Improved error handling and checking
32806 ----------------------------
32807 revision 1.10
32808 date: 1994/04/16 20:12:54;  author: matt;  state: Exp;
32809 Made masked (stenciled) bitmaps work
32810 ----------------------------
32811 revision 1.9
32812 date: 1994/04/13 23:46:00;  author: matt;  state: Exp;
32813 Added function, iff_errormsg(), which returns ptr to error message.
32814 ----------------------------
32815 revision 1.8
32816 date: 1994/04/13 23:27:10;  author: matt;  state: Exp;
32817 Put in support for anim brushes (.abm files)
32818 ----------------------------
32819 revision 1.7
32820 date: 1994/04/06 23:08:02;  author: matt;  state: Exp;
32821 Cleaned up code; added prototype (but no new code) for anim brush read
32822 ----------------------------
32823 revision 1.6
32824 date: 1994/01/22 14:40:59;  author: john;  state: Exp;
32825 Fixed bug with declareations.
32826 ----------------------------
32827 revision 1.5
32828 date: 1994/01/22 14:23:13;  author: john;  state: Exp;
32829 Added global vars to check transparency
32830 ----------------------------
32831 revision 1.4
32832 date: 1993/10/27 12:47:42;  author: john;  state: Exp;
32833 Extended the comments
32834 ----------------------------
32835 revision 1.3
32836 date: 1993/09/22 19:17:20;  author: matt;  state: Exp;
32837 Fixed handling of pad byte in ILBM/PPB body - was writing pad byte to
32838 destination buffer.
32839 ----------------------------
32840 revision 1.2
32841 date: 1993/09/08 19:23:25;  author: matt;  state: Exp;
32842 Added additional return code, IFF_BAD_BM_TYPE
32843 ----------------------------
32844 revision 1.1
32845 date: 1993/09/08 14:24:21;  author: matt;  state: Exp;
32846 Initial revision
32847 =============================================================================
32848 RCS file: f:/miner/source/main/iglasses.h,v
32849 Working file: main/iglasses.h
32850 head: 2.0
32851 branch:
32852 description: Routines for the i-glasses VR stuff.
32853 ----------------------------
32854 revision 2.0
32855 date: 1995/02/27 11:28:38;  author: john;  state: Exp;
32856 New version 2.0, which has no anonymous unions, builds with
32857 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32858 ----------------------------
32859 revision 1.2
32860 date: 1995/02/09 22:01:01;  author: john;  state: Exp;
32861 Added i-glasses tracking.
32862 ----------------------------
32863 revision 1.1
32864 date: 1995/02/09 15:54:01;  author: john;  state: Exp;
32865 Initial revision
32866 =============================================================================
32867 RCS file: f:/miner/source/main/inferno.h,v
32868 Working file: main/inferno.h
32869 head: 2.4
32870 branch:
32871 description: Header file for Inferno.  Should be included in all source files. 
32872 =============================================================================
32873 RCS file: f:/miner/source/main/editor/info.h,v
32874 Working file: main/editor/info.h
32875 head: 2.0
32876 branch:
32877 description: Header for info.c
32878 ----------------------------
32879 revision 2.0
32880 date: 1995/02/27 11:34:32;  author: john;  state: Exp;
32881 Version 2.0! No anonymous unions, Watcom 10.0, with no need
32882 for bitmaps.tbl.
32883 ----------------------------
32884 revision 1.2
32885 date: 1994/05/14 17:18:17;  author: matt;  state: Exp;
32886 Got rid of externs in source (non-header) files
32887 ----------------------------
32888 revision 1.1
32889 date: 1994/05/14 16:30:39;  author: matt;  state: Exp;
32890 Initial revision
32891 =============================================================================
32892 RCS file: f:/miner/source/bios/ipx.h,v
32893 Working file: bios/ipx.h
32894 head: 2.6
32895 branch:
32896 description: Prototype for IPX communications.
32897 ----------------------------
32898 revision 2.6
32899 date: 1995/03/29 11:19:32;  author: john;  state: Exp;
32900 Added broadcasting over a net.
32901 ----------------------------
32902 revision 2.5
32903 date: 1995/03/28 20:04:43;  author: john;  state: Exp;
32904 Took away alternate server stuff.
32905 ----------------------------
32906 revision 2.4
32907 date: 1995/03/23 19:00:10;  author: john;  state: Exp;
32908 Added user list capabitly.
32909 ----------------------------
32910 revision 2.3
32911 date: 1995/03/23 12:26:57;  author: john;  state: Exp;
32912 Move IPX into bios lib.
32913 ----------------------------
32914 revision 2.2
32915 date: 1995/03/22 19:08:14;  author: john;  state: Exp;
32916 Added code to fix sending packets over router... now
32917 we just need to make broadcasts go over router!!
32918 ----------------------------
32919 revision 2.1
32920 date: 1995/03/21 08:39:56;  author: john;  state: Exp;
32921 Ifdef'd out the NETWORK code.
32922 ----------------------------
32923 revision 2.0
32924 date: 1995/02/27 11:30:16;  author: john;  state: Exp;
32925 New version 2.0, which has no anonymous unions, builds with
32926 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
32927 ----------------------------
32928 revision 1.16
32929 date: 1995/02/16 17:34:52;  author: john;  state: Exp;
32930 Added code to allow dynamic socket changing.
32931 ----------------------------
32932 revision 1.15
32933 date: 1995/01/04 21:43:27;  author: rob;  state: Exp;
32934 Remove SPX size definition.
32935 ----------------------------
32936 revision 1.14
32937 date: 1995/01/03 13:46:18;  author: john;  state: Exp;
32938 Added code that should make ipx work over different servers,
32939 but ifdef'd it out with SHAREWARE in ipx.c.  I haven't tested
32940 this, and I hope it doesn't introduce net bugs.
32941 ----------------------------
32942 revision 1.13
32943 date: 1994/11/02 11:37:16;  author: rob;  state: Exp;
32944 Changed default socket number to a higher regions.
32945 ----------------------------
32946 revision 1.12
32947 date: 1994/11/01 15:56:51;  author: rob;  state: Exp;
32948 Added defines for SPX socketsx.
32949 ----------------------------
32950 revision 1.11
32951 date: 1994/10/31 19:23:31;  author: rob;  state: Exp;
32952 Added a prototype for the new object send function.
32953 ----------------------------
32954 revision 1.10
32955 date: 1994/09/07 13:37:25;  author: john;  state: Exp;
32956 Changed default socket to 0x4000, because 
32957 the ipx/spx book says that we can only use
32958 sockets 0x4000 - 0x7fff.
32959 ----------------------------
32960 revision 1.9
32961 date: 1994/08/25 18:14:45;  author: matt;  state: Exp;
32962 Changed socket because of packet change
32963 ----------------------------
32964 revision 1.8
32965 date: 1994/08/12 22:42:24;  author: john;  state: Exp;
32966 Took away Player_stats; added Players array.
32967 ----------------------------
32968 revision 1.7
32969 date: 1994/08/09 19:31:47;  author: john;  state: Exp;
32970 Networking changes.
32971 ----------------------------
32972 revision 1.6
32973 date: 1994/08/05 16:11:46;  author: john;  state: Exp;
32974 Psuedo working version of networking.
32975 ----------------------------
32976 revision 1.5
32977 date: 1994/08/04 19:17:20;  author: john;  state: Exp;
32978 Inbetween version of network stuff.
32979 ----------------------------
32980 revision 1.4
32981 date: 1994/07/29 16:08:59;  author: john;  state: Exp;
32982 *** empty log message ***
32983 ----------------------------
32984 revision 1.3
32985 date: 1994/07/25 12:33:22;  author: john;  state: Exp;
32986 Network "pinging" in.
32987 ----------------------------
32988 revision 1.2
32989 date: 1994/07/20 15:58:29;  author: john;  state: Exp;
32990 First installment of ipx stuff.
32991 ----------------------------
32992 revision 1.1
32993 date: 1994/07/19 15:43:05;  author: john;  state: Exp;
32994 Initial revision
32995 =============================================================================
32996 RCS file: f:/miner/source/bios/joy.h,v
32997 Working file: bios/joy.h
32998 head: 1.17
32999 branch:
33000 description: Headers for joystick functions
33001 ----------------------------
33002 revision 1.17
33003 date: 1995/10/07 13:22:30;  author: john;  state: Exp;
33004 Added new method of reading joystick that allows higher-priority
33005 interrupts to go off.
33006 ----------------------------
33007 revision 1.16
33008 date: 1995/02/14 11:17:13;  author: john;  state: Exp;
33009 Added BIOS readings for stick.
33010 ----------------------------
33011 revision 1.15
33012 date: 1995/02/14 10:09:58;  author: john;  state: Exp;
33013 Added OS2 switch.
33014 ----------------------------
33015 revision 1.14
33016 date: 1994/12/28 13:49:20;  author: john;  state: Exp;
33017 Added function to set joystick for slow reading
33018 ----------------------------
33019 revision 1.13
33020 date: 1994/10/13 11:36:06;  author: john;  state: Exp;
33021 Made joy_down_time be kept track of in fixed seconds,
33022 not ticks.
33023 ----------------------------
33024 revision 1.12
33025 date: 1994/10/12 17:03:16;  author: john;  state: Exp;
33026 Added prototype for joy_get_scaled_reading.
33027 ----------------------------
33028 revision 1.11
33029 date: 1994/10/12 16:57:55;  author: john;  state: Exp;
33030 Added function to set a joystick button's state.
33031 ----------------------------
33032 revision 1.10
33033 date: 1994/09/22 16:09:00;  author: john;  state: Exp;
33034 Fixed some virtual memory lockdown problems with timer and
33035 joystick.
33036 ----------------------------
33037 revision 1.9
33038 date: 1994/08/31 09:54:57;  author: john;  state: Exp;
33039 *** empty log message ***
33040 ----------------------------
33041 revision 1.8
33042 date: 1994/08/29 21:02:24;  author: john;  state: Exp;
33043 Added joy_set_cal_values...
33044 ----------------------------
33045 revision 1.7
33046 date: 1994/08/29 20:51:52;  author: john;  state: Exp;
33047 Added better cyberman support; also, joystick calibration
33048 value return funcctiionn,
33049 ----------------------------
33050 revision 1.6
33051 date: 1994/07/01 10:55:44;  author: john;  state: Exp;
33052 Fixed some bugs... added support for 4 axis.
33053 ----------------------------
33054 revision 1.5
33055 date: 1994/06/30 20:36:51;  author: john;  state: Exp;
33056 Revamped joystick code.
33057 ----------------------------
33058 revision 1.4
33059 date: 1994/04/22 12:52:10;  author: john;  state: Exp;
33060 *** empty log message ***
33061 ----------------------------
33062 revision 1.3
33063 date: 1994/01/18 13:53:39;  author: john;  state: Exp;
33064 Made all joystick functions return int's instead of
33065 shorts.  Also made the stick reading be CPU speed
33066 independant by using the timer_get_Stamp_64 
33067 function.
33068 ----------------------------
33069 revision 1.2
33070 date: 1994/01/18 10:58:42;  author: john;  state: Exp;
33071 *** empty log message ***
33072 ----------------------------
33073 revision 1.1
33074 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
33075 Initial revision
33076 =============================================================================
33077 RCS file: f:/miner/source/main/joycal.h,v
33078 Working file: main/joycal.h
33079 head: 1.1
33080 branch:
33081 description: Routines to calibrate the joystick
33082 ----------------------------
33083 revision 1.1
33084 date: 1994/08/17 09:58:17;  author: john;  state: Exp;
33085 Initial revision
33086 =============================================================================
33087 RCS file: f:/miner/source/main/joydefs.h,v
33088 Working file: main/joydefs.h
33089 head: 2.0
33090 branch:
33091 description: Variables for joystick settings.
33092 ----------------------------
33093 revision 2.0
33094 date: 1995/02/27 11:32:12;  author: john;  state: Exp;
33095 New version 2.0, which has no anonymous unions, builds with
33096 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
33097 ----------------------------
33098 revision 1.12
33099 date: 1995/01/25 14:37:52;  author: john;  state: Exp;
33100 Made joystick only prompt for calibration once...
33101 ----------------------------
33102 revision 1.11
33103 date: 1994/10/13 11:35:43;  author: john;  state: Exp;
33104 Made Thrustmaster FCS Hat work.  Put a background behind the
33105 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
33106 menu to new menu. Made F6 be calibrate joystick.
33107 ----------------------------
33108 revision 1.10
33109 date: 1994/09/10 15:46:49;  author: john;  state: Exp;
33110 First version of new keyboard configuration.
33111 ----------------------------
33112 revision 1.9
33113 date: 1994/09/06 14:51:29;  author: john;  state: Exp;
33114 Added sensitivity adjustment, fixed bug with joystick button not
33115 staying down.
33116 ----------------------------
33117 revision 1.8
33118 date: 1994/08/31 12:56:29;  author: john;  state: Exp;
33119 *** empty log message ***
33120 ----------------------------
33121 revision 1.7
33122 date: 1994/08/30 16:37:07;  author: john;  state: Exp;
33123 Added menu options to set controls.
33124 ----------------------------
33125 revision 1.6
33126 date: 1994/08/29 21:18:33;  author: john;  state: Exp;
33127 First version of new keyboard/oystick remapping stuff.
33128 ----------------------------
33129 revision 1.5
33130 date: 1994/08/24 19:00:30;  author: john;  state: Exp;
33131 Changed key_down_time to return fixed seconds instead of
33132 milliseconds.
33133 ----------------------------
33134 revision 1.4
33135 date: 1994/08/17 16:50:04;  author: john;  state: Exp;
33136 Added damaging fireballs, missiles.
33137 ----------------------------
33138 revision 1.3
33139 date: 1994/07/01 10:55:18;  author: john;  state: Exp;
33140 Added analog joystick throttle
33141 ----------------------------
33142 revision 1.2
33143 date: 1994/06/30 20:04:46;  author: john;  state: Exp;
33144 Added -joydef support.
33145 ----------------------------
33146 revision 1.1
33147 date: 1994/06/30 18:08:12;  author: john;  state: Exp;
33148 Initial revision
33149 =============================================================================
33150 RCS file: f:/miner/source/main/kconfig.h,v
33151 Working file: main/kconfig.h
33152 head: 2.0
33153 branch:
33154 description: Prototypes for reading controls
33155 ----------------------------
33156 revision 2.0
33157 date: 1995/02/27 11:29:38;  author: john;  state: Exp;
33158 New version 2.0, which has no anonymous unions, builds with
33159 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
33160 ----------------------------
33161 revision 1.23
33162 date: 1995/01/12 11:41:44;  author: john;  state: Exp;
33163 Added external control reading.
33164 ----------------------------
33165 revision 1.22
33166 date: 1994/12/07 16:15:30;  author: john;  state: Exp;
33167 Added command to check to see if a joystick axes has been used.
33168 ----------------------------
33169 revision 1.21
33170 date: 1994/11/29 03:46:29;  author: john;  state: Exp;
33171 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
33172 command line arg.
33173 ----------------------------
33174 revision 1.20
33175 date: 1994/11/22 16:54:45;  author: mike;  state: Exp;
33176 autorepeat on missiles.
33177 ----------------------------
33178 revision 1.19
33179 date: 1994/11/07 14:01:27;  author: john;  state: Exp;
33180 Changed the gamma correction sequencing.
33181 ----------------------------
33182 revision 1.18
33183 date: 1994/11/01 16:40:02;  author: john;  state: Exp;
33184 Added Gamma correction.
33185 ----------------------------
33186 revision 1.17
33187 date: 1994/10/25 23:09:24;  author: john;  state: Exp;
33188 Made the automap key configurable.
33189 ----------------------------
33190 revision 1.16
33191 date: 1994/10/24 19:56:51;  author: john;  state: Exp;
33192 Made the new user setup prompt for config options.
33193 ----------------------------
33194 revision 1.15
33195 date: 1994/10/24 17:44:18;  author: john;  state: Exp;
33196 Added stereo channel reversing.
33197 ----------------------------
33198 revision 1.14
33199 date: 1994/10/22 13:19:33;  author: john;  state: Exp;
33200 Took out toggle primary/secondary weapons.  Fixed black
33201 background for 'axes' and 'buttons' text.
33202 ----------------------------
33203 revision 1.13
33204 date: 1994/10/17 13:06:51;  author: john;  state: Exp;
33205 Moved the descent.cfg info into the player config file.
33206 ----------------------------
33207 revision 1.12
33208 date: 1994/10/14 12:14:47;  author: john;  state: Exp;
33209 Changed code so that by doing DEL+F12 saves the current kconfig
33210 values as default. Added support for drop_bomb key.  Took out
33211 unused slots for keyboard.  Made keyboard use control_type of 0
33212 save slots.
33213 ----------------------------
33214 revision 1.11
33215 date: 1994/10/13 19:21:33;  author: john;  state: Exp;
33216 Added separate config saves for different devices.
33217 Made all the devices work together better, such as mice won't
33218 get read when you're playing with the joystick.
33219 ----------------------------
33220 revision 1.10
33221 date: 1994/10/13 15:18:41;  author: john;  state: Exp;
33222 Started ripping out old afterburner, show message, show automap
33223 keys in the keyboard config stuff.
33224 ----------------------------
33225 revision 1.9
33226 date: 1994/10/13 11:35:27;  author: john;  state: Exp;
33227 Made Thrustmaster FCS Hat work.  Put a background behind the
33228 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
33229 menu to new menu. Made F6 be calibrate joystick.
33230 ----------------------------
33231 revision 1.8
33232 date: 1994/10/06 14:10:50;  author: matt;  state: Exp;
33233 New function reset_cruise()
33234 ----------------------------
33235 revision 1.7
33236 date: 1994/10/03 14:58:25;  author: john;  state: Exp;
33237 Added rear_view_down_state so that the rear view can
33238 work like the automap.
33239 ----------------------------
33240 revision 1.6
33241 date: 1994/09/30 12:37:25;  author: john;  state: Exp;
33242 Added midi,digi volume to configuration.
33243 ----------------------------
33244 revision 1.5
33245 date: 1994/09/19 18:49:59;  author: john;  state: Exp;
33246 Added switch to disable joystick.
33247 ----------------------------
33248 revision 1.4
33249 date: 1994/09/15 16:11:21;  author: john;  state: Exp;
33250 Added support for VFX1 head tracking. Fixed bug with memory over-
33251 write when using stereo mode.
33252 ----------------------------
33253 revision 1.3
33254 date: 1994/09/12 11:47:38;  author: john;  state: Exp;
33255 Made stupid cruise work better.  Make kconfig values get
33256 read/written to disk.
33257 ----------------------------
33258 revision 1.2
33259 date: 1994/09/10 15:46:55;  author: john;  state: Exp;
33260 First version of new keyboard configuration.
33261 ----------------------------
33262 revision 1.1
33263 date: 1994/09/10 13:51:40;  author: john;  state: Exp;
33264 Initial revision
33265 =============================================================================
33266 RCS file: f:/miner/source/main/editor/kdefs.h,v
33267 Working file: main/editor/kdefs.h
33268 head: 2.1
33269 branch:
33270 description: Prototypes for functions called from keypresses or buttons.
33271 ----------------------------
33272 revision 2.1
33273 date: 1995/03/08 16:07:10;  author: yuan;  state: Exp;
33274 Added segment sizing default functions.
33275 ----------------------------
33276 revision 2.0
33277 date: 1995/02/27 11:34:34;  author: john;  state: Exp;
33278 Version 2.0! No anonymous unions, Watcom 10.0, with no need
33279 for bitmaps.tbl.
33280 ----------------------------
33281 revision 1.97
33282 date: 1995/01/12 12:10:22;  author: yuan;  state: Exp;
33283 Added coop object capability.
33284 ----------------------------
33285 revision 1.96
33286 date: 1994/10/27 10:06:33;  author: mike;  state: Exp;
33287 kill macro stuff.
33288 ----------------------------
33289 revision 1.95
33290 date: 1994/09/26 23:22:59;  author: matt;  state: Exp;
33291 Added functions to keep player's starting position from getting messed up
33292 ----------------------------
33293 revision 1.94
33294 date: 1994/09/24 14:15:24;  author: mike;  state: Exp;
33295 Custom colored object support.
33296 ----------------------------
33297 revision 1.93
33298 date: 1994/09/23 18:03:52;  author: yuan;  state: Exp;
33299 Finished wall checking code.
33300 ----------------------------
33301 revision 1.92
33302 date: 1994/09/14 16:50:49;  author: yuan;  state: Exp;
33303 Added load mine only function
33304 ----------------------------
33305 revision 1.91
33306 date: 1994/08/16 18:11:03;  author: yuan;  state: Exp;
33307 Maded C place you in the center of a segment.
33308 ----------------------------
33309 revision 1.90
33310 date: 1994/08/15 17:47:55;  author: yuan;  state: Exp;
33311 Added external walls.
33312 ----------------------------
33313 revision 1.89
33314 date: 1994/08/03 10:32:10;  author: mike;  state: Exp;
33315 Texture map propagation without uv assignment.
33316 ----------------------------
33317 revision 1.88
33318 date: 1994/08/02 14:18:01;  author: mike;  state: Exp;
33319 Add Object dialog.
33320 ----------------------------
33321 revision 1.87
33322 date: 1994/07/22 17:19:15;  author: yuan;  state: Exp;
33323 Working on dialog box for refuel/repair/material/control centers.
33324 ----------------------------
33325 revision 1.86
33326 date: 1994/07/21 17:26:49;  author: matt;  state: Exp;
33327 When new mine created, the default save filename is now reset
33328 ----------------------------
33329 revision 1.85
33330 date: 1994/07/21 12:47:26;  author: mike;  state: Exp;
33331 *** empty log message ***
33332 ----------------------------
33333 revision 1.84
33334 date: 1994/07/14 14:49:19;  author: yuan;  state: Exp;
33335 Added prototype
33336 ----------------------------
33337 revision 1.83
33338 date: 1994/07/14 14:43:09;  author: yuan;  state: Exp;
33339 Added new rotation functions
33340 ----------------------------
33341 revision 1.82
33342 date: 1994/07/01 17:57:04;  author: john;  state: Exp;
33343 First version of not-working hostage system
33344 ----------------------------
33345 revision 1.81
33346 date: 1994/06/21 12:57:27;  author: yuan;  state: Exp;
33347 Remove center from segment function added to menu.
33348 ----------------------------
33349 revision 1.80
33350 date: 1994/06/17 16:05:20;  author: mike;  state: Exp;
33351 Prototype set_average_light_on_all_quick.
33352 ----------------------------
33353 revision 1.79
33354 date: 1994/05/31 16:43:24;  author: john;  state: Exp;
33355 Added hooks to create materialization centers.
33356 ----------------------------
33357 revision 1.78
33358 date: 1994/05/27 10:34:40;  author: yuan;  state: Exp;
33359 Added new Dialog boxes for Walls and Triggers.
33360 ----------------------------
33361 revision 1.77
33362 date: 1994/05/25 18:08:44;  author: yuan;  state: Exp;
33363 Revamping walls and triggers interface.
33364 Wall interface complete, but triggers are still in progress.
33365 ----------------------------
33366 revision 1.76
33367 date: 1994/05/09 23:34:04;  author: mike;  state: Exp;
33368 SubtractFromGroup, CreateSloppyAdjacentJointsGroup, ClearFoundList
33369 ----------------------------
33370 revision 1.75
33371 date: 1994/05/03 18:31:17;  author: mike;  state: Exp;
33372 Add PerturbCurside.
33373 ----------------------------
33374 revision 1.74
33375 date: 1994/05/03 11:04:39;  author: mike;  state: Exp;
33376 Add prototypes for new segment sizing functions.
33377 ----------------------------
33378 revision 1.73
33379 date: 1994/04/29 10:32:04;  author: yuan;  state: Exp;
33380 Added door 8... Door typing system should be replaced soon.
33381 =============================================================================
33382 RCS file: f:/miner/source/bios/key.h,v
33383 Working file: bios/key.h
33384 head: 1.19
33385 branch:
33386 description: Header for keyboard functions
33387 ----------------------------
33388 revision 1.19
33389 date: 1994/10/24 13:58:12;  author: john;  state: Exp;
33390 Hacked in support for pause key onto code 0x61.
33391 ----------------------------
33392 revision 1.18
33393 date: 1994/10/21 15:17:10;  author: john;  state: Exp;
33394 Added KEY_PRINT_SCREEN
33395 ----------------------------
33396 revision 1.17
33397 date: 1994/08/31 12:22:13;  author: john;  state: Exp;
33398 Added KEY_DEBUGGED
33399 ----------------------------
33400 revision 1.16
33401 date: 1994/08/24 18:53:50;  author: john;  state: Exp;
33402 Made Cyberman read like normal mouse; added dpmi module; moved
33403 mouse from assembly to c. Made mouse buttons return time_down.
33404 ----------------------------
33405 revision 1.15
33406 date: 1994/08/18 14:56:16;  author: john;  state: Exp;
33407 *** empty log message ***
33408 ----------------------------
33409 revision 1.14
33410 date: 1994/08/08 10:43:24;  author: john;  state: Exp;
33411 Recorded when a key was pressed for key_inkey_time.
33412 ----------------------------
33413 revision 1.13
33414 date: 1994/06/17 17:17:28;  author: john;  state: Exp;
33415 Added keyd_time_last_key_was_pressed or something like that.
33416 ----------------------------
33417 revision 1.12
33418 date: 1994/04/29 12:14:19;  author: john;  state: Exp;
33419 Locked all memory used during interrupts so that program
33420 won't hang when using virtual memory.
33421 ----------------------------
33422 revision 1.11
33423 date: 1994/02/17 15:57:14;  author: john;  state: Exp;
33424 Changed key libary to C.
33425 ----------------------------
33426 revision 1.10
33427 date: 1994/01/31 08:34:09;  author: john;  state: Exp;
33428 Fixed reversed lshift/rshift keys.
33429 ----------------------------
33430 revision 1.9
33431 date: 1994/01/18 10:58:17;  author: john;  state: Exp;
33432 *** empty log message ***
33433 ----------------------------
33434 revision 1.8
33435 date: 1993/10/16 19:24:43;  author: matt;  state: Exp;
33436 Added new function key_clear_times() & key_clear_counts()
33437 ----------------------------
33438 revision 1.7
33439 date: 1993/10/15 10:17:09;  author: john;  state: Exp;
33440 added keyd_last_key_pressed and released for use with recorder.
33441 ----------------------------
33442 revision 1.6
33443 date: 1993/10/06 16:20:37;  author: john;  state: Exp;
33444 fixed down arrow bug
33445 ----------------------------
33446 revision 1.5
33447 date: 1993/10/04 13:26:42;  author: john;  state: Exp;
33448 changed the #defines for scan codes.
33449 ----------------------------
33450 revision 1.4
33451 date: 1993/09/28 11:35:20;  author: john;  state: Exp;
33452 added key_peekkey
33453 ----------------------------
33454 revision 1.3
33455 date: 1993/09/20 18:36:43;  author: john;  state: Exp;
33456 *** empty log message ***
33457 ----------------------------
33458 revision 1.1
33459 date: 1993/07/10 13:10:39;  author: matt;  state: Exp;
33460 Initial revision
33461 =============================================================================
33462 RCS file: f:/miner/source/main/editor/kfuncs.h,v
33463 Working file: main/editor/kfuncs.h
33464 head: 2.0
33465 branch:
33466 description: Header for kfuncs.c
33467 ----------------------------
33468 revision 2.0
33469 date: 1995/02/27 11:34:33;  author: john;  state: Exp;
33470 Version 2.0! No anonymous unions, Watcom 10.0, with no need
33471 for bitmaps.tbl.
33472 ----------------------------
33473 revision 1.2
33474 date: 1994/05/14 17:18:18;  author: matt;  state: Exp;
33475 Got rid of externs in source (non-header) files
33476 ----------------------------
33477 revision 1.1
33478 date: 1994/05/14 16:37:14;  author: matt;  state: Exp;
33479 Initial revision
33480 =============================================================================
33481 RCS file: f:/miner/source/main/kmatrix.h,v
33482 Working file: main/kmatrix.h
33483 head: 2.0
33484 branch:
33485 description: Kill matrix.
33486 ----------------------------
33487 revision 2.0
33488 date: 1995/02/27 11:28:51;  author: john;  state: Exp;
33489 New version 2.0, which has no anonymous unions, builds with
33490 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
33491 ----------------------------
33492 revision 1.3
33493 date: 1995/02/15 14:47:39;  author: john;  state: Exp;
33494 Added code to keep track of kills during endlevel.
33495 ----------------------------
33496 revision 1.2
33497 date: 1994/12/09 16:19:46;  author: yuan;  state: Exp;
33498 kill matrix stuff.
33499 ----------------------------
33500 revision 1.1
33501 date: 1994/12/09 15:58:33;  author: yuan;  state: Exp;
33502 Initial revision
33503 =============================================================================
33504 RCS file: f:/miner/source/main/object.h,v
33505 Working file: main/object.h
33506 head: 1.122
33507 branch:
33508 description: object system definitions
33509 ----------------------------
33510 revision 1.122
33511 date: 1995/02/22 12:35:53;  author: allender;  state: Exp;
33512 remove anonymous unions
33513 ----------------------------
33514 revision 1.121
33515 date: 1995/02/06 20:43:25;  author: rob;  state: Exp;
33516 Extern'ed Dead_player_camera so it can be reset by multi.c
33517 ----------------------------
33518 revision 1.120
33519 date: 1995/02/01 16:34:07;  author: john;  state: Exp;
33520 Linted.
33521 ----------------------------
33522 revision 1.119
33523 date: 1995/01/29 13:46:42;  author: mike;  state: Exp;
33524 adapt to new create_small_fireball_on_object prototype.
33525 ----------------------------
33526 revision 1.118
33527 date: 1995/01/26 22:11:27;  author: mike;  state: Exp;
33528 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
33529 ----------------------------
33530 revision 1.117
33531 date: 1995/01/24 12:09:29;  author: mike;  state: Exp;
33532 Boost MAX_OBJECTS from 250 to 350.
33533 ----------------------------
33534 revision 1.116
33535 date: 1995/01/13 19:39:51;  author: rob;  state: Exp;
33536 Removed outdated remote_info structure.  (looking for cause of bugs
33537 ----------------------------
33538 revision 1.115
33539 date: 1995/01/12 12:09:38;  author: yuan;  state: Exp;
33540 Added coop object capability.
33541 ----------------------------
33542 revision 1.114
33543 date: 1994/12/15 13:04:20;  author: mike;  state: Exp;
33544 Replace Players[Player_num].time_total references with GameTime.
33545 ----------------------------
33546 revision 1.113
33547 date: 1994/12/12 17:18:09;  author: mike;  state: Exp;
33548 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
33549 ----------------------------
33550 revision 1.112
33551 date: 1994/12/09 14:58:42;  author: matt;  state: Exp;
33552 Added system to attach a fireball to another object for rendering purposes,
33553 so the fireball always renders on top of (after) the object.
33554 ----------------------------
33555 revision 1.111
33556 date: 1994/12/08 12:35:35;  author: matt;  state: Exp;
33557 Added new object allocation & deallocation functions so other code
33558 could stop messing around with internal object data structures.
33559 ----------------------------
33560 revision 1.110
33561 date: 1994/11/21 17:30:21;  author: matt;  state: Exp;
33562 Increased max number of objects
33563 ----------------------------
33564 revision 1.109
33565 date: 1994/11/18 23:41:52;  author: john;  state: Exp;
33566 Changed some shorts to ints.
33567 ----------------------------
33568 revision 1.108
33569 date: 1994/11/10 14:02:45;  author: matt;  state: Exp;
33570 Hacked in support for player ships with different textures
33571 ----------------------------
33572 revision 1.107
33573 date: 1994/11/08 12:19:27;  author: mike;  state: Exp;
33574 Small explosions on objects.
33575 ----------------------------
33576 revision 1.106
33577 date: 1994/10/25 10:51:17;  author: matt;  state: Exp;
33578 Vulcan cannon powerups now contain ammo count
33579 ----------------------------
33580 revision 1.105
33581 date: 1994/10/21 12:19:41;  author: matt;  state: Exp;
33582 Clear transient objects when saving (& loading) games
33583 ----------------------------
33584 revision 1.104
33585 date: 1994/10/21 11:25:04;  author: mike;  state: Exp;
33586 Add IMMORTAL_TIME.
33587 ----------------------------
33588 revision 1.103
33589 date: 1994/10/17 21:34:54;  author: matt;  state: Exp;
33590 Added support for new Control Center/Main Reactor
33591 ----------------------------
33592 revision 1.102
33593 date: 1994/10/14 18:12:28;  author: mike;  state: Exp;
33594 Make egg dropping return object number.
33595 ----------------------------
33596 revision 1.101
33597 date: 1994/10/12 21:07:19;  author: matt;  state: Exp;
33598 Killed unused field in object structure
33599 ----------------------------
33600 revision 1.100
33601 date: 1994/10/12 10:38:24;  author: mike;  state: Exp;
33602 Add field OF_SILENT to obj->flags.
33603 ----------------------------
33604 revision 1.99
33605 date: 1994/10/11 20:35:48;  author: matt;  state: Exp;
33606 Clear "transient" objects (weapons,explosions,etc.) when starting a level
33607 ----------------------------
33608 revision 1.98
33609 date: 1994/10/03 20:56:13;  author: rob;  state: Exp;
33610 Added velocity to shortpos strucutre.
33611 ----------------------------
33612 revision 1.97
33613 date: 1994/09/30 18:24:00;  author: rob;  state: Exp;
33614 Added new control type CT_REMOTE for remote controlled objects.
33615 Also added a union struct 'remote_info' for this type.
33616 ----------------------------
33617 revision 1.96
33618 date: 1994/09/28 09:23:05;  author: mike;  state: Exp;
33619 Prototype Object_type_names.
33620 ----------------------------
33621 revision 1.95
33622 date: 1994/09/25 23:32:37;  author: matt;  state: Exp;
33623 Changed the object load & save code to read/write the structure fields one
33624 at a time (rather than the whole structure at once).  This mean that the
33625 object structure can be changed without breaking the load/save functions.
33626 As a result of this change, the local_object data can be and has been 
33627 incorporated into the object array.  Also, timeleft is now a property 
33628 of all objects, and the object structure has been otherwise cleaned up.
33629 ----------------------------
33630 revision 1.94
33631 date: 1994/09/25 15:45:28;  author: matt;  state: Exp;
33632 Added OBJ_LIGHT, a type of object that casts light
33633 Added generalized lifeleft, and moved it to local_object
33634 ----------------------------
33635 revision 1.93
33636 date: 1994/09/24 17:41:19;  author: mike;  state: Exp;
33637 Add stuff to Local_object structure for materialization centers.
33638 ----------------------------
33639 revision 1.92
33640 date: 1994/09/24 13:16:50;  author: matt;  state: Exp;
33641 Added (hacked in, really) support for overriding the bitmaps used on to
33642 texture map a polygon object, and using a new bitmap for all the faces.
33643 ----------------------------
33644 revision 1.91
33645 date: 1994/09/22 19:02:14;  author: mike;  state: Exp;
33646 Prototype functions extract_shortpos and create_shortpos which reside in
33647 gameseg.c, but are prototyped here to prevent circular dependencies.
33648 ----------------------------
33649 revision 1.90
33650 date: 1994/09/15 21:47:14;  author: mike;  state: Exp;
33651 Prototype dead_player_end().
33652 ----------------------------
33653 revision 1.89
33654 date: 1994/09/15 16:34:47;  author: mike;  state: Exp;
33655 Add danger_laser_num and danger_laser_signature to object_local to
33656 enable robots to efficiently (too efficiently!) avoid player fire.
33657 ----------------------------
33658 revision 1.88
33659 date: 1994/09/11 22:46:19;  author: mike;  state: Exp;
33660 Death_sequence_aborted prototyped.
33661 ----------------------------
33662 revision 1.87
33663 date: 1994/09/09 20:04:30;  author: mike;  state: Exp;
33664 Add vclips for weapons.
33665 ----------------------------
33666 revision 1.86
33667 date: 1994/09/09 14:20:54;  author: matt;  state: Exp;
33668 Added flag that says object uses thrust
33669 ----------------------------
33670 revision 1.85
33671 date: 1994/09/08 14:51:32;  author: mike;  state: Exp;
33672 Make a crucial name change to a field of local_object struct.
33673 ----------------------------
33674 revision 1.84
33675 date: 1994/09/07 19:16:45;  author: mike;  state: Exp;
33676 Homing missile.
33677 ----------------------------
33678 revision 1.83
33679 date: 1994/09/06 17:05:43;  author: matt;  state: Exp;
33680 Added new type for dead player
33681 ----------------------------
33682 revision 1.82
33683 date: 1994/09/02 11:56:09;  author: mike;  state: Exp;
33684 Add persistency (PF_PERSISTENT) to physics_info.
33685 ----------------------------
33686 revision 1.81
33687 date: 1994/08/28 19:10:28;  author: mike;  state: Exp;
33688 Add Player_is_dead.
33689 ----------------------------
33690 revision 1.80
33691 date: 1994/08/18 15:11:44;  author: mike;  state: Exp;
33692 powerup stuff.
33693 ----------------------------
33694 revision 1.79
33695 date: 1994/08/15 15:24:54;  author: john;  state: Exp;
33696 Made players know who killed them; Disabled cheat menu
33697 during net player; fixed bug with not being able to turn
33698 of invulnerability; Made going into edit/starting new leve
33699 l drop you out of a net game; made death dialog box.
33700 ----------------------------
33701 revision 1.78
33702 date: 1994/08/14 23:15:12;  author: matt;  state: Exp;
33703 Added animating bitmap hostages, and cleaned up vclips a bit
33704 ----------------------------
33705 revision 1.77
33706 date: 1994/08/13 14:58:27;  author: matt;  state: Exp;
33707 Finished adding support for miscellaneous objects
33708 ----------------------------
33709 revision 1.76
33710 date: 1994/08/09 16:04:13;  author: john;  state: Exp;
33711 Added network players to editor.
33712 ----------------------------
33713 revision 1.75
33714 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
33715 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
33716 ----------------------------
33717 revision 1.74
33718 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
33719 Added support for spinning objects
33720 ----------------------------
33721 revision 1.73
33722 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
33723 Added rotational drag & thrust, so turning now has momemtum like moving
33724 ----------------------------
33725 revision 1.72
33726 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
33727 Objects containing objects.
33728 ----------------------------
33729 revision 1.71
33730 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
33731 Fixed flares, by adding a physics flag that makes them stick to walls.
33732 ----------------------------
33733 revision 1.70
33734 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
33735 Prototype new find_object_seg and update_object_seg.
33736 ----------------------------
33737 revision 1.69
33738 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
33739 New ai_static structure.
33740 ----------------------------
33741 revision 1.68
33742 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
33743 Moved all (or nearly all) of the values that affect player movement to 
33744 bitmaps.tbl
33745 ----------------------------
33746 revision 1.67
33747 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
33748 Revamped physics system
33749 ----------------------------
33750 revision 1.66
33751 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
33752 Added chase mode.
33753 =============================================================================
33754 RCS file: f:/miner/source/main/laser.h,v
33755 Working file: main/laser.h
33756 head: 2.0
33757 branch:
33758 description: Definitions for the laser code.
33759 ----------------------------
33760 revision 2.0
33761 date: 1995/02/27 11:32:27;  author: john;  state: Exp;
33762 New version 2.0, which has no anonymous unions, builds with
33763 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
33764 ----------------------------
33765 revision 1.50
33766 date: 1995/02/01 21:03:44;  author: john;  state: Exp;
33767 Lintified.
33768 ----------------------------
33769 revision 1.49
33770 date: 1995/02/01 16:34:11;  author: john;  state: Exp;
33771 Linted.
33772 ----------------------------
33773 revision 1.48
33774 date: 1995/01/31 16:16:16;  author: mike;  state: Exp;
33775 Separate smart blobs for robot and player.
33776 ----------------------------
33777 revision 1.47
33778 date: 1995/01/27 17:02:55;  author: mike;  state: Exp;
33779 Add LASER_ID -- why wasn't this added in June?
33780 ----------------------------
33781 revision 1.46
33782 date: 1995/01/25 10:53:27;  author: mike;  state: Exp;
33783 make badass damage go through grates.
33784 ----------------------------
33785 revision 1.45
33786 date: 1994/12/12 17:17:32;  author: mike;  state: Exp;
33787 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
33788 ----------------------------
33789 revision 1.44
33790 date: 1994/12/04 16:17:23;  author: mike;  state: Exp;
33791 spruce up homing missile behavior.
33792 ----------------------------
33793 revision 1.43
33794 date: 1994/12/03 12:48:30;  author: mike;  state: Exp;
33795 make homing missile tracking not frame rate dependent (more-or-less)
33796 ----------------------------
33797 revision 1.42
33798 date: 1994/10/12 08:04:54;  author: mike;  state: Exp;
33799 Clean up proximity/homing mess.
33800 ----------------------------
33801 revision 1.41
33802 date: 1994/10/09 20:07:04;  author: rob;  state: Exp;
33803 Change prototype for do_laser_firing
33804 ----------------------------
33805 revision 1.40
33806 date: 1994/10/09 00:15:48;  author: mike;  state: Exp;
33807 Add constants for super mech missile, regular mech missile, silent spreadfire.
33808 ----------------------------
33809 revision 1.39
33810 date: 1994/10/08 19:52:09;  author: rob;  state: Exp;
33811 Added new weapon fire flags.
33812 ----------------------------
33813 revision 1.38
33814 date: 1994/10/07 15:31:12;  author: mike;  state: Exp;
33815 Prototypes for new laser functions which don't necessarily make sound.
33816 ----------------------------
33817 revision 1.37
33818 date: 1994/10/05 17:08:29;  author: matt;  state: Exp;
33819 Fixed a couple of small bugs, and made homing missiles alternate sides
33820 ----------------------------
33821 revision 1.36
33822 date: 1994/09/28 14:28:55;  author: rob;  state: Exp;
33823 Added firing of missiles on networks/serial.
33824 ----------------------------
33825 revision 1.35
33826 date: 1994/09/24 14:17:02;  author: mike;  state: Exp;
33827 Prototype do_laser_firing.
33828 ----------------------------
33829 revision 1.34
33830 date: 1994/09/23 11:36:49;  author: mike;  state: Exp;
33831 Prototype Laser_create_new_easy.
33832 ----------------------------
33833 revision 1.33
33834 date: 1994/09/20 11:55:01;  author: mike;  state: Exp;
33835 Fix bug.
33836 ----------------------------
33837 revision 1.32
33838 date: 1994/09/20 11:48:34;  author: mike;  state: Exp;
33839 Change spreadfire laser to use new bitmap. (Define SPREADFIRE_ID)
33840 ----------------------------
33841 revision 1.31
33842 date: 1994/09/15 16:31:28;  author: mike;  state: Exp;
33843 Prototype object_to_object_visibility.
33844 ----------------------------
33845 revision 1.30
33846 date: 1994/09/10 17:31:40;  author: mike;  state: Exp;
33847 Add thrust to weapons.
33848 ----------------------------
33849 revision 1.29
33850 date: 1994/09/08 14:49:44;  author: mike;  state: Exp;
33851 Bunch of IDs for new weapon types.
33852 ----------------------------
33853 revision 1.28
33854 date: 1994/09/07 19:16:40;  author: mike;  state: Exp;
33855 Homing missile.
33856 ----------------------------
33857 revision 1.27
33858 date: 1994/09/07 15:59:47;  author: mike;  state: Exp;
33859 Kill FLARE_MAX_TIME (now defined in bitmaps.tbl), add PROXIMITY_ID (shame!), prototype do_laser_firing, do_missile_firing.
33860 ----------------------------
33861 revision 1.26
33862 date: 1994/09/03 15:22:41;  author: mike;  state: Exp;
33863 Kill Projectile_player_fire prototype.
33864 ----------------------------
33865 revision 1.25
33866 date: 1994/09/02 16:39:00;  author: mike;  state: Exp;
33867 IDs for primary weapons.
33868 ----------------------------
33869 revision 1.24
33870 date: 1994/09/02 11:55:54;  author: mike;  state: Exp;
33871 Define some illegal constants.
33872 ----------------------------
33873 revision 1.23
33874 date: 1994/08/25 18:12:06;  author: matt;  state: Exp;
33875 Made player's weapons and flares fire from the positions on the 3d model.
33876 Also added support for quad lasers.
33877 ----------------------------
33878 revision 1.22
33879 date: 1994/08/19 15:22:28;  author: mike;  state: Exp;
33880 Define constant for MAX_LASER_LEVEL.
33881 ----------------------------
33882 revision 1.21
33883 date: 1994/08/13 12:20:47;  author: john;  state: Exp;
33884 Made the networking uise the Players array.
33885 ----------------------------
33886 revision 1.20
33887 date: 1994/08/10 10:44:05;  author: john;  state: Exp;
33888 Made net players fire..
33889 ----------------------------
33890 revision 1.19
33891 date: 1994/06/27 18:30:57;  author: mike;  state: Exp;
33892 Add flares.
33893 ----------------------------
33894 revision 1.18
33895 date: 1994/06/09 15:32:37;  author: mike;  state: Exp;
33896 Muzzle flash
33897 ----------------------------
33898 revision 1.17
33899 date: 1994/05/19 09:09:00;  author: mike;  state: Exp;
33900 Move a bunch of laser variables to bm.h, I think.
33901 Also, added Robot_laser_speed, instead of hard-coding Laser_speed/4.
33902 ----------------------------
33903 revision 1.16
33904 date: 1994/05/14 17:16:20;  author: matt;  state: Exp;
33905 Got rid of externs in source (non-header) files
33906 ----------------------------
33907 revision 1.15
33908 date: 1994/05/13 20:27:39;  author: john;  state: Exp;
33909 Version II of John's new object code.
33910 ----------------------------
33911 revision 1.14
33912 date: 1994/04/20 15:06:47;  author: john;  state: Exp;
33913 Neatend laser code and fixed some laser bugs.
33914 ----------------------------
33915 revision 1.13
33916 date: 1994/04/01 13:35:15;  author: matt;  state: Exp;
33917 Cleaned up laser code a bit; moved some code here object.c to laser.c
33918 ----------------------------
33919 revision 1.12
33920 date: 1994/04/01 11:14:24;  author: yuan;  state: Exp;
33921 Added multiple bitmap functionality to all objects...
33922 (hostages, powerups, lasers, etc.)  
33923 Hostages and powerups are implemented in the object system,
33924 just need to finish function call to "affect" player.
33925 ----------------------------
33926 revision 1.11
33927 date: 1994/03/31 09:10:09;  author: matt;  state: Exp;
33928 Added #define to turn crosshair off
33929 ----------------------------
33930 revision 1.10
33931 date: 1994/02/17 11:33:15;  author: matt;  state: Exp;
33932 Changes in object system
33933 ----------------------------
33934 revision 1.9
33935 date: 1994/01/06 11:56:01;  author: john;  state: Exp;
33936 Made lasers be lines, not purple blobs
33937 ----------------------------
33938 revision 1.8
33939 date: 1994/01/05 10:53:35;  author: john;  state: Exp;
33940 New object code by John.  
33941 ----------------------------
33942 revision 1.7
33943 date: 1993/12/08 14:21:36;  author: john;  state: Exp;
33944 Added ExplodeObject
33945 ----------------------------
33946 revision 1.6
33947 date: 1993/12/08 11:28:54;  author: john;  state: Exp;
33948 Made lasers look like bolts.
33949 ----------------------------
33950 revision 1.5
33951 date: 1993/12/01 13:12:40;  author: john;  state: Exp;
33952 made lasers frame-rate independant
33953 ----------------------------
33954 revision 1.4
33955 date: 1993/11/30 19:00:42;  author: john;  state: Exp;
33956 lasers working kinda
33957 ----------------------------
33958 revision 1.3
33959 date: 1993/11/29 19:44:53;  author: john;  state: Exp;
33960 *** empty log message ***
33961 ----------------------------
33962 revision 1.2
33963 date: 1993/11/29 17:44:55;  author: john;  state: Exp;
33964 *** empty log message ***
33965 ----------------------------
33966 revision 1.1
33967 date: 1993/11/29 17:19:19;  author: john;  state: Exp;
33968 Initial revision
33969 =============================================================================
33970 RCS file: f:/miner/source/pslib/library.h,v
33971 Working file: pslib/library.h
33972 head: 1.9
33973 branch:
33974 description: PSLIB and library generation tool header file.
33975 ----------------------------
33976 revision 1.9
33977 date: 1993/09/29 17:54:09;  author: yuan;  state: Exp;
33978 ReadFileRaw, etc. prototypes imported.
33979 ----------------------------
33980 revision 1.8
33981 date: 1993/09/27 17:12:48;  author: yuan;  state: Exp;
33982 Cleaned up... function prototypes internal to pslib.c removed.
33983 ----------------------------
33984 revision 1.7
33985 date: 1993/09/21 17:22:14;  author: yuan;  state: Exp;
33986 *** empty log message ***
33987 ----------------------------
33988 revision 1.6
33989 date: 1993/09/21 17:16:50;  author: yuan;  state: Exp;
33990 cleaning up
33991 ----------------------------
33992 revision 1.5
33993 date: 1993/09/21 17:07:11;  author: yuan;  state: Exp;
33994 broken and unbroken
33995 ----------------------------
33996 revision 1.4
33997 date: 1993/09/14 14:19:08;  author: yuan;  state: Exp;
33998 header fixed.
33999 ----------------------------
34000 revision 1.3
34001 date: 1993/09/14 13:16:37;  author: yuan;  state: Exp;
34002 Minor function prototype modifications were made.
34003 ----------------------------
34004 revision 1.2
34005 date: 1993/09/09 12:39:19;  author: yuan;  state: Exp;
34006 compression routine prototypes moved to pslib.h
34007 ----------------------------
34008 revision 1.1
34009 date: 1993/09/08 16:16:07;  author: yuan;  state: Exp;
34010 Initial revision
34011 =============================================================================
34012 RCS file: f:/miner/source/main/lighting.h,v
34013 Working file: main/lighting.h
34014 head: 2.0
34015 branch:
34016 description: Lighting system prototypes, structures, etc.
34017 ----------------------------
34018 revision 2.0
34019 date: 1995/02/27 11:27:52;  author: john;  state: Exp;
34020 New version 2.0, which has no anonymous unions, builds with
34021 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34022 ----------------------------
34023 revision 1.6
34024 date: 1994/11/28 21:50:56;  author: mike;  state: Exp;
34025 optimizations.
34026 ----------------------------
34027 revision 1.5
34028 date: 1994/06/07 16:51:58;  author: matt;  state: Exp;
34029 Made object lighting work correctly; changed name of Ambient_light to
34030 Dynamic_light; cleaned up polygobj object rendering a little.
34031 ----------------------------
34032 revision 1.4
34033 date: 1994/05/31 18:41:35;  author: matt;  state: Exp;
34034 Added comments
34035 ----------------------------
34036 revision 1.3
34037 date: 1994/05/23 15:00:08;  author: mike;  state: Exp;
34038 Change MIN_LIGHT_DIST.
34039 ----------------------------
34040 revision 1.2
34041 date: 1994/05/22 15:30:09;  author: mike;  state: Exp;
34042 First version.
34043 ----------------------------
34044 revision 1.1
34045 date: 1994/05/22 15:16:44;  author: mike;  state: Exp;
34046 Initial revision
34047 =============================================================================
34048 RCS file: f:/miner/source/lzw/lzw.h,v
34049 Working file: lzw/lzw.h
34050 head: 1.2
34051 branch:
34052 description: Routines for lzw compressing some bits.
34053 ----------------------------
34054 revision 1.2
34055 date: 1994/08/05 16:10:23;  author: john;  state: Exp;
34056 First version.
34057 ----------------------------
34058 revision 1.1
34059 date: 1994/07/29 11:02:14;  author: john;  state: Exp;
34060 Initial revision
34061 =============================================================================
34062 RCS file: f:/miner/source/main/editor/macro.h,v
34063 Working file: main/editor/macro.h
34064 head: 2.0
34065 branch:
34066 description: Header for macro.c
34067 ----------------------------
34068 revision 2.0
34069 date: 1995/02/27 11:34:32;  author: john;  state: Exp;
34070 Version 2.0! No anonymous unions, Watcom 10.0, with no need
34071 for bitmaps.tbl.
34072 ----------------------------
34073 revision 1.2
34074 date: 1994/05/14 17:18:19;  author: matt;  state: Exp;
34075 Got rid of externs in source (non-header) files
34076 ----------------------------
34077 revision 1.1
34078 date: 1994/05/14 16:38:50;  author: matt;  state: Exp;
34079 Initial revision
34080 =============================================================================
34081 RCS file: f:/miner/source/main/mcockpit.h,v
34082 Working file: main/mcockpit.h
34083 head: 2.0
34084 branch:
34085 description: .
34086 ----------------------------
34087 revision 2.0
34088 date: 1995/02/27 11:30:24;  author: john;  state: Exp;
34089 New version 2.0, which has no anonymous unions, builds with
34090 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34091 ----------------------------
34092 revision 1.3
34093 date: 1994/05/30 19:28:16;  author: john;  state: Exp;
34094 Moved functionality of mcockpit into 2d, ibitblt.
34095 ----------------------------
34096 revision 1.2
34097 date: 1994/05/11 11:19:21;  author: john;  state: Exp;
34098 Made cockpit code be created at runtime.
34099 ----------------------------
34100 revision 1.1
34101 date: 1994/05/11 10:38:56;  author: john;  state: Exp;
34102 Initial revision
34103 =============================================================================
34104 RCS file: f:/miner/source/main/editor/meddraw.h,v
34105 Working file: main/editor/meddraw.h
34106 head: 2.0
34107 branch:
34108 description: Defnts for med drawing stuff
34109 ----------------------------
34110 revision 2.0
34111 date: 1995/02/27 11:35:12;  author: john;  state: Exp;
34112 Version 2.0! No anonymous unions, Watcom 10.0, with no need
34113 for bitmaps.tbl.
34114 ----------------------------
34115 revision 1.3
34116 date: 1994/07/06 16:36:54;  author: mike;  state: Exp;
34117 Prototype for draw_mine_all.
34118 ----------------------------
34119 revision 1.2
34120 date: 1993/12/17 12:05:09;  author: john;  state: Exp;
34121 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
34122 ----------------------------
34123 revision 1.1
34124 date: 1993/12/17 08:55:14;  author: john;  state: Exp;
34125 Initial revision
34126 =============================================================================
34127 RCS file: f:/miner/source/main/editor/medmisc.h,v
34128 Working file: main/editor/medmisc.h
34129 head: 2.0
34130 branch:
34131 description: Defn'tns for medmisc.c
34132 ----------------------------
34133 revision 2.0
34134 date: 1995/02/27 11:34:40;  author: john;  state: Exp;
34135 Version 2.0! No anonymous unions, Watcom 10.0, with no need
34136 for bitmaps.tbl.
34137 ----------------------------
34138 revision 1.3
34139 date: 1994/07/21 17:25:28;  author: matt;  state: Exp;
34140 Took out unused func medlisp_create_new_mine() and its prototype
34141 ----------------------------
34142 revision 1.2
34143 date: 1993/12/17 12:05:04;  author: john;  state: Exp;
34144 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
34145 ----------------------------
34146 revision 1.1
34147 date: 1993/12/17 08:45:23;  author: john;  state: Exp;
34148 Initial revision
34149 =============================================================================
34150 RCS file: f:/miner/source/main/editor/medrobot.h,v
34151 Working file: main/editor/medrobot.h
34152 head: 2.0
34153 branch:
34154 description: Header for robot.c
34155 ----------------------------
34156 revision 2.0
34157 date: 1995/02/27 11:35:04;  author: john;  state: Exp;
34158 Version 2.0! No anonymous unions, Watcom 10.0, with no need
34159 for bitmaps.tbl.
34160 ----------------------------
34161 revision 1.4
34162 date: 1994/08/02 14:17:56;  author: mike;  state: Exp;
34163 Clean up dialog boxes.
34164 ----------------------------
34165 revision 1.3
34166 date: 1994/07/21 19:34:58;  author: yuan;  state: Exp;
34167 Fixed #include problem
34168 ----------------------------
34169 revision 1.2
34170 date: 1994/04/27 21:01:16;  author: matt;  state: Exp;
34171 Added prototypes for robot functions
34172 ----------------------------
34173 revision 1.1
34174 date: 1994/04/27 20:28:59;  author: matt;  state: Exp;
34175 Initial revision
34176 =============================================================================
34177 RCS file: f:/miner/source/main/editor/medsel.h,v
34178 Working file: main/editor/medsel.h
34179 head: 2.0
34180 branch:
34181 description: rountines stipped from med.c for segment selection
34182 ----------------------------
34183 revision 2.0
34184 date: 1995/02/27 11:34:28;  author: john;  state: Exp;
34185 Version 2.0! No anonymous unions, Watcom 10.0, with no need
34186 for bitmaps.tbl.
34187 ----------------------------
34188 revision 1.2
34189 date: 1993/12/17 12:18:35;  author: john;  state: Exp;
34190 Moved selection stuff out of med.c
34191 ----------------------------
34192 revision 1.1
34193 date: 1993/12/17 09:29:51;  author: john;  state: Exp;
34194 Initial revision
34195 =============================================================================
34196 RCS file: f:/miner/source/main/editor/medwall.h,v
34197 Working file: main/editor/medwall.h
34198 head: 2.0
34199 branch:
34200 description: Created from version 1.6 of main\wall.h
34201 ----------------------------
34202 revision 2.0
34203 date: 1995/02/27 11:35:10;  author: john;  state: Exp;
34204 Version 2.0! No anonymous unions, Watcom 10.0, with no need
34205 for bitmaps.tbl.
34206 ----------------------------
34207 revision 1.9
34208 date: 1994/09/28 17:31:51;  author: mike;  state: Exp;
34209 Prototype copy_group_walls().
34210 ----------------------------
34211 revision 1.8
34212 date: 1994/08/05 21:18:16;  author: matt;  state: Exp;
34213 Allow two doors to be linked together
34214 ----------------------------
34215 revision 1.7
34216 date: 1994/06/20 22:30:10;  author: yuan;  state: Exp;
34217 Fixed crazy runaway trigger bug that Adam found
34218 ----------------------------
34219 revision 1.6
34220 date: 1994/05/30 20:22:58;  author: yuan;  state: Exp;
34221 New triggers.
34222 ----------------------------
34223 revision 1.5
34224 date: 1994/05/25 18:08:37;  author: yuan;  state: Exp;
34225 Revamping walls and triggers interface.
34226 Wall interface complete, but triggers are still in progress.
34227 ----------------------------
34228 revision 1.4
34229 date: 1994/05/18 18:22:04;  author: yuan;  state: Exp;
34230 Fixed delete segment and walls bug.
34231 ----------------------------
34232 revision 1.3
34233 date: 1994/03/17 18:08:41;  author: yuan;  state: Exp;
34234 New wall stuff... Cut out switches....
34235 ----------------------------
34236 revision 1.2
34237 date: 1994/03/15 16:34:10;  author: yuan;  state: Exp;
34238 Fixed bm loader (might have some changes in walls and switches)
34239 ----------------------------
34240 revision 1.1
34241 date: 1994/02/10 17:52:01;  author: matt;  state: Exp;
34242 Initial revision
34243 =============================================================================
34244 RCS file: f:/miner/source/mem/mem.h,v
34245 Working file: mem/mem.h
34246 head: 1.6
34247 branch:
34248 description: Headers for safe malloc stuff.
34249 ----------------------------
34250 revision 1.6
34251 date: 1995/02/12 18:40:50;  author: matt;  state: Exp;
34252 Made free() work the way it used to when debugging is on
34253 ----------------------------
34254 revision 1.5
34255 date: 1995/02/12 04:07:36;  author: matt;  state: Exp;
34256 Made free() set ptrs to NULL even when no debugging
34257 ----------------------------
34258 revision 1.4
34259 date: 1994/11/27 21:10:58;  author: matt;  state: Exp;
34260 Now supports NDEBUG to turn off all special mem checking
34261 ----------------------------
34262 revision 1.3
34263 date: 1994/03/15 11:12:40;  author: john;  state: Exp;
34264 Made calloc fill block with zeros like it's
34265 supposed to.
34266 ----------------------------
34267 revision 1.2
34268 date: 1993/11/04 14:02:39;  author: matt;  state: Exp;
34269 Added calloc() macro
34270 ----------------------------
34271 revision 1.1
34272 date: 1993/11/02 17:45:33;  author: john;  state: Exp;
34273 Initial revision
34274 =============================================================================
34275 RCS file: f:/miner/source/main/menu.h,v
34276 Working file: main/menu.h
34277 head: 2.1
34278 branch:
34279 description: Menu prototypes and variables
34280 ----------------------------
34281 revision 2.1
34282 date: 1995/03/06 16:47:41;  author: mike;  state: Exp;
34283 destination saturn
34284 ----------------------------
34285 revision 2.0
34286 date: 1995/02/27 11:29:47;  author: john;  state: Exp;
34287 New version 2.0, which has no anonymous unions, builds with
34288 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34289 ----------------------------
34290 revision 1.34
34291 date: 1994/12/12 00:16:16;  author: john;  state: Exp;
34292 Added auto-leveling flag.
34293 ----------------------------
34294 revision 1.33
34295 date: 1994/12/07 20:04:26;  author: mike;  state: Exp;
34296 set Max_debris_objects.
34297 ----------------------------
34298 revision 1.32
34299 date: 1994/11/14 17:23:19;  author: rob;  state: Exp;
34300 ADded extern for default difficulty settings.
34301 ----------------------------
34302 revision 1.31
34303 date: 1994/11/10 11:08:29;  author: mike;  state: Exp;
34304 detail level stuff.
34305 ----------------------------
34306 revision 1.30
34307 date: 1994/11/05 14:05:53;  author: john;  state: Exp;
34308 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
34309 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
34310 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
34311 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
34312 ----------------------------
34313 revision 1.29
34314 date: 1994/11/02 11:59:44;  author: john;  state: Exp;
34315 Moved menu out of game into inferno main loop.
34316 ----------------------------
34317 revision 1.28
34318 date: 1994/10/17 20:30:59;  author: john;  state: Exp;
34319 Made the text for the difficulty labels global so that
34320 the high score screen can print "rookie" or whatever.
34321 ----------------------------
34322 revision 1.27
34323 date: 1994/10/04 10:47:09;  author: matt;  state: Exp;
34324 Made main menu remember selected item
34325 ----------------------------
34326 revision 1.26
34327 date: 1994/08/10 19:55:19;  author: john;  state: Exp;
34328 Changed font stuff; Took out old menu; messed up lots of
34329 other stuff like game sequencing messages, etc.
34330 ----------------------------
34331 revision 1.25
34332 date: 1994/06/23 18:54:09;  author: matt;  state: Exp;
34333 Cleaned up game start/menu interaction, and improved main menu a little
34334 ----------------------------
34335 revision 1.24
34336 date: 1994/06/21 12:11:50;  author: yuan;  state: Exp;
34337 Fixed up menus and added HUDisplay messages.
34338 ----------------------------
34339 revision 1.23
34340 date: 1994/06/20 23:15:16;  author: yuan;  state: Exp;
34341 Color switching capability for the menus.
34342 ----------------------------
34343 revision 1.22
34344 date: 1994/06/20 22:02:25;  author: yuan;  state: Exp;
34345 Made menu GREEN by POPULAR DEMAND!!
34346 ----------------------------
34347 revision 1.21
34348 date: 1994/06/20 21:05:48;  author: yuan;  state: Exp;
34349 Fixed up menus.
34350 ----------------------------
34351 revision 1.20
34352 date: 1994/06/20 19:19:29;  author: yuan;  state: Exp;
34353 Tidied up the menu and the "message blocks" between levels, etc.
34354 ----------------------------
34355 revision 1.19
34356 date: 1994/06/17 18:01:10;  author: john;  state: Exp;
34357 A bunch of new stuff by John
34358 ----------------------------
34359 revision 1.18
34360 date: 1994/05/16 09:37:22;  author: matt;  state: Exp;
34361 Got rid of global continue_flag
34362 ----------------------------
34363 revision 1.17
34364 date: 1994/05/14 17:14:51;  author: matt;  state: Exp;
34365 Got rid of externs in source (non-header) files
34366 ----------------------------
34367 revision 1.16
34368 date: 1994/05/10 12:14:26;  author: yuan;  state: Exp;
34369 Game save/load... Demo levels 1-5 added...
34370 High scores fixed...
34371 ----------------------------
34372 revision 1.15
34373 date: 1994/05/05 09:21:21;  author: yuan;  state: Exp;
34374 *** empty log message ***
34375 ----------------------------
34376 revision 1.14
34377 date: 1994/04/29 14:55:40;  author: mike;  state: Exp;
34378 Change some menu colors.
34379 ----------------------------
34380 revision 1.13
34381 date: 1994/04/28 18:04:36;  author: yuan;  state: Exp;
34382 Gamesave added.
34383 Trigger problem fixed (seg pointer is replaced by index now.)
34384 ----------------------------
34385 revision 1.12
34386 date: 1994/02/18 11:55:01;  author: yuan;  state: Exp;
34387 Fixed menu to be called from game.
34388 ----------------------------
34389 revision 1.11
34390 date: 1994/02/10 17:45:39;  author: yuan;  state: Exp;
34391 Integrated some hacks which still need to be fixed.
34392 ----------------------------
34393 revision 1.10
34394 date: 1994/02/01 22:50:23;  author: yuan;  state: Exp;
34395 Final menu version for demo
34396 ----------------------------
34397 revision 1.9
34398 date: 1994/02/01 11:50:17;  author: yuan;  state: Exp;
34399 Moved quit message down just a tiny bit
34400 ----------------------------
34401 revision 1.8
34402 date: 1994/01/31 17:30:16;  author: yuan;  state: Exp;
34403 Fixed quit not disappearing problem
34404 ----------------------------
34405 revision 1.7
34406 date: 1994/01/31 12:25:20;  author: yuan;  state: Exp;
34407 New menu stuff
34408 ----------------------------
34409 revision 1.6
34410 date: 1994/01/26 13:14:04;  author: john;  state: Exp;
34411 *** empty log message ***
34412 ----------------------------
34413 revision 1.5
34414 date: 1993/12/29 16:44:44;  author: yuan;  state: Exp;
34415 Added some function definitions
34416 ----------------------------
34417 revision 1.4
34418 date: 1993/12/13 18:53:12;  author: yuan;  state: Exp;
34419 Fixed dependency problem
34420 ----------------------------
34421 revision 1.3
34422 date: 1993/12/12 13:53:51;  author: yuan;  state: Exp;
34423 Added menu and -g flag
34424 ----------------------------
34425 revision 1.2
34426 date: 1993/12/10 16:07:17;  author: yuan;  state: Exp;
34427 Working on menu system.  Updated the title screen.
34428 ----------------------------
34429 revision 1.1
34430 date: 1993/12/10 12:45:27;  author: yuan;  state: Exp;
34431 Initial revision
34432 =============================================================================
34433 RCS file: f:/miner/source/main/mission.h,v
34434 Working file: main/mission.h
34435 head: 2.0
34436 branch:
34437 description: Header for mission.h
34438 ----------------------------
34439 revision 2.0
34440 date: 1995/02/27 11:31:35;  author: john;  state: Exp;
34441 New version 2.0, which has no anonymous unions, builds with
34442 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34443 ----------------------------
34444 revision 1.6
34445 date: 1995/01/30 12:55:41;  author: matt;  state: Exp;
34446 Added vars to point to mission names
34447 ----------------------------
34448 revision 1.5
34449 date: 1995/01/22 18:57:21;  author: matt;  state: Exp;
34450 Made player highest level work with missions
34451 ----------------------------
34452 revision 1.4
34453 date: 1995/01/22 14:13:21;  author: matt;  state: Exp;
34454 Added flag in mission list for anarchy-only missions
34455 ----------------------------
34456 revision 1.3
34457 date: 1995/01/21 23:13:12;  author: matt;  state: Exp;
34458 Made high scores with (not work, really) with loaded missions
34459 Don't give player high score when quit game
34460 ----------------------------
34461 revision 1.2
34462 date: 1995/01/20 22:47:53;  author: matt;  state: Exp;
34463 Mission system implemented, though imcompletely
34464 ----------------------------
34465 revision 1.1
34466 date: 1995/01/20 13:42:26;  author: matt;  state: Exp;
34467 Initial revision
34468 =============================================================================
34469 RCS file: f:/miner/source/main/modem.h,v
34470 Working file: main/modem.h
34471 head: 2.1
34472 branch:
34473 description: Header file for modem support
34474 ----------------------------
34475 revision 2.1
34476 date: 1995/03/21 14:40:38;  author: john;  state: Exp;
34477 Ifdef'd out the NETWORK code.
34478 ----------------------------
34479 revision 2.0
34480 date: 1995/02/27 11:31:34;  author: john;  state: Exp;
34481 New version 2.0, which has no anonymous unions, builds with
34482 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34483 ----------------------------
34484 revision 1.18
34485 date: 1994/11/22 17:12:05;  author: rob;  state: Exp;
34486 Starting working on secret level fix for modem games.
34487 ----------------------------
34488 revision 1.17
34489 date: 1994/11/17 16:43:17;  author: rob;  state: Exp;
34490 Added prototype for com_level_sync function.
34491 ----------------------------
34492 revision 1.16
34493 date: 1994/11/15 21:30:32;  author: rob;  state: Exp;
34494 Added prototype for new menu hook.
34495 ----------------------------
34496 revision 1.15
34497 date: 1994/10/07 16:15:33;  author: rob;  state: Exp;
34498 Changed calls to multi_send_position.
34499 ----------------------------
34500 revision 1.14
34501 date: 1994/10/07 12:52:24;  author: rob;  state: Exp;
34502 Fixed some problems.
34503 ----------------------------
34504 revision 1.13
34505 date: 1994/10/07 11:25:47;  author: rob;  state: Exp;
34506 Tried to fix modem to work with new multi stuff.  Still a bit jacked up, tho.
34507 ----------------------------
34508 revision 1.12
34509 date: 1994/10/05 19:14:50;  author: rob;  state: Exp;
34510 Exported macros and arrays to support network object mapping.
34511 ----------------------------
34512 revision 1.11
34513 date: 1994/10/05 17:48:59;  author: rob;  state: Exp;
34514 Several changes, most to end_of_level sequencing.
34515 ----------------------------
34516 revision 1.10
34517 date: 1994/10/05 14:22:54;  author: rob;  state: Exp;
34518 Added com_end_level.
34519 ----------------------------
34520 revision 1.9
34521 date: 1994/09/30 18:37:22;  author: rob;  state: Exp;
34522 Another day's worth of work.  Mostly menus, error checking.  Added
34523 level checksums during sync, carrier detect during all com calls,
34524 generic com_abort() procedure for bailing out, and nm_messagebox
34525 handling of QUIT instead of HUD message (which never gets seen).
34526 ----------------------------
34527 revision 1.8
34528 date: 1994/09/29 20:55:16;  author: rob;  state: Exp;
34529 Lots of changes.
34530 ----------------------------
34531 revision 1.7
34532 date: 1994/09/29 16:09:20;  author: rob;  state: Exp;
34533 Added explode stuff.
34534 ----------------------------
34535 revision 1.6
34536 date: 1994/09/28 14:31:08;  author: rob;  state: Exp;
34537 Added serial setup menu.
34538 ----------------------------
34539 revision 1.5
34540 date: 1994/09/27 15:02:49;  author: rob;  state: Exp;
34541 Null modem basic routines working.  Sending DEAD messages and
34542 missiles still need to be done.
34543 ----------------------------
34544 revision 1.4
34545 date: 1994/09/24 16:52:33;  author: rob;  state: Exp;
34546 Added stubbed funcs for startup and stop of serial games.
34547 ----------------------------
34548 revision 1.3
34549 date: 1994/09/24 14:47:31;  author: rob;  state: Exp;
34550 New function protos.
34551 ----------------------------
34552 revision 1.2
34553 date: 1994/09/22 17:53:29;  author: rob;  state: Exp;
34554 First revision, not yet functional.
34555 ----------------------------
34556 revision 1.1
34557 date: 1994/09/22 12:39:25;  author: rob;  state: Exp;
34558 Initial revision
34559 =============================================================================
34560 RCS file: f:/miner/source/bios/mono.h,v
34561 Working file: bios/mono.h
34562 head: 1.6
34563 branch:
34564 description: Header for monochrome/mprintf functions
34565 ----------------------------
34566 revision 1.6
34567 date: 1994/12/03 17:07:37;  author: matt;  state: Exp;
34568 Made mono code turn off with either NDEBUG or NMONO
34569 ----------------------------
34570 revision 1.5
34571 date: 1994/11/27 23:07:28;  author: matt;  state: Exp;
34572 Made changes needed to be able to compile out monochrome debugging code
34573 ----------------------------
34574 revision 1.4
34575 date: 1993/12/07 12:33:28;  author: john;  state: Exp;
34576 *** empty log message ***
34577 ----------------------------
34578 revision 1.3
34579 date: 1993/09/14 20:54:50;  author: matt;  state: Exp;
34580 Made minit() check for mono card, return -1 if present, 0 if not
34581 ----------------------------
34582 revision 1.2
34583 date: 1993/07/22 13:05:40;  author: john;  state: Exp;
34584 added macros to print variables
34585 ----------------------------
34586 revision 1.1
34587 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
34588 Initial revision
34589 =============================================================================
34590 RCS file: f:/miner/source/main/morph.h,v
34591 Working file: main/morph.h
34592 head: 2.0
34593 branch:
34594 description: Header for morph.c
34595 ----------------------------
34596 revision 2.0
34597 date: 1995/02/27 11:32:19;  author: john;  state: Exp;
34598 New version 2.0, which has no anonymous unions, builds with
34599 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34600 ----------------------------
34601 revision 1.9
34602 date: 1995/01/04 12:20:46;  author: john;  state: Exp;
34603 Declearations to work better with game state save.
34604 ----------------------------
34605 revision 1.8
34606 date: 1995/01/03 20:38:44;  author: john;  state: Exp;
34607 Externed MAX_MORPH_OBJECTS
34608 ----------------------------
34609 revision 1.7
34610 date: 1994/09/26 17:28:33;  author: matt;  state: Exp;
34611 Made new multiple-object morph code work with the demo system
34612 ----------------------------
34613 revision 1.6
34614 date: 1994/09/26 15:40:17;  author: matt;  state: Exp;
34615 Allow multiple simultaneous morphing objects
34616 ----------------------------
34617 revision 1.5
34618 date: 1994/06/28 11:55:19;  author: john;  state: Exp;
34619 Made newdemo system record/play directly to/from disk, so
34620 we don't need the 4 MB buffer anymore.
34621 ----------------------------
34622 revision 1.4
34623 date: 1994/06/16 13:57:40;  author: matt;  state: Exp;
34624 Added support for morphing objects in demos
34625 ----------------------------
34626 revision 1.3
34627 date: 1994/06/08 18:22:03;  author: matt;  state: Exp;
34628 Made morphing objects light correctly
34629 ----------------------------
34630 revision 1.2
34631 date: 1994/05/30 22:50:25;  author: matt;  state: Exp;
34632 Added morph effect for robots
34633 ----------------------------
34634 revision 1.1
34635 date: 1994/05/30 12:04:19;  author: matt;  state: Exp;
34636 Initial revision
34637 =============================================================================
34638 RCS file: f:/miner/source/bios/mouse.h,v
34639 Working file: bios/mouse.h
34640 head: 1.10
34641 branch:
34642 description: Header for mouse functions
34643 ----------------------------
34644 revision 1.10
34645 date: 1995/02/02 10:22:29;  author: john;  state: Exp;
34646 Added cyberman init parameter.
34647 ----------------------------
34648 revision 1.9
34649 date: 1994/11/18 23:18:09;  author: john;  state: Exp;
34650 Changed some shorts to ints.
34651 ----------------------------
34652 revision 1.8
34653 date: 1994/09/13 12:33:49;  author: john;  state: Exp;
34654 Added functions to get down count and state.
34655 ----------------------------
34656 revision 1.7
34657 date: 1994/08/29 20:52:20;  author: john;  state: Exp;
34658 Added better cyberman support; also, joystick calibration
34659 value return funcctiionn,
34660 ----------------------------
34661 revision 1.6
34662 date: 1994/08/24 17:54:35;  author: john;  state: Exp;
34663 *** empty log message ***
34664 ----------------------------
34665 revision 1.5
34666 date: 1994/08/24 17:51:43;  author: john;  state: Exp;
34667 Added transparent cyberman support
34668 ----------------------------
34669 revision 1.4
34670 date: 1993/07/27 09:32:22;  author: john;  state: Exp;
34671 *** empty log message ***
34672 ----------------------------
34673 revision 1.3
34674 date: 1993/07/26 10:46:44;  author: john;  state: Exp;
34675 added definition for mouse_set_pos
34676 ----------------------------
34677 revision 1.2
34678 date: 1993/07/22 13:07:59;  author: john;  state: Exp;
34679 added header for mousesetlimts
34680 ----------------------------
34681 revision 1.1
34682 date: 1993/07/10 13:10:40;  author: matt;  state: Exp;
34683 Initial revision
34684 =============================================================================
34685 RCS file: f:/miner/source/main/multi.h,v
34686 Working file: main/multi.h
34687 head: 2.3
34688 branch:
34689 description: Defines and exported variables for multi.c
34690 ----------------------------
34691 revision 2.3
34692 date: 1995/04/03 08:49:50;  author: john;  state: Exp;
34693 Added code to get someone's player struct.
34694 ----------------------------
34695 revision 2.2
34696 date: 1995/03/27 12:59:17;  author: john;  state: Exp;
34697 Initial version of multiplayer save games.
34698 ----------------------------
34699 revision 2.1
34700 date: 1995/03/21 14:39:06;  author: john;  state: Exp;
34701 Ifdef'd out the NETWORK code.
34702 ----------------------------
34703 revision 2.0
34704 date: 1995/02/27 11:28:34;  author: john;  state: Exp;
34705 New version 2.0, which has no anonymous unions, builds with
34706 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
34707 ----------------------------
34708 revision 1.74
34709 date: 1995/02/11 11:36:42;  author: rob;  state: Exp;
34710 Added new var.
34711 ----------------------------
34712 revision 1.73
34713 date: 1995/02/08 18:17:41;  author: rob;  state: Exp;
34714 Added prototype for reset function.
34715 ----------------------------
34716 revision 1.72
34717 date: 1995/02/05 14:37:42;  author: rob;  state: Exp;
34718 Made object mapping more efficient.
34719 ----------------------------
34720 revision 1.71
34721 date: 1995/02/01 18:07:36;  author: rob;  state: Exp;
34722 Change object mapping to int functions.
34723 ----------------------------
34724 revision 1.70
34725 date: 1995/02/01 12:55:00;  author: rob;  state: Exp;
34726 Changed message type.
34727 ----------------------------
34728 revision 1.69
34729 date: 1995/01/31 12:46:12;  author: rob;  state: Exp;
34730 Fixed a bug with object overflow handling.
34731 ----------------------------
34732 revision 1.68
34733 date: 1995/01/27 11:15:13;  author: rob;  state: Exp;
34734 removed extern of variable no longer in multi.c
34735 ----------------------------
34736 revision 1.67
34737 date: 1995/01/24 11:53:13;  author: john;  state: Exp;
34738 Added better macro defining code.
34739 ----------------------------
34740 revision 1.66
34741 date: 1995/01/24 11:32:03;  author: john;  state: Exp;
34742 Added new defining macro method.
34743 ----------------------------
34744 revision 1.65
34745 date: 1995/01/23 17:17:06;  author: john;  state: Exp;
34746 Added multi_sending_message.
34747 ----------------------------
34748 revision 1.64
34749 date: 1995/01/23 16:02:42;  author: rob;  state: Exp;
34750 Added prototype for mission select function.
34751 ----------------------------
34752 revision 1.63
34753 date: 1995/01/18 19:01:21;  author: rob;  state: Exp;
34754 Added new message for hostage door sync.
34755 ----------------------------
34756 revision 1.62
34757 date: 1995/01/14 18:39:57;  author: rob;  state: Exp;
34758 Added new message type for dropping robot powerups.
34759 ----------------------------
34760 revision 1.61
34761 date: 1995/01/12 21:41:13;  author: rob;  state: Exp;
34762 Fixed incompat. with 1.0 and 1.1.
34763 ----------------------------
34764 revision 1.60
34765 date: 1995/01/04 21:40:55;  author: rob;  state: Exp;
34766 Added new type for boss actions in coop.
34767 ----------------------------
34768 revision 1.59
34769 date: 1995/01/04 11:38:09;  author: rob;  state: Exp;
34770 Fixed problem with lost character in messages.
34771 ----------------------------
34772 revision 1.58
34773 date: 1995/01/03 20:12:44;  author: rob;  state: Exp;
34774 Made max message length in shareware = 40.
34775 ----------------------------
34776 revision 1.57
34777 date: 1995/01/03 14:27:25;  author: rob;  state: Exp;
34778 ADded trigger messages.
34779 ----------------------------
34780 revision 1.56
34781 date: 1995/01/02 20:08:21;  author: rob;  state: Exp;
34782 Added robot creation.
34783 ----------------------------
34784 revision 1.55
34785 date: 1995/01/02 14:41:30;  author: rob;  state: Exp;
34786 Added score syncing.
34787 ----------------------------
34788 revision 1.54
34789 date: 1994/12/21 21:02:01;  author: rob;  state: Exp;
34790 Added new message type for ROBOT_FIRE
34791 ----------------------------
34792 revision 1.53
34793 date: 1994/12/21 17:27:25;  author: rob;  state: Exp;
34794 Changed the format for send_create_powerup messages.
34795 ----------------------------
34796 revision 1.52
34797 date: 1994/12/20 20:41:39;  author: rob;  state: Exp;
34798 ADded robot release message type.
34799 ----------------------------
34800 revision 1.51
34801 date: 1994/12/19 19:00:12;  author: rob;  state: Exp;
34802 Changed buf to multibuf so it can be safely externed.
34803 ----------------------------
34804 revision 1.50
34805 date: 1994/12/19 16:41:14;  author: rob;  state: Exp;
34806 Added new message types for robot support.
34807 Added prototype for external use of multi_send_data (from multibot.c)
34808 ----------------------------
34809 revision 1.49
34810 date: 1994/12/11 13:30:13;  author: rob;  state: Exp;
34811 Added new variables to get players out of nested menus.
34812 ----------------------------
34813 revision 1.48
34814 date: 1994/12/11 01:58:57;  author: rob;  state: Exp;
34815 Added variable to track menu deth..
34816 ----------------------------
34817 revision 1.47
34818 date: 1994/12/08 12:41:17;  author: rob;  state: Exp;
34819 Added audio taunts.
34820 ----------------------------
34821 revision 1.46
34822 date: 1994/12/07 21:53:12;  author: rob;  state: Exp;
34823 Fixing sequencing bugginess in modem/serial.
34824 ----------------------------
34825 revision 1.45
34826 date: 1994/12/07 16:46:58;  author: rob;  state: Exp;
34827 Added prototype.
34828 ----------------------------
34829 revision 1.44
34830 date: 1994/12/01 12:22:31;  author: rob;  state: Exp;
34831 Added de-cloak message for demo.
34832 ----------------------------
34833 revision 1.43
34834 date: 1994/12/01 00:54:14;  author: rob;  state: Exp;
34835 Added variable for tracking homing missiles.
34836 ----------------------------
34837 revision 1.42
34838 date: 1994/11/30 16:04:39;  author: rob;  state: Exp;
34839 Added show reticle name variable for team games.
34840 ----------------------------
34841 revision 1.41
34842 date: 1994/11/29 19:33:38;  author: rob;  state: Exp;
34843 Team support.
34844 ----------------------------
34845 revision 1.40
34846 date: 1994/11/29 12:49:37;  author: rob;  state: Exp;
34847 Added more team support stuff.
34848 ----------------------------
34849 revision 1.39
34850 date: 1994/11/28 21:20:49;  author: rob;  state: Exp;
34851 Cleaned up the .h file, removed an unused function.
34852 ----------------------------
34853 revision 1.38
34854 date: 1994/11/28 21:04:50;  author: rob;  state: Exp;
34855 Added support for network sound-casting.
34856 ----------------------------
34857 revision 1.37
34858 date: 1994/11/28 14:02:08;  author: rob;  state: Exp;
34859 Added protocol versioning for registered versus shareware.
34860 ----------------------------
34861 revision 1.36
34862 date: 1994/11/28 13:30:04;  author: rob;  state: Exp;
34863 Added a define for protocol version.
34864 ----------------------------
34865 revision 1.35
34866 date: 1994/11/22 19:19:48;  author: rob;  state: Exp;
34867 remove unused function.
34868 ----------------------------
34869 revision 1.34
34870 date: 1994/11/22 18:47:34;  author: rob;  state: Exp;
34871 Added hooks for modem support for secret levels.
34872 ----------------------------
34873 revision 1.33
34874 date: 1994/11/22 17:10:50;  author: rob;  state: Exp;
34875 Fix for secret levels in network play mode.
34876 ----------------------------
34877 revision 1.32
34878 date: 1994/11/21 16:00:28;  author: rob;  state: Exp;
34879 Added secret-level hooks.
34880 ----------------------------
34881 revision 1.31
34882 date: 1994/11/18 18:28:50;  author: rob;  state: Exp;
34883 Added new function for multiplayer score screen.
34884 ----------------------------
34885 revision 1.30
34886 date: 1994/11/18 16:31:05;  author: rob;  state: Exp;
34887 Added kill list timer variable.
34888 ----------------------------
34889 revision 1.29
34890 date: 1994/11/17 16:38:15;  author: rob;  state: Exp;
34891 Added creation of net powerups.
34892 ----------------------------
34893 revision 1.28
34894 date: 1994/11/17 13:37:33;  author: rob;  state: Exp;
34895 Added prototype for multi_new_game.
34896 ----------------------------
34897 revision 1.27
34898 date: 1994/11/17 12:58:45;  author: rob;  state: Exp;
34899 Added kill matrix.
34900 ----------------------------
34901 revision 1.26
34902 date: 1994/11/16 20:35:24;  author: rob;  state: Exp;
34903 Changed explosion hook.
34904 ----------------------------
34905 revision 1.25
34906 date: 1994/11/15 21:31:13;  author: rob;  state: Exp;
34907 Bumped max message size, was giving modem.c fits.
34908 ----------------------------
34909 revision 1.24
34910 date: 1994/11/15 19:28:37;  author: matt;  state: Exp;
34911 Added prototypes
34912 ----------------------------
34913 revision 1.23
34914 date: 1994/11/14 17:22:19;  author: rob;  state: Exp;
34915 Added extern for message macros.
34916 ----------------------------
34917 revision 1.22
34918 date: 1994/11/11 18:16:44;  author: rob;  state: Exp;
34919 Made multi_menu_poll return a value to exit menus.
34920 ----------------------------
34921 revision 1.21
34922 date: 1994/11/11 11:06:19;  author: rob;  state: Exp;
34923 Added prototype for multi_menu_poll.
34924 ----------------------------
34925 revision 1.20
34926 date: 1994/11/10 21:48:41;  author: rob;  state: Exp;
34927 Changed multi_endlevel to return an int.
34928 ----------------------------
34929 revision 1.19
34930 date: 1994/11/08 17:48:14;  author: rob;  state: Exp;
34931 Fixing endlevel stuff.
34932 ----------------------------
34933 revision 1.18
34934 date: 1994/11/07 17:49:07;  author: rob;  state: Exp;
34935 Changed prototype for object mapping funcs.
34936 ----------------------------
34937 revision 1.17
34938 date: 1994/11/07 15:46:32;  author: rob;  state: Exp;
34939 Changed the way remote object number mapping works, and it was a real
34940 pain in the ass..  I think it will work more reliably now.
34941 ----------------------------
34942 revision 1.16
34943 date: 1994/11/04 19:53:01;  author: rob;  state: Exp;
34944 Added a new message type for Player_leave 'explosions'.
34945 Added a prototype for function moved over from network.c
34946 ----------------------------
34947 revision 1.15
34948 date: 1994/11/02 18:02:33;  author: rob;  state: Exp;
34949 Added message type for control center firing.
34950 ----------------------------
34951 revision 1.14
34952 date: 1994/11/02 11:38:00;  author: rob;  state: Exp;
34953 Added player-in-process-of-dying explosions to network game.
34954 ----------------------------
34955 revision 1.13
34956 date: 1994/11/01 19:31:44;  author: rob;  state: Exp;
34957 Bumped max_net_create_objects to 20 to accomodate a fully equipped
34958 character blowing up.
34959 ----------------------------
34960 revision 1.12
34961 date: 1994/10/31 13:48:02;  author: rob;  state: Exp;
34962 Fixed bug in opening doors over network/modem.  Added a new message
34963 type to multi.c that communicates door openings across the net. 
34964 Changed includes in multi.c and wall.c to accomplish this.
34965 ----------------------------
34966 revision 1.11
34967 date: 1994/10/09 20:08:20;  author: rob;  state: Exp;
34968 Added some exported func prototypes.
34969 Changed max net message length to 25 (from 30).
34970 Removed some message types no longer used.
34971 ----------------------------
34972 revision 1.10
34973 date: 1994/10/08 20:06:10;  author: rob;  state: Exp;
34974 fixed a typo.
34975 ----------------------------
34976 revision 1.9
34977 date: 1994/10/08 19:59:43;  author: rob;  state: Exp;
34978 Moved MAX_MESSAGE_LEN to here.
34979 ----------------------------
34980 revision 1.8
34981 date: 1994/10/07 23:09:54;  author: rob;  state: Exp;
34982 Fixed some prototypes.
34983 ----------------------------
34984 revision 1.7
34985 date: 1994/10/07 18:11:19;  author: rob;  state: Exp;
34986 Added multi_do_death to multi.c.
34987 ----------------------------
34988 revision 1.6
34989 date: 1994/10/07 16:14:32;  author: rob;  state: Exp;
34990 Added new message type for player reappear
34991 ----------------------------
34992 revision 1.5
34993 date: 1994/10/07 12:58:17;  author: rob;  state: Exp;
34994 Added multi_leave_game.
34995 ----------------------------
34996 revision 1.4
34997 date: 1994/10/07 12:17:17;  author: rob;  state: Exp;
34998 Fixed some stuff in multi_do_frame and exported the message_length
34999 array.
35000 ----------------------------
35001 revision 1.3
35002 date: 1994/10/07 11:10:17;  author: john;  state: Exp;
35003 Added function to parse multiple messages into individual
35004 messages.
35005 ----------------------------
35006 revision 1.2
35007 date: 1994/10/07 10:28:06;  author: rob;  state: Exp;
35008 Headers and stuff for multi.c (obviously)
35009 ----------------------------
35010 revision 1.1
35011 date: 1994/10/06 16:07:39;  author: rob;  state: Exp;
35012 Initial revision
35013 =============================================================================
35014 RCS file: f:/miner/source/main/multibot.h,v
35015 Working file: main/multibot.h
35016 head: 2.1
35017 branch:
35018 description: Header file for multiplayer robot support.
35019 ----------------------------
35020 revision 2.1
35021 date: 1995/03/21 14:40:18;  author: john;  state: Exp;
35022 Ifdef'd out the NETWORK code.
35023 ----------------------------
35024 revision 2.0
35025 date: 1995/02/27 11:30:57;  author: john;  state: Exp;
35026 New version 2.0, which has no anonymous unions, builds with
35027 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35028 ----------------------------
35029 revision 1.20
35030 date: 1995/02/06 18:18:05;  author: rob;  state: Exp;
35031 Tweaking cooperative stuff.
35032 ----------------------------
35033 revision 1.19
35034 date: 1995/02/04 16:49:50;  author: rob;  state: Exp;
35035 Changed multi_send_robot_frame to return the number of robot positions that were sent.
35036 ----------------------------
35037 revision 1.18
35038 date: 1995/02/04 12:29:32;  author: rob;  state: Exp;
35039 Added buffered fire sends.
35040 ----------------------------
35041 revision 1.17
35042 date: 1995/01/30 17:22:02;  author: rob;  state: Exp;
35043 Added prototype for modem robot send function.
35044 ----------------------------
35045 revision 1.16
35046 date: 1995/01/26 18:24:56;  author: rob;  state: Exp;
35047 Reduced # of controlled bots.
35048 ----------------------------
35049 revision 1.15
35050 date: 1995/01/25 19:26:35;  author: rob;  state: Exp;
35051 Added define for robot laser agitation.
35052 ----------------------------
35053 revision 1.14
35054 date: 1995/01/25 13:45:26;  author: rob;  state: Exp;
35055 Added prototype of robot transfer fucm.
35056 ----------------------------
35057 revision 1.13
35058 date: 1995/01/14 19:01:08;  author: rob;  state: Exp;
35059 Added prototypes for new functionality.
35060 ----------------------------
35061 revision 1.12
35062 date: 1995/01/12 16:41:53;  author: rob;  state: Exp;
35063 Added new prototypes.
35064 ----------------------------
35065 revision 1.11
35066 date: 1995/01/12 15:42:55;  author: rob;  state: Exp;
35067 Fixing score awards for coop.
35068 ----------------------------
35069 revision 1.10
35070 date: 1995/01/02 21:00:40;  author: rob;  state: Exp;
35071 added robot matcen support.
35072 ----------------------------
35073 revision 1.9
35074 date: 1994/12/31 21:03:53;  author: rob;  state: Exp;
35075 More tweaking for robot behavior.
35076 ----------------------------
35077 revision 1.8
35078 date: 1994/12/29 13:54:25;  author: rob;  state: Exp;
35079 Ooops.. fixed a bug..
35080 ----------------------------
35081 revision 1.7
35082 date: 1994/12/29 12:51:38;  author: rob;  state: Exp;
35083 ADded proto for multi_robot_explode_sub
35084 ----------------------------
35085 revision 1.6
35086 date: 1994/12/21 21:08:32;  author: rob;  state: Exp;
35087 Added new functions for robot firing.
35088 ----------------------------
35089 revision 1.5
35090 date: 1994/12/21 19:04:02;  author: rob;  state: Exp;
35091 Fixing score accounting for multi robot games.
35092 ----------------------------
35093 revision 1.4
35094 date: 1994/12/21 17:36:09;  author: rob;  state: Exp;
35095 Added a new func.
35096 ----------------------------
35097 revision 1.3
35098 date: 1994/12/21 11:12:02;  author: rob;  state: Exp;
35099 Added new function and new vars.
35100 ----------------------------
35101 revision 1.2
35102 date: 1994/12/19 16:41:42;  author: rob;  state: Exp;
35103 first revision.
35104 ----------------------------
35105 revision 1.1
35106 date: 1994/12/16 15:48:20;  author: rob;  state: Exp;
35107 Initial revision
35108 =============================================================================
35109 RCS file: f:/miner/source/main/netmisc.h,v
35110 Working file: main/netmisc.h
35111 head: 2.0
35112 branch:
35113 description: .
35114 ----------------------------
35115 revision 2.0
35116 date: 1995/02/27 11:30:18;  author: john;  state: Exp;
35117 New version 2.0, which has no anonymous unions, builds with
35118 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35119 ----------------------------
35120 revision 1.2
35121 date: 1994/08/09 19:31:54;  author: john;  state: Exp;
35122 Networking changes.
35123 ----------------------------
35124 revision 1.1
35125 date: 1994/08/08 11:18:40;  author: john;  state: Exp;
35126 Initial revision
35127 =============================================================================
35128 RCS file: f:/miner/source/main/netseq.h,v
35129 Working file: main/netseq.h
35130 head: 2.0
35131 branch:
35132 description: Prototypes for functions that get a net game started.
35133 ----------------------------
35134 revision 2.0
35135 date: 1995/02/27 11:30:31;  author: john;  state: Exp;
35136 New version 2.0, which has no anonymous unions, builds with
35137 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35138 ----------------------------
35139 revision 1.1
35140 date: 1994/10/06 16:08:05;  author: john;  state: Exp;
35141 Initial revision
35142 =============================================================================
35143 RCS file: f:/miner/source/main/network.h,v
35144 Working file: main/network.h
35145 head: 2.2
35146 branch:
35147 description: Prototypes for network management functions.
35148 ----------------------------
35149 revision 2.2
35150 date: 1995/03/21 14:58:09;  author: john;  state: Exp;
35151 *** empty log message ***
35152 ----------------------------
35153 revision 2.1
35154 date: 1995/03/21 14:39:43;  author: john;  state: Exp;
35155 Ifdef'd out the NETWORK code.
35156 ----------------------------
35157 revision 2.0
35158 date: 1995/02/27 11:29:48;  author: john;  state: Exp;
35159 New version 2.0, which has no anonymous unions, builds with
35160 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35161 ----------------------------
35162 revision 1.72
35163 date: 1995/02/11 14:24:39;  author: rob;  state: Exp;
35164 Added suppor for invul. cntrlcen.
35165 ----------------------------
35166 revision 1.71
35167 date: 1995/02/08 19:18:43;  author: rob;  state: Exp;
35168 Added extern for segments checksum.
35169 ----------------------------
35170 revision 1.70
35171 date: 1995/02/08 11:01:16;  author: rob;  state: Exp;
35172 Fixed a bug.
35173 ----------------------------
35174 revision 1.69
35175 date: 1995/02/07 21:16:49;  author: rob;  state: Exp;
35176 Added flag for automap.
35177 ----------------------------
35178 revision 1.68
35179 date: 1995/02/06 18:18:33;  author: rob;  state: Exp;
35180 Extern'ed Packet Urgent.
35181 ----------------------------
35182 revision 1.67
35183 date: 1995/02/05 14:36:29;  author: rob;  state: Exp;
35184 Moved defines to network.h.
35185 ----------------------------
35186 revision 1.66
35187 date: 1995/02/01 16:34:09;  author: john;  state: Exp;
35188 Linted.
35189 ----------------------------
35190 revision 1.65
35191 date: 1995/01/30 21:14:35;  author: rob;  state: Exp;
35192 Fixed a bug in join menu.
35193 Simplified mission load support.
35194 ----------------------------
35195 revision 1.64
35196 date: 1995/01/30 18:19:40;  author: rob;  state: Exp;
35197 Added mission title to gameinfo packet.
35198 ----------------------------
35199 revision 1.63
35200 date: 1995/01/28 17:02:39;  author: rob;  state: Exp;
35201 Fixed monitor syncing bug (minor 19).
35202 ----------------------------
35203 revision 1.62
35204 date: 1995/01/27 11:15:25;  author: rob;  state: Exp;
35205 removed extern of variable no longer in network.c
35206 ----------------------------
35207 revision 1.61
35208 date: 1995/01/26 12:17:34;  author: rob;  state: Exp;
35209 Added new param to network_do_frame.
35210 ----------------------------
35211 revision 1.60
35212 date: 1995/01/22 17:32:11;  author: rob;  state: Exp;
35213 Added mission support for network games.
35214 ----------------------------
35215 revision 1.59
35216 date: 1995/01/17 17:10:33;  author: rob;  state: Exp;
35217 Added some flags to netgame struct.
35218 ----------------------------
35219 revision 1.58
35220 date: 1995/01/12 18:57:15;  author: rob;  state: Exp;
35221 Added score resync stuff.
35222 ----------------------------
35223 revision 1.57
35224 date: 1995/01/12 16:42:18;  author: rob;  state: Exp;
35225 Added new prototypes.
35226 ----------------------------
35227 revision 1.56
35228 date: 1995/01/05 12:12:10;  author: rob;  state: Exp;
35229 Fixed a problem with packet size.
35230 ----------------------------
35231 revision 1.55
35232 date: 1995/01/05 11:12:36;  author: rob;  state: Exp;
35233 Reduced packet size by 1 byte just to be safe.
35234 ----------------------------
35235 revision 1.54
35236 date: 1995/01/04 21:39:32;  author: rob;  state: Exp;
35237 New framedata packet for registered.
35238 ----------------------------
35239 revision 1.53
35240 date: 1995/01/04 08:47:04;  author: rob;  state: Exp;
35241 JOHN CHECKED IN FOR ROB !!!
35242 ----------------------------
35243 revision 1.52
35244 date: 1994/12/30 20:09:07;  author: rob;  state: Exp;
35245 ADded a toggle for showing player names on HUD.
35246 ----------------------------
35247 revision 1.51
35248 date: 1994/12/29 15:59:52;  author: rob;  state: Exp;
35249 Centralized network disconnects.
35250 ----------------------------
35251 revision 1.50
35252 date: 1994/12/09 21:21:57;  author: rob;  state: Exp;
35253 rolled back changes.
35254 ----------------------------
35255 revision 1.48
35256 date: 1994/12/05 22:59:27;  author: rob;  state: Exp;
35257 added prototype for send_endlevel_packet.
35258 ----------------------------
35259 revision 1.47
35260 date: 1994/12/05 21:47:34;  author: rob;  state: Exp;
35261 Added a new field to netgame struct.
35262 ----------------------------
35263 revision 1.46
35264 date: 1994/12/05 14:39:16;  author: rob;  state: Exp;
35265 Added new variable to indicate new net game starting.
35266 ----------------------------
35267 revision 1.45
35268 date: 1994/12/04 15:37:18;  author: rob;  state: Exp;
35269 Fixed a typo.
35270 ----------------------------
35271 revision 1.44
35272 date: 1994/12/04 15:30:42;  author: rob;  state: Exp;
35273 Added new fields to netgame struct.
35274 ----------------------------
35275 revision 1.43
35276 date: 1994/12/03 18:03:19;  author: rob;  state: Exp;
35277 ADded team kill syncing.
35278 ----------------------------
35279 revision 1.42
35280 date: 1994/12/01 21:21:27;  author: rob;  state: Exp;
35281 Added new system for object sync on rejoin.
35282 ----------------------------
35283 revision 1.41
35284 date: 1994/11/29 13:07:33;  author: rob;  state: Exp;
35285 Changed structure defs to .h files.
35286 ----------------------------
35287 revision 1.40
35288 date: 1994/11/22 17:10:48;  author: rob;  state: Exp;
35289 Fix for secret levels in network play mode.
35290 ----------------------------
35291 revision 1.39
35292 date: 1994/11/18 16:36:31;  author: rob;  state: Exp;
35293 Added variable network_rejoined to enable random placement
35294 of rejoining palyers.
35295 ----------------------------
35296 revision 1.38
35297 date: 1994/11/12 19:51:13;  author: rob;  state: Exp;
35298 Changed prototype for network_send_data to pass
35299 urgent flag.
35300 ----------------------------
35301 revision 1.37
35302 date: 1994/11/10 21:48:26;  author: rob;  state: Exp;
35303 Changed net_endlevel to return an int.
35304 ----------------------------
35305 revision 1.36
35306 date: 1994/11/10 20:32:49;  author: rob;  state: Exp;
35307 Added extern for LastPacketTime.
35308 ----------------------------
35309 revision 1.35
35310 date: 1994/11/09 11:36:34;  author: rob;  state: Exp;
35311 ADded return value to network_level_sync for success/fail.
35312 ----------------------------
35313 revision 1.34
35314 date: 1994/11/08 21:22:31;  author: rob;  state: Exp;
35315 Added proto for network_endlevel_snyc
35316 ----------------------------
35317 revision 1.33
35318 date: 1994/11/08 15:20:00;  author: rob;  state: Exp;
35319 added proto for change_playernum_to
35320 ----------------------------
35321 revision 1.32
35322 date: 1994/11/07 17:45:40;  author: rob;  state: Exp;
35323 Added prototype for network_endlevel (called from multi.c)
35324 ----------------------------
35325 revision 1.31
35326 date: 1994/11/04 19:52:37;  author: rob;  state: Exp;
35327 Removed a function from network.h (network_show_player_list)
35328 ----------------------------
35329 revision 1.30
35330 date: 1994/11/01 19:39:26;  author: rob;  state: Exp;
35331 Removed a couple of variables that should be externed from multi.c
35332 (remnants of the changover)
35333 ----------------------------
35334 revision 1.29
35335 date: 1994/10/31 19:18:24;  author: rob;  state: Exp;
35336 Changed prototype for network_do_frame to add a parameter if you wish
35337 to force the frame to be sent.  Important if this is a leave_game frame.
35338 ----------------------------
35339 revision 1.28
35340 date: 1994/10/08 19:59:20;  author: rob;  state: Exp;
35341 Removed network message variables.
35342 ----------------------------
35343 revision 1.27
35344 date: 1994/10/08 11:08:38;  author: john;  state: Exp;
35345 Moved network_delete_unused objects into multi.c,
35346 took out network callsign stuff and used Matt's net
35347 players[.].callsign stuff.
35348 ----------------------------
35349 revision 1.26
35350 date: 1994/10/07 11:26:20;  author: rob;  state: Exp;
35351 Changed network_start_frame to network_do_frame,.
35352 ----------------------------
35353 revision 1.25
35354 date: 1994/10/05 13:58:10;  author: rob;  state: Exp;
35355 Added a new function net_endlevel that is called after each level is 
35356 completed.  Currently it only does anything if SERIAL game is in effect.
35357 ----------------------------
35358 revision 1.24
35359 date: 1994/10/04 19:34:57;  author: rob;  state: Exp;
35360 export network_find_max_net_players.
35361 ----------------------------
35362 revision 1.23
35363 date: 1994/10/04 17:31:10;  author: rob;  state: Exp;
35364 Exported MaxNumNetPlayers.
35365 ----------------------------
35366 revision 1.22
35367 date: 1994/10/03 22:57:30;  author: matt;  state: Exp;
35368 Took out redundant definition of callsign_len
35369 ----------------------------
35370 revision 1.21
35371 date: 1994/10/03 15:12:48;  author: rob;  state: Exp;
35372 Boosted MAX_CREATE_OBJECTS to 15.
35373 ----------------------------
35374 revision 1.20
35375 date: 1994/09/30 18:19:51;  author: rob;  state: Exp;
35376 Added two new variables for tracking object creation.
35377 ----------------------------
35378 revision 1.19
35379 date: 1994/09/27 15:03:18;  author: rob;  state: Exp;
35380 Added prototype for network_delete_extra_objects used by modem.c
35381 ----------------------------
35382 revision 1.18
35383 date: 1994/09/27 14:36:45;  author: rob;  state: Exp;
35384 Added two new varaibles for network/serial weapon firing.
35385 ----------------------------
35386 revision 1.17
35387 date: 1994/09/07 17:10:57;  author: john;  state: Exp;
35388 Started adding code to sync powerups.
35389 ----------------------------
35390 revision 1.16
35391 date: 1994/09/06 19:29:05;  author: john;  state: Exp;
35392 Added trial version of rejoin function.
35393 ----------------------------
35394 revision 1.15
35395 date: 1994/08/26 13:01:54;  author: john;  state: Exp;
35396 Put high score system in.
35397 ----------------------------
35398 revision 1.14
35399 date: 1994/08/25 18:12:04;  author: matt;  state: Exp;
35400 Made player's weapons and flares fire from the positions on the 3d model.
35401 Also added support for quad lasers.
35402 ----------------------------
35403 revision 1.13
35404 date: 1994/08/17 16:50:00;  author: john;  state: Exp;
35405 Added damaging fireballs, missiles.
35406 ----------------------------
35407 revision 1.12
35408 date: 1994/08/16 12:25:22;  author: john;  state: Exp;
35409 Added hooks for sending messages.
35410 ----------------------------
35411 revision 1.11
35412 date: 1994/08/13 12:20:18;  author: john;  state: Exp;
35413 Made the networking uise the Players array.
35414 ----------------------------
35415 revision 1.10
35416 date: 1994/08/12 22:41:27;  author: john;  state: Exp;
35417 Took away Player_stats; add Players array.
35418 ----------------------------
35419 revision 1.9
35420 date: 1994/08/12 03:10:22;  author: john;  state: Exp;
35421 Made network be default off; Moved network options into
35422 main menu.  Made starting net game check that mines are the
35423 same.
35424 ----------------------------
35425 revision 1.8
35426 date: 1994/08/11 21:57:08;  author: john;  state: Exp;
35427 Moved network options to main menu.
35428 ----------------------------
35429 revision 1.7
35430 date: 1994/08/10 11:29:20;  author: john;  state: Exp;
35431 *** empty log message ***
35432 ----------------------------
35433 revision 1.6
35434 date: 1994/08/10 10:44:12;  author: john;  state: Exp;
35435 Made net players fire..
35436 ----------------------------
35437 revision 1.5
35438 date: 1994/08/09 19:31:46;  author: john;  state: Exp;
35439 Networking changes.
35440 ----------------------------
35441 revision 1.4
35442 date: 1994/08/05 16:30:26;  author: john;  state: Exp;
35443 Added capability to turn off network.
35444 ----------------------------
35445 revision 1.3
35446 date: 1994/08/05 16:11:43;  author: john;  state: Exp;
35447 Psuedo working version of networking.
35448 ----------------------------
35449 revision 1.2
35450 date: 1994/07/25 12:33:34;  author: john;  state: Exp;
35451 Network "pinging" in.
35452 ----------------------------
35453 revision 1.1
35454 date: 1994/07/20 16:09:05;  author: john;  state: Exp;
35455 Initial revision
35456 =============================================================================
35457 RCS file: f:/miner/source/main/newdemo.h,v
35458 Working file: main/newdemo.h
35459 head: 2.0
35460 branch:
35461 description: .
35462 ----------------------------
35463 revision 2.0
35464 date: 1995/02/27 11:27:18;  author: john;  state: Exp;
35465 New version 2.0, which has no anonymous unions, builds with
35466 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35467 ----------------------------
35468 revision 1.43
35469 date: 1995/01/19 09:41:43;  author: allender;  state: Exp;
35470 prototype for laser level recording
35471 ----------------------------
35472 revision 1.42
35473 date: 1995/01/18 18:48:49;  author: allender;  state: Exp;
35474 added function prototype for door_open
35475 ----------------------------
35476 revision 1.41
35477 date: 1995/01/17 17:42:31;  author: allender;  state: Exp;
35478 new prototypes for ammo counts
35479 ----------------------------
35480 revision 1.40
35481 date: 1995/01/04 15:04:27;  author: allender;  state: Exp;
35482 added some different prototypes for registered
35483 ----------------------------
35484 revision 1.39
35485 date: 1995/01/03 11:45:11;  author: allender;  state: Exp;
35486 extern function definition
35487 ----------------------------
35488 revision 1.38
35489 date: 1994/12/29 16:43:31;  author: allender;  state: Exp;
35490 new function prototype
35491 ----------------------------
35492 revision 1.37
35493 date: 1994/12/28 14:15:27;  author: allender;  state: Exp;
35494 new function prototypes
35495 ----------------------------
35496 revision 1.36
35497 date: 1994/12/21 12:46:41;  author: allender;  state: Exp;
35498 new functions for multiplayer deaths and kills
35499 ----------------------------
35500 revision 1.35
35501 date: 1994/12/12 11:32:55;  author: allender;  state: Exp;
35502 added new record function to restore after in rearview mode
35503 ----------------------------
35504 revision 1.34
35505 date: 1994/12/08 21:03:15;  author: allender;  state: Exp;
35506 added new param to record_player_flags
35507 ----------------------------
35508 revision 1.33
35509 date: 1994/12/08 13:47:01;  author: allender;  state: Exp;
35510 removed function call to record_rearview
35511 ----------------------------
35512 revision 1.32
35513 date: 1994/12/06 12:57:10;  author: allender;  state: Exp;
35514 added new prototype for multi decloaking
35515 ----------------------------
35516 revision 1.31
35517 date: 1994/12/01 11:46:34;  author: allender;  state: Exp;
35518 added recording prototype for multi player cloak
35519 ----------------------------
35520 revision 1.30
35521 date: 1994/11/27 23:04:22;  author: allender;  state: Exp;
35522 function prototype for recording new levels
35523 ----------------------------
35524 revision 1.29
35525 date: 1994/11/07 08:47:43;  author: john;  state: Exp;
35526 Made wall state record.
35527 ----------------------------
35528 revision 1.28
35529 date: 1994/11/05 17:22:53;  author: john;  state: Exp;
35530 Fixed lots of sequencing problems with newdemo stuff.
35531 ----------------------------
35532 revision 1.27
35533 date: 1994/11/04 16:48:49;  author: allender;  state: Exp;
35534 extern Newdemo_do_interpolate variable
35535 ----------------------------
35536 revision 1.26
35537 date: 1994/11/02 14:08:53;  author: allender;  state: Exp;
35538 record rearview
35539 ----------------------------
35540 revision 1.25
35541 date: 1994/10/31 13:35:04;  author: allender;  state: Exp;
35542 added two record functions to save and restore cockpit state on
35543 death sequence
35544 ----------------------------
35545 revision 1.24
35546 date: 1994/10/29 16:01:11;  author: allender;  state: Exp;
35547 added ND_STATE_NODEMOS to indicate that there are no demos currently
35548 available for playback
35549 ----------------------------
35550 revision 1.23
35551 date: 1994/10/28 12:41:58;  author: allender;  state: Exp;
35552 add homing distance recording event
35553 ----------------------------
35554 revision 1.22
35555 date: 1994/10/27 16:57:32;  author: allender;  state: Exp;
35556 removed VCR_MODE stuff, and added monitor blowup effects
35557 ----------------------------
35558 revision 1.21
35559 date: 1994/10/26 14:44:48;  author: allender;  state: Exp;
35560 completed hacked in vcr type demo playback states
35561 ----------------------------
35562 revision 1.20
35563 date: 1994/10/26 13:40:38;  author: allender;  state: Exp;
35564 more vcr demo playback defines
35565 ----------------------------
35566 revision 1.19
35567 date: 1994/10/26 08:51:26;  author: allender;  state: Exp;
35568 record player weapon change
35569 ----------------------------
35570 revision 1.18
35571 date: 1994/10/25 16:25:31;  author: allender;  state: Exp;
35572 prototypes for shield, energy and flags
35573 ----------------------------
35574 revision 1.17
35575 date: 1994/08/15 18:05:30;  author: john;  state: Exp;
35576 *** empty log message ***
35577 ----------------------------
35578 revision 1.16
35579 date: 1994/07/21 13:11:26;  author: matt;  state: Exp;
35580 Ripped out remants of old demo system, and added demo only system that
35581 disables object movement and game options from menu.
35582 ----------------------------
35583 revision 1.15
35584 date: 1994/07/05 12:49:02;  author: john;  state: Exp;
35585 Put functionality of New Hostage spec into code.
35586 ----------------------------
35587 revision 1.14
35588 date: 1994/06/27 15:53:12;  author: john;  state: Exp;
35589 #define'd out the newdemo stuff
35590 ----------------------------
35591 revision 1.13
35592 date: 1994/06/24 17:01:25;  author: john;  state: Exp;
35593 Add VFX support; Took Game Sequencing, like EndGame and stuff and
35594 took it out of game.c and into gameseq.c
35595 ----------------------------
35596 revision 1.12
35597 date: 1994/06/21 19:46:05;  author: john;  state: Exp;
35598 Added palette effects to demo recording.
35599 ----------------------------
35600 revision 1.11
35601 date: 1994/06/21 14:19:58;  author: john;  state: Exp;
35602 Put in hooks to record HUD messages.
35603 ----------------------------
35604 revision 1.10
35605 date: 1994/06/20 11:50:42;  author: john;  state: Exp;
35606 Made demo record flash effect, and control center triggers.
35607 ----------------------------
35608 revision 1.9
35609 date: 1994/06/17 18:01:29;  author: john;  state: Exp;
35610 A bunch of new stuff by John
35611 ----------------------------
35612 revision 1.8
35613 date: 1994/06/17 12:13:34;  author: john;  state: Exp;
35614 More newdemo stuff; made editor->game transition start in slew mode.
35615 ----------------------------
35616 revision 1.7
35617 date: 1994/06/16 13:02:02;  author: john;  state: Exp;
35618 Added morph hooks.
35619 ----------------------------
35620 revision 1.6
35621 date: 1994/06/15 19:01:42;  author: john;  state: Exp;
35622 Added the capability to make 3d sounds play just once for the
35623 laser hit wall effects.
35624 ----------------------------
35625 revision 1.5
35626 date: 1994/06/15 14:57:11;  author: john;  state: Exp;
35627 Added triggers to demo recording.
35628 ----------------------------
35629 revision 1.4
35630 date: 1994/06/14 20:42:19;  author: john;  state: Exp;
35631 Made robot matztn cntr not work until no robots or player are
35632 in the segment.
35633 ----------------------------
35634 revision 1.3
35635 date: 1994/06/14 14:43:52;  author: john;  state: Exp;
35636 Made doors work with newdemo system.
35637 ----------------------------
35638 revision 1.2
35639 date: 1994/06/13 21:02:44;  author: john;  state: Exp;
35640 Initial version of new demo recording system.
35641 ----------------------------
35642 revision 1.1
35643 date: 1994/06/13 15:51:09;  author: john;  state: Exp;
35644 Initial revision
35645 =============================================================================
35646 RCS file: f:/miner/source/main/newmenu.h,v
35647 Working file: main/newmenu.h
35648 head: 2.0
35649 branch:
35650 description: Routines for menus.
35651 ----------------------------
35652 revision 2.0
35653 date: 1995/02/27 11:32:28;  author: john;  state: Exp;
35654 New version 2.0, which has no anonymous unions, builds with
35655 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35656 ----------------------------
35657 revision 1.24
35658 date: 1995/02/11 16:20:05;  author: john;  state: Exp;
35659 Added code to make the default mission be the one last played.
35660 ----------------------------
35661 revision 1.23
35662 date: 1995/01/31 10:21:41;  author: john;  state: Exp;
35663 Added code to specify width, height.
35664 ----------------------------
35665 revision 1.22
35666 date: 1995/01/28 17:09:21;  author: john;  state: Exp;
35667 *** empty log message ***
35668 ----------------------------
35669 revision 1.21
35670 date: 1995/01/23 18:38:43;  author: john;  state: Exp;
35671 Added listbox function.
35672 ----------------------------
35673 revision 1.20
35674 date: 1994/11/26 15:29:55;  author: matt;  state: Exp;
35675 Allow escape out of change pilot menu
35676 ----------------------------
35677 revision 1.19
35678 date: 1994/11/26 14:17:05;  author: matt;  state: Exp;
35679 Player can now only enter valid chars for his name
35680 ----------------------------
35681 revision 1.18
35682 date: 1994/11/18 16:17:13;  author: mike;  state: Exp;
35683 prototype Max_linear_depth_objects.
35684 ----------------------------
35685 revision 1.17
35686 date: 1994/11/08 14:51:17;  author: john;  state: Exp;
35687 Added nm_messagebox1, (like the original, only you can pass a function).
35688 ----------------------------
35689 revision 1.16
35690 date: 1994/11/05 14:31:45;  author: john;  state: Exp;
35691 Added a new menu function for the background.
35692 ----------------------------
35693 revision 1.15
35694 date: 1994/11/05 14:05:46;  author: john;  state: Exp;
35695 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
35696 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
35697 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
35698 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
35699 ----------------------------
35700 revision 1.14
35701 date: 1994/11/03 19:37:35;  author: john;  state: Exp;
35702 Added scrolling file list box
35703 ----------------------------
35704 revision 1.13
35705 date: 1994/10/13 11:34:03;  author: john;  state: Exp;
35706 Made Thrustmaster FCS Hat work.  Put a background behind the
35707 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
35708 menu to new menu. Made F6 be calibrate joystick.
35709 ----------------------------
35710 revision 1.12
35711 date: 1994/10/11 17:08:32;  author: john;  state: Exp;
35712 Added sliders for volume controls.
35713 ----------------------------
35714 revision 1.11
35715 date: 1994/10/04 10:26:23;  author: matt;  state: Exp;
35716 Changed fade in to happen every time a global var is set
35717 ----------------------------
35718 revision 1.10
35719 date: 1994/10/03 14:43:56;  author: john;  state: Exp;
35720 Added newmenu_do1, which allows you to pass the starting
35721 item to the menu system
35722 ----------------------------
35723 revision 1.9
35724 date: 1994/09/30 11:51:33;  author: john;  state: Exp;
35725 Added Matt's NM_TYPE_INPUT_MENU
35726 ----------------------------
35727 revision 1.8
35728 date: 1994/08/30 20:38:28;  author: john;  state: Exp;
35729 Passed citem in newmenu sub.
35730 ----------------------------
35731 revision 1.7
35732 date: 1994/08/12 03:11:00;  author: john;  state: Exp;
35733 Made network be default off; Moved network options into
35734 main menu.  Made starting net game check that mines are the
35735 same.
35736 ----------------------------
35737 revision 1.6
35738 date: 1994/08/11 13:47:05;  author: john;  state: Exp;
35739 Made newmenu have subtitles, passed key through to
35740 the newmenu subfunctions.
35741 ----------------------------
35742 revision 1.5
35743 date: 1994/07/27 16:12:24;  author: john;  state: Exp;
35744 Changed newmenu system to have a callback function.
35745 /.
35746 ----------------------------
35747 revision 1.4
35748 date: 1994/07/24 17:41:38;  author: john;  state: Exp;
35749 *** empty log message ***
35750 ----------------------------
35751 revision 1.3
35752 date: 1994/07/24 17:33:01;  author: john;  state: Exp;
35753 Added percent item.  Also neatend up a bit.
35754 ----------------------------
35755 revision 1.2
35756 date: 1994/07/22 17:48:12;  author: john;  state: Exp;
35757 Added new menuing system.
35758 ----------------------------
35759 revision 1.1
35760 date: 1994/07/22 13:55:51;  author: john;  state: Exp;
35761 Initial revision
35762 =============================================================================
35763 RCS file: f:/miner/source/main/nfile.h,v
35764 Working file: main/nfile.h
35765 head: 2.0
35766 branch:
35767 description: Prototypes for nfile.c
35768 ----------------------------
35769 revision 2.0
35770 date: 1995/02/27 11:29:13;  author: john;  state: Exp;
35771 New version 2.0, which has no anonymous unions, builds with
35772 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
35773 ----------------------------
35774 revision 1.2
35775 date: 1994/12/09 19:20:51;  author: john;  state: Exp;
35776 *** empty log message ***
35777 ----------------------------
35778 revision 1.1
35779 date: 1994/12/07 20:54:43;  author: john;  state: Exp;
35780 Initial revision
35781 =============================================================================
35782 RCS file: f:/miner/source/cfile/nocfile.h,v
35783 Working file: cfile/nocfile.h
35784 head: 1.4
35785 branch:
35786 description: Prototypes to *NOT* use cfile, but use cfile calling parameters.
35787 For debugging.
35788 ----------------------------
35789 revision 1.4
35790 date: 1994/12/09 17:53:52;  author: john;  state: Exp;
35791 Added error checking to number of hogfiles..
35792 ----------------------------
35793 revision 1.3
35794 date: 1994/02/17 17:36:34;  author: john;  state: Exp;
35795 Added CF_READ_MODE and CF_WRITE_MODE constants.
35796 ----------------------------
35797 revision 1.2
35798 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
35799 Crappy inbetween version
35800 ----------------------------
35801 revision 1.1
35802 date: 1994/02/15 09:51:00;  author: john;  state: Exp;
35803 Initial revision
35804 =============================================================================
35805 RCS file: f:/miner/source/main/object.h,v
35806 Working file: main/object.h
35807 head: 1.75
35808 branch:
35809 description: object system definitions
35810 ----------------------------
35811 revision 1.75
35812 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
35813 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
35814 ----------------------------
35815 revision 1.74
35816 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
35817 Added support for spinning objects
35818 ----------------------------
35819 revision 1.73
35820 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
35821 Added rotational drag & thrust, so turning now has momemtum like moving
35822 ----------------------------
35823 revision 1.72
35824 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
35825 Objects containing objects.
35826 ----------------------------
35827 revision 1.71
35828 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
35829 Fixed flares, by adding a physics flag that makes them stick to walls.
35830 ----------------------------
35831 revision 1.70
35832 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
35833 Prototype new find_object_seg and update_object_seg.
35834 ----------------------------
35835 revision 1.69
35836 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
35837 New ai_static structure.
35838 ----------------------------
35839 revision 1.68
35840 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
35841 Moved all (or nearly all) of the values that affect player movement to 
35842 bitmaps.tbl
35843 ----------------------------
35844 revision 1.67
35845 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
35846 Revamped physics system
35847 ----------------------------
35848 revision 1.66
35849 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
35850 Added chase mode.
35851 ----------------------------
35852 revision 1.65
35853 date: 1994/06/29 19:43:31;  author: matt;  state: Exp;
35854 Made powerup animation not happen in render routine
35855 ----------------------------
35856 revision 1.64
35857 date: 1994/06/27 18:31:09;  author: mike;  state: Exp;
35858 Add flares.
35859 ----------------------------
35860 revision 1.63
35861 date: 1994/06/14 21:15:21;  author: matt;  state: Exp;
35862 Made rod objects draw lighted or not depending on a parameter, so the
35863 materialization effect no longer darkens.
35864 ----------------------------
35865 revision 1.62
35866 date: 1994/06/14 16:55:00;  author: matt;  state: Exp;
35867 Got rid of physics_object speed field
35868 ----------------------------
35869 revision 1.61
35870 date: 1994/06/09 16:24:58;  author: matt;  state: Exp;
35871 Fixed confusion with two constants, MAX_SUBOBJS & MAX_SUBMODELS, which
35872 were used for the same things, but had different values.
35873 ----------------------------
35874 revision 1.60
35875 date: 1994/06/08 10:56:44;  author: matt;  state: Exp;
35876 Improved debris: now get submodel size from new POF files; debris now has
35877 limited life; debris can now be blown up.
35878 ----------------------------
35879 revision 1.59
35880 date: 1994/06/02 19:30:49;  author: matt;  state: Exp;
35881 Moved texture-mapped rod drawing stuff (used for hostage & now for the
35882 materialization center) to object.c
35883 ----------------------------
35884 revision 1.58
35885 date: 1994/05/30 22:50:20;  author: matt;  state: Exp;
35886 Added morph effect for robots
35887 ----------------------------
35888 revision 1.57
35889 date: 1994/05/30 19:46:47;  author: mike;  state: Exp;
35890 Move MAX_SUBOBJS from here to inferno.h
35891 ----------------------------
35892 revision 1.56
35893 date: 1994/05/30 00:03:19;  author: matt;  state: Exp;
35894 Got rid of robot render type, and generally cleaned up polygon model
35895 render objects.
35896 ----------------------------
35897 revision 1.55
35898 date: 1994/05/26 21:08:44;  author: matt;  state: Exp;
35899 Moved robot stuff out of polygon model and into robot_info struct
35900 Made new file, robot.c, to deal with robots
35901 ----------------------------
35902 revision 1.54
35903 date: 1994/05/20 11:56:59;  author: matt;  state: Exp;
35904 Cleaned up find_vector_intersection() interface
35905 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
35906 ----------------------------
35907 revision 1.53
35908 date: 1994/05/19 18:53:18;  author: yuan;  state: Exp;
35909 Changing player structure...
35910 ----------------------------
35911 revision 1.52
35912 date: 1994/05/17 12:36:16;  author: matt;  state: Exp;
35913 Changed parms to obj_create() and cleaned up object creation code
35914 ----------------------------
35915 revision 1.51
35916 date: 1994/05/17 11:53:45;  author: yuan;  state: Exp;
35917 Adding Player_init, which saves position of player at beginning of level.
35918 ----------------------------
35919 revision 1.50
35920 date: 1994/05/17 10:37:08;  author: matt;  state: Exp;
35921 Added new parm to reset_objects(), made Num_objects not public, added
35922 Highest_object_index().
35923 ----------------------------
35924 revision 1.49
35925 date: 1994/05/16 16:48:14;  author: yuan;  state: Exp;
35926 Added symbolic constant OBJECT_INITIAL_SHIELDS
35927 ----------------------------
35928 revision 1.48
35929 date: 1994/05/16 16:17:47;  author: john;  state: Exp;
35930 Bunch of stuff on my Inferno Task list May16-23
35931 ----------------------------
35932 revision 1.47
35933 date: 1994/05/16 10:12:12;  author: matt;  state: Exp;
35934 Added prototype for init_player_object()
35935 ----------------------------
35936 revision 1.46
35937 date: 1994/05/14 17:15:06;  author: matt;  state: Exp;
35938 Got rid of externs in source (non-header) files
35939 ----------------------------
35940 revision 1.45
35941 date: 1994/05/13 20:27:37;  author: john;  state: Exp;
35942 Version II of John's new object code.
35943 ----------------------------
35944 revision 1.44
35945 date: 1994/05/12 14:44:39;  author: mike;  state: Exp;
35946 Add ai_info to object structure.
35947 ----------------------------
35948 revision 1.43
35949 date: 1994/05/11 23:33:08;  author: mike;  state: Exp;
35950 Make RESULT_KILLS directional with RESULT_KILLS_1_2 and RESULT_KILLS_2_1.
35951 ----------------------------
35952 revision 1.42
35953 date: 1994/05/10 18:02:16;  author: mike;  state: Exp;
35954 Increase MAX_OBJECTS from 100 to 200
35955 ----------------------------
35956 revision 1.41
35957 date: 1994/05/07 16:42:07;  author: matt;  state: Exp;
35958 Changed name of turnbank to turnroll
35959 ----------------------------
35960 revision 1.40
35961 date: 1994/05/06 10:12:39;  author: matt;  state: Exp;
35962 Added new function, obj_create_copy()
35963 ----------------------------
35964 revision 1.39
35965 date: 1994/05/05 20:39:33;  author: matt;  state: Exp;
35966 Made physics code more general-purpose; moved code from object.c to
35967 physics.c; renamed routines; made behavior such as levelling and turn
35968 banking controllable by flags.
35969 ----------------------------
35970 revision 1.38
35971 date: 1994/05/05 16:41:12;  author: matt;  state: Exp;
35972 Cleaned up repair center code, and moved some from object.c to fuelcen.c
35973 ----------------------------
35974 revision 1.37
35975 date: 1994/05/03 19:33:40;  author: matt;  state: Exp;
35976 Cleaned up usage of rotvel field from physics_info structure
35977 ----------------------------
35978 revision 1.36
35979 date: 1994/05/02 18:34:14;  author: matt;  state: Exp;
35980 Changed parms to obj_link(), added a little more error checking, changed
35981 a few fields in object physics_info, and probably a few other little things.
35982 ----------------------------
35983 revision 1.35
35984 date: 1994/05/02 16:30:31;  author: john;  state: Exp;
35985 Added object flag OF_SHOULD_BE_DEAD which fixed the bug
35986 that caused very close robots to die 10 seconds after they
35987 actually got shot.
35988 ----------------------------
35989 revision 1.34
35990 date: 1994/04/29 09:18:08;  author: matt;  state: Exp;
35991 Added support for multiple-piece explosions
35992 ----------------------------
35993 revision 1.33
35994 date: 1994/04/07 16:28:07;  author: yuan;  state: Exp;
35995 Added SUPERPIG the robot with 200 hit points.
35996 Now robots can take multiple hits before blowing up.
35997 ----------------------------
35998 revision 1.32
35999 date: 1994/04/07 13:44:13;  author: yuan;  state: Exp;
36000 Added powerup_info to object structure.
36001 ----------------------------
36002 revision 1.31
36003 date: 1994/04/01 13:34:15;  author: matt;  state: Exp;
36004 Cleaned up explosion and laser code; added mutliple-stage explosions.
36005 ----------------------------
36006 revision 1.30
36007 date: 1994/04/01 11:15:07;  author: yuan;  state: Exp;
36008 Added multiple bitmap functionality to all objects...
36009 (hostages, powerups, lasers, etc.)  
36010 Hostages and powerups are implemented in the object system,
36011 just need to finish function call to "affect" player.
36012 ----------------------------
36013 revision 1.29
36014 date: 1994/03/31 09:07:43;  author: matt;  state: Exp;
36015 Made last_pos a field of all objects, not just lasers
36016 ----------------------------
36017 revision 1.28
36018 date: 1994/03/30 21:14:33;  author: yuan;  state: Exp;
36019 Minor name change for object->damage...
36020 object->lifeleft now.
36021 ----------------------------
36022 revision 1.27
36023 date: 1994/03/28 20:57:36;  author: yuan;  state: Exp;
36024 *** empty log message ***
36025 ----------------------------
36026 revision 1.26
36027 date: 1994/03/25 17:30:13;  author: yuan;  state: Exp;
36028 Checking in hostage stuff... (start of it)
36029 ----------------------------
36030 revision 1.25
36031 date: 1994/03/25 16:54:55;  author: matt;  state: Exp;
36032 polyobj_info field of object structure now has data for object animation
36033 ----------------------------
36034 revision 1.24
36035 date: 1994/02/17 11:32:50;  author: matt;  state: Exp;
36036 Changes in object system
36037 =============================================================================
36038 RCS file: f:/miner/source/main/object.h,v
36039 Working file: main/object.h
36040 head: 2.1
36041 branch:
36042 description: object system definitions
36043 ----------------------------
36044 revision 2.1
36045 date: 1995/03/31 12:24:10;  author: john;  state: Exp;
36046 I had changed alt_textures from a pointer to a byte. This hosed old
36047 saved games, so I restored it to an int.
36048 ----------------------------
36049 revision 2.0
36050 date: 1995/02/27 11:26:47;  author: john;  state: Exp;
36051 New version 2.0, which has no anonymous unions, builds with
36052 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36053 ----------------------------
36054 revision 1.122
36055 date: 1995/02/22 12:35:53;  author: allender;  state: Exp;
36056 remove anonymous unions
36057 ----------------------------
36058 revision 1.121
36059 date: 1995/02/06 20:43:25;  author: rob;  state: Exp;
36060 Extern'ed Dead_player_camera so it can be reset by multi.c
36061 ----------------------------
36062 revision 1.120
36063 date: 1995/02/01 16:34:07;  author: john;  state: Exp;
36064 Linted.
36065 ----------------------------
36066 revision 1.119
36067 date: 1995/01/29 13:46:42;  author: mike;  state: Exp;
36068 adapt to new create_small_fireball_on_object prototype.
36069 ----------------------------
36070 revision 1.118
36071 date: 1995/01/26 22:11:27;  author: mike;  state: Exp;
36072 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
36073 ----------------------------
36074 revision 1.117
36075 date: 1995/01/24 12:09:29;  author: mike;  state: Exp;
36076 Boost MAX_OBJECTS from 250 to 350.
36077 ----------------------------
36078 revision 1.116
36079 date: 1995/01/13 19:39:51;  author: rob;  state: Exp;
36080 Removed outdated remote_info structure.  (looking for cause of bugs
36081 ----------------------------
36082 revision 1.115
36083 date: 1995/01/12 12:09:38;  author: yuan;  state: Exp;
36084 Added coop object capability.
36085 ----------------------------
36086 revision 1.114
36087 date: 1994/12/15 13:04:20;  author: mike;  state: Exp;
36088 Replace Players[Player_num].time_total references with GameTime.
36089 ----------------------------
36090 revision 1.113
36091 date: 1994/12/12 17:18:09;  author: mike;  state: Exp;
36092 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
36093 ----------------------------
36094 revision 1.112
36095 date: 1994/12/09 14:58:42;  author: matt;  state: Exp;
36096 Added system to attach a fireball to another object for rendering purposes,
36097 so the fireball always renders on top of (after) the object.
36098 ----------------------------
36099 revision 1.111
36100 date: 1994/12/08 12:35:35;  author: matt;  state: Exp;
36101 Added new object allocation & deallocation functions so other code
36102 could stop messing around with internal object data structures.
36103 ----------------------------
36104 revision 1.110
36105 date: 1994/11/21 17:30:21;  author: matt;  state: Exp;
36106 Increased max number of objects
36107 ----------------------------
36108 revision 1.109
36109 date: 1994/11/18 23:41:52;  author: john;  state: Exp;
36110 Changed some shorts to ints.
36111 ----------------------------
36112 revision 1.108
36113 date: 1994/11/10 14:02:45;  author: matt;  state: Exp;
36114 Hacked in support for player ships with different textures
36115 ----------------------------
36116 revision 1.107
36117 date: 1994/11/08 12:19:27;  author: mike;  state: Exp;
36118 Small explosions on objects.
36119 ----------------------------
36120 revision 1.106
36121 date: 1994/10/25 10:51:17;  author: matt;  state: Exp;
36122 Vulcan cannon powerups now contain ammo count
36123 ----------------------------
36124 revision 1.105
36125 date: 1994/10/21 12:19:41;  author: matt;  state: Exp;
36126 Clear transient objects when saving (& loading) games
36127 ----------------------------
36128 revision 1.104
36129 date: 1994/10/21 11:25:04;  author: mike;  state: Exp;
36130 Add IMMORTAL_TIME.
36131 ----------------------------
36132 revision 1.103
36133 date: 1994/10/17 21:34:54;  author: matt;  state: Exp;
36134 Added support for new Control Center/Main Reactor
36135 ----------------------------
36136 revision 1.102
36137 date: 1994/10/14 18:12:28;  author: mike;  state: Exp;
36138 Make egg dropping return object number.
36139 ----------------------------
36140 revision 1.101
36141 date: 1994/10/12 21:07:19;  author: matt;  state: Exp;
36142 Killed unused field in object structure
36143 ----------------------------
36144 revision 1.100
36145 date: 1994/10/12 10:38:24;  author: mike;  state: Exp;
36146 Add field OF_SILENT to obj->flags.
36147 ----------------------------
36148 revision 1.99
36149 date: 1994/10/11 20:35:48;  author: matt;  state: Exp;
36150 Clear "transient" objects (weapons,explosions,etc.) when starting a level
36151 ----------------------------
36152 revision 1.98
36153 date: 1994/10/03 20:56:13;  author: rob;  state: Exp;
36154 Added velocity to shortpos strucutre.
36155 ----------------------------
36156 revision 1.97
36157 date: 1994/09/30 18:24:00;  author: rob;  state: Exp;
36158 Added new control type CT_REMOTE for remote controlled objects.
36159 Also added a union struct 'remote_info' for this type.
36160 ----------------------------
36161 revision 1.96
36162 date: 1994/09/28 09:23:05;  author: mike;  state: Exp;
36163 Prototype Object_type_names.
36164 ----------------------------
36165 revision 1.95
36166 date: 1994/09/25 23:32:37;  author: matt;  state: Exp;
36167 Changed the object load & save code to read/write the structure fields one
36168 at a time (rather than the whole structure at once).  This mean that the
36169 object structure can be changed without breaking the load/save functions.
36170 As a result of this change, the local_object data can be and has been 
36171 incorporated into the object array.  Also, timeleft is now a property 
36172 of all objects, and the object structure has been otherwise cleaned up.
36173 ----------------------------
36174 revision 1.94
36175 date: 1994/09/25 15:45:28;  author: matt;  state: Exp;
36176 Added OBJ_LIGHT, a type of object that casts light
36177 Added generalized lifeleft, and moved it to local_object
36178 ----------------------------
36179 revision 1.93
36180 date: 1994/09/24 17:41:19;  author: mike;  state: Exp;
36181 Add stuff to Local_object structure for materialization centers.
36182 ----------------------------
36183 revision 1.92
36184 date: 1994/09/24 13:16:50;  author: matt;  state: Exp;
36185 Added (hacked in, really) support for overriding the bitmaps used on to
36186 texture map a polygon object, and using a new bitmap for all the faces.
36187 ----------------------------
36188 revision 1.91
36189 date: 1994/09/22 19:02:14;  author: mike;  state: Exp;
36190 Prototype functions extract_shortpos and create_shortpos which reside in
36191 gameseg.c, but are prototyped here to prevent circular dependencies.
36192 ----------------------------
36193 revision 1.90
36194 date: 1994/09/15 21:47:14;  author: mike;  state: Exp;
36195 Prototype dead_player_end().
36196 ----------------------------
36197 revision 1.89
36198 date: 1994/09/15 16:34:47;  author: mike;  state: Exp;
36199 Add danger_laser_num and danger_laser_signature to object_local to
36200 enable robots to efficiently (too efficiently!) avoid player fire.
36201 ----------------------------
36202 revision 1.88
36203 date: 1994/09/11 22:46:19;  author: mike;  state: Exp;
36204 Death_sequence_aborted prototyped.
36205 ----------------------------
36206 revision 1.87
36207 date: 1994/09/09 20:04:30;  author: mike;  state: Exp;
36208 Add vclips for weapons.
36209 ----------------------------
36210 revision 1.86
36211 date: 1994/09/09 14:20:54;  author: matt;  state: Exp;
36212 Added flag that says object uses thrust
36213 ----------------------------
36214 revision 1.85
36215 date: 1994/09/08 14:51:32;  author: mike;  state: Exp;
36216 Make a crucial name change to a field of local_object struct.
36217 ----------------------------
36218 revision 1.84
36219 date: 1994/09/07 19:16:45;  author: mike;  state: Exp;
36220 Homing missile.
36221 ----------------------------
36222 revision 1.83
36223 date: 1994/09/06 17:05:43;  author: matt;  state: Exp;
36224 Added new type for dead player
36225 ----------------------------
36226 revision 1.82
36227 date: 1994/09/02 11:56:09;  author: mike;  state: Exp;
36228 Add persistency (PF_PERSISTENT) to physics_info.
36229 ----------------------------
36230 revision 1.81
36231 date: 1994/08/28 19:10:28;  author: mike;  state: Exp;
36232 Add Player_is_dead.
36233 ----------------------------
36234 revision 1.80
36235 date: 1994/08/18 15:11:44;  author: mike;  state: Exp;
36236 powerup stuff.
36237 ----------------------------
36238 revision 1.79
36239 date: 1994/08/15 15:24:54;  author: john;  state: Exp;
36240 Made players know who killed them; Disabled cheat menu
36241 during net player; fixed bug with not being able to turn
36242 of invulnerability; Made going into edit/starting new leve
36243 l drop you out of a net game; made death dialog box.
36244 ----------------------------
36245 revision 1.78
36246 date: 1994/08/14 23:15:12;  author: matt;  state: Exp;
36247 Added animating bitmap hostages, and cleaned up vclips a bit
36248 ----------------------------
36249 revision 1.77
36250 date: 1994/08/13 14:58:27;  author: matt;  state: Exp;
36251 Finished adding support for miscellaneous objects
36252 ----------------------------
36253 revision 1.76
36254 date: 1994/08/09 16:04:13;  author: john;  state: Exp;
36255 Added network players to editor.
36256 ----------------------------
36257 revision 1.75
36258 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
36259 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
36260 ----------------------------
36261 revision 1.74
36262 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
36263 Added support for spinning objects
36264 ----------------------------
36265 revision 1.73
36266 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
36267 Added rotational drag & thrust, so turning now has momemtum like moving
36268 ----------------------------
36269 revision 1.72
36270 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
36271 Objects containing objects.
36272 ----------------------------
36273 revision 1.71
36274 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
36275 Fixed flares, by adding a physics flag that makes them stick to walls.
36276 ----------------------------
36277 revision 1.70
36278 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
36279 Prototype new find_object_seg and update_object_seg.
36280 ----------------------------
36281 revision 1.69
36282 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
36283 New ai_static structure.
36284 ----------------------------
36285 revision 1.68
36286 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
36287 Moved all (or nearly all) of the values that affect player movement to 
36288 bitmaps.tbl
36289 ----------------------------
36290 revision 1.67
36291 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
36292 Revamped physics system
36293 ----------------------------
36294 revision 1.66
36295 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
36296 Added chase mode.
36297 =============================================================================
36298 RCS file: f:/miner/source/main/editor/objpage.h,v
36299 Working file: main/editor/objpage.h
36300 head: 2.0
36301 branch:
36302 description: object selection stuff.
36303 ----------------------------
36304 revision 2.0
36305 date: 1995/02/27 11:35:32;  author: john;  state: Exp;
36306 Version 2.0! No anonymous unions, Watcom 10.0, with no need
36307 for bitmaps.tbl.
36308 ----------------------------
36309 revision 1.8
36310 date: 1994/11/02 16:19:20;  author: matt;  state: Exp;
36311 Moved draw_model_picture() out of editor, and cleaned up code
36312 ----------------------------
36313 revision 1.7
36314 date: 1994/07/28 16:59:36;  author: mike;  state: Exp;
36315 objects containing objects.
36316 ----------------------------
36317 revision 1.6
36318 date: 1994/05/17 14:45:48;  author: mike;  state: Exp;
36319 Get object type and id from ObjectType and ObjectId.
36320 ----------------------------
36321 revision 1.5
36322 date: 1994/05/17 12:03:55;  author: mike;  state: Exp;
36323 Deal with little known fact that polygon object != robot.
36324 ----------------------------
36325 revision 1.4
36326 date: 1994/05/14 18:00:33;  author: matt;  state: Exp;
36327 Got rid of externs in source (non-header) files
36328 ----------------------------
36329 revision 1.3
36330 date: 1994/04/01 11:17:06;  author: yuan;  state: Exp;
36331 Added objects to objpage. Added buttons for easier tmap scrolling.
36332 Objects are selected fully from objpage and add object menu or pad.
36333 ----------------------------
36334 revision 1.2
36335 date: 1993/12/16 17:26:27;  author: john;  state: Exp;
36336 Moved texture and object selection to texpage and objpage
36337 ----------------------------
36338 revision 1.1
36339 date: 1993/12/16 16:13:08;  author: john;  state: Exp;
36340 Initial revision
36341 =============================================================================
36342 RCS file: f:/miner/source/main/outside.h,v
36343 Working file: main/outside.h
36344 head: 1.1
36345 branch:
36346 description: Header for newfile.c
36347 ----------------------------
36348 revision 1.1
36349 date: 1994/08/15 19:18:47;  author: matt;  state: Exp;
36350 Initial revision
36351 =============================================================================
36352 RCS file: f:/miner/source/main/paging.h,v
36353 Working file: main/paging.h
36354 head: 2.0
36355 branch:
36356 description: Prototypes for paging.
36357 ----------------------------
36358 revision 2.0
36359 date: 1995/02/27 11:30:12;  author: john;  state: Exp;
36360 New version 2.0, which has no anonymous unions, builds with
36361 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36362 ----------------------------
36363 revision 1.2
36364 date: 1995/01/15 11:56:39;  author: john;  state: Exp;
36365 Working version of paging.
36366 ----------------------------
36367 revision 1.1
36368 date: 1995/01/15 11:33:52;  author: john;  state: Exp;
36369 Initial revision
36370 =============================================================================
36371 RCS file: f:/miner/source/2d/palette.h,v
36372 Working file: 2d/palette.h
36373 head: 1.11
36374 branch:
36375 description: Protoypes for palette functions
36376 ----------------------------
36377 revision 1.11
36378 date: 1994/11/15 17:55:10;  author: john;  state: Exp;
36379 Made text palette fade in when game over.
36380 ----------------------------
36381 revision 1.10
36382 date: 1994/11/07 13:53:42;  author: john;  state: Exp;
36383 Added better gamma stufff.
36384 ----------------------------
36385 revision 1.9
36386 date: 1994/11/07 13:38:03;  author: john;  state: Exp;
36387 Added gamma correction stuff.
36388 ----------------------------
36389 revision 1.8
36390 date: 1994/11/05 13:05:59;  author: john;  state: Exp;
36391 Added back in code to allow keys during fade.
36392 ----------------------------
36393 revision 1.7
36394 date: 1994/11/05 12:46:37;  author: john;  state: Exp;
36395 Changed palette stuff a bit.
36396 ----------------------------
36397 revision 1.6
36398 date: 1994/09/22 16:08:37;  author: john;  state: Exp;
36399 Fixed some palette stuff.
36400 ----------------------------
36401 revision 1.5
36402 date: 1994/08/09 11:27:04;  author: john;  state: Exp;
36403 Add cthru stuff.
36404 ----------------------------
36405 revision 1.4
36406 date: 1994/06/09 10:39:33;  author: john;  state: Exp;
36407 In fade out.in functions, returned 1 if key was pressed...
36408 ----------------------------
36409 revision 1.3
36410 date: 1994/05/31 19:04:24;  author: john;  state: Exp;
36411 Added key to stop fade if desired.
36412 ----------------------------
36413 revision 1.2
36414 date: 1994/05/06 12:50:42;  author: john;  state: Exp;
36415 Added supertransparency; neatend things up; took out warnings.
36416 ----------------------------
36417 revision 1.1
36418 date: 1994/05/04 14:59:57;  author: john;  state: Exp;
36419 Initial revision
36420 =============================================================================
36421 RCS file: f:/miner/source/misc/parsarg.h,v
36422 Working file: misc/parsarg.h
36423 head: 1.1
36424 branch:
36425 description: Header for parse_args() function
36426 ----------------------------
36427 revision 1.1
36428 date: 1993/09/09 17:32:14;  author: matt;  state: Exp;
36429 Initial revision
36430 =============================================================================
36431 RCS file: f:/miner/source/2d/pcx.h,v
36432 Working file: 2d/pcx.h
36433 head: 1.4
36434 branch:
36435 description: Routines to read/write pcx images.
36436 ----------------------------
36437 revision 1.4
36438 date: 1995/01/21 17:07:34;  author: john;  state: Exp;
36439 Added out of memory error.
36440 ----------------------------
36441 revision 1.3
36442 date: 1994/11/29 02:53:10;  author: john;  state: Exp;
36443 Added error messages; made call be more similiar to iff.
36444 ----------------------------
36445 revision 1.2
36446 date: 1994/11/28 20:03:48;  author: john;  state: Exp;
36447 Added PCX functions.
36448 ----------------------------
36449 revision 1.1
36450 date: 1994/11/28 19:57:45;  author: john;  state: Exp;
36451 Initial revision
36452 =============================================================================
36453 RCS file: f:/miner/source/main/physics.h,v
36454 Working file: main/physics.h
36455 head: 2.0
36456 branch:
36457 description: Headers for physics functions and data
36458 ----------------------------
36459 revision 2.0
36460 date: 1995/02/27 11:33:06;  author: john;  state: Exp;
36461 New version 2.0, which has no anonymous unions, builds with
36462 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36463 ----------------------------
36464 revision 1.29
36465 date: 1995/02/06 19:47:18;  author: matt;  state: Exp;
36466 New function (untested), set_thrust_from_velocity()
36467 ----------------------------
36468 revision 1.28
36469 date: 1994/12/04 22:14:20;  author: mike;  state: Exp;
36470 apply instantaneous rotation to an object due to a force blow.
36471 ----------------------------
36472 revision 1.27
36473 date: 1994/08/01 13:29:42;  author: matt;  state: Exp;
36474 Made fvi() check holes in transparent walls, and changed fvi() calling
36475 parms to take all input data in query structure.
36476 ----------------------------
36477 revision 1.26
36478 date: 1994/07/28 12:35:22;  author: matt;  state: Exp;
36479 Added prototype
36480 ----------------------------
36481 revision 1.25
36482 date: 1994/07/13 21:48:05;  author: matt;  state: Exp;
36483 FVI() and physics now keep lists of segments passed through which the
36484 trigger code uses.
36485 ----------------------------
36486 revision 1.24
36487 date: 1994/06/30 19:01:55;  author: matt;  state: Exp;
36488 Moved flying controls code from physics.c to controls.c
36489 ----------------------------
36490 revision 1.23
36491 date: 1994/06/16 14:14:20;  author: mike;  state: Exp;
36492 Change physics_lookahead to return hit_info.
36493 ----------------------------
36494 revision 1.22
36495 date: 1994/06/09 09:58:43;  author: matt;  state: Exp;
36496 Moved find_vector_intersection() from physics.c to new file fvi.c
36497 ----------------------------
36498 revision 1.21
36499 date: 1994/05/20 16:11:07;  author: matt;  state: Exp;
36500 Added new parm, ignore_obj, to find_vector_intersection()
36501 ----------------------------
36502 revision 1.20
36503 date: 1994/05/20 15:16:58;  author: matt;  state: Exp;
36504 Added new fvi return type; took out some troublesome (and troubling) asserts
36505 =============================================================================
36506 RCS file: f:/miner/source/main/piggy.h,v
36507 Working file: main/piggy.h
36508 head: 2.0
36509 branch:
36510 description: Interface to piggy functions.
36511 ----------------------------
36512 revision 2.0
36513 date: 1995/02/27 11:31:21;  author: john;  state: Exp;
36514 New version 2.0, which has no anonymous unions, builds with
36515 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36516 ----------------------------
36517 revision 1.10
36518 date: 1995/02/03 17:08:29;  author: john;  state: Exp;
36519 Changed sound stuff to allow low memory usage.
36520 Also, changed so that Sounds isn't an array of digi_sounds, it
36521 is a ubyte pointing into GameSounds, this way the digi.c code that
36522 locks sounds won't accidentally unlock a sound that is already playing, but
36523 since it's Sounds[soundno] is different, it would erroneously be unlocked.
36524 ----------------------------
36525 revision 1.9
36526 date: 1995/01/24 14:33:49;  author: john;  state: Exp;
36527 *** empty log message ***
36528 ----------------------------
36529 revision 1.8
36530 date: 1995/01/24 14:32:35;  author: john;  state: Exp;
36531 Took out paging in code.
36532 ----------------------------
36533 revision 1.7
36534 date: 1995/01/23 12:30:17;  author: john;  state: Exp;
36535 Made debug code that mprintf what bitmap gets paged in.
36536 ----------------------------
36537 revision 1.6
36538 date: 1995/01/17 14:11:37;  author: john;  state: Exp;
36539 Added function that is called after level loaded.
36540 ----------------------------
36541 revision 1.5
36542 date: 1995/01/14 19:16:58;  author: john;  state: Exp;
36543 First version of new bitmap paging code.
36544 ----------------------------
36545 revision 1.4
36546 date: 1994/10/27 18:51:57;  author: john;  state: Exp;
36547 Added -piglet option that only loads needed textures for a 
36548 mine.  Only saved ~1MB, and code still doesn't free textures
36549 before you load a new mine.
36550 ----------------------------
36551 revision 1.3
36552 date: 1994/06/08 14:20:47;  author: john;  state: Exp;
36553 Made piggy dump before going into game.
36554 ----------------------------
36555 revision 1.2
36556 date: 1994/05/06 13:02:40;  author: john;  state: Exp;
36557 Added piggy stuff; worked on supertransparency
36558 ----------------------------
36559 revision 1.1
36560 date: 1994/05/06 11:47:46;  author: john;  state: Exp;
36561 Initial revision
36562 =============================================================================
36563 RCS file: f:/miner/source/main/player.h,v
36564 Working file: main/player.h
36565 head: 2.0
36566 branch:
36567 description: Structure information for the player
36568 ----------------------------
36569 revision 2.0
36570 date: 1995/02/27 11:30:25;  author: john;  state: Exp;
36571 New version 2.0, which has no anonymous unions, builds with
36572 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36573 ----------------------------
36574 revision 1.41
36575 date: 1994/12/20 17:56:43;  author: yuan;  state: Exp;
36576 Multiplayer object capability.
36577 ----------------------------
36578 revision 1.40
36579 date: 1994/12/02 15:04:42;  author: matt;  state: Exp;
36580 Fixed bogus weapon constants and arrays
36581 ----------------------------
36582 revision 1.39
36583 date: 1994/11/25 22:47:08;  author: matt;  state: Exp;
36584 Made saved game descriptions longer
36585 ----------------------------
36586 revision 1.38
36587 date: 1994/11/21 17:29:38;  author: matt;  state: Exp;
36588 Cleaned up sequencing & game saving for secret levels
36589 ----------------------------
36590 revision 1.37
36591 date: 1994/11/17 12:57:13;  author: rob;  state: Exp;
36592 Changed net_kills_level to net_killed_total.
36593 ----------------------------
36594 revision 1.36
36595 date: 1994/11/14 17:20:33;  author: rob;  state: Exp;
36596 Bumped player file version.
36597 ----------------------------
36598 revision 1.35
36599 date: 1994/11/04 19:55:06;  author: rob;  state: Exp;
36600 Changed a previously unused pad character to represent whether or not
36601 the player is connected to a net game (used to be objnum=-1 but we
36602 want to keep the objnum info in case of re-joins)
36603 ----------------------------
36604 revision 1.34
36605 date: 1994/10/22 14:13:54;  author: mike;  state: Exp;
36606 Add homing_object_dist field to player struct.
36607 ----------------------------
36608 revision 1.33
36609 date: 1994/10/22 00:08:45;  author: matt;  state: Exp;
36610 Fixed up problems with bonus & game sequencing
36611 Player doesn't get credit for hostages unless he gets them out alive
36612 ----------------------------
36613 revision 1.32
36614 date: 1994/10/21 20:43:03;  author: mike;  state: Exp;
36615 Add hostages_on_board to player struct.
36616 ----------------------------
36617 revision 1.31
36618 date: 1994/10/19 20:00:00;  author: john;  state: Exp;
36619 Added bonus points at the end of level based on skill level.
36620 ----------------------------
36621 revision 1.30
36622 date: 1994/10/19 15:14:24;  author: john;  state: Exp;
36623 Took % hits out of player structure, made %kills work properly.
36624 ----------------------------
36625 revision 1.29
36626 date: 1994/10/19 12:12:27;  author: john;  state: Exp;
36627 Added hour variable.
36628 ----------------------------
36629 revision 1.28
36630 date: 1994/10/17 17:24:48;  author: john;  state: Exp;
36631 Added starting_level to player struct.
36632 ----------------------------
36633 revision 1.27
36634 date: 1994/10/13 15:42:02;  author: mike;  state: Exp;
36635 Remove afterburner.
36636 ----------------------------
36637 revision 1.26
36638 date: 1994/10/10 17:00:23;  author: mike;  state: Exp;
36639 Lower number of players from 10 to 8.
36640 ----------------------------
36641 revision 1.25
36642 date: 1994/10/09 14:53:26;  author: matt;  state: Exp;
36643 Made player cockpit state & window size save/restore with saved games & automap
36644 ----------------------------
36645 revision 1.24
36646 date: 1994/10/08 20:24:10;  author: matt;  state: Exp;
36647 Added difficulty level to player structure for game load/save
36648 ----------------------------
36649 revision 1.23
36650 date: 1994/10/05 17:39:53;  author: rob;  state: Exp;
36651 Changed killer_objnum to a short (was char)
36652 ----------------------------
36653 revision 1.22
36654 date: 1994/10/03 22:59:07;  author: matt;  state: Exp;
36655 Limit callsign to 8 chars long, so we can use it as filename
36656 ----------------------------
36657 revision 1.21
36658 date: 1994/09/23 10:14:30;  author: mike;  state: Exp;
36659 Rename PLAYER_FLAGS_INVINCIBLE to PLAYER_FLAGS_INVULNERABLE.
36660 Add INVULNERABLE_TIME_MAX = 30 seconds.
36661 ----------------------------
36662 revision 1.20
36663 date: 1994/09/21 20:44:22;  author: matt;  state: Exp;
36664 Player explosion fireball now specified in bitmaps.tbl
36665 ----------------------------
36666 revision 1.19
36667 date: 1994/09/21 12:27:37;  author: mike;  state: Exp;
36668 Move CLOAK_TIME_MAX here from game.c
36669 ----------------------------
36670 revision 1.18
36671 date: 1994/09/16 13:10:16;  author: mike;  state: Exp;
36672 Add afterburner and cloak stuff.
36673 ----------------------------
36674 revision 1.17
36675 date: 1994/09/11 20:30:26;  author: matt;  state: Exp;
36676 Cleaned up thrust vars, changing a few names
36677 ----------------------------
36678 revision 1.16
36679 date: 1994/09/09 14:22:45;  author: matt;  state: Exp;
36680 Added extra gun for player
36681 ----------------------------
36682 revision 1.15
36683 date: 1994/09/07 13:30:11;  author: john;  state: Exp;
36684 Added code to tell how many packets were lost.
36685 ----------------------------
36686 revision 1.14
36687 date: 1994/09/02 11:56:33;  author: mike;  state: Exp;
36688 Alignment on the player struct.
36689 ----------------------------
36690 revision 1.13
36691 date: 1994/08/25 18:12:05;  author: matt;  state: Exp;
36692 Made player's weapons and flares fire from the positions on the 3d model.
36693 Also added support for quad lasers.
36694 ----------------------------
36695 revision 1.12
36696 date: 1994/08/22 15:49:40;  author: mike;  state: Exp;
36697 change spelling on num_missles -> num_missiles.
36698 ----------------------------
36699 revision 1.11
36700 date: 1994/08/18 10:47:32;  author: john;  state: Exp;
36701 Cleaned up game sequencing and player death stuff
36702 in preparation for making the player explode into
36703 pieces when dead.
36704 ----------------------------
36705 revision 1.10
36706 date: 1994/08/17 16:50:05;  author: john;  state: Exp;
36707 Added damaging fireballs, missiles.
36708 ----------------------------
36709 revision 1.9
36710 date: 1994/08/15 00:24:10;  author: john;  state: Exp;
36711 First version of netgame with players killing
36712 each other. still buggy...
36713 ----------------------------
36714 revision 1.8
36715 date: 1994/08/12 22:41:26;  author: john;  state: Exp;
36716 Took away Player_stats; add Players array.
36717 ----------------------------
36718 revision 1.7
36719 date: 1994/08/09 17:53:25;  author: adam;  state: Exp;
36720 *** empty log message ***
36721 ----------------------------
36722 revision 1.6
36723 date: 1994/07/13 00:15:05;  author: matt;  state: Exp;
36724 Moved all (or nearly all) of the values that affect player movement to 
36725 bitmaps.tbl
36726 ----------------------------
36727 revision 1.5
36728 date: 1994/07/08 21:44:17;  author: matt;  state: Exp;
36729 Made laser powerups saturate correctly
36730 ----------------------------
36731 revision 1.4
36732 date: 1994/07/07 14:59:02;  author: john;  state: Exp;
36733 Made radar powerups.
36734 ----------------------------
36735 revision 1.3
36736 date: 1994/07/02 13:49:39;  author: matt;  state: Exp;
36737 Cleaned up includes
36738 ----------------------------
36739 revision 1.2
36740 date: 1994/07/02 13:10:03;  author: matt;  state: Exp;
36741 Moved player stats struct from gameseq.h to player.h
36742 ----------------------------
36743 revision 1.1
36744 date: 1994/07/02 11:00:43;  author: matt;  state: Exp;
36745 Initial revision
36746 =============================================================================
36747 RCS file: f:/miner/source/main/playsave.h,v
36748 Working file: main/playsave.h
36749 head: 2.0
36750 branch:
36751 description: Header for playsave.c
36752 ----------------------------
36753 revision 2.0
36754 date: 1995/02/27 11:31:24;  author: john;  state: Exp;
36755 New version 2.0, which has no anonymous unions, builds with
36756 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36757 ----------------------------
36758 revision 1.10
36759 date: 1995/01/22 18:57:04;  author: matt;  state: Exp;
36760 Made player highest level work with missions
36761 ----------------------------
36762 revision 1.9
36763 date: 1994/12/12 11:37:15;  author: matt;  state: Exp;
36764 Fixed auto leveling defaults & saving
36765 ----------------------------
36766 revision 1.8
36767 date: 1994/12/08 10:01:37;  author: john;  state: Exp;
36768 Changed the way the player callsign stuff works.
36769 ----------------------------
36770 revision 1.7
36771 date: 1994/11/25 22:46:56;  author: matt;  state: Exp;
36772 Made saved game descriptions longer
36773 ----------------------------
36774 revision 1.6
36775 date: 1994/10/24 20:00:02;  author: john;  state: Exp;
36776 Added prototype for read_player_file.
36777 ----------------------------
36778 revision 1.5
36779 date: 1994/10/17 13:07:12;  author: john;  state: Exp;
36780 Moved the descent.cfg info into the player config file.
36781 ----------------------------
36782 revision 1.4
36783 date: 1994/10/09 14:54:32;  author: matt;  state: Exp;
36784 Made player cockpit state & window size save/restore with saved games & automap
36785 ----------------------------
36786 revision 1.3
36787 date: 1994/10/08 23:08:09;  author: matt;  state: Exp;
36788 Added error check & handling for game load/save disk io
36789 ----------------------------
36790 revision 1.2
36791 date: 1994/09/28 17:25:06;  author: matt;  state: Exp;
36792 Added first draft of game save/load system
36793 ----------------------------
36794 revision 1.1
36795 date: 1994/09/27 15:47:23;  author: matt;  state: Exp;
36796 Initial revision
36797 =============================================================================
36798 RCS file: f:/miner/source/main/polyobj.h,v
36799 Working file: main/polyobj.h
36800 head: 2.1
36801 branch:
36802 description: Header for polyobj.c, the polygon object code
36803 ----------------------------
36804 revision 2.1
36805 date: 1995/02/27 18:21:54;  author: john;  state: Exp;
36806 Added extern for robot_points.
36807 ----------------------------
36808 revision 2.0
36809 date: 1995/02/27 11:29:58;  author: john;  state: Exp;
36810 New version 2.0, which has no anonymous unions, builds with
36811 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36812 ----------------------------
36813 revision 1.28
36814 date: 1995/01/12 12:10:16;  author: adam;  state: Exp;
36815 *** empty log message ***
36816 ----------------------------
36817 revision 1.27
36818 date: 1994/11/11 19:28:58;  author: matt;  state: Exp;
36819 Added code to show low detail polygon models
36820 ----------------------------
36821 revision 1.26
36822 date: 1994/11/10 14:03:05;  author: matt;  state: Exp;
36823 Hacked in support for player ships with different textures
36824 ----------------------------
36825 revision 1.25
36826 date: 1994/11/02 16:18:24;  author: matt;  state: Exp;
36827 Moved draw_model_picture() out of editor
36828 ----------------------------
36829 revision 1.24
36830 date: 1994/10/18 10:55:57;  author: adam;  state: Exp;
36831 bumped MAX_POLYGON_OBJECTS up
36832 ----------------------------
36833 revision 1.23
36834 date: 1994/10/17 21:35:01;  author: matt;  state: Exp;
36835 Added support for new Control Center/Main Reactor
36836 ----------------------------
36837 revision 1.22
36838 date: 1994/09/09 14:23:42;  author: matt;  state: Exp;
36839 Added glow code to polygon models for engine glow
36840 ----------------------------
36841 revision 1.21
36842 date: 1994/08/26 18:03:43;  author: matt;  state: Exp;
36843 Added code to remap polygon model numbers by matching filenames
36844 ----------------------------
36845 revision 1.20
36846 date: 1994/08/26 15:36:00;  author: matt;  state: Exp;
36847 Made eclips usable on more than one object at a time
36848 ----------------------------
36849 revision 1.19
36850 date: 1994/07/22 20:44:23;  author: matt;  state: Exp;
36851 Killed unused fields in polygon model structure
36852 ----------------------------
36853 revision 1.18
36854 date: 1994/06/16 17:52:11;  author: matt;  state: Exp;
36855 Made submodels rotate around their centers, not their pivot points
36856 ----------------------------
36857 revision 1.17
36858 date: 1994/06/14 12:22:05;  author: matt;  state: Exp;
36859 Integrated with drive code, using #defines to switch versions
36860 ----------------------------
36861 revision 1.16
36862 date: 1994/06/09 16:25:01;  author: matt;  state: Exp;
36863 Fixed confusion with two constants, MAX_SUBOBJS & MAX_SUBMODELS, which
36864 were used for the same things, but had different values.
36865 ----------------------------
36866 revision 1.15
36867 date: 1994/06/08 10:56:38;  author: matt;  state: Exp;
36868 Improved debris: now get submodel size from new POF files; debris now has
36869 limited life; debris can now be blown up.
36870 ----------------------------
36871 revision 1.14
36872 date: 1994/06/07 16:51:57;  author: matt;  state: Exp;
36873 Made object lighting work correctly; changed name of Ambient_light to
36874 Dynamic_light; cleaned up polygobj object rendering a little.
36875 ----------------------------
36876 revision 1.13
36877 date: 1994/05/26 21:08:59;  author: matt;  state: Exp;
36878 Moved robot stuff out of polygon model and into robot_info struct
36879 Made new file, robot.c, to deal with robots
36880 ----------------------------
36881 revision 1.12
36882 date: 1994/05/18 19:35:05;  author: matt;  state: Exp;
36883 Added fields for the rest of the subobj data
36884 ----------------------------
36885 revision 1.11
36886 date: 1994/05/16 16:17:13;  author: john;  state: Exp;
36887 Bunch of stuff on my Inferno Task list May16-23
36888 ----------------------------
36889 revision 1.10
36890 date: 1994/05/13 11:08:31;  author: matt;  state: Exp;
36891 Added support for multiple gun positions on polygon models
36892 ----------------------------
36893 revision 1.9
36894 date: 1994/04/29 09:18:04;  author: matt;  state: Exp;
36895 Added support for multiple-piece explosions
36896 ----------------------------
36897 revision 1.8
36898 date: 1994/04/28 18:44:18;  author: matt;  state: Exp;
36899 Took out code for old-style (non-interpreted) objects.
36900 ----------------------------
36901 revision 1.7
36902 date: 1994/03/25 16:54:38;  author: matt;  state: Exp;
36903 draw_polygon_object() now takes pointer to animation data
36904 ----------------------------
36905 revision 1.6
36906 date: 1994/03/15 17:44:33;  author: matt;  state: Exp;
36907 Changed a bunch of names
36908 ----------------------------
36909 revision 1.5
36910 date: 1994/03/07 20:02:29;  author: matt;  state: Exp;
36911 Added pointer to normals in polyobj struct
36912 Added prototype for draw_polygon_object()
36913 ----------------------------
36914 revision 1.4
36915 date: 1994/03/01 17:16:19;  author: matt;  state: Exp;
36916 Lots of changes to support loadable binary ".pof" robot files
36917 ----------------------------
36918 revision 1.3
36919 date: 1994/01/31 15:51:20;  author: matt;  state: Exp;
36920 Added ptr for rgb table for robot colors
36921 ----------------------------
36922 revision 1.2
36923 date: 1994/01/28 13:52:01;  author: matt;  state: Exp;
36924 Added flesh to this previously skeletal file.
36925 ----------------------------
36926 revision 1.1
36927 date: 1994/01/28 13:47:42;  author: matt;  state: Exp;
36928 Initial revision
36929 =============================================================================
36930 RCS file: f:/miner/source/main/powerup.h,v
36931 Working file: main/powerup.h
36932 head: 2.0
36933 branch:
36934 description: Powerup header file.
36935 ----------------------------
36936 revision 2.0
36937 date: 1995/02/27 11:27:35;  author: john;  state: Exp;
36938 New version 2.0, which has no anonymous unions, builds with
36939 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
36940 ----------------------------
36941 revision 1.34
36942 date: 1995/02/06 15:52:37;  author: mike;  state: Exp;
36943 add mini megawow powerup for giving reasonable weapons.
36944 ----------------------------
36945 revision 1.33
36946 date: 1995/01/30 17:14:11;  author: mike;  state: Exp;
36947 halve rate of vulcan ammo consumption.
36948 ----------------------------
36949 revision 1.32
36950 date: 1995/01/15 20:47:56;  author: mike;  state: Exp;
36951 add lighting field to powerups.
36952 ----------------------------
36953 revision 1.31
36954 date: 1994/12/12 21:39:58;  author: matt;  state: Exp;
36955 Changed vulcan ammo: 10K max, 5K w/weapon, 1250 per powerup
36956 ----------------------------
36957 revision 1.30
36958 date: 1994/12/07 12:55:26;  author: mike;  state: Exp;
36959 tweak vulcan amounts.
36960 ----------------------------
36961 revision 1.29
36962 date: 1994/12/02 20:06:46;  author: matt;  state: Exp;
36963 Made vulcan ammo print at approx 25 times actual
36964 ----------------------------
36965 revision 1.28
36966 date: 1994/10/26 15:56:27;  author: yuan;  state: Exp;
36967 Made vulcan cannon give 100 ammo if it has less than that.
36968 ----------------------------
36969 revision 1.27
36970 date: 1994/10/15 19:07:10;  author: mike;  state: Exp;
36971 Define constants for amount of vulcan ammo per powerup.
36972 ----------------------------
36973 revision 1.26
36974 date: 1994/09/26 13:29:38;  author: matt;  state: Exp;
36975 Added extra life each 100,000 points, and show icons on HUD for num lives
36976 ----------------------------
36977 revision 1.25
36978 date: 1994/09/22 19:00:25;  author: mike;  state: Exp;
36979 Kill constants ENERGY_BOOST and SHIELD_BOOST: it's now difficulty level dependent.
36980 ----------------------------
36981 revision 1.24
36982 date: 1994/09/20 19:46:11;  author: mike;  state: Exp;
36983 Fix powerup number assignments.
36984 ----------------------------
36985 revision 1.23
36986 date: 1994/09/02 11:53:34;  author: mike;  state: Exp;
36987 Add the megawow powerup.  If you don't know about it, that's because it's a secret.
36988 ----------------------------
36989 revision 1.22
36990 date: 1994/09/01 10:41:35;  author: matt;  state: Exp;
36991 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
36992 correctly if width & height of bitmap are different.
36993 ----------------------------
36994 revision 1.21
36995 date: 1994/08/31 19:26:14;  author: mike;  state: Exp;
36996 Start adding new pile of powerups.
36997 ----------------------------
36998 revision 1.20
36999 date: 1994/08/25 17:56:08;  author: matt;  state: Exp;
37000 Added quad laser powerup
37001 ----------------------------
37002 revision 1.19
37003 date: 1994/08/18 15:11:50;  author: mike;  state: Exp;
37004 missile powerups.
37005 ----------------------------
37006 revision 1.18
37007 date: 1994/08/09 17:54:33;  author: adam;  state: Exp;
37008 upped no. of powerup types
37009 ----------------------------
37010 revision 1.17
37011 date: 1994/08/09 17:53:39;  author: adam;  state: Exp;
37012 *** empty log message ***
37013 ----------------------------
37014 revision 1.16
37015 date: 1994/07/27 19:44:16;  author: mike;  state: Exp;
37016 Objects containing objects.
37017 ----------------------------
37018 revision 1.15
37019 date: 1994/07/26 18:31:32;  author: mike;  state: Exp;
37020 Move some constants here from eobject.c.
37021 ----------------------------
37022 revision 1.14
37023 date: 1994/07/20 17:35:03;  author: yuan;  state: Exp;
37024 Some minor bug fixes and new key gauges...
37025 ----------------------------
37026 revision 1.13
37027 date: 1994/07/12 15:53:23;  author: john;  state: Exp;
37028 *** empty log message ***
37029 ----------------------------
37030 revision 1.12
37031 date: 1994/07/12 15:30:47;  author: mike;  state: Exp;
37032 Prototype diminish_towards_max.
37033 ----------------------------
37034 revision 1.11
37035 date: 1994/07/07 14:59:04;  author: john;  state: Exp;
37036 Made radar powerups.
37037 ----------------------------
37038 revision 1.10
37039 date: 1994/07/01 16:35:40;  author: yuan;  state: Exp;
37040 Added key system
37041 ----------------------------
37042 revision 1.9
37043 date: 1994/06/29 19:43:33;  author: matt;  state: Exp;
37044 Made powerup animation not happen in render routine
37045 ----------------------------
37046 revision 1.8
37047 date: 1994/06/21 18:54:03;  author: matt;  state: Exp;
37048 Added support for powerups that don't get picked up if not needed, but this
37049 feature is commented out at the end of do_powerup(), since the physics gave 
37050 me all sorts of problems, with the player getting stuck on a powerup.
37051 ----------------------------
37052 revision 1.7
37053 date: 1994/06/08 18:16:32;  author: john;  state: Exp;
37054 Bunch of new stuff that basically takes constants out of the code
37055 and puts them into bitmaps.tbl.
37056 ----------------------------
37057 revision 1.6
37058 date: 1994/05/18 13:26:30;  author: yuan;  state: Exp;
37059 *** empty log message ***
37060 ----------------------------
37061 revision 1.5
37062 date: 1994/05/17 17:01:48;  author: yuan;  state: Exp;
37063 Added constant for boosts.
37064 ----------------------------
37065 revision 1.4
37066 date: 1994/04/06 14:42:50;  author: yuan;  state: Exp;
37067 Adding new powerups.
37068 ----------------------------
37069 revision 1.3
37070 date: 1994/04/01 14:36:59;  author: yuan;  state: Exp;
37071 John's head is an extra life...
37072 ----------------------------
37073 revision 1.2
37074 date: 1994/04/01 11:15:22;  author: yuan;  state: Exp;
37075 Added multiple bitmap functionality to all objects...
37076 (hostages, powerups, lasers, etc.)  
37077 Hostages and powerups are implemented in the object system,
37078 just need to finish function call to "affect" player.
37079 ----------------------------
37080 revision 1.1
37081 date: 1994/03/31 17:01:43;  author: yuan;  state: Exp;
37082 Initial revision
37083 =============================================================================
37084 RCS file: f:/miner/source/main/radar.h,v
37085 Working file: main/radar.h
37086 head: 2.0
37087 branch:
37088 description: Prototypes for radar.
37089 ----------------------------
37090 revision 2.0
37091 date: 1995/02/27 11:33:07;  author: john;  state: Exp;
37092 New version 2.0, which has no anonymous unions, builds with
37093 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37094 ----------------------------
37095 revision 1.3
37096 date: 1994/07/07 14:59:03;  author: john;  state: Exp;
37097 Made radar powerups.
37098 ----------------------------
37099 revision 1.2
37100 date: 1994/07/06 19:36:36;  author: john;  state: Exp;
37101 Initial version of radar.
37102 ----------------------------
37103 revision 1.1
37104 date: 1994/07/06 17:22:18;  author: john;  state: Exp;
37105 Initial revision
37106 =============================================================================
37107 RCS file: f:/miner/source/pslib/readfile.h,v
37108 Working file: pslib/readfile.h
37109 head: 1.5
37110 branch:
37111 description: =============================================================================
37112 RCS file: f:/miner/source/main/render.h,v
37113 Working file: main/render.h
37114 head: 2.0
37115 branch:
37116 description: Header for rendering-based functions
37117 ----------------------------
37118 revision 2.0
37119 date: 1995/02/27 11:33:00;  author: john;  state: Exp;
37120 New version 2.0, which has no anonymous unions, builds with
37121 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37122 ----------------------------
37123 revision 1.17
37124 date: 1994/11/30 12:33:33;  author: mike;  state: Exp;
37125 prototype Clear_window.
37126 ----------------------------
37127 revision 1.16
37128 date: 1994/11/02 16:19:52;  author: matt;  state: Exp;
37129 Increased size of extra object buffer
37130 ----------------------------
37131 revision 1.15
37132 date: 1994/07/25 00:02:49;  author: matt;  state: Exp;
37133 Various changes to accomodate new 3d, which no longer takes point numbers
37134 as parms, and now only takes pointers to points.
37135 ----------------------------
37136 revision 1.14
37137 date: 1994/07/24 14:37:42;  author: matt;  state: Exp;
37138 Added angles for player head
37139 ----------------------------
37140 revision 1.13
37141 date: 1994/06/24 17:01:34;  author: john;  state: Exp;
37142 Add VFX support; Took Game Sequencing, like EndGame and stuff and
37143 took it out of game.c and into gameseq.c
37144 ----------------------------
37145 revision 1.12
37146 date: 1994/06/16 10:55:57;  author: matt;  state: Exp;
37147 Made a bunch of test code dependent on #defines
37148 ----------------------------
37149 revision 1.11
37150 date: 1994/06/01 00:01:36;  author: matt;  state: Exp;
37151 Added mine destruction flashing effect
37152 ----------------------------
37153 revision 1.10
37154 date: 1994/05/22 18:47:36;  author: mike;  state: Exp;
37155 make Render_list a globally accessible variable.
37156 ----------------------------
37157 revision 1.9
37158 date: 1994/05/22 15:29:32;  author: mike;  state: Exp;
37159 Separation of lighting from render.c to lighting.c.
37160 ----------------------------
37161 revision 1.8
37162 date: 1994/05/14 17:59:39;  author: matt;  state: Exp;
37163 Added extern.
37164 ----------------------------
37165 revision 1.7
37166 date: 1994/05/14 17:15:17;  author: matt;  state: Exp;
37167 Got rid of externs in source (non-header) files
37168 ----------------------------
37169 revision 1.6
37170 date: 1994/02/17 11:32:41;  author: matt;  state: Exp;
37171 Changes in object system
37172 ----------------------------
37173 revision 1.5
37174 date: 1994/01/21 17:31:48;  author: matt;  state: Exp;
37175 Moved code from render_frame() to caller, making code cleaner
37176 ----------------------------
37177 revision 1.4
37178 date: 1994/01/06 09:46:12;  author: john;  state: Exp;
37179 Added removable walls... all code that checked for
37180 children to see if a wall was a doorway, i changed
37181 to yuan's wall_is_doorway function that is in wall.c...
37182 doesn't work yet.
37183 ----------------------------
37184 revision 1.3
37185 date: 1994/01/05 11:25:47;  author: john;  state: Exp;
37186 Changed Player_zoom to Render_zoom
37187 ----------------------------
37188 revision 1.2
37189 date: 1994/01/05 10:53:43;  author: john;  state: Exp;
37190 New object code by John.  
37191 ----------------------------
37192 revision 1.1
37193 date: 1993/11/04 14:01:43;  author: matt;  state: Exp;
37194 Initial revision
37195 =============================================================================
37196 RCS file: f:/miner/source/2d/rle.h,v
37197 Working file: 2d/rle.h
37198 head: 1.5
37199 branch:
37200 description: Protypes for rle functions.
37201 ----------------------------
37202 revision 1.5
37203 date: 1995/01/14 11:32:20;  author: john;  state: Exp;
37204 Added rle_cache_flush function.
37205 ----------------------------
37206 revision 1.4
37207 date: 1994/11/10 13:16:01;  author: matt;  state: Exp;
37208 Added includes
37209 ----------------------------
37210 revision 1.3
37211 date: 1994/11/09 19:53:51;  author: john;  state: Exp;
37212 Added texture rle caching.
37213 ----------------------------
37214 revision 1.2
37215 date: 1994/11/09 16:35:18;  author: john;  state: Exp;
37216 First version with working RLE bitmaps.
37217 ----------------------------
37218 revision 1.1
37219 date: 1994/11/09 12:40:17;  author: john;  state: Exp;
37220 Initial revision
37221 =============================================================================
37222 RCS file: f:/miner/source/main/robot.h,v
37223 Working file: main/robot.h
37224 head: 2.1
37225 branch:
37226 description: Header for robot.c
37227 ----------------------------
37228 revision 2.1
37229 date: 1995/03/07 16:52:00;  author: john;  state: Exp;
37230 Fixed robots not moving without edtiro bug.
37231 ----------------------------
37232 revision 2.0
37233 date: 1995/02/27 11:30:59;  author: john;  state: Exp;
37234 New version 2.0, which has no anonymous unions, builds with
37235 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37236 ----------------------------
37237 revision 1.25
37238 date: 1994/11/30 14:02:44;  author: mike;  state: Exp;
37239 fields for see/attack/claw sounds.
37240 ----------------------------
37241 revision 1.24
37242 date: 1994/10/27 15:55:41;  author: adam;  state: Exp;
37243 *** empty log message ***
37244 ----------------------------
37245 revision 1.23
37246 date: 1994/10/20 15:17:03;  author: mike;  state: Exp;
37247 Add boss flag.
37248 ----------------------------
37249 revision 1.22
37250 date: 1994/10/20 09:51:00;  author: adam;  state: Exp;
37251 *** empty log message ***
37252 ----------------------------
37253 revision 1.21
37254 date: 1994/10/18 10:52:54;  author: mike;  state: Exp;
37255 Support robots lunging as an attack_type.
37256 ----------------------------
37257 revision 1.20
37258 date: 1994/10/17 21:19:02;  author: mike;  state: Exp;
37259 robot cloaking.
37260 ----------------------------
37261 revision 1.19
37262 date: 1994/09/27 00:03:39;  author: mike;  state: Exp;
37263 Add score_value to robot_info struct.
37264 ----------------------------
37265 revision 1.18
37266 date: 1994/09/22 19:01:12;  author: mike;  state: Exp;
37267 Move NDL from here to game.h
37268 ----------------------------
37269 revision 1.17
37270 date: 1994/09/22 15:46:55;  author: mike;  state: Exp;
37271 Add default contained objects for robots.
37272 ----------------------------
37273 revision 1.16
37274 date: 1994/09/22 10:46:57;  author: mike;  state: Exp;
37275 Add difficulty levels.
37276 ----------------------------
37277 revision 1.15
37278 date: 1994/09/15 16:34:16;  author: mike;  state: Exp;
37279 Change rapidfire_count to a byte, add evade_speed, dum1, dum2.
37280 ----------------------------
37281 revision 1.14
37282 date: 1994/09/09 14:21:58;  author: matt;  state: Exp;
37283 Increased maximum number of games
37284 ----------------------------
37285 revision 1.13
37286 date: 1994/08/25 18:12:13;  author: matt;  state: Exp;
37287 Made player's weapons and flares fire from the positions on the 3d model.
37288 Also added support for quad lasers.
37289 ----------------------------
37290 revision 1.12
37291 date: 1994/08/23 16:37:24;  author: mike;  state: Exp;
37292 Add rapidfire_count to robot_info.
37293 ----------------------------
37294 revision 1.11
37295 date: 1994/07/27 19:45:01;  author: mike;  state: Exp;
37296 Objects containing objects.
37297 ----------------------------
37298 revision 1.10
37299 date: 1994/07/12 12:40:01;  author: matt;  state: Exp;
37300 Revamped physics system
37301 ----------------------------
37302 revision 1.9
37303 date: 1994/06/21 12:17:12;  author: mike;  state: Exp;
37304 Add circle_distance to robot_info.
37305 ----------------------------
37306 revision 1.8
37307 date: 1994/06/09 16:22:28;  author: matt;  state: Exp;
37308 Moved header for calc_gun_point() here, where it belongs
37309 ----------------------------
37310 revision 1.7
37311 date: 1994/06/08 18:16:23;  author: john;  state: Exp;
37312 Bunch of new stuff that basically takes constants out of the code
37313 and puts them into bitmaps.tbl.
37314 ----------------------------
37315 revision 1.6
37316 date: 1994/06/03 11:38:09;  author: john;  state: Exp;
37317 Made robots get their strength for RobotInfo->strength, which
37318 is read in from bitmaps.tbl
37319 ----------------------------
37320 revision 1.5
37321 date: 1994/05/30 19:43:31;  author: mike;  state: Exp;
37322 Add voluminous comment for robot_get_anim_state.
37323 ----------------------------
37324 revision 1.4
37325 date: 1994/05/30 00:03:18;  author: matt;  state: Exp;
37326 Got rid of robot render type, and generally cleaned up polygon model
37327 render objects.
37328 ----------------------------
37329 revision 1.3
37330 date: 1994/05/29 18:46:37;  author: matt;  state: Exp;
37331 Added stuff for getting robot animation info for different states
37332 ----------------------------
37333 revision 1.2
37334 date: 1994/05/26 21:09:18;  author: matt;  state: Exp;
37335 Moved robot stuff out of polygon model and into robot_info struct
37336 Made new file, robot.c, to deal with robots
37337 ----------------------------
37338 revision 1.1
37339 date: 1994/05/26 18:02:12;  author: matt;  state: Exp;
37340 Initial revision
37341 =============================================================================
37342 RCS file: f:/miner/source/main/scores.h,v
37343 Working file: main/scores.h
37344 head: 2.0
37345 branch:
37346 description: Scores header.
37347 ----------------------------
37348 revision 2.0
37349 date: 1995/02/27 11:31:53;  author: john;  state: Exp;
37350 New version 2.0, which has no anonymous unions, builds with
37351 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37352 ----------------------------
37353 revision 1.13
37354 date: 1994/12/07 00:36:36;  author: mike;  state: Exp;
37355 scores sequencing stuff.
37356 ----------------------------
37357 revision 1.12
37358 date: 1994/11/28 11:26:09;  author: matt;  state: Exp;
37359 Took out scores for weapons, which are no longer used
37360 ----------------------------
37361 revision 1.11
37362 date: 1994/10/24 18:20:03;  author: john;  state: Exp;
37363 Made the current high score flash.
37364 ----------------------------
37365 revision 1.10
37366 date: 1994/10/18 18:21:36;  author: john;  state: Exp;
37367 NEw score system.
37368 ----------------------------
37369 revision 1.9
37370 date: 1994/10/03 23:01:58;  author: matt;  state: Exp;
37371 New parms for scores_view()
37372 ----------------------------
37373 revision 1.8
37374 date: 1994/09/27 16:10:37;  author: adam;  state: Exp;
37375 changed scores of course
37376 ----------------------------
37377 revision 1.7
37378 date: 1994/08/31 19:25:46;  author: mike;  state: Exp;
37379 Add score values for new powerups.
37380 ----------------------------
37381 revision 1.6
37382 date: 1994/08/26 16:00:18;  author: mike;  state: Exp;
37383 enhanced (?) scoring.
37384 ----------------------------
37385 revision 1.5
37386 date: 1994/08/26 13:01:45;  author: john;  state: Exp;
37387 Put high score system in.
37388 ----------------------------
37389 revision 1.4
37390 date: 1994/05/30 16:33:21;  author: yuan;  state: Exp;
37391 Revamping high scores.
37392 ----------------------------
37393 revision 1.3
37394 date: 1994/05/14 17:15:07;  author: matt;  state: Exp;
37395 Got rid of externs in source (non-header) files
37396 ----------------------------
37397 revision 1.2
37398 date: 1994/05/13 13:13:57;  author: yuan;  state: Exp;
37399 Added player death...
37400 When you die, if just pops up a a message.
37401 When game is over, a message is popped up, and if you have a high score,
37402 you get to enter it.
37403 ----------------------------
37404 revision 1.1
37405 date: 1994/05/13 10:22:16;  author: yuan;  state: Exp;
37406 Initial revision
37407 =============================================================================
37408 RCS file: f:/miner/source/main/screens.h,v
37409 Working file: main/screens.h
37410 head: 2.2
37411 branch:
37412 description: Info on canvases, screens, etc.
37413 ----------------------------
37414 revision 2.2
37415 date: 1995/03/14 12:14:00;  author: john;  state: Exp;
37416 Made VR helmets have 4 resolutions to choose from.
37417 ----------------------------
37418 revision 2.1
37419 date: 1995/03/06 15:24:09;  author: john;  state: Exp;
37420 New screen techniques.
37421 ----------------------------
37422 revision 2.0
37423 date: 1995/02/27 11:31:40;  author: john;  state: Exp;
37424 New version 2.0, which has no anonymous unions, builds with
37425 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37426 ----------------------------
37427 revision 1.15
37428 date: 1994/08/10 19:56:45;  author: john;  state: Exp;
37429 Changed font stuff; Took out old menu; messed up lots of
37430 other stuff like game sequencing messages, etc.
37431 ----------------------------
37432 revision 1.14
37433 date: 1994/07/20 21:04:26;  author: john;  state: Exp;
37434 Add VictorMax VR helment support.
37435 ----------------------------
37436 revision 1.13
37437 date: 1994/06/24 17:01:28;  author: john;  state: Exp;
37438 Add VFX support; Took Game Sequencing, like EndGame and stuff and
37439 took it out of game.c and into gameseq.c
37440 ----------------------------
37441 revision 1.12
37442 date: 1994/04/20 20:30:03;  author: john;  state: Exp;
37443 *** empty log message ***
37444 ----------------------------
37445 revision 1.11
37446 date: 1994/03/30 21:12:05;  author: yuan;  state: Exp;
37447 Use only 119 lines (saves 3 scanlines)
37448 ----------------------------
37449 revision 1.10
37450 date: 1994/03/17 16:49:37;  author: john;  state: Exp;
37451 *** empty log message ***
37452 ----------------------------
37453 revision 1.9
37454 date: 1994/02/11 15:07:44;  author: matt;  state: Exp;
37455 Added extern of Canv_game_offscrn
37456 ----------------------------
37457 revision 1.8
37458 date: 1994/01/31 16:52:43;  author: john;  state: Exp;
37459 redid cockpit bounds.
37460 ----------------------------
37461 revision 1.7
37462 date: 1994/01/26 18:13:53;  author: john;  state: Exp;
37463 Changed 3d constants..
37464 ----------------------------
37465 revision 1.6
37466 date: 1994/01/25 17:11:46;  author: john;  state: Exp;
37467 *** empty log message ***
37468 ----------------------------
37469 revision 1.5
37470 date: 1994/01/25 11:43:25;  author: john;  state: Exp;
37471 Changed game window size.
37472 ----------------------------
37473 revision 1.4
37474 date: 1993/12/13 16:32:39;  author: yuan;  state: Exp;
37475 Fixed menu system memory errors, and other bugs.
37476 ----------------------------
37477 revision 1.3
37478 date: 1993/12/10 16:07:23;  author: yuan;  state: Exp;
37479 Working on menu system.  Updated the title screen.
37480 ----------------------------
37481 revision 1.2
37482 date: 1993/12/09 21:27:46;  author: matt;  state: Exp;
37483 Added 3d window sizing constants
37484 ----------------------------
37485 revision 1.1
37486 date: 1993/12/06 09:50:33;  author: matt;  state: Exp;
37487 Initial revision
37488 =============================================================================
37489 RCS file: f:/miner/source/main/segment.h,v
37490 Working file: main/segment.h
37491 head: 2.1
37492 branch:
37493 description: Include file for functions which need to access segment data structure.
37494 ----------------------------
37495 revision 2.1
37496 date: 1995/03/20 18:15:22;  author: john;  state: Exp;
37497 Added code to not store the normals in the segment structure.
37498 ----------------------------
37499 revision 2.0
37500 date: 1995/02/27 11:26:49;  author: john;  state: Exp;
37501 New version 2.0, which has no anonymous unions, builds with
37502 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37503 ----------------------------
37504 revision 1.89
37505 date: 1995/01/24 15:07:55;  author: yuan;  state: Exp;
37506 *** empty log message ***
37507 ----------------------------
37508 revision 1.88
37509 date: 1994/12/12 01:04:06;  author: yuan;  state: Exp;
37510 Boosted MAX_GAME_VERTS.
37511 ----------------------------
37512 revision 1.87
37513 date: 1994/12/11 16:18:14;  author: mike;  state: Exp;
37514 add constants so we can detect too-large mines for game while in editor.
37515 ----------------------------
37516 revision 1.86
37517 date: 1994/12/08 15:07:29;  author: yuan;  state: Exp;
37518 *** empty log message ***
37519 ----------------------------
37520 revision 1.85
37521 date: 1994/12/01 21:06:39;  author: matt;  state: Exp;
37522 Moved plane tolerance constant to gameseg.c, the only file that used it.
37523 ----------------------------
37524 revision 1.84
37525 date: 1994/11/27 14:01:41;  author: matt;  state: Exp;
37526 Fixed segment structure so LVLs work
37527 ----------------------------
37528 revision 1.83
37529 date: 1994/11/26 22:50:20;  author: matt;  state: Exp;
37530 Removed editor-only fields from segment structure when editor is compiled
37531 out, and padded segment structure to even multiple of 4 bytes.
37532 ----------------------------
37533 revision 1.82
37534 date: 1994/11/21 11:43:36;  author: mike;  state: Exp;
37535 smaller segment and vertex buffers.
37536 ----------------------------
37537 revision 1.81
37538 date: 1994/11/17 11:39:35;  author: matt;  state: Exp;
37539 Ripped out code to load old mines
37540 ----------------------------
37541 revision 1.80
37542 date: 1994/10/30 14:12:05;  author: mike;  state: Exp;
37543 rip out local segments stuff.
37544 ----------------------------
37545 revision 1.79
37546 date: 1994/10/27 11:33:58;  author: mike;  state: Exp;
37547 lower number of segments by 100, saving 116K.
37548 ----------------------------
37549 revision 1.78
37550 date: 1994/08/25 21:54:50;  author: mike;  state: Exp;
37551 Add macro IS_CHILD to make checking for the presence of a child centralized.
37552 ----------------------------
37553 revision 1.77
37554 date: 1994/08/11 18:58:16;  author: mike;  state: Exp;
37555 Add prototype for Side_to_verts_int.
37556 ----------------------------
37557 revision 1.76
37558 date: 1994/08/01 11:04:13;  author: yuan;  state: Exp;
37559 New materialization centers.
37560 ----------------------------
37561 revision 1.75
37562 date: 1994/07/25 00:04:19;  author: matt;  state: Exp;
37563 Various changes to accomodate new 3d, which no longer takes point numbers
37564 as parms, and now only takes pointers to points.
37565 ----------------------------
37566 revision 1.74
37567 date: 1994/07/21 19:01:30;  author: mike;  state: Exp;
37568 new lsegment structure.
37569 ----------------------------
37570 revision 1.73
37571 date: 1994/06/08 14:30:48;  author: matt;  state: Exp;
37572 Added static_light field to segment structure, and padded side struct
37573 to be longword aligned.
37574 ----------------------------
37575 revision 1.72
37576 date: 1994/05/19 23:25:17;  author: mike;  state: Exp;
37577 Change MINE_VERSION to 15, DEFAULT_LIGHTING to 0
37578 ----------------------------
37579 revision 1.71
37580 date: 1994/05/12 14:45:54;  author: mike;  state: Exp;
37581 New segment data structure (!!), group, special, object, value = short.
37582 ----------------------------
37583 revision 1.70
37584 date: 1994/05/03 11:06:46;  author: mike;  state: Exp;
37585 Remove constants VMAG and UMAG which are editor specific..
37586 ----------------------------
37587 revision 1.69
37588 date: 1994/04/18 10:40:28;  author: yuan;  state: Exp;
37589 Increased segment limit to 1000
37590 (From 500)
37591 =============================================================================
37592 RCS file: f:/miner/source/main/segment2.h,v
37593 Working file: main/segment2.h
37594 head: 1.2
37595 branch:
37596 description: Include file for makeseg program, not necessary for game or editor.
37597 ----------------------------
37598 revision 1.2
37599 date: 1993/09/20 15:17:49;  author: mike;  state: Exp;
37600 Define constants: NUM_FACES, NUM_VERTICES, NUM_UVS, NUM_RGBS, NUM_FACE_VERTS
37601 ----------------------------
37602 revision 1.1
37603 date: 1993/09/15 19:12:32;  author: matt;  state: Exp;
37604 Initial revision
37605 =============================================================================
37606 RCS file: f:/miner/source/main/segpoint.h,v
37607 Working file: main/segpoint.h
37608 head: 2.0
37609 branch:
37610 description: Hopefully temporary file to hold external definition of Segment_points[]
37611 ----------------------------
37612 revision 2.0
37613 date: 1995/02/27 11:26:54;  author: john;  state: Exp;
37614 New version 2.0, which has no anonymous unions, builds with
37615 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37616 ----------------------------
37617 revision 1.2
37618 date: 1994/02/16 17:14:40;  author: matt;  state: Exp;
37619 Added include of 3d.h
37620 ----------------------------
37621 revision 1.1
37622 date: 1993/12/06 09:51:37;  author: matt;  state: Exp;
37623 Initial revision
37624 =============================================================================
37625 RCS file: f:/miner/source/main/editor/seguvs.h,v
37626 Working file: main/editor/seguvs.h
37627 head: 2.0
37628 branch:
37629 description: Header for seguvs.c
37630 ----------------------------
37631 revision 2.0
37632 date: 1995/02/27 11:34:58;  author: john;  state: Exp;
37633 Version 2.0! No anonymous unions, Watcom 10.0, with no need
37634 for bitmaps.tbl.
37635 ----------------------------
37636 revision 1.3
37637 date: 1994/08/03 10:32:28;  author: mike;  state: Exp;
37638 Add stretch_uvs_from_curedge.
37639 ----------------------------
37640 revision 1.2
37641 date: 1994/05/14 18:00:58;  author: matt;  state: Exp;
37642 Got rid of externs in source (non-header) files
37643 ----------------------------
37644 revision 1.1
37645 date: 1994/05/14 17:27:26;  author: matt;  state: Exp;
37646 Initial revision
37647 =============================================================================
37648 RCS file: f:/miner/source/main/serial.h,v
37649 Working file: main/serial.h
37650 head: 2.0
37651 branch:
37652 description: .
37653 ----------------------------
37654 revision 2.0
37655 date: 1995/02/27 11:32:33;  author: john;  state: Exp;
37656 New version 2.0, which has no anonymous unions, builds with
37657 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37658 ----------------------------
37659 revision 1.2
37660 date: 1994/07/21 21:31:33;  author: john;  state: Exp;
37661 First cheapo version of VictorMaxx tracking.
37662 ----------------------------
37663 revision 1.1
37664 date: 1994/07/21 18:40:47;  author: john;  state: Exp;
37665 Initial revision
37666 =============================================================================
37667 RCS file: f:/miner/source/main/ship.h,v
37668 Working file: main/ship.h
37669 head: 1.2
37670 branch:
37671 description: Functions that affect the ship (Player_stats)
37672 ----------------------------
37673 revision 1.2
37674 date: 1994/03/01 18:12:56;  author: yuan;  state: Exp;
37675 Walls, switches, and triggers...
37676 ----------------------------
37677 revision 1.1
37678 date: 1994/02/25 15:52:13;  author: yuan;  state: Exp;
37679 Initial revision
37680 =============================================================================
37681 RCS file: f:/miner/source/main/slew.h,v
37682 Working file: main/slew.h
37683 head: 2.0
37684 branch:
37685 description: Prototypes, etc., for slew system
37686 ----------------------------
37687 revision 2.0
37688 date: 1995/02/27 11:33:05;  author: john;  state: Exp;
37689 New version 2.0, which has no anonymous unions, builds with
37690 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37691 ----------------------------
37692 revision 1.5
37693 date: 1994/12/15 16:43:58;  author: matt;  state: Exp;
37694 Made slew functions compile out for release versions
37695 ----------------------------
37696 revision 1.4
37697 date: 1994/02/17 11:32:41;  author: matt;  state: Exp;
37698 Changes in object system
37699 ----------------------------
37700 revision 1.3
37701 date: 1994/01/05 10:53:42;  author: john;  state: Exp;
37702 New object code by John.  
37703 ----------------------------
37704 revision 1.2
37705 date: 1993/12/05 22:48:57;  author: matt;  state: Exp;
37706 Reworked include files in an attempt to cut down on build times
37707 ----------------------------
37708 revision 1.1
37709 date: 1993/12/05 20:20:16;  author: matt;  state: Exp;
37710 Initial revision
37711 =============================================================================
37712 RCS file: f:/miner/source/main/songs.h,v
37713 Working file: main/songs.h
37714 head: 2.0
37715 branch:
37716 description: .
37717 ----------------------------
37718 revision 2.0
37719 date: 1995/02/27 11:30:52;  author: john;  state: Exp;
37720 New version 2.0, which has no anonymous unions, builds with
37721 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37722 ----------------------------
37723 revision 1.6
37724 date: 1995/02/11 22:21:44;  author: adam;  state: Exp;
37725 *** empty log message ***
37726 ----------------------------
37727 revision 1.5
37728 date: 1995/02/11 19:10:49;  author: adam;  state: Exp;
37729 *** empty log message ***
37730 ----------------------------
37731 revision 1.4
37732 date: 1995/02/11 18:34:40;  author: adam;  state: Exp;
37733 *** empty log message ***
37734 ----------------------------
37735 revision 1.3
37736 date: 1995/02/11 18:04:51;  author: adam;  state: Exp;
37737 upped songs
37738 ----------------------------
37739 revision 1.2
37740 date: 1995/02/11 12:42:12;  author: john;  state: Exp;
37741 Added new song method, with FM bank switching..
37742 ----------------------------
37743 revision 1.1
37744 date: 1995/02/11 10:20:18;  author: john;  state: Exp;
37745 Initial revision
37746 =============================================================================
37747 RCS file: f:/miner/source/main/sounds.h,v
37748 Working file: main/sounds.h
37749 head: 2.0
37750 branch:
37751 description: Numbering system for the sounds.
37752 ----------------------------
37753 revision 2.0
37754 date: 1995/02/27 11:27:32;  author: john;  state: Exp;
37755 New version 2.0, which has no anonymous unions, builds with
37756 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37757 ----------------------------
37758 revision 1.41
37759 date: 1995/02/03 17:08:28;  author: john;  state: Exp;
37760 Changed sound stuff to allow low memory usage.
37761 Also, changed so that Sounds isn't an array of digi_sounds, it
37762 is a ubyte pointing into GameSounds, this way the digi.c code that
37763 locks sounds won't accidentally unlock a sound that is already playing, but
37764 since it's Sounds[soundno] is different, it would erroneously be unlocked.
37765 ----------------------------
37766 revision 1.40
37767 date: 1995/01/30 21:45:17;  author: adam;  state: Exp;
37768 added weapon change sounds
37769 ----------------------------
37770 revision 1.39
37771 date: 1995/01/30 21:11:57;  author: mike;  state: Exp;
37772 Use new weapon selection sounds, different for primary and secondary.
37773 ----------------------------
37774 revision 1.38
37775 date: 1995/01/26 17:02:58;  author: mike;  state: Exp;
37776 make fusion cannon have more chrome, make fusion, mega rock you!
37777 ----------------------------
37778 revision 1.37
37779 date: 1995/01/18 19:46:15;  author: matt;  state: Exp;
37780 Added sound for invulnerability wearing off, and voice message for cheating
37781 ----------------------------
37782 revision 1.36
37783 date: 1995/01/18 19:05:04;  author: john;  state: Exp;
37784 Increased MAX_SOUNDS.
37785 ----------------------------
37786 revision 1.35
37787 date: 1994/12/14 16:57:08;  author: adam;  state: Exp;
37788 *** empty log message ***
37789 ----------------------------
37790 revision 1.34
37791 date: 1994/12/08 21:31:40;  author: adam;  state: Exp;
37792 *** empty log message ***
37793 ----------------------------
37794 revision 1.33
37795 date: 1994/12/08 12:33:01;  author: mike;  state: Exp;
37796 make boss dying more interesting.
37797 ----------------------------
37798 revision 1.32
37799 date: 1994/12/04 21:39:40;  author: matt;  state: Exp;
37800 Added sound constants for endlevel explosions
37801 ----------------------------
37802 revision 1.31
37803 date: 1994/11/30 14:02:58;  author: mike;  state: Exp;
37804 see/claw/attack sounds.
37805 ----------------------------
37806 revision 1.30
37807 date: 1994/11/29 20:43:54;  author: matt;  state: Exp;
37808 Deleted a bunch of unused constants
37809 ----------------------------
37810 revision 1.29
37811 date: 1994/11/29 15:48:11;  author: matt;  state: Exp;
37812 Cleaned up, & added new sounds
37813 ----------------------------
37814 revision 1.28
37815 date: 1994/11/29 14:35:36;  author: adam;  state: Exp;
37816 moved lava noise index
37817 ----------------------------
37818 revision 1.27
37819 date: 1994/11/29 13:23:30;  author: matt;  state: Exp;
37820 Cleaned up sound constants
37821 ----------------------------
37822 revision 1.26
37823 date: 1994/11/29 13:01:04;  author: rob;  state: Exp;
37824 ADded badass explosion define.
37825 ----------------------------
37826 revision 1.25
37827 date: 1994/11/29 11:34:23;  author: rob;  state: Exp;
37828 Added new HUD sounds.
37829 ----------------------------
37830 revision 1.24
37831 date: 1994/11/15 16:52:01;  author: mike;  state: Exp;
37832 hiss sound placeholder.
37833 ----------------------------
37834 revision 1.23
37835 date: 1994/10/25 16:21:45;  author: adam;  state: Exp;
37836 changed homing sound
37837 ----------------------------
37838 revision 1.22
37839 date: 1994/10/23 00:27:34;  author: matt;  state: Exp;
37840 Made exploding wall do one long sound, instead of lots of small ones
37841 ----------------------------
37842 revision 1.21
37843 date: 1994/10/22 14:12:35;  author: mike;  state: Exp;
37844 Add sound for missile tracking player.
37845 ----------------------------
37846 revision 1.20
37847 date: 1994/10/11 12:25:21;  author: matt;  state: Exp;
37848 Added "hot rocks" that create badass explosion when hit by weapons
37849 ----------------------------
37850 revision 1.19
37851 date: 1994/10/10 20:57:50;  author: matt;  state: Exp;
37852 Added sound for exploding wall (hostage door)
37853 ----------------------------
37854 revision 1.18
37855 date: 1994/10/04 15:33:31;  author: john;  state: Exp;
37856 Took out the old PLAY_SOUND??? code and replaced it
37857 with direct calls into digi_link_??? so that all sounds
37858 can be made 3d.
37859 ----------------------------
37860 revision 1.17
37861 date: 1994/09/29 21:13:41;  author: john;  state: Exp;
37862 Added Master volumes for digi and midi. Also took out panning,
37863 because it doesn't work with MasterVolume stuff. 
37864 ----------------------------
37865 revision 1.16
37866 date: 1994/09/29 00:42:29;  author: matt;  state: Exp;
37867 Made hitting a locked door play a sound
37868 ----------------------------
37869 revision 1.15
37870 date: 1994/09/20 19:14:34;  author: john;  state: Exp;
37871 Massaged the sound system; used a better formula for determining
37872 which l/r balance, also, put in Mike's stuff that searches for a connection
37873 between the 2 sounds' segments, stopping for closed doors, etc.
37874 ----------------------------
37875 revision 1.14
37876 date: 1994/07/06 15:23:59;  author: john;  state: Exp;
37877 Revamped hostage sound.
37878 ----------------------------
37879 revision 1.13
37880 date: 1994/06/21 19:13:27;  author: john;  state: Exp;
37881 *** empty log message ***
37882 ----------------------------
37883 revision 1.12
37884 date: 1994/06/21 12:09:54;  author: adam;  state: Exp;
37885 *** empty log message ***
37886 ----------------------------
37887 revision 1.11
37888 date: 1994/06/21 12:03:15;  author: john;  state: Exp;
37889 Added more sounds.
37890 ----------------------------
37891 revision 1.10
37892 date: 1994/06/20 22:01:54;  author: matt;  state: Exp;
37893 Added prototype for Play3D()
37894 ----------------------------
37895 revision 1.9
37896 date: 1994/06/20 21:06:06;  author: yuan;  state: Exp;
37897 Fixed up menus.
37898 ----------------------------
37899 revision 1.8
37900 date: 1994/06/17 12:21:54;  author: mike;  state: Exp;
37901 Hook for robot hits player.
37902 ----------------------------
37903 revision 1.7
37904 date: 1994/06/15 19:01:35;  author: john;  state: Exp;
37905 Added the capability to make 3d sounds play just once for the
37906 laser hit wall effects.
37907 ----------------------------
37908 revision 1.6
37909 date: 1994/06/08 11:43:03;  author: john;  state: Exp;
37910 Enable 3D sound.
37911 ----------------------------
37912 revision 1.5
37913 date: 1994/06/07 18:21:20;  author: john;  state: Exp;
37914 Start changing sound to the new 3D system.
37915 ----------------------------
37916 revision 1.4
37917 date: 1994/05/16 16:17:41;  author: john;  state: Exp;
37918 Bunch of stuff on my Inferno Task list May16-23
37919 ----------------------------
37920 revision 1.3
37921 date: 1994/05/09 21:11:38;  author: john;  state: Exp;
37922 Sound changes; pass index instead of pointer to digi routines.
37923 Made laser sound cut off the last laser sound.
37924 ----------------------------
37925 revision 1.2
37926 date: 1994/04/27 11:47:46;  author: john;  state: Exp;
37927 First version.
37928 ----------------------------
37929 revision 1.1
37930 date: 1994/04/26 10:44:36;  author: john;  state: Exp;
37931 Initial revision
37932 =============================================================================
37933 RCS file: f:/miner/source/main/ipx.h,v
37934 Working file: main/ipx.h
37935 head: 1.3
37936 branch:
37937 description: Prototype for IPX communications.
37938 ----------------------------
37939 revision 1.3
37940 date: 1994/07/25 12:33:22;  author: john;  state: Exp;
37941 Network "pinging" in.
37942 ----------------------------
37943 revision 1.2
37944 date: 1994/07/20 15:58:29;  author: john;  state: Exp;
37945 First installment of ipx stuff.
37946 ----------------------------
37947 revision 1.1
37948 date: 1994/07/19 15:43:05;  author: john;  state: Exp;
37949 Initial revision
37950 =============================================================================
37951 RCS file: f:/miner/source/main/state.h,v
37952 Working file: main/state.h
37953 head: 2.1
37954 branch:
37955 description: Prototypes for state saving functions.
37956 ----------------------------
37957 revision 2.1
37958 date: 1995/03/27 21:40:35;  author: john;  state: Exp;
37959 Added code to verify that the proper multi save file
37960 is used when restoring a network game.
37961 ----------------------------
37962 revision 2.0
37963 date: 1995/02/27 11:28:44;  author: john;  state: Exp;
37964 New version 2.0, which has no anonymous unions, builds with
37965 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
37966 ----------------------------
37967 revision 1.6
37968 date: 1995/02/07 10:54:05;  author: john;  state: Exp;
37969 *** empty log message ***
37970 ----------------------------
37971 revision 1.5
37972 date: 1995/02/03 10:58:12;  author: john;  state: Exp;
37973 Added code to save shareware style saved games into new format...
37974 Also, made new player file format not have the saved game array in it.
37975 ----------------------------
37976 revision 1.4
37977 date: 1995/01/19 17:00:51;  author: john;  state: Exp;
37978 Made save game work between levels.
37979 ----------------------------
37980 revision 1.3
37981 date: 1995/01/05 11:51:44;  author: john;  state: Exp;
37982 Added better Abort game menu.
37983 Made save state return success or nopt.
37984 ----------------------------
37985 revision 1.2
37986 date: 1994/12/29 15:26:39;  author: john;  state: Exp;
37987 Put in hooks for saving/restoring game state.
37988 ----------------------------
37989 revision 1.1
37990 date: 1994/12/29 15:15:47;  author: john;  state: Exp;
37991 Initial revision
37992 =============================================================================
37993 RCS file: f:/miner/source/main/switch.h,v
37994 Working file: main/switch.h
37995 head: 2.0
37996 branch:
37997 description: Triggers and Switches.
37998 ----------------------------
37999 revision 2.0
38000 date: 1995/02/27 11:26:52;  author: john;  state: Exp;
38001 New version 2.0, which has no anonymous unions, builds with
38002 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38003 ----------------------------
38004 revision 1.19
38005 date: 1995/01/12 17:00:36;  author: rob;  state: Exp;
38006 Fixed a problem with switches and secret levels.
38007 ----------------------------
38008 revision 1.18
38009 date: 1994/10/06 21:24:40;  author: matt;  state: Exp;
38010 Added switch for exit to secret level
38011 ----------------------------
38012 revision 1.17
38013 date: 1994/09/29 17:05:52;  author: matt;  state: Exp;
38014 Removed unused constant
38015 ----------------------------
38016 revision 1.16
38017 date: 1994/09/24 17:10:07;  author: yuan;  state: Exp;
38018 Added Matcen triggers.
38019 ----------------------------
38020 revision 1.15
38021 date: 1994/08/15 18:06:39;  author: yuan;  state: Exp;
38022 Added external trigger.
38023 ----------------------------
38024 revision 1.14
38025 date: 1994/06/16 16:20:52;  author: john;  state: Exp;
38026 Made player start out in physics mode; Neatend up game loop a bit.
38027 ----------------------------
38028 revision 1.13
38029 date: 1994/05/30 20:22:08;  author: yuan;  state: Exp;
38030 New triggers.
38031 ----------------------------
38032 revision 1.12
38033 date: 1994/05/27 10:32:44;  author: yuan;  state: Exp;
38034 New dialog boxes (Walls and Triggers) added.
38035 ----------------------------
38036 revision 1.11
38037 date: 1994/05/25 18:06:32;  author: yuan;  state: Exp;
38038 Making new dialog box controls for walls and triggers.
38039 ----------------------------
38040 revision 1.10
38041 date: 1994/04/28 18:04:40;  author: yuan;  state: Exp;
38042 Gamesave added.
38043 Trigger problem fixed (seg pointer is replaced by index now.)
38044 ----------------------------
38045 revision 1.9
38046 date: 1994/04/26 11:19:01;  author: yuan;  state: Exp;
38047 Make it so a trigger can only be triggered every 5 seconds.
38048 =============================================================================
38049 RCS file: f:/miner/source/main/terrain.h,v
38050 Working file: main/terrain.h
38051 head: 2.0
38052 branch:
38053 description: Header for terrain.c
38054 ----------------------------
38055 revision 2.0
38056 date: 1995/02/27 11:32:53;  author: john;  state: Exp;
38057 New version 2.0, which has no anonymous unions, builds with
38058 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38059 ----------------------------
38060 revision 1.3
38061 date: 1994/10/27 01:03:51;  author: matt;  state: Exp;
38062 Made terrain renderer use aribtary point in height array as origin
38063 ----------------------------
38064 revision 1.2
38065 date: 1994/08/19 20:09:45;  author: matt;  state: Exp;
38066 Added end-of-level cut scene with external scene
38067 ----------------------------
38068 revision 1.1
38069 date: 1994/08/17 20:33:36;  author: matt;  state: Exp;
38070 Initial revision
38071 =============================================================================
38072 RCS file: f:/miner/source/texmap/texmap.h,v
38073 Working file: texmap/texmap.h
38074 head: 1.17
38075 branch:
38076 description: Include file for entities using texture mapper library.
38077 ----------------------------
38078 revision 1.17
38079 date: 1994/11/10 11:09:16;  author: mike;  state: Exp;
38080 detail level stuff.
38081 ----------------------------
38082 revision 1.16
38083 date: 1994/11/09 22:55:32;  author: matt;  state: Exp;
38084 Added variable Current_seg_depth for detail level optimization
38085 ----------------------------
38086 revision 1.15
38087 date: 1994/06/09 16:10:04;  author: mike;  state: Exp;
38088 Add prototype for SC2000
38089 ----------------------------
38090 revision 1.14
38091 date: 1994/05/25 18:46:16;  author: matt;  state: Exp;
38092 Added gr_upoly_tmap_ylr(), which generates ylr's for a polygon
38093 ----------------------------
38094 revision 1.13
38095 date: 1994/05/25 09:47:12;  author: mike;  state: Exp;
38096 Added interface support for linear texture mapper (Mike change, Matt commnet)
38097 ----------------------------
38098 revision 1.12
38099 date: 1994/05/24 17:30:43;  author: mike;  state: Exp;
38100 Prototype a bunch of linear, vertical scanning functions.
38101 ----------------------------
38102 revision 1.11
38103 date: 1994/05/19 23:26:14;  author: mike;  state: Exp;
38104 Add constants NUM_LIGHTING_VALUES, MAX_LIGHTING_VALUE, MIN_LIGHTING_VALUE,
38105 all part of new lighting_values_in_0_to_1 system.
38106 ----------------------------
38107 revision 1.10
38108 date: 1994/05/14 17:19:21;  author: matt;  state: Exp;
38109 Added externs
38110 ----------------------------
38111 revision 1.9
38112 date: 1994/04/13 23:55:44;  author: matt;  state: Exp;
38113 Increased max_tmap_verts from 16 to 25
38114 ----------------------------
38115 revision 1.8
38116 date: 1994/03/31 08:35:43;  author: mike;  state: Exp;
38117 Prototype for gr_upoly_tmap.
38118 ----------------------------
38119 revision 1.7
38120 date: 1994/02/08 15:17:54;  author: mike;  state: Exp;
38121 define label for MAX_TMAP_VERTS
38122 ----------------------------
38123 revision 1.6
38124 date: 1994/01/31 15:41:51;  author: mike;  state: Exp;
38125 Add texture_map_lin_lin_sky_v
38126 ----------------------------
38127 revision 1.5
38128 date: 1994/01/18 10:49:40;  author: mike;  state: Exp;
38129 prototype for texture_map_lin_lin_sky
38130 ----------------------------
38131 revision 1.4
38132 date: 1993/11/30 17:09:46;  author: mike;  state: Exp;
38133 prototype for compute_lighting_value.
38134 ----------------------------
38135 revision 1.3
38136 date: 1993/11/22 10:50:38;  author: matt;  state: Exp;
38137 Add ifndef around body of file
38138 ----------------------------
38139 revision 1.2
38140 date: 1993/10/06 12:41:25;  author: mike;  state: Exp;
38141 Change prototype for draw_tmap.
38142 ----------------------------
38143 revision 1.1
38144 date: 1993/09/08 17:29:11;  author: mike;  state: Exp;
38145 Initial revision
38146 =============================================================================
38147 RCS file: f:/miner/source/main/texmerge.h,v
38148 Working file: main/texmerge.h
38149 head: 2.0
38150 branch:
38151 description: Definitions for texture merging caching stuff.
38152 ----------------------------
38153 revision 2.0
38154 date: 1995/02/27 11:28:05;  author: john;  state: Exp;
38155 New version 2.0, which has no anonymous unions, builds with
38156 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38157 ----------------------------
38158 revision 1.4
38159 date: 1995/01/14 19:16:26;  author: john;  state: Exp;
38160 First version of new bitmap paging code.
38161 ----------------------------
38162 revision 1.3
38163 date: 1994/01/21 15:23:26;  author: john;  state: Exp;
38164 made texmerge_close return void.
38165 ----------------------------
38166 revision 1.2
38167 date: 1994/01/21 15:16:01;  author: john;  state: Exp;
38168 Created new module texmerge, that merges textures together and 
38169 caches the results.
38170 ----------------------------
38171 revision 1.1
38172 date: 1994/01/21 15:03:36;  author: john;  state: Exp;
38173 Initial revision
38174 =============================================================================
38175 RCS file: f:/miner/source/main/editor/texpage.h,v
38176 Working file: main/editor/texpage.h
38177 head: 2.0
38178 branch:
38179 description: Definitions for texpage.c
38180 ----------------------------
38181 revision 2.0
38182 date: 1995/02/27 11:34:31;  author: john;  state: Exp;
38183 Version 2.0! No anonymous unions, Watcom 10.0, with no need
38184 for bitmaps.tbl.
38185 ----------------------------
38186 revision 1.3
38187 date: 1994/05/14 17:17:53;  author: matt;  state: Exp;
38188 Got rid of externs in source (non-header) files
38189 ----------------------------
38190 revision 1.2
38191 date: 1993/12/16 15:57:54;  author: john;  state: Exp;
38192 moved texture selection stuff to texpage.c
38193 ----------------------------
38194 revision 1.1
38195 date: 1993/12/16 15:22:34;  author: john;  state: Exp;
38196 Initial revision
38197 =============================================================================
38198 RCS file: f:/miner/source/main/text.h,v
38199 Working file: main/text.h
38200 head: 2.2
38201 branch:
38202 description: Header for text.c, including symbolics for text messages
38203 ----------------------------
38204 revision 2.2
38205 date: 1995/03/30 16:36:22;  author: mike;  state: Exp;
38206 text localization.
38207 ----------------------------
38208 revision 2.1
38209 date: 1995/03/08 15:33:24;  author: allender;  state: Exp;
38210 *** empty log message ***
38211 ----------------------------
38212 revision 2.0
38213 date: 1995/02/27 11:30:21;  author: john;  state: Exp;
38214 New version 2.0, which has no anonymous unions, builds with
38215 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38216 ----------------------------
38217 revision 1.63
38218 date: 1995/02/11 14:59:42;  author: rob;  state: Exp;
38219 Added string for controlcen invul.
38220 ----------------------------
38221 revision 1.62
38222 date: 1995/02/10 15:19:38;  author: allender;  state: Exp;
38223 added text for bad write on demo write
38224 ----------------------------
38225 revision 1.61
38226 date: 1995/02/08 10:59:11;  author: rob;  state: Exp;
38227 Added string used in kill list view.
38228 ----------------------------
38229 revision 1.60
38230 date: 1995/02/07 20:38:40;  author: rob;  state: Exp;
38231 Added new localized strings for new multi options.
38232 ----------------------------
38233 revision 1.59
38234 date: 1995/02/02 15:29:17;  author: matt;  state: Exp;
38235 Changed & localized secret level text
38236 ----------------------------
38237 revision 1.58
38238 date: 1995/02/02 12:24:14;  author: adam;  state: Exp;
38239 added automap string
38240 ----------------------------
38241 revision 1.57
38242 date: 1995/02/01 18:06:50;  author: rob;  state: Exp;
38243 Localize default macros, other stuff frm network.c
38244 ----------------------------
38245 revision 1.56
38246 date: 1995/01/30 15:29:53;  author: rob;  state: Exp;
38247 Localizing.
38248 ----------------------------
38249 revision 1.55
38250 date: 1995/01/30 13:54:25;  author: allender;  state: Exp;
38251 added mission/demo text
38252 ----------------------------
38253 revision 1.54
38254 date: 1995/01/24 22:03:22;  author: mike;  state: Exp;
38255 text localization.
38256 ----------------------------
38257 revision 1.53
38258 date: 1995/01/23 13:05:59;  author: adam;  state: Exp;
38259 added save/load game text
38260 ----------------------------
38261 revision 1.52
38262 date: 1995/01/22 15:58:42;  author: mike;  state: Exp;
38263 localization
38264 ----------------------------
38265 revision 1.51
38266 date: 1994/12/29 12:08:47;  author: rob;  state: Exp;
38267 removed new text strings.
38268 ----------------------------
38269 revision 1.50
38270 date: 1994/12/28 16:47:14;  author: rob;  state: Exp;
38271 Added new com setup strings.
38272 ----------------------------
38273 revision 1.49
38274 date: 1994/12/15 23:24:22;  author: rob;  state: Exp;
38275 Added string for rejoin failure.
38276 ----------------------------
38277 revision 1.48
38278 date: 1994/12/15 10:16:06;  author: adam;  state: Exp;
38279 added lame trademark notice
38280 ----------------------------
38281 revision 1.47
38282 date: 1994/12/14 18:21:23;  author: yuan;  state: Exp;
38283 *** empty log message ***
38284 ----------------------------
38285 revision 1.46
38286 date: 1994/12/14 16:57:01;  author: matt;  state: Exp;
38287 Added text for hat2
38288 ----------------------------
38289 revision 1.45
38290 date: 1994/12/14 08:50:12;  author: allender;  state: Exp;
38291 *** empty log message ***
38292 ----------------------------
38293 revision 1.44
38294 date: 1994/12/13 19:43:29;  author: rob;  state: Exp;
38295 Added string.
38296 ----------------------------
38297 revision 1.43
38298 date: 1994/12/13 12:54:45;  author: mike;  state: Exp;
38299 add strings for hostages on board when you die.
38300 ----------------------------
38301 revision 1.42
38302 date: 1994/12/13 10:04:09;  author: allender;  state: Exp;
38303 *** empty log message ***
38304 ----------------------------
38305 revision 1.41
38306 date: 1994/12/12 22:20:23;  author: rob;  state: Exp;
38307 Added two new localized strings for modem.c
38308 ----------------------------
38309 revision 1.40
38310 date: 1994/12/09 19:46:26;  author: yuan;  state: Exp;
38311 Localized the sucker.
38312 ----------------------------
38313 revision 1.39
38314 date: 1994/12/09 14:35:30;  author: yuan;  state: Exp;
38315 Added localization string for Rob.
38316 ----------------------------
38317 revision 1.38
38318 date: 1994/12/09 14:08:16;  author: mike;  state: Exp;
38319 text message for remaining ships at end bonus.
38320 ----------------------------
38321 revision 1.37
38322 date: 1994/12/09 00:28:26;  author: rob;  state: Exp;
38323 Added "died in mine" string.
38324 ----------------------------
38325 revision 1.36
38326 date: 1994/12/08 14:30:31;  author: yuan;  state: Exp;
38327 Fixed off by one problem.
38328 ----------------------------
38329 revision 1.35
38330 date: 1994/12/08 11:18:56;  author: allender;  state: Exp;
38331 demo text string
38332 ----------------------------
38333 revision 1.33
38334 date: 1994/12/07 19:14:33;  author: matt;  state: Exp;
38335 Cleaned up command-line options and command-line help message
38336 ----------------------------
38337 revision 1.32
38338 date: 1994/12/07 17:20:34;  author: yuan;  state: Exp;
38339 Localization
38340 ----------------------------
38341 revision 1.31
38342 date: 1994/12/07 16:49:15;  author: yuan;  state: Exp;
38343 More localization
38344 ----------------------------
38345 revision 1.30
38346 date: 1994/12/07 14:52:11;  author: yuan;  state: Exp;
38347 Localization 492
38348 ----------------------------
38349 revision 1.29
38350 date: 1994/12/07 11:28:12;  author: matt;  state: Exp;
38351 Did a little localization support
38352 ----------------------------
38353 revision 1.28
38354 date: 1994/12/06 18:29:31;  author: mike;  state: Exp;
38355 Add text for cheat: Start at any level.
38356 ----------------------------
38357 revision 1.27
38358 date: 1994/12/06 16:30:39;  author: yuan;  state: Exp;
38359 Localization
38360 ----------------------------
38361 revision 1.26
38362 date: 1994/12/06 15:14:55;  author: yuan;  state: Exp;
38363 Fixed number of textstrings.
38364 ----------------------------
38365 revision 1.25
38366 date: 1994/12/06 15:13:52;  author: yuan;  state: Exp;
38367 Localization
38368 ----------------------------
38369 revision 1.24
38370 date: 1994/12/06 13:46:24;  author: adam;  state: Exp;
38371 *** empty log message ***
38372 ----------------------------
38373 revision 1.23
38374 date: 1994/12/05 23:17:28;  author: yuan;  state: Exp;
38375 Localization bugs fixed.
38376 ----------------------------
38377 revision 1.22
38378 date: 1994/12/05 23:05:41;  author: yuan;  state: Exp;
38379 Localization 425
38380 ----------------------------
38381 revision 1.21
38382 date: 1994/12/05 22:42:27;  author: rob;  state: Exp;
38383 Added new connect status strings
38384 ----------------------------
38385 revision 1.20
38386 date: 1994/12/05 16:47:30;  author: rob;  state: Exp;
38387 Added a new string.
38388 ----------------------------
38389 revision 1.19
38390 date: 1994/12/03 22:35:17;  author: yuan;  state: Exp;
38391 Localization 412
38392 ----------------------------
38393 revision 1.18
38394 date: 1994/12/03 17:53:42;  author: yuan;  state: Exp;
38395 382.
38396 =============================================================================
38397 RCS file: f:/miner/source/main/textures.h,v
38398 Working file: main/textures.h
38399 head: 2.0
38400 branch:
38401 description: Array of textures, and other stuff
38402 ----------------------------
38403 revision 2.0
38404 date: 1995/02/27 11:31:54;  author: john;  state: Exp;
38405 New version 2.0, which has no anonymous unions, builds with
38406 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38407 ----------------------------
38408 revision 1.3
38409 date: 1994/03/15 16:32:56;  author: yuan;  state: Exp;
38410 Cleaned up bm-loading code.
38411 (Fixed structures too)
38412 ----------------------------
38413 revision 1.2
38414 date: 1993/12/05 22:49:53;  author: matt;  state: Exp;
38415 Reworked include files in an attempt to cut down on build times
38416 ----------------------------
38417 revision 1.1
38418 date: 1993/12/05 20:16:26;  author: matt;  state: Exp;
38419 Initial revision
38420 =============================================================================
38421 RCS file: f:/miner/source/bios/timer.h,v
38422 Working file: bios/timer.h
38423 head: 1.8
38424 branch:
38425 description: Header for timer functions
38426 ----------------------------
38427 revision 1.8
38428 date: 1994/12/10 12:27:23;  author: john;  state: Exp;
38429 Added timer_get_approx_seconds.
38430 ----------------------------
38431 revision 1.7
38432 date: 1994/12/10 12:10:25;  author: john;  state: Exp;
38433 Added types.h.
38434 ----------------------------
38435 revision 1.6
38436 date: 1994/12/10 12:07:06;  author: john;  state: Exp;
38437 Added tick counter variable.
38438 ----------------------------
38439 revision 1.5
38440 date: 1994/11/15 12:04:15;  author: john;  state: Exp;
38441 Cleaned up timer code a bit... took out unused functions
38442 like timer_get_milliseconds, etc.
38443 ----------------------------
38444 revision 1.4
38445 date: 1994/04/28 23:50:08;  author: john;  state: Exp;
38446 Changed calling for init_timer.  Made the function that the
38447 timer calls be a far function. All of this was done to make
38448 our timer system compatible with the HMI sound stuff.
38449 ----------------------------
38450 revision 1.3
38451 date: 1994/02/17 15:57:12;  author: john;  state: Exp;
38452 Changed key libary to C.
38453 ----------------------------
38454 revision 1.2
38455 date: 1994/01/18 10:58:34;  author: john;  state: Exp;
38456 Added timer_get_fixed_seconds
38457 ----------------------------
38458 revision 1.1
38459 date: 1993/07/10 13:10:41;  author: matt;  state: Exp;
38460 Initial revision
38461 =============================================================================
38462 RCS file: f:/miner/source/main/titles.h,v
38463 Working file: main/titles.h
38464 head: 2.0
38465 branch:
38466 description: .
38467 ----------------------------
38468 revision 2.0
38469 date: 1995/02/27 11:27:40;  author: john;  state: Exp;
38470 New version 2.0, which has no anonymous unions, builds with
38471 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38472 ----------------------------
38473 revision 1.12
38474 date: 1995/02/02 12:23:29;  author: john;  state: Exp;
38475 Made between level saves have picture.
38476 ----------------------------
38477 revision 1.11
38478 date: 1995/01/21 16:27:11;  author: matt;  state: Exp;
38479 Made endlevel briefing work with missions
38480 ----------------------------
38481 revision 1.10
38482 date: 1995/01/20 22:48:02;  author: matt;  state: Exp;
38483 Mission system implemented, though imcompletely
38484 ----------------------------
38485 revision 1.9
38486 date: 1994/12/07 19:14:07;  author: matt;  state: Exp;
38487 Kill briefing screen disable switch for release version
38488 ----------------------------
38489 revision 1.8
38490 date: 1994/11/21 16:40:24;  author: matt;  state: Exp;
38491 Added prototype
38492 ----------------------------
38493 revision 1.7
38494 date: 1994/11/05 14:05:54;  author: john;  state: Exp;
38495 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
38496 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
38497 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
38498 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
38499 ----------------------------
38500 revision 1.6
38501 date: 1994/11/01 17:57:48;  author: mike;  state: Exp;
38502 Briefing screens.
38503 ----------------------------
38504 revision 1.5
38505 date: 1994/10/31 22:28:04;  author: mike;  state: Exp;
38506 briefing screens
38507 ----------------------------
38508 revision 1.4
38509 date: 1994/09/16 16:14:31;  author: john;  state: Exp;
38510 Added acrade sequencing.
38511 ----------------------------
38512 revision 1.3
38513 date: 1994/06/22 00:26:53;  author: matt;  state: Exp;
38514 Added support for Interplay's animating title sequence
38515 ----------------------------
38516 revision 1.2
38517 date: 1994/06/17 12:13:36;  author: john;  state: Exp;
38518 More newdemo stuff; made editor->game transition start in slew mode.
38519 ----------------------------
38520 revision 1.1
38521 date: 1994/06/17 10:50:12;  author: john;  state: Exp;
38522 Initial revision
38523 =============================================================================
38524 RCS file: f:/miner/source/includes/types.h,v
38525 Working file: includes/types.h
38526 head: 1.2
38527 branch:
38528 description: Common types for use in Miner
38529 ----------------------------
38530 revision 1.2
38531 date: 1993/09/14 12:12:30;  author: matt;  state: Exp;
38532 Added #define for NULL
38533 ----------------------------
38534 revision 1.1
38535 date: 1993/08/24 12:50:40;  author: matt;  state: Exp;
38536 Initial revision
38537 =============================================================================
38538 RCS file: f:/miner/source/ui/ui.h,v
38539 Working file: ui/ui.h
38540 head: 1.11
38541 branch:
38542 description: Header file for user interface
38543 ----------------------------
38544 revision 1.11
38545 date: 1994/11/18 23:07:33;  author: john;  state: Exp;
38546 Changed a bunch of shorts to ints.
38547 ----------------------------
38548 revision 1.10
38549 date: 1994/05/14 17:44:36;  author: matt;  state: Exp;
38550 Added extern.
38551 ----------------------------
38552 revision 1.9
38553 date: 1994/05/14 17:20:33;  author: matt;  state: Exp;
38554 Added externs
38555 ----------------------------
38556 revision 1.8
38557 date: 1994/02/01 13:29:56;  author: john;  state: Exp;
38558 *** empty log message ***
38559 ----------------------------
38560 revision 1.7
38561 date: 1994/01/10 16:25:03;  author: john;  state: Exp;
38562 Fixed bug in 800x600 mode with restoring
38563 bogus font.
38564 ----------------------------
38565 revision 1.6
38566 date: 1993/12/10 14:22:30;  author: john;  state: Exp;
38567 Made buttons have up to 2 keys/functions.
38568 ----------------------------
38569 revision 1.5
38570 date: 1993/12/07 12:30:11;  author: john;  state: Exp;
38571 new version.
38572 ----------------------------
38573 revision 1.4
38574 date: 1993/10/26 13:46:15;  author: john;  state: Exp;
38575 *** empty log message ***
38576 ----------------------------
38577 revision 1.3
38578 date: 1993/10/07 11:23:30;  author: john;  state: Exp;
38579 *** empty log message ***
38580 ----------------------------
38581 revision 1.2
38582 date: 1993/10/05 17:31:15;  author: john;  state: Exp;
38583 *** empty log message ***
38584 ----------------------------
38585 revision 1.1
38586 date: 1993/09/20 10:36:36;  author: john;  state: Exp;
38587 Initial revision
38588 =============================================================================
38589 RCS file: f:/miner/source/main/vclip.h,v
38590 Working file: main/vclip.h
38591 head: 2.0
38592 branch:
38593 description: Stuff for video clips.
38594 ----------------------------
38595 revision 2.0
38596 date: 1995/02/27 11:32:42;  author: john;  state: Exp;
38597 New version 2.0, which has no anonymous unions, builds with
38598 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38599 ----------------------------
38600 revision 1.33
38601 date: 1994/11/21 11:17:57;  author: adam;  state: Exp;
38602 *** empty log message ***
38603 ----------------------------
38604 revision 1.32
38605 date: 1994/10/12 13:07:07;  author: mike;  state: Exp;
38606 Add VCLIP_POWERUP_DISAPPEARANCE.
38607 ----------------------------
38608 revision 1.31
38609 date: 1994/10/12 10:23:54;  author: adam;  state: Exp;
38610 *** empty log message ***
38611 ----------------------------
38612 revision 1.30
38613 date: 1994/10/11 12:25:21;  author: matt;  state: Exp;
38614 Added "hot rocks" that create badass explosion when hit by weapons
38615 ----------------------------
38616 revision 1.29
38617 date: 1994/10/06 14:10:07;  author: matt;  state: Exp;
38618 Added constant for player appearence effect
38619 ----------------------------
38620 revision 1.28
38621 date: 1994/09/26 08:40:30;  author: adam;  state: Exp;
38622 *** empty log message ***
38623 ----------------------------
38624 revision 1.27
38625 date: 1994/09/10 17:30:57;  author: mike;  state: Exp;
38626 move a prototype here, had been defined in object.c
38627 ----------------------------
38628 revision 1.26
38629 date: 1994/09/09 20:04:25;  author: mike;  state: Exp;
38630 Add weapon_vclip.
38631 ----------------------------
38632 revision 1.25
38633 date: 1994/08/31 19:27:09;  author: mike;  state: Exp;
38634 Increase max number of Vclips for new pile of weapon powerups.
38635 ----------------------------
38636 revision 1.24
38637 date: 1994/08/14 23:14:43;  author: matt;  state: Exp;
38638 Added animating bitmap hostages, and cleaned up vclips a bit
38639 ----------------------------
38640 revision 1.23
38641 date: 1994/07/23 19:56:39;  author: matt;  state: Exp;
38642 Took out unused constant
38643 ----------------------------
38644 revision 1.22
38645 date: 1994/07/22 10:42:10;  author: adam;  state: Exp;
38646 upped max no. of vclips
38647 ----------------------------
38648 revision 1.21
38649 date: 1994/06/14 21:15:14;  author: matt;  state: Exp;
38650 Made rod objects draw lighted or not depending on a parameter, so the
38651 materialization effect no longer darkens.
38652 ----------------------------
38653 revision 1.20
38654 date: 1994/06/09 19:38:16;  author: john;  state: Exp;
38655 Made each Vclip have its own sound... but only used in the
38656 materialization center.
38657 ----------------------------
38658 revision 1.19
38659 date: 1994/06/09 11:46:26;  author: john;  state: Exp;
38660 Took out unused vclip defines.
38661 ----------------------------
38662 revision 1.18
38663 date: 1994/06/08 18:16:33;  author: john;  state: Exp;
38664 Bunch of new stuff that basically takes constants out of the code
38665 and puts them into bitmaps.tbl.
38666 ----------------------------
38667 revision 1.17
38668 date: 1994/06/08 12:49:01;  author: mike;  state: Exp;
38669 Add light_value to vclip.
38670 ----------------------------
38671 revision 1.16
38672 date: 1994/06/08 11:43:28;  author: mike;  state: Exp;
38673 Allow 20 vclips, I think (anyway, more than it used to be, probably 12).
38674 ----------------------------
38675 revision 1.15
38676 date: 1994/06/03 10:48:22;  author: matt;  state: Exp;
38677 Made vclips (used by explosions) which can be either rods or blobs, as
38678 specified in BITMAPS.TBL.  (This is for the materialization center effect).
38679 ----------------------------
38680 revision 1.14
38681 date: 1994/06/01 17:21:08;  author: john;  state: Exp;
38682 Added muzzle flash
38683 ----------------------------
38684 revision 1.13
38685 date: 1994/06/01 10:34:02;  author: john;  state: Exp;
38686 Added robot morphing effect.
38687 ----------------------------
38688 revision 1.12
38689 date: 1994/05/16 16:17:38;  author: john;  state: Exp;
38690 Bunch of stuff on my Inferno Task list May16-23
38691 ----------------------------
38692 revision 1.11
38693 date: 1994/05/10 18:32:50;  author: john;  state: Exp;
38694 *** empty log message ***
38695 ----------------------------
38696 revision 1.10
38697 date: 1994/04/29 14:35:52;  author: matt;  state: Exp;
38698 Added second kind of fireball
38699 ----------------------------
38700 revision 1.9
38701 date: 1994/04/11 10:36:31;  author: yuan;  state: Exp;
38702 Started adding types for exploding hostages.
38703 ----------------------------
38704 revision 1.8
38705 date: 1994/04/07 16:27:43;  author: yuan;  state: Exp;
38706 Added SUPERPIG the robot with 200 hit points.
38707 Now robots can take multiple hits before blowing up.
38708 ----------------------------
38709 revision 1.7
38710 date: 1994/04/07 13:45:58;  author: yuan;  state: Exp;
38711 Defined Pclips... maybe shouldn't be in this file.
38712 ----------------------------
38713 revision 1.6
38714 date: 1994/03/28 20:58:22;  author: yuan;  state: Exp;
38715 Added blood vclip constant
38716 ----------------------------
38717 revision 1.5
38718 date: 1994/03/15 16:31:56;  author: yuan;  state: Exp;
38719 Cleaned up bm-loading code.
38720 (And structures)
38721 ----------------------------
38722 revision 1.4
38723 date: 1994/03/04 17:09:43;  author: yuan;  state: Exp;
38724 New wall stuff
38725 ----------------------------
38726 revision 1.3
38727 date: 1994/01/11 10:59:01;  author: yuan;  state: Exp;
38728 Added effects
38729 ----------------------------
38730 revision 1.2
38731 date: 1994/01/06 17:13:15;  author: john;  state: Exp;
38732 Added Video clip functionality
38733 ----------------------------
38734 revision 1.1
38735 date: 1994/01/06 15:10:15;  author: john;  state: Exp;
38736 Initial revision
38737 =============================================================================
38738 RCS file: f:/miner/source/vecmat/vecmat.h,v
38739 Working file: vecmat/vecmat.h
38740 head: 1.37
38741 branch:
38742 description: Header file for vector/matrix library
38743 ----------------------------
38744 revision 1.37
38745 date: 1995/02/22 13:23:22;  author: john;  state: Exp;
38746 Added the vms_vector_array structure, to access a vms_vector
38747 with an array.
38748 ----------------------------
38749 revision 1.36
38750 date: 1995/02/22 12:34:33;  author: john;  state: Exp;
38751 Took out anonymous unions.
38752 ----------------------------
38753 revision 1.35
38754 date: 1994/12/13 14:44:20;  author: matt;  state: Exp;
38755 Added vm_vector_2_matrix_norm()
38756 ----------------------------
38757 revision 1.34
38758 date: 1994/09/11 19:22:55;  author: matt;  state: Exp;
38759 Added vm_vec_normalized_dir_quick()
38760 ----------------------------
38761 revision 1.33
38762 date: 1994/08/04 19:45:38;  author: matt;  state: Exp;
38763 Added option to make a bunch of functions (add, sub, dotprod) inline
38764 ----------------------------
38765 revision 1.32
38766 date: 1994/07/19 18:52:36;  author: matt;  state: Exp;
38767 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
38768 ----------------------------
38769 revision 1.31
38770 date: 1994/06/16 18:24:30;  author: matt;  state: Exp;
38771 Added vm_vec_mag_quick()
38772 ----------------------------
38773 revision 1.30
38774 date: 1994/06/10 23:19:00;  author: matt;  state: Exp;
38775 New register usage for vm_vec_ang_2_matrix()
38776 ----------------------------
38777 revision 1.29
38778 date: 1994/06/01 17:32:06;  author: matt;  state: Exp;
38779 Fixed modify list for vm_vec_normalized_dir()
38780 ----------------------------
38781 revision 1.28
38782 date: 1994/05/19 12:07:20;  author: matt;  state: Exp;
38783 Fixed globals and macros and added a constant
38784 ----------------------------
38785 revision 1.27
38786 date: 1994/05/19 09:19:15;  author: matt;  state: Exp;
38787 Made vm_vec_normalized_dir() return mag of vector
38788 ----------------------------
38789 revision 1.26
38790 date: 1994/05/18 22:28:57;  author: matt;  state: Exp;
38791 Added function vm_vec_normalized_dir()
38792 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
38793 Added C global static vars vmd_zero_vector & vmd_identity_matrix
38794 ----------------------------
38795 revision 1.25
38796 date: 1994/05/18 21:45:06;  author: matt;  state: Exp;
38797 Added functions:
38798   vm_extract_angles_vector()
38799   vm_extract_angles_vector_normalized()
38800   vm_vec_copy_normalize()
38801 ----------------------------
38802 revision 1.24
38803 date: 1994/05/13 12:42:16;  author: matt;  state: Exp;
38804 Added new function, vm_vec_dist_quick(), which does an approximation.
38805 ----------------------------
38806 revision 1.23
38807 date: 1994/03/30 13:37:34;  author: matt;  state: Exp;
38808 Added prototype for vm_vec_scale_add(), and fixed typos
38809 ----------------------------
38810 revision 1.22
38811 date: 1994/03/30 13:29:42;  author: matt;  state: Exp;
38812 Header for vm_vec_scale_add2()
38813 ----------------------------
38814 revision 1.21
38815 date: 1994/01/31 19:45:13;  author: matt;  state: Exp;
38816 Added function vm_extract_angles_matrix()
38817 ----------------------------
38818 revision 1.20
38819 date: 1993/12/21 19:46:14;  author: matt;  state: Exp;
38820 Added function vm_dist_to_plane()
38821 ----------------------------
38822 revision 1.19
38823 date: 1993/12/13 17:26:41;  author: matt;  state: Exp;
38824 Added vm_vec_dist()
38825 ----------------------------
38826 revision 1.18
38827 date: 1993/12/02 12:45:11;  author: matt;  state: Exp;
38828 New functions: vm_vec_copy_scale(), vm_vec_scale2()
38829 Aliases: vm_transpose(), vm_vec_dot(), vm_vec_cross(), vm_copy_transpose()
38830 ----------------------------
38831 revision 1.17
38832 date: 1993/10/29 22:38:36;  author: matt;  state: Exp;
38833 Changed matrix order, making direction vectors the rows
38834 ----------------------------
38835 revision 1.16
38836 date: 1993/10/25 11:49:57;  author: matt;  state: Exp;
38837 Made vm_vec_delta_ang() take optional forward vector to return signed delta
38838 ----------------------------
38839 revision 1.15
38840 date: 1993/10/20 01:10:05;  author: matt;  state: Exp;
38841 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
38842 ----------------------------
38843 revision 1.14
38844 date: 1993/10/17 17:02:52;  author: matt;  state: Exp;
38845 vm_vector_2_matrix() now takes optional right vector
38846 ----------------------------
38847 revision 1.13
38848 date: 1993/10/12 19:31:39;  author: matt;  state: Exp;
38849 Added IDENTITY_MATRIX constant
38850 ----------------------------
38851 revision 1.12
38852 date: 1993/10/08 18:10:16;  author: matt;  state: Exp;
38853 Changed vm_vec_make() and vm_angvec_make() to be inline assembly 
38854 functions, to get rid of compiler warnings.  Did not change vm_mat_make(),
38855 which could still get warnings if the return value is unused.
38856 ----------------------------
38857 revision 1.11
38858 date: 1993/09/29 12:10:07;  author: matt;  state: Exp;
38859 Changed modified regs in pragmas to include return register
38860 ----------------------------
38861 revision 1.10
38862 date: 1993/09/28 12:15:41;  author: matt;  state: Exp;
38863 Added func vm_vector_2_matrix()
38864 ----------------------------
38865 revision 1.9
38866 date: 1993/09/24 21:18:38;  author: matt;  state: Exp;
38867 Added vm_vec_avg(), vm_vec_avg4(), and vm_angvec_make().
38868 Documented which functions could have dest==source
38869 ----------------------------
38870 revision 1.8
38871 date: 1993/09/20 14:56:11;  author: matt;  state: Exp;
38872 Added new function, vm_vec_perp()
38873 ----------------------------
38874 revision 1.7
38875 date: 1993/09/20 14:27:42;  author: mike;  state: Exp;
38876 unfix last fix which introduced a bug
38877 ----------------------------
38878 revision 1.6
38879 date: 1993/09/20 10:11:53;  author: mike;  state: Exp;
38880 no changes
38881 ----------------------------
38882 revision 1.5
38883 date: 1993/09/20 09:58:58;  author: mike;  state: Exp;
38884 Re-fix vm_vec_make
38885 ----------------------------
38886 revision 1.4
38887 date: 1993/09/20 09:41:21;  author: mike;  state: Exp;
38888 Correct vm_vec_make and vm_mat_make macros to return the destination
38889 as the value of the macro.
38890 ----------------------------
38891 revision 1.3
38892 date: 1993/09/17 11:23:47;  author: matt;  state: Exp;
38893 Added row access (via xrow,yrow,zrow) to vms_matrix
38894 Added macro vm_mat_make(), like vm_vec_make()
38895 ----------------------------
38896 revision 1.2
38897 date: 1993/09/17 11:10:32;  author: matt;  state: Exp;
38898 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
38899 ----------------------------
38900 revision 1.1
38901 date: 1993/09/16 20:10:01;  author: matt;  state: Exp;
38902 Initial revision
38903 =============================================================================
38904 RCS file: f:/miner/source/main/vfx.h,v
38905 Working file: main/vfx.h
38906 head: 2.1
38907 branch:
38908 description: Prototypes for vfx.c
38909 ----------------------------
38910 revision 2.1
38911 date: 1995/03/10 12:58:04;  author: john;  state: Exp;
38912 Added vfx_set_palette_sub function.
38913 ----------------------------
38914 revision 2.0
38915 date: 1995/02/27 11:31:19;  author: john;  state: Exp;
38916 New version 2.0, which has no anonymous unions, builds with
38917 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38918 ----------------------------
38919 revision 1.5
38920 date: 1994/12/28 10:43:02;  author: john;  state: Exp;
38921 More VFX tweaking.
38922 ----------------------------
38923 revision 1.4
38924 date: 1994/12/28 10:26:49;  author: john;  state: Exp;
38925 Fixed some VFX problems.
38926 ----------------------------
38927 revision 1.3
38928 date: 1994/09/20 19:36:01;  author: matt;  state: Exp;
38929 Added seperate function to set palette
38930 ----------------------------
38931 revision 1.2
38932 date: 1994/06/24 17:03:51;  author: john;  state: Exp;
38933 Added VFX support. Also took all game sequencing stuff like
38934 EndGame out and put it into gameseq.c
38935 ----------------------------
38936 revision 1.1
38937 date: 1994/06/23 09:14:16;  author: john;  state: Exp;
38938 Initial revision
38939 =============================================================================
38940 RCS file: f:/miner/source/main/vfx1.h,v
38941 Working file: main/vfx1.h
38942 head: 2.0
38943 branch:
38944 description: .
38945 ----------------------------
38946 revision 2.0
38947 date: 1995/02/27 11:28:52;  author: john;  state: Exp;
38948 New version 2.0, which has no anonymous unions, builds with
38949 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38950 ----------------------------
38951 revision 1.3
38952 date: 1994/09/15 16:11:26;  author: john;  state: Exp;
38953 Added support for VFX1 head tracking. Fixed bug with memory over-
38954 write when using stereo mode.
38955 ----------------------------
38956 revision 1.2
38957 date: 1994/06/24 17:03:54;  author: john;  state: Exp;
38958 Added VFX support. Also took all game sequencing stuff like
38959 EndGame out and put it into gameseq.c
38960 ----------------------------
38961 revision 1.1
38962 date: 1994/06/23 17:59:56;  author: john;  state: Exp;
38963 Initial revision
38964 =============================================================================
38965 RCS file: f:/miner/source/main/victor.h,v
38966 Working file: main/victor.h
38967 head: 2.0
38968 branch:
38969 description: Prototypes for the VictorMaxx VR helment.
38970 ----------------------------
38971 revision 2.0
38972 date: 1995/02/27 11:27:31;  author: john;  state: Exp;
38973 New version 2.0, which has no anonymous unions, builds with
38974 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
38975 ----------------------------
38976 revision 1.4
38977 date: 1994/11/12 14:46:55;  author: john;  state: Exp;
38978 Added support for victor head tracking.
38979 ----------------------------
38980 revision 1.3
38981 date: 1994/07/21 21:31:12;  author: john;  state: Exp;
38982 First cheapo version of VictorMaxx tracking.
38983 ----------------------------
38984 revision 1.2
38985 date: 1994/07/20 21:04:32;  author: john;  state: Exp;
38986 Add VictorMax VR helment support.
38987 ----------------------------
38988 revision 1.1
38989 date: 1994/07/20 20:49:19;  author: john;  state: Exp;
38990 Initial revision
38991 =============================================================================
38992 RCS file: f:/miner/source/main/wall.h,v
38993 Working file: main/wall.h
38994 head: 2.0
38995 branch:
38996 description: ----------------------------
38997 revision 2.0
38998 date: 1995/02/27 11:31:36;  author: john;  state: Exp;
38999 New version 2.0, which has no anonymous unions, builds with
39000 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39001 ----------------------------
39002 revision 1.47
39003 date: 1994/11/19 15:20:35;  author: mike;  state: Exp;
39004 rip out unused code and data
39005 ----------------------------
39006 revision 1.46
39007 date: 1994/10/25 15:40:12;  author: yuan;  state: Exp;
39008 MAX_WALLS pumped up
39009 ----------------------------
39010 revision 1.45
39011 date: 1994/10/23 19:17:07;  author: matt;  state: Exp;
39012 Fixed bug with "no key" messages
39013 ----------------------------
39014 revision 1.44
39015 date: 1994/10/18 15:38:03;  author: mike;  state: Exp;
39016 Define hidden walls.
39017 ----------------------------
39018 revision 1.43
39019 date: 1994/10/04 13:32:26;  author: adam;  state: Exp;
39020 commented out MAX_DOOR_ANIMS
39021 ----------------------------
39022 revision 1.42
39023 date: 1994/10/04 13:31:21;  author: adam;  state: Exp;
39024 upped MAX_WALL_ANIMS to 30
39025 ----------------------------
39026 revision 1.41
39027 date: 1994/09/29 00:42:30;  author: matt;  state: Exp;
39028 Made hitting a locked door play a sound
39029 ----------------------------
39030 revision 1.40
39031 date: 1994/09/27 15:42:41;  author: mike;  state: Exp;
39032 Prototype Wall_names.
39033 ----------------------------
39034 revision 1.39
39035 date: 1994/09/23 22:15:32;  author: matt;  state: Exp;
39036 Made doors not close on objects, made doors open again if shot while
39037 closing, and cleaned up walls/doors a bit.
39038 ----------------------------
39039 revision 1.38
39040 date: 1994/09/22 15:31:33;  author: matt;  state: Exp;
39041 Mucked with, and hopefully improved, exploding walls
39042 ----------------------------
39043 revision 1.37
39044 date: 1994/09/21 17:17:05;  author: mike;  state: Exp;
39045 Make objects stuck in doors go away when door opens.
39046 ----------------------------
39047 revision 1.36
39048 date: 1994/09/13 21:10:46;  author: matt;  state: Exp;
39049 Added wclips that use tmap1 instead of tmap2, saving lots of merging
39050 ----------------------------
39051 revision 1.35
39052 date: 1994/09/13 20:11:08;  author: yuan;  state: Exp;
39053 *** empty log message ***
39054 ----------------------------
39055 revision 1.34
39056 date: 1994/09/10 13:31:53;  author: matt;  state: Exp;
39057 Made exploding walls a type of blastable walls.
39058 Cleaned up blastable walls, making them tmap2 bitmaps.
39059 ----------------------------
39060 revision 1.33
39061 date: 1994/08/17 12:55:34;  author: matt;  state: Exp;
39062 Added external walls to wall_is_doorway
39063 ----------------------------
39064 revision 1.32
39065 date: 1994/08/15 17:54:35;  author: john;  state: Exp;
39066 *** empty log message ***
39067 ----------------------------
39068 revision 1.31
39069 date: 1994/08/15 17:46:56;  author: yuan;  state: Exp;
39070 Added external walls, fixed blastable walls.
39071 ----------------------------
39072 revision 1.30
39073 date: 1994/08/05 21:17:21;  author: matt;  state: Exp;
39074 Allow two doors to be linked together
39075 ----------------------------
39076 revision 1.29
39077 date: 1994/08/01 10:39:10;  author: matt;  state: Exp;
39078 Parenthesized parms to WID() macro
39079 ----------------------------
39080 revision 1.28
39081 date: 1994/07/20 17:35:03;  author: yuan;  state: Exp;
39082 Some minor bug fixes and new key gauges...
39083 ----------------------------
39084 revision 1.27
39085 date: 1994/07/19 14:32:03;  author: yuan;  state: Exp;
39086 Fixed keys bug... renumbered some constants.
39087 ----------------------------
39088 revision 1.26
39089 date: 1994/07/14 22:38:29;  author: matt;  state: Exp;
39090 Added exploding doors
39091 ----------------------------
39092 revision 1.25
39093 date: 1994/07/11 15:08:43;  author: yuan;  state: Exp;
39094 Wall anim file names stored in structure.
39095  
39096 =============================================================================
39097 RCS file: f:/miner/source/main/weapon.h,v
39098 Working file: main/weapon.h
39099 head: 2.0
39100 branch:
39101 description: Protypes for weapon stuff.
39102 ----------------------------
39103 revision 2.0
39104 date: 1995/02/27 11:31:10;  author: john;  state: Exp;
39105 New version 2.0, which has no anonymous unions, builds with
39106 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39107 ----------------------------
39108 revision 1.44
39109 date: 1995/01/30 17:14:18;  author: mike;  state: Exp;
39110 halve rate of vulcan ammo consumption.
39111 ----------------------------
39112 revision 1.43
39113 date: 1995/01/19 17:45:04;  author: mike;  state: Exp;
39114 damage_force removed, that information coming from strength field.
39115 ----------------------------
39116 revision 1.42
39117 date: 1995/01/05 15:46:11;  author: john;  state: Exp;
39118 Made weapons not rearm when starting a saved game.
39119 ----------------------------
39120 revision 1.41
39121 date: 1995/01/04 12:20:27;  author: john;  state: Exp;
39122 Declearations to work better with game state save.
39123 ----------------------------
39124 revision 1.40
39125 date: 1994/12/13 12:54:16;  author: mike;  state: Exp;
39126 fix proximity, homing flags, backwards!
39127 ----------------------------
39128 revision 1.39
39129 date: 1994/12/11 16:17:57;  author: mike;  state: Exp;
39130 change default weapon life so shots from ctrlcen on level 6 won't evaporate before they hit you.
39131 ----------------------------
39132 revision 1.38
39133 date: 1994/12/09 19:55:26;  author: matt;  state: Exp;
39134 Added weapon name in "not available in shareware" message
39135 ----------------------------
39136 revision 1.37
39137 date: 1994/12/07 12:55:27;  author: mike;  state: Exp;
39138 tweak vulcan amounts.
39139 ----------------------------
39140 revision 1.36
39141 date: 1994/12/03 19:03:56;  author: matt;  state: Exp;
39142 Fixed vulcan ammo HUD message
39143 ----------------------------
39144 revision 1.35
39145 date: 1994/12/02 15:05:02;  author: matt;  state: Exp;
39146 Fixed bogus weapon constants and arrays
39147 ----------------------------
39148 revision 1.34
39149 date: 1994/11/29 14:26:05;  author: john;  state: Exp;
39150 Again.
39151 ----------------------------
39152 revision 1.33
39153 date: 1994/11/29 14:13:47;  author: adam;  state: Exp;
39154 Changed the byte flash sound to short.
39155 ----------------------------
39156 revision 1.32
39157 date: 1994/11/12 16:36:55;  author: mike;  state: Exp;
39158 default ammo stuff.
39159 ----------------------------
39160 revision 1.31
39161 date: 1994/10/21 10:55:24;  author: adam;  state: Exp;
39162 upped MAX_WEAPON_TYPES to 30
39163 ----------------------------
39164 revision 1.30
39165 date: 1994/10/19 11:16:37;  author: mike;  state: Exp;
39166 Limit ammo amounts.
39167 ----------------------------
39168 revision 1.29
39169 date: 1994/10/12 08:05:04;  author: mike;  state: Exp;
39170 Clean up homing/proximity mess.
39171 ----------------------------
39172 revision 1.28
39173 date: 1994/10/08 23:37:53;  author: matt;  state: Exp;
39174 Don't pick up weapons you already have; also fixed auto_select bug
39175 for seconary weapons
39176 ----------------------------
39177 revision 1.27
39178 date: 1994/10/07 23:37:56;  author: matt;  state: Exp;
39179 Made weapons select when pick up better one
39180 ----------------------------
39181 revision 1.26
39182 date: 1994/10/07 16:02:17;  author: matt;  state: Exp;
39183 Fixed problem with weapon auto-select
39184 ----------------------------
39185 revision 1.25
39186 date: 1994/10/05 17:07:44;  author: matt;  state: Exp;
39187 Made player_has_weapon() public and moved constants to header file
39188 ----------------------------
39189 revision 1.24
39190 date: 1994/09/30 21:50:49;  author: mike;  state: Exp;
39191 Add homing_flag and 3 dummy bytes to weapon_info.
39192 ----------------------------
39193 revision 1.23
39194 date: 1994/09/30 13:47:41;  author: mike;  state: Exp;
39195 Make speed and strength be difficulty level based.
39196 ----------------------------
39197 revision 1.22
39198 date: 1994/09/20 16:10:13;  author: mike;  state: Exp;
39199 Prototype Primary_weapon_names and Secondary_weapon_names.
39200 ----------------------------
39201 revision 1.21
39202 date: 1994/09/20 12:17:21;  author: adam;  state: Exp;
39203 upped weapon types
39204 ----------------------------
39205 revision 1.20
39206 date: 1994/09/13 16:40:29;  author: mike;  state: Exp;
39207 Define REARM_TIME -- time it takes until you can fire a newly armed weapon.
39208 ----------------------------
39209 revision 1.19
39210 date: 1994/09/13 14:43:03;  author: matt;  state: Exp;
39211 Added cockpit weapon displays
39212 ----------------------------
39213 revision 1.18
39214 date: 1994/09/11 15:50:34;  author: mike;  state: Exp;
39215 Add matter and bounce to weapon_info.
39216 ----------------------------
39217 revision 1.17
39218 date: 1994/09/10 17:32:17;  author: mike;  state: Exp;
39219 Add thrust to weapon_info.
39220 ----------------------------
39221 revision 1.16
39222 date: 1994/09/09 20:04:54;  author: mike;  state: Exp;
39223 Add vclips for weapons.
39224 ----------------------------
39225 revision 1.15
39226 date: 1994/09/07 15:59:14;  author: mike;  state: Exp;
39227 Add default lifetimes to weapons, destroyable, lifetime, damage_radius, damage_force fields to weapons.
39228 ----------------------------
39229 revision 1.14
39230 date: 1994/09/03 15:18:06;  author: mike;  state: Exp;
39231 Add prototype for auto_select_weapon.
39232 ----------------------------
39233 revision 1.13
39234 date: 1994/09/02 16:38:33;  author: mike;  state: Exp;
39235 Move data from global arrays to Weapon_info.
39236 ----------------------------
39237 revision 1.12
39238 date: 1994/09/02 11:54:59;  author: mike;  state: Exp;
39239 Add a whole slew of constants for the whole slew of new weapons.
39240 ----------------------------
39241 revision 1.11
39242 date: 1994/08/23 16:39:15;  author: mike;  state: Exp;
39243 Add light to weapon struct
39244 =============================================================================
39245 RCS file: f:/miner/source/3d/3d.h,v
39246 Working file: 3d/3d.h
39247 head: 1.34
39248 branch:
39249 description: Header file for 3d library
39250 ----------------------------
39251 revision 1.34
39252 date: 1994/11/11 19:22:14;  author: matt;  state: Exp;
39253 Added new function, g3_calc_point_depth()
39254 ----------------------------
39255 revision 1.33
39256 date: 1994/09/09 14:23:58;  author: matt;  state: Exp;
39257 Added support for glowing textures, to add engine glow to Descent.
39258 ----------------------------
39259 revision 1.32
39260 date: 1994/09/01 10:42:27;  author: matt;  state: Exp;
39261 Blob routine, renamed g3_draw_bitmap(), now takes seperate 3d width & height.
39262 ----------------------------
39263 revision 1.31
39264 date: 1994/07/29 18:16:14;  author: matt;  state: Exp;
39265 Added instance by angles, and corrected parms for g3_init()
39266 ----------------------------
39267 revision 1.30
39268 date: 1994/07/25 00:00:00;  author: matt;  state: Exp;
39269 Made 3d no longer deal with point numbers, but only with pointers.
39270 ----------------------------
39271 revision 1.29
39272 date: 1994/07/22 17:57:27;  author: matt;  state: Exp;
39273 Changed the name of the rod functions, and took out some debugging code
39274 ----------------------------
39275 revision 1.28
39276 date: 1994/06/07 16:49:12;  author: matt;  state: Exp;
39277 Made interpreter take lighting value as parm, rather than in global var
39278 ----------------------------
39279 revision 1.27
39280 date: 1994/05/31 18:35:28;  author: matt;  state: Exp;
39281 Added light value to g3_draw_facing_bitmap()
39282 ----------------------------
39283 revision 1.26
39284 date: 1994/05/30 22:48:04;  author: matt;  state: Exp;
39285 Added support for morph effect
39286 ----------------------------
39287 revision 1.25
39288 date: 1994/05/30 11:34:57;  author: matt;  state: Exp;
39289 Added g3_set_special_render() to allow a user to specify functions to
39290 call for 2d draws.
39291 ----------------------------
39292 revision 1.24
39293 date: 1994/05/19 21:46:31;  author: matt;  state: Exp;
39294 Moved texture lighting out of 3d and into the game
39295 ----------------------------
39296 revision 1.23
39297 date: 1994/05/14 15:26:48;  author: matt;  state: Exp;
39298 Added extern for polyobj outline flag
39299 ----------------------------
39300 revision 1.22
39301 date: 1994/04/19 18:26:33;  author: matt;  state: Exp;
39302 Added g3_draw_sphere() function.
39303 ----------------------------
39304 revision 1.21
39305 date: 1994/03/25 18:22:28;  author: matt;  state: Exp;
39306 g3_draw_polygon_model() now takes ptr to list of angles
39307 ----------------------------
39308 revision 1.20
39309 date: 1994/03/15 21:23:23;  author: matt;  state: Exp;
39310 Added interpreter functions
39311 ----------------------------
39312 revision 1.19
39313 date: 1994/02/15 17:37:34;  author: matt;  state: Exp;
39314 New function, g3_draw_blob()
39315 ----------------------------
39316 revision 1.18
39317 date: 1994/02/09 11:47:47;  author: matt;  state: Exp;
39318 Added rod & delta point functions
39319 ----------------------------
39320 revision 1.17
39321 date: 1994/01/26 12:38:11;  author: matt;  state: Exp;
39322 Added function g3_compute_lighting_value()
39323 ----------------------------
39324 revision 1.16
39325 date: 1994/01/25 18:00:02;  author: yuan;  state: Exp;
39326 Fixed variable beam_brightness...
39327 ----------------------------
39328 revision 1.15
39329 date: 1994/01/24 14:08:34;  author: matt;  state: Exp;
39330 Added instancing functions
39331 ----------------------------
39332 revision 1.14
39333 date: 1994/01/22 18:21:48;  author: matt;  state: Exp;
39334 New lighting stuff now done in 3d; g3_draw_tmap() takes lighting parm
39335 ----------------------------
39336 revision 1.13
39337 date: 1994/01/20 17:21:24;  author: matt;  state: Exp;
39338 New function g3_compute_sky_polygon()
39339 ----------------------------
39340 revision 1.12
39341 date: 1994/01/14 17:20:25;  author: matt;  state: Exp;
39342 Added prototype for new function g3_draw_horizon()
39343 ----------------------------
39344 revision 1.10
39345 date: 1993/12/20 20:21:52;  author: matt;  state: Exp;
39346 Added g3_point_2_vec()
39347 ----------------------------
39348 revision 1.9
39349 date: 1993/12/07 23:05:47;  author: matt;  state: Exp;
39350 Fixed mistyped function name.
39351 ----------------------------
39352 revision 1.8
39353 date: 1993/12/05 23:47:03;  author: matt;  state: Exp;
39354 Added function g3_draw_line_ptrs()
39355 ----------------------------
39356 revision 1.7
39357 date: 1993/12/05 23:13:22;  author: matt;  state: Exp;
39358 Added prototypes for g3_rotate_point() and g3_project_point()
39359 ----------------------------
39360 revision 1.6
39361 date: 1993/12/05 23:03:28;  author: matt;  state: Exp;
39362 Changed uvl structs to g3s_uvl
39363 ----------------------------
39364 revision 1.5
39365 date: 1993/11/22 10:51:09;  author: matt;  state: Exp;
39366 Moved uvl structure here from segment.h, made texture map functions use it
39367 ----------------------------
39368 revision 1.4
39369 date: 1993/11/21 20:08:31;  author: matt;  state: Exp;
39370 Added function g3_draw_object()
39371 ----------------------------
39372 revision 1.3
39373 date: 1993/11/04 18:49:19;  author: matt;  state: Exp;
39374 Added system to only rotate points once per frame
39375 ----------------------------
39376 revision 1.2
39377 date: 1993/11/04 08:16:06;  author: mike;  state: Exp;
39378 Add light field (p3_l) to g3s_point.
39379 ----------------------------
39380 revision 1.1
39381 date: 1993/10/29 22:20:56;  author: matt;  state: Exp;
39382 Initial revision
39383 =============================================================================
39384 RCS file: f:/miner/source/main/ai.h,v
39385 Working file: main/ai.h
39386 head: 2.0
39387 branch:
39388 description: Header file for AI system.
39389 ----------------------------
39390 revision 2.0
39391 date: 1995/02/27 11:33:07;  author: john;  state: Exp;
39392 New version 2.0, which has no anonymous unions, builds with
39393 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39394 ----------------------------
39395 revision 1.57
39396 date: 1995/02/04 17:28:31;  author: mike;  state: Exp;
39397 make station guys return better.
39398 ----------------------------
39399 revision 1.56
39400 date: 1995/02/04 10:03:23;  author: mike;  state: Exp;
39401 Fly to exit cheat.
39402 ----------------------------
39403 revision 1.55
39404 date: 1995/02/01 19:23:52;  author: rob;  state: Exp;
39405 Externed a boss var.
39406 ----------------------------
39407 revision 1.54
39408 date: 1995/01/30 13:00:58;  author: mike;  state: Exp;
39409 Make robots fire at player other than one they are controlled by sometimes.
39410 ----------------------------
39411 revision 1.53
39412 date: 1995/01/26 15:09:16;  author: rob;  state: Exp;
39413 Changed robot gating to accomodate multiplayer.
39414 ----------------------------
39415 revision 1.52
39416 date: 1995/01/26 12:23:12;  author: rob;  state: Exp;
39417 Added new externs needed for multiplayer.
39418 ----------------------------
39419 revision 1.51
39420 date: 1995/01/21 21:22:14;  author: mike;  state: Exp;
39421 Kill prototype of init_boss_segments, which didn't need to be public
39422 and had changed.
39423 ----------------------------
39424 revision 1.50
39425 date: 1995/01/16 19:24:29;  author: mike;  state: Exp;
39426 Publicize BOSS_GATE_MATCEN_NUM and Boss_been_hit.
39427 ----------------------------
39428 revision 1.49
39429 date: 1995/01/02 16:17:35;  author: mike;  state: Exp;
39430 prototype some super boss function for gameseq.
39431 ----------------------------
39432 revision 1.48
39433 date: 1994/12/19 17:08:06;  author: mike;  state: Exp;
39434 deal with new ai_multiplayer_awareness which returns a value saying whether this object can be moved by this player.
39435 ----------------------------
39436 revision 1.47
39437 date: 1994/12/12 17:18:04;  author: mike;  state: Exp;
39438 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
39439 ----------------------------
39440 revision 1.46
39441 date: 1994/12/08 15:46:16;  author: mike;  state: Exp;
39442 better robot behavior.
39443 ----------------------------
39444 revision 1.45
39445 date: 1994/11/27 23:16:08;  author: matt;  state: Exp;
39446 Made debug code go away when debugging turned off
39447 ----------------------------
39448 revision 1.44
39449 date: 1994/11/16 23:38:41;  author: mike;  state: Exp;
39450 new improved boss teleportation behavior.
39451 ----------------------------
39452 revision 1.43
39453 date: 1994/11/10 17:45:11;  author: mike;  state: Exp;
39454 debugging.
39455 ----------------------------
39456 revision 1.42
39457 date: 1994/11/07 10:37:42;  author: mike;  state: Exp;
39458 hooks for rob's network code.
39459 ----------------------------
39460 revision 1.41
39461 date: 1994/11/06 15:10:50;  author: mike;  state: Exp;
39462 prototype a debug function for dumping ai info.
39463 ----------------------------
39464 revision 1.40
39465 date: 1994/11/02 17:57:30;  author: rob;  state: Exp;
39466 Added extern of Believe_player_pos needed to get control centers
39467 locating people.
39468 ----------------------------
39469 revision 1.39
39470 date: 1994/10/28 19:43:39;  author: mike;  state: Exp;
39471 Prototype Boss_cloak_start_time, Boss_cloak_end_time.
39472 ----------------------------
39473 revision 1.38
39474 date: 1994/10/22 14:14:42;  author: mike;  state: Exp;
39475 Prototype ai_reset_all_paths.
39476 ----------------------------
39477 revision 1.37
39478 date: 1994/10/21 20:42:01;  author: mike;  state: Exp;
39479 Define MAX_PATH_LENGTH: maximum allowed length of a path.
39480 ----------------------------
39481 revision 1.36
39482 date: 1994/10/20 09:49:18;  author: mike;  state: Exp;
39483 Prototype something.
39484 ----------------------------
39485 revision 1.35
39486 date: 1994/10/18 15:37:52;  author: mike;  state: Exp;
39487 Define ROBOT_BOSS1.
39488 ----------------------------
39489 revision 1.34
39490 date: 1994/10/13 11:12:25;  author: mike;  state: Exp;
39491 Prototype some door functions.
39492 ----------------------------
39493 revision 1.33
39494 date: 1994/10/12 21:28:51;  author: mike;  state: Exp;
39495 Prototype create_n_segment_path_to_door
39496 Prototype ai_open_doors_in_segment
39497 Prototype ai_door_is_openable.
39498 ----------------------------
39499 revision 1.32
39500 date: 1994/10/11 15:59:41;  author: mike;  state: Exp;
39501 Prototype Robot_firing_enabled.
39502 ----------------------------
39503 revision 1.31
39504 date: 1994/10/09 22:02:48;  author: mike;  state: Exp;
39505 Adapt create_path_points and create_n_segment_path prototypes to use avoid_seg for player evasion.
39506 ----------------------------
39507 revision 1.30
39508 date: 1994/09/18 18:07:44;  author: mike;  state: Exp;
39509 Update prototypes for create_path_points and create_path_to_player.
39510 ----------------------------
39511 revision 1.29
39512 date: 1994/09/15 16:34:08;  author: mike;  state: Exp;
39513 Prototype do_ai_robot_hit_attack.
39514 ----------------------------
39515 revision 1.28
39516 date: 1994/09/12 19:12:35;  author: mike;  state: Exp;
39517 Prototype attempt_to_resume_path.
39518 ----------------------------
39519 revision 1.27
39520 date: 1994/08/25 21:55:32;  author: mike;  state: Exp;
39521 Add some prototypes.
39522 ----------------------------
39523 revision 1.26
39524 date: 1994/08/10 19:53:24;  author: mike;  state: Exp;
39525 Prototype create_path_to_player and init_robots_for_level.
39526 ----------------------------
39527 revision 1.25
39528 date: 1994/08/04 16:32:58;  author: mike;  state: Exp;
39529 prototype create_path_to_player.
39530 ----------------------------
39531 revision 1.24
39532 date: 1994/08/03 15:17:20;  author: mike;  state: Exp;
39533 Prototype make_random_vector.
39534 ----------------------------
39535 revision 1.23
39536 date: 1994/07/31 18:10:34;  author: mike;  state: Exp;
39537 Update prototype for create_path_points.
39538 ----------------------------
39539 revision 1.22
39540 date: 1994/07/28 12:36:14;  author: matt;  state: Exp;
39541 Cleaned up object bumping code
39542 =============================================================================
39543 RCS file: f:/miner/source/main/ai2.c,v
39544 Working file: main/ai2.c
39545 head: 1.1
39546 branch:
39547 description: Split ai.c into two files: ai.c, ai2.c.
39548 ----------------------------
39549 revision 1.1
39550 date: 1995/05/25 12:00:31;  author: mike;  state: Exp;
39551 Initial revision
39552 =============================================================================
39553 RCS file: f:/miner/source/main/aipath.c,v
39554 Working file: main/aipath.c
39555 head: 2.0
39556 branch:
39557 description: AI path forming stuff.
39558 ----------------------------
39559 revision 2.0
39560 date: 1995/02/27 11:30:48;  author: john;  state: Exp;
39561 New version 2.0, which has no anonymous unions, builds with
39562 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39563 ----------------------------
39564 revision 1.101
39565 date: 1995/02/22 13:42:44;  author: allender;  state: Exp;
39566 remove anonymous unions for object structure
39567 ----------------------------
39568 revision 1.100
39569 date: 1995/02/10 16:20:04;  author: mike;  state: Exp;
39570 fix bogosity in create_path_points, assumed all objects were robots.
39571 ----------------------------
39572 revision 1.99
39573 date: 1995/02/07 21:09:30;  author: mike;  state: Exp;
39574 make run_from guys have diff level based speed.
39575 ----------------------------
39576 revision 1.98
39577 date: 1995/02/04 17:28:29;  author: mike;  state: Exp;
39578 make station guys return better.
39579 ----------------------------
39580 revision 1.97
39581 date: 1995/02/04 10:28:39;  author: mike;  state: Exp;
39582 fix compile error!
39583 ----------------------------
39584 revision 1.96
39585 date: 1995/02/04 10:03:37;  author: mike;  state: Exp;
39586 Fly to exit cheat.
39587 ----------------------------
39588 revision 1.95
39589 date: 1995/02/01 21:10:36;  author: mike;  state: Exp;
39590 Array name was dereferenced.  Not a bug, but unclean.
39591 ----------------------------
39592 revision 1.94
39593 date: 1995/02/01 17:14:12;  author: mike;  state: Exp;
39594 comment out some common mprintfs which didn't matter.
39595 ----------------------------
39596 revision 1.93
39597 date: 1995/01/30 13:01:23;  author: mike;  state: Exp;
39598 Make robots fire at player other than one they are controlled by sometimes.
39599 ----------------------------
39600 revision 1.92
39601 date: 1995/01/29 22:29:32;  author: mike;  state: Exp;
39602 add more debug info for guys that get lost.
39603 ----------------------------
39604 revision 1.91
39605 date: 1995/01/20 16:56:05;  author: mike;  state: Exp;
39606 station stuff.
39607 ----------------------------
39608 revision 1.90
39609 date: 1995/01/18 10:59:45;  author: mike;  state: Exp;
39610 comment out some mprintfs.
39611 ----------------------------
39612 revision 1.89
39613 date: 1995/01/17 16:58:34;  author: mike;  state: Exp;
39614 make path following work for multiplayer.
39615 ----------------------------
39616 revision 1.88
39617 date: 1995/01/17 14:21:44;  author: mike;  state: Exp;
39618 make run_from guys run better.
39619 ----------------------------
39620 revision 1.87
39621 date: 1995/01/14 17:09:04;  author: mike;  state: Exp;
39622 playing with crazy josh, he's kinda slow and dumb now.
39623 ----------------------------
39624 revision 1.86
39625 date: 1995/01/13 18:52:28;  author: mike;  state: Exp;
39626 comment out int3.
39627 ----------------------------
39628 revision 1.85
39629 date: 1995/01/05 09:42:11;  author: mike;  state: Exp;
39630 compile out code based on SHAREWARE.
39631 ----------------------------
39632 revision 1.84
39633 date: 1995/01/02 12:38:32;  author: mike;  state: Exp;
39634 make crazy josh turn faster, therefore evade player better.
39635 ----------------------------
39636 revision 1.83
39637 date: 1994/12/27 15:59:40;  author: mike;  state: Exp;
39638 tweak ai_multiplayer_awareness constants.
39639 ----------------------------
39640 revision 1.82
39641 date: 1994/12/19 17:07:10;  author: mike;  state: Exp;
39642 deal with new ai_multiplayer_awareness which returns a value saying whether this object can be moved by this player.
39643 ----------------------------
39644 revision 1.81
39645 date: 1994/12/15 13:04:30;  author: mike;  state: Exp;
39646 Replace Players[Player_num].time_total references with GameTime.
39647 ----------------------------
39648 revision 1.80
39649 date: 1994/12/09 16:13:23;  author: mike;  state: Exp;
39650 remove debug code.
39651 ----------------------------
39652 revision 1.79
39653 date: 1994/12/07 00:36:54;  author: mike;  state: Exp;
39654 make robots get out of matcens better and be aware of player.
39655 ----------------------------
39656 revision 1.78
39657 date: 1994/11/30 00:59:05;  author: mike;  state: Exp;
39658 optimizations.
39659 ----------------------------
39660 revision 1.77
39661 date: 1994/11/27 23:13:39;  author: matt;  state: Exp;
39662 Made changes for new mprintf calling convention
39663 ----------------------------
39664 revision 1.76
39665 date: 1994/11/23 21:59:34;  author: mike;  state: Exp;
39666 comment out some mprintfs.
39667 ----------------------------
39668 revision 1.75
39669 date: 1994/11/21 16:07:14;  author: mike;  state: Exp;
39670 flip PARALLAX flag, prevent annoying debug information.
39671 ----------------------------
39672 revision 1.74
39673 date: 1994/11/19 15:13:28;  author: mike;  state: Exp;
39674 remove unused code and data.
39675 ----------------------------
39676 revision 1.73
39677 date: 1994/11/17 14:53:15;  author: mike;  state: Exp;
39678 segment validation functions moved from editor to main.
39679 ----------------------------
39680 revision 1.72
39681 date: 1994/11/16 23:38:42;  author: mike;  state: Exp;
39682 new improved boss teleportation behavior.
39683 ----------------------------
39684 revision 1.71
39685 date: 1994/11/13 17:18:30;  author: mike;  state: Exp;
39686 debug code, then comment it out.
39687 ----------------------------
39688 revision 1.70
39689 date: 1994/11/11 16:41:43;  author: mike;  state: Exp;
39690 flip the PARALLAX flag.
39691 ----------------------------
39692 revision 1.69
39693 date: 1994/11/11 16:33:45;  author: mike;  state: Exp;
39694 twiddle the PARALLAX flag.
39695 ----------------------------
39696 revision 1.68
39697 date: 1994/11/10 21:32:29;  author: mike;  state: Exp;
39698 debug code.
39699 ----------------------------
39700 revision 1.67
39701 date: 1994/11/10 20:15:07;  author: mike;  state: Exp;
39702 fix stupid bug: uninitialized pointer.
39703 ----------------------------
39704 revision 1.66
39705 date: 1994/11/10 17:45:15;  author: mike;  state: Exp;
39706 debugging.
39707 ----------------------------
39708 revision 1.65
39709 date: 1994/11/10 17:28:10;  author: mike;  state: Exp;
39710 debugging.
39711 =============================================================================
39712 RCS file: f:/miner/source/main/aistruct.h,v
39713 Working file: main/aistruct.h
39714 head: 2.0
39715 branch:
39716 description: Structs and constants for AI system.
39717 object.h depends on this.
39718 ai.h depends on object.h.
39719 Get it?
39720 ----------------------------
39721 revision 2.0
39722 date: 1995/02/27 11:30:19;  author: john;  state: Exp;
39723 New version 2.0, which has no anonymous unions, builds with
39724 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39725 ----------------------------
39726 revision 1.34
39727 date: 1995/01/25 13:50:46;  author: mike;  state: Exp;
39728 Robots make angry sounds.
39729 ----------------------------
39730 revision 1.33
39731 date: 1994/12/29 12:44:56;  author: rob;  state: Exp;
39732 Added new coop robot flag.
39733 ----------------------------
39734 revision 1.32
39735 date: 1994/12/20 20:41:54;  author: rob;  state: Exp;
39736 Added new ai flag for multiplayer robots.
39737 ----------------------------
39738 revision 1.31
39739 date: 1994/12/19 16:37:39;  author: rob;  state: Exp;
39740 Added a new flag for remote controlled objects.
39741 ----------------------------
39742 revision 1.30
39743 date: 1994/12/07 00:36:07;  author: mike;  state: Exp;
39744 fix phys_apply_rot for robots -- ai was bashing effect in next frame.
39745 ----------------------------
39746 revision 1.29
39747 date: 1994/12/02 22:06:28;  author: mike;  state: Exp;
39748 add fields to allow robots to make awareness sounds every so often, not every damn blasted frame
39749 ----------------------------
39750 revision 1.28
39751 date: 1994/11/04 17:18:35;  author: yuan;  state: Exp;
39752 Increased MAX_SEG_POINTS to 2500.
39753 ----------------------------
39754 revision 1.27
39755 date: 1994/10/17 21:19:22;  author: mike;  state: Exp;
39756 robot cloaking.
39757 ----------------------------
39758 revision 1.26
39759 date: 1994/10/12 21:28:38;  author: mike;  state: Exp;
39760 Add new ai mode: AIM_OPEN_DOOR.
39761 Add GOALSIDE to aip.
39762 ----------------------------
39763 revision 1.25
39764 date: 1994/09/25 23:41:08;  author: matt;  state: Exp;
39765 Changed the object load & save code to read/write the structure fields one
39766 at a time (rather than the whole structure at once).  This mean that the
39767 object structure can be changed without breaking the load/save functions.
39768 As a result of this change, the local_object data can be and has been 
39769 incorporated into the object array.  Also, timeleft is now a property 
39770 of all objects, and the object structure has been otherwise cleaned up.
39771 ----------------------------
39772 revision 1.24
39773 date: 1994/09/21 12:28:11;  author: mike;  state: Exp;
39774 Change AI behavior for when player cloaked
39775 ----------------------------
39776 revision 1.23
39777 date: 1994/09/19 21:43:00;  author: mike;  state: Exp;
39778 Add follow_path_start_seg and follow_path_end_seg to aistruct.h.
39779 ----------------------------
39780 revision 1.22
39781 date: 1994/09/18 18:06:14;  author: mike;  state: Exp;
39782 Add Last_uncloaked_time and Last_uncloaked_position variables.
39783 ----------------------------
39784 revision 1.21
39785 date: 1994/09/15 16:31:38;  author: mike;  state: Exp;
39786 Define GREEN_GUY
39787 Add previous_visibility to ai_local struct.
39788 ----------------------------
39789 revision 1.20
39790 date: 1994/09/12 19:12:45;  author: mike;  state: Exp;
39791 Change some bytes to ints in ai_local so I could set watchpoints.
39792 ----------------------------
39793 revision 1.19
39794 date: 1994/08/25 21:53:31;  author: mike;  state: Exp;
39795 Add behavior, taking place of what used to be mode.
39796 ----------------------------
39797 revision 1.18
39798 date: 1994/08/23 16:38:09;  author: mike;  state: Exp;
39799 rapidfire_count in ai_local.
39800 ----------------------------
39801 revision 1.17
39802 date: 1994/08/19 17:38:23;  author: mike;  state: Exp;
39803 *** empty log message ***
39804 ----------------------------
39805 revision 1.16
39806 date: 1994/08/17 22:18:58;  author: mike;  state: Exp;
39807 add time_since_processed to ai_local.
39808 ----------------------------
39809 revision 1.15
39810 date: 1994/08/10 19:52:25;  author: mike;  state: Exp;
39811 Add Overall_agitation.
39812 ----------------------------
39813 revision 1.14
39814 date: 1994/08/04 16:32:32;  author: mike;  state: Exp;
39815 Add time_player_seen.
39816 ----------------------------
39817 revision 1.13
39818 date: 1994/07/28 16:58:11;  author: mike;  state: Exp;
39819 Move constants from ai.c
39820 ----------------------------
39821 revision 1.12
39822 date: 1994/07/19 15:26:24;  author: mike;  state: Exp;
39823 New ai_static and ai_local structures.
39824 ----------------------------
39825 revision 1.11
39826 date: 1994/07/15 15:17:19;  author: matt;  state: Exp;
39827 Changes MAX_AI_FLAGS for better alignment
39828 =============================================================================
39829 RCS file: f:/miner/source/main/arcade.c,v
39830 Working file: main/arcade.c
39831 head: 2.0
39832 branch:
39833 description: Routines for arcade version
39834 ----------------------------
39835 revision 2.0
39836 date: 1995/02/27 11:29:12;  author: john;  state: Exp;
39837 New version 2.0, which has no anonymous unions, builds with
39838 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39839 ----------------------------
39840 revision 1.7
39841 date: 1994/09/21 15:48:52;  author: matt;  state: Exp;
39842 Made digital joystick less "soft"
39843 ----------------------------
39844 revision 1.6
39845 date: 1994/09/16 18:50:47;  author: matt;  state: Exp;
39846 Read vfx1 head sensing when in arcade mode
39847 ----------------------------
39848 revision 1.5
39849 date: 1994/09/16 16:15:00;  author: john;  state: Exp;
39850 Added acrade sequencing.
39851 ----------------------------
39852 revision 1.4
39853 date: 1994/09/16 12:52:07;  author: mike;  state: Exp;
39854 fix compile errors.
39855 ----------------------------
39856 revision 1.3
39857 date: 1994/09/16 12:36:48;  author: john;  state: Exp;
39858 Fixed ramping pitch, heading.
39859 ----------------------------
39860 revision 1.2
39861 date: 1994/09/16 11:51:00;  author: john;  state: Exp;
39862 Added first version of arcade joystick support;
39863 Also fixed some bugs in kconfig.c, such as reading non-present
39864 joysticks, which killed frame rate, and not reading key_down_time
39865 when in slide mode or bank mode.
39866 ----------------------------
39867 revision 1.1
39868 date: 1994/09/16 09:59:16;  author: john;  state: Exp;
39869 Initial revision
39870 =============================================================================
39871 RCS file: f:/miner/source/main/arcade.h,v
39872 Working file: main/arcade.h
39873 head: 2.0
39874 branch:
39875 description: Routines for arcade version.
39876 ----------------------------
39877 revision 2.0
39878 date: 1995/02/27 11:27:27;  author: john;  state: Exp;
39879 New version 2.0, which has no anonymous unions, builds with
39880 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39881 ----------------------------
39882 revision 1.4
39883 date: 1994/09/16 21:44:06;  author: matt;  state: Exp;
39884 Made arcade code based on #define
39885 ----------------------------
39886 revision 1.3
39887 date: 1994/09/16 16:14:52;  author: john;  state: Exp;
39888 Added acrade sequencing.
39889 ----------------------------
39890 revision 1.2
39891 date: 1994/09/16 11:51:01;  author: john;  state: Exp;
39892 Added first version of arcade joystick support;
39893 Also fixed some bugs in kconfig.c, such as reading non-present
39894 joysticks, which killed frame rate, and not reading key_down_time
39895 when in slide mode or bank mode.
39896 ----------------------------
39897 revision 1.1
39898 date: 1994/09/16 09:59:29;  author: john;  state: Exp;
39899 Initial revision
39900 =============================================================================
39901 RCS file: f:/miner/source/main/args.c,v
39902 Working file: main/args.c
39903 head: 2.0
39904 branch:
39905 description: Functions for accessing arguments.
39906 ----------------------------
39907 revision 2.0
39908 date: 1995/02/27 11:31:22;  author: john;  state: Exp;
39909 New version 2.0, which has no anonymous unions, builds with
39910 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39911 ----------------------------
39912 revision 1.9
39913 date: 1994/11/29 01:07:57;  author: john;  state: Exp;
39914 Took out some unused vars.
39915 ----------------------------
39916 revision 1.8
39917 date: 1994/11/29 01:04:30;  author: john;  state: Exp;
39918 Took out descent.ini stuff.
39919 ----------------------------
39920 revision 1.7
39921 date: 1994/09/20 19:29:15;  author: matt;  state: Exp;
39922 Made args require exact (not substring), though still case insensitive.
39923 ----------------------------
39924 revision 1.6
39925 date: 1994/07/25 12:33:11;  author: john;  state: Exp;
39926 Network "pinging" in.
39927 ----------------------------
39928 revision 1.5
39929 date: 1994/06/17 18:07:50;  author: matt;  state: Exp;
39930 Took out printf
39931 ----------------------------
39932 revision 1.4
39933 date: 1994/05/11 19:45:33;  author: john;  state: Exp;
39934 *** empty log message ***
39935 ----------------------------
39936 revision 1.3
39937 date: 1994/05/11 18:42:11;  author: john;  state: Exp;
39938 Added Descent.ini config file.
39939 ----------------------------
39940 revision 1.2
39941 date: 1994/05/09 17:03:30;  author: john;  state: Exp;
39942 Split command line parameters into arg.c and arg.h.
39943 Also added /dma, /port, /irq to digi.c
39944 ----------------------------
39945 revision 1.1
39946 date: 1994/05/09 16:49:11;  author: john;  state: Exp;
39947 Initial revision
39948 =============================================================================
39949 RCS file: f:/miner/source/main/args.h,v
39950 Working file: main/args.h
39951 head: 2.0
39952 branch:
39953 description: Prototypes for accessing arguments.
39954 ----------------------------
39955 revision 2.0
39956 date: 1995/02/27 11:33:09;  author: john;  state: Exp;
39957 New version 2.0, which has no anonymous unions, builds with
39958 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39959 ----------------------------
39960 revision 1.4
39961 date: 1994/07/11 16:27:28;  author: matt;  state: Exp;
39962 Took out prototypes for netipx funcs
39963 ----------------------------
39964 revision 1.3
39965 date: 1994/05/11 19:45:34;  author: john;  state: Exp;
39966 *** empty log message ***
39967 ----------------------------
39968 revision 1.2
39969 date: 1994/05/09 17:02:55;  author: john;  state: Exp;
39970 Split command line parameters into arg.c and arg.h.
39971 Also added /dma, /port, /irq to digi.c
39972 ----------------------------
39973 revision 1.1
39974 date: 1994/05/09 16:47:49;  author: john;  state: Exp;
39975 Initial revision
39976 =============================================================================
39977 RCS file: f:/miner/source/main/automap.c,v
39978 Working file: main/automap.c
39979 head: 2.2
39980 branch:
39981 description: Routines for displaying the auto-map.
39982 ----------------------------
39983 revision 2.2
39984 date: 1995/03/21 14:41:26;  author: john;  state: Exp;
39985 Ifdef'd out the NETWORK code.
39986 ----------------------------
39987 revision 2.1
39988 date: 1995/03/20 18:16:06;  author: john;  state: Exp;
39989 Added code to not store the normals in the segment structure.
39990 ----------------------------
39991 revision 2.0
39992 date: 1995/02/27 11:32:55;  author: john;  state: Exp;
39993 New version 2.0, which has no anonymous unions, builds with
39994 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
39995 ----------------------------
39996 revision 1.117
39997 date: 1995/02/22 14:11:31;  author: allender;  state: Exp;
39998 remove anonymous unions from object structure
39999 ----------------------------
40000 revision 1.116
40001 date: 1995/02/22 13:24:39;  author: john;  state: Exp;
40002 Removed the vecmat anonymous unions.
40003 ----------------------------
40004 revision 1.115
40005 date: 1995/02/09 14:57:02;  author: john;  state: Exp;
40006 Reduced mem usage. Made automap slide farther.
40007 ----------------------------
40008 revision 1.114
40009 date: 1995/02/07 20:40:44;  author: rob;  state: Exp;
40010 Allow for anarchy automap of player pos by option.
40011 ----------------------------
40012 revision 1.113
40013 date: 1995/02/07 15:45:33;  author: john;  state: Exp;
40014 Made automap memory be static.
40015 ----------------------------
40016 revision 1.112
40017 date: 1995/02/02 12:24:00;  author: adam;  state: Exp;
40018 played with automap labels
40019 ----------------------------
40020 revision 1.111
40021 date: 1995/02/02 01:52:52;  author: john;  state: Exp;
40022 Made the automap use small font.
40023 ----------------------------
40024 revision 1.110
40025 date: 1995/02/02 01:34:34;  author: john;  state: Exp;
40026 Made Reset in automap not change segmentlimit.
40027 ----------------------------
40028 revision 1.109
40029 date: 1995/02/02 01:23:11;  author: john;  state: Exp;
40030 Finalized the new automap partial viewer.
40031 ----------------------------
40032 revision 1.108
40033 date: 1995/02/02 00:49:45;  author: mike;  state: Exp;
40034 new automap segment-depth functionality.
40035 ----------------------------
40036 revision 1.107
40037 date: 1995/02/02 00:23:04;  author: john;  state: Exp;
40038 Half of the code for new connected distance stuff in automap.
40039 ----------------------------
40040 revision 1.106
40041 date: 1995/02/01 22:54:00;  author: john;  state: Exp;
40042 Made colored doors not fade in automap. Made default
40043 viewing area be maxxed.
40044 ----------------------------
40045 revision 1.105
40046 date: 1995/02/01 13:16:13;  author: john;  state: Exp;
40047 Added great grates. 
40048 ----------------------------
40049 revision 1.104
40050 date: 1995/01/31 12:47:06;  author: john;  state: Exp;
40051 Made Alt+F only work with cheats enabled.
40052 ----------------------------
40053 revision 1.103
40054 date: 1995/01/31 12:41:23;  author: john;  state: Exp;
40055 Working with new controls.
40056 ----------------------------
40057 revision 1.102
40058 date: 1995/01/31 12:04:19;  author: john;  state: Exp;
40059 Version 2 of new key control.
40060 ----------------------------
40061 revision 1.101
40062 date: 1995/01/31 11:32:00;  author: john;  state: Exp;
40063 First version of new automap system.
40064 ----------------------------
40065 revision 1.100
40066 date: 1995/01/28 16:55:48;  author: john;  state: Exp;
40067 Made keys draw in automap in the segments that you have
40068 visited.
40069 ----------------------------
40070 revision 1.99
40071 date: 1995/01/28 14:44:51;  author: john;  state: Exp;
40072 Made hostage doors show up on automap.
40073 ----------------------------
40074 revision 1.98
40075 date: 1995/01/22 17:03:49;  author: rob;  state: Exp;
40076 Fixed problem drawing playerships in automap coop/team mode
40077 ----------------------------
40078 revision 1.97
40079 date: 1995/01/21 17:23:11;  author: john;  state: Exp;
40080 Limited S movement in map. Made map bitmap load from disk
40081 and then freed it.
40082 ----------------------------
40083 revision 1.96
40084 date: 1995/01/19 18:55:38;  author: john;  state: Exp;
40085 Don't draw players in automap if not obj_player.
40086 ----------------------------
40087 revision 1.95
40088 date: 1995/01/19 18:48:13;  author: john;  state: Exp;
40089 Made player colors better in automap.
40090 ----------------------------
40091 revision 1.94
40092 date: 1995/01/19 17:34:52;  author: rob;  state: Exp;
40093 Added team colorizations in automap.
40094 ----------------------------
40095 revision 1.93
40096 date: 1995/01/19 17:15:36;  author: rob;  state: Exp;
40097 Trying to add player ships into map for coop and team mode.
40098 ----------------------------
40099 revision 1.92
40100 date: 1995/01/19 17:11:09;  author: john;  state: Exp;
40101 Added code for Rob to draw Multiplayer ships in automap.
40102 ----------------------------
40103 revision 1.91
40104 date: 1995/01/12 13:35:20;  author: john;  state: Exp;
40105 Fixed bug with Segment 0 not getting displayed 
40106 in automap if you have EDITOR compiled in.
40107 ----------------------------
40108 revision 1.90
40109 date: 1995/01/08 16:17:14;  author: john;  state: Exp;
40110 Added code to draw player's up vector while in automap.
40111 ----------------------------
40112 revision 1.89
40113 date: 1995/01/08 16:09:41;  author: john;  state: Exp;
40114 Fixed problems with grate.
40115 ----------------------------
40116 revision 1.88
40117 date: 1994/12/14 22:54:17;  author: john;  state: Exp;
40118 Fixed bug that didn't show hostages in automap.
40119 ----------------------------
40120 revision 1.87
40121 date: 1994/12/09 00:41:03;  author: mike;  state: Exp;
40122 fix hang in automap print screen
40123 ----------------------------
40124 revision 1.86
40125 date: 1994/12/05 23:37:15;  author: matt;  state: Exp;
40126 Took out calls to warning() function
40127 ----------------------------
40128 revision 1.85
40129 date: 1994/12/03 22:35:28;  author: yuan;  state: Exp;
40130 Localization 412
40131 ----------------------------
40132 revision 1.84
40133 date: 1994/12/02 15:05:45;  author: matt;  state: Exp;
40134 Added new "official" cheats
40135 ----------------------------
40136 revision 1.83
40137 date: 1994/11/30 12:10:49;  author: adam;  state: Exp;
40138 added support for PCX titles/brief screens
40139 ----------------------------
40140 revision 1.82
40141 date: 1994/11/27 23:15:12;  author: matt;  state: Exp;
40142 Made changes for new mprintf calling convention
40143 ----------------------------
40144 revision 1.81
40145 date: 1994/11/27 15:35:52;  author: matt;  state: Exp;
40146 Enable screen shots even when debugging is turned off
40147 ----------------------------
40148 revision 1.80
40149 date: 1994/11/26 22:51:43;  author: matt;  state: Exp;
40150 Removed editor-only fields from segment structure when editor is compiled
40151 out, and padded segment structure to even multiple of 4 bytes.
40152 ----------------------------
40153 revision 1.79
40154 date: 1994/11/26 16:22:48;  author: matt;  state: Exp;
40155 Reduced leave_time
40156 ----------------------------
40157 revision 1.78
40158 date: 1994/11/23 22:00:10;  author: mike;  state: Exp;
40159 show level number.
40160 ----------------------------
40161 revision 1.77
40162 date: 1994/11/21 11:40:33;  author: rob;  state: Exp;
40163 Tweaked the game-loop for automap in multiplayer games.
40164 ----------------------------
40165 revision 1.76
40166 date: 1994/11/18 16:42:06;  author: adam;  state: Exp;
40167 removed a font
40168 ----------------------------
40169 revision 1.75
40170 date: 1994/11/17 13:06:48;  author: adam;  state: Exp;
40171 changed font
40172 ----------------------------
40173 revision 1.74
40174 date: 1994/11/14 20:47:17;  author: john;  state: Exp;
40175 Attempted to strip out all the code in the game 
40176 directory that uses any ui code.
40177 =============================================================================
40178 RCS file: f:/miner/source/main/automap.h,v
40179 Working file: main/automap.h
40180 head: 2.0
40181 branch:
40182 description: Prototypes for auto-map stuff.
40183 ----------------------------
40184 revision 2.0
40185 date: 1995/02/27 11:29:35;  author: john;  state: Exp;
40186 New version 2.0, which has no anonymous unions, builds with
40187 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40188 ----------------------------
40189 revision 1.5
40190 date: 1994/12/09 00:41:21;  author: mike;  state: Exp;
40191 fix hang in automap print screen
40192 ----------------------------
40193 revision 1.4
40194 date: 1994/07/14 11:25:29;  author: john;  state: Exp;
40195 Made control centers destroy better; made automap use Tab key.
40196 ----------------------------
40197 revision 1.3
40198 date: 1994/07/12 15:45:51;  author: john;  state: Exp;
40199 Made paritial map.
40200 ----------------------------
40201 revision 1.2
40202 date: 1994/07/07 18:35:05;  author: john;  state: Exp;
40203 First version of automap
40204 ----------------------------
40205 revision 1.1
40206 date: 1994/07/07 15:12:13;  author: john;  state: Exp;
40207 Initial revision
40208 =============================================================================
40209 RCS file: f:/miner/source/main/editor/autosave.c,v
40210 Working file: main/editor/autosave.c
40211 head: 2.0
40212 branch:
40213 description: Autosave system: 
40214 Saves current mine to disk to prevent loss of work, and support undo.
40215 ----------------------------
40216 revision 2.0
40217 date: 1995/02/27 11:34:53;  author: john;  state: Exp;
40218 Version 2.0! No anonymous unions, Watcom 10.0, with no need
40219 for bitmaps.tbl.
40220 ----------------------------
40221 revision 1.25
40222 date: 1994/11/19 00:04:40;  author: john;  state: Exp;
40223 Changed some shorts to ints.
40224 ----------------------------
40225 revision 1.24
40226 date: 1994/11/17 11:38:59;  author: matt;  state: Exp;
40227 Ripped out code to load old mines
40228 ----------------------------
40229 revision 1.23
40230 date: 1994/07/28 17:00:01;  author: mike;  state: Exp;
40231 fix diagnostic_message erasing.
40232 ----------------------------
40233 revision 1.22
40234 date: 1994/07/21 12:48:28;  author: mike;  state: Exp;
40235 Make time of day a global, fix clock so it doesn't show 10:2 instead of 10:02
40236 ----------------------------
40237 revision 1.21
40238 date: 1994/05/14 17:17:58;  author: matt;  state: Exp;
40239 Got rid of externs in source (non-header) files
40240 ----------------------------
40241 revision 1.20
40242 date: 1994/05/02 18:04:14;  author: yuan;  state: Exp;
40243 Fixed warning.
40244 ----------------------------
40245 revision 1.19
40246 date: 1994/05/02 17:59:04;  author: yuan;  state: Exp;
40247 Changed undo_status into an array rather than malloced pointers.
40248 ----------------------------
40249 revision 1.18
40250 date: 1994/03/16 09:55:48;  author: mike;  state: Exp;
40251 Flashing : in time.
40252 ----------------------------
40253 revision 1.17
40254 date: 1994/02/11 10:27:36;  author: matt;  state: Exp;
40255 Changed 'if !DEMO' to 'ifndef DEMO'
40256 ----------------------------
40257 revision 1.16
40258 date: 1994/02/08 12:43:18;  author: yuan;  state: Exp;
40259 Crippled save game function from demo version
40260 ----------------------------
40261 revision 1.15
40262 date: 1994/02/01 13:27:26;  author: yuan;  state: Exp;
40263 autosave default off.
40264 ----------------------------
40265 revision 1.14
40266 date: 1994/01/05 09:57:37;  author: yuan;  state: Exp;
40267 Fixed calendar/clock problem.
40268 ----------------------------
40269 revision 1.13
40270 date: 1993/12/17 16:09:59;  author: yuan;  state: Exp;
40271 Changed clock font from Red to Black.
40272 ----------------------------
40273 revision 1.12
40274 date: 1993/12/15 13:08:38;  author: yuan;  state: Exp;
40275 Fixed :0x times, so that the 0 shows up.
40276 ----------------------------
40277 revision 1.11
40278 date: 1993/12/15 11:19:52;  author: yuan;  state: Exp;
40279 Added code to display clock in upper right.
40280 ----------------------------
40281 revision 1.10
40282 date: 1993/12/14 21:18:51;  author: yuan;  state: Exp;
40283 Added diagnostic message to display
40284 ----------------------------
40285 revision 1.9
40286 date: 1993/12/14 18:32:59;  author: yuan;  state: Exp;
40287 Added timed autosave code
40288 ----------------------------
40289 revision 1.8
40290 date: 1993/12/13 17:23:25;  author: yuan;  state: Exp;
40291 Fixed bugs with undo.
40292 They were caused by badly changed extensions.
40293 ----------------------------
40294 revision 1.7
40295 date: 1993/12/09 16:42:32;  author: yuan;  state: Exp;
40296 Changed extension of temp mines from .mi? -> .mn? 
40297 and now to .m? (So it doesn't interfere with .mnu)
40298 ----------------------------
40299 revision 1.6
40300 date: 1993/12/09 16:27:06;  author: yuan;  state: Exp;
40301 Added toggle for autosave
40302 ----------------------------
40303 revision 1.5
40304 date: 1993/11/29 19:46:32;  author: matt;  state: Exp;
40305 Changed includes
40306 ----------------------------
40307 revision 1.4
40308 date: 1993/11/11 15:54:11;  author: yuan;  state: Exp;
40309 Added display message for Undo...
40310 Eg. Attach Segment UNDONE.
40311 ----------------------------
40312 revision 1.3
40313 date: 1993/11/09 18:53:11;  author: yuan;  state: Exp;
40314 Autosave/Undo works up to 10 moves.
40315 ----------------------------
40316 revision 1.2
40317 date: 1993/11/08 19:14:03;  author: yuan;  state: Exp;
40318 Added Undo command (not working yet)
40319 ----------------------------
40320 revision 1.1
40321 date: 1993/11/08 16:57:59;  author: yuan;  state: Exp;
40322 Initial revision
40323 =============================================================================
40324 RCS file: f:/miner/source/main/bm.c,v
40325 Working file: main/bm.c
40326 head: 2.3
40327 branch:
40328 description: Bitmap and palette loading functions.
40329 ----------------------------
40330 revision 2.3
40331 date: 1995/03/14 16:22:04;  author: john;  state: Exp;
40332 Added cdrom alternate directory stuff.
40333 ----------------------------
40334 revision 2.2
40335 date: 1995/03/07 16:51:48;  author: john;  state: Exp;
40336 Fixed robots not moving without edtiro bug.
40337 ----------------------------
40338 revision 2.1
40339 date: 1995/03/06 15:23:06;  author: john;  state: Exp;
40340 New screen techniques.
40341 ----------------------------
40342 revision 2.0
40343 date: 1995/02/27 11:27:05;  author: john;  state: Exp;
40344 New version 2.0, which has no anonymous unions, builds with
40345 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40346 =============================================================================
40347 RCS file: f:/miner/source/main/bm.h,v
40348 Working file: main/bm.h
40349 head: 2.0
40350 branch:
40351 description: Bitmap and Palette loading functions.
40352 ----------------------------
40353 revision 2.0
40354 date: 1995/02/27 11:32:59;  author: john;  state: Exp;
40355 New version 2.0, which has no anonymous unions, builds with
40356 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40357 ----------------------------
40358 revision 1.60
40359 date: 1994/12/06 13:24:58;  author: matt;  state: Exp;
40360 Made exit model come out of bitmaps.tbl
40361 ----------------------------
40362 revision 1.59
40363 date: 1994/11/10 14:02:48;  author: matt;  state: Exp;
40364 Hacked in support for player ships with different textures
40365 ----------------------------
40366 revision 1.58
40367 date: 1994/10/27 13:32:17;  author: john;  state: Exp;
40368 Made TmapList only be in if editor
40369 ----------------------------
40370 revision 1.57
40371 date: 1994/10/11 12:25:20;  author: matt;  state: Exp;
40372 Added "hot rocks" that create badass explosion when hit by weapons
40373 ----------------------------
40374 revision 1.56
40375 date: 1994/09/29 12:38:13;  author: matt;  state: Exp;
40376 Took out include of digi.h, saving hours of unneeded compiles
40377 ----------------------------
40378 revision 1.55
40379 date: 1994/09/25 00:39:51;  author: matt;  state: Exp;
40380 Added the ability to make eclips (monitors, fans) which can be blown up
40381 ----------------------------
40382 revision 1.54
40383 date: 1994/09/17 01:40:59;  author: matt;  state: Exp;
40384 Added status bar/sizable window mode, and in the process revamped the
40385 whole cockpit mode system.
40386 ----------------------------
40387 revision 1.53
40388 date: 1994/09/08 16:20:48;  author: matt;  state: Exp;
40389 Gave textures the ability to cause damage when scraped
40390 ----------------------------
40391 revision 1.52
40392 date: 1994/08/30 22:23:43;  author: matt;  state: Exp;
40393 Added cabability for player ship to have alternate model to use to
40394 create debris.
40395 ----------------------------
40396 revision 1.51
40397 date: 1994/08/26 15:35:57;  author: matt;  state: Exp;
40398 Made eclips usable on more than one object at a time
40399 ----------------------------
40400 revision 1.50
40401 date: 1994/08/23 16:59:51;  author: john;  state: Exp;
40402 Added 3 cockpuits
40403 ----------------------------
40404 revision 1.49
40405 date: 1994/08/19 20:09:43;  author: matt;  state: Exp;
40406 Added end-of-level cut scene with external scene
40407 ----------------------------
40408 revision 1.48
40409 date: 1994/08/12 22:20:45;  author: matt;  state: Exp;
40410 Generalized polygon objects (such as control center)
40411 ----------------------------
40412 revision 1.47
40413 date: 1994/08/09 16:04:21;  author: john;  state: Exp;
40414 Added network players to editor.
40415 ----------------------------
40416 revision 1.46
40417 date: 1994/08/09 09:01:31;  author: john;  state: Exp;
40418 Increase MAX_TEXTURES
40419 ----------------------------
40420 revision 1.45
40421 date: 1994/07/13 00:14:57;  author: matt;  state: Exp;
40422 Moved all (or nearly all) of the values that affect player movement to 
40423 bitmaps.tbl
40424 ----------------------------
40425 revision 1.44
40426 date: 1994/06/20 21:33:15;  author: matt;  state: Exp;
40427 Made bm.h not include sounds.h, to reduce dependencies
40428 ----------------------------
40429 revision 1.43
40430 date: 1994/06/15 11:55:58;  author: matt;  state: Exp;
40431 Added 3d model for player
40432 ----------------------------
40433 revision 1.42
40434 date: 1994/06/13 16:09:11;  author: adam;  state: Exp;
40435 increased max textures to 600
40436 ----------------------------
40437 revision 1.41
40438 date: 1994/06/06 15:38:58;  author: john;  state: Exp;
40439 Made fullscreen view be just another cockpit, but the "hole"
40440 in the cockpit is just bigger.
40441 ----------------------------
40442 revision 1.40
40443 date: 1994/05/26 21:08:59;  author: matt;  state: Exp;
40444 Moved robot stuff out of polygon model and into robot_info struct
40445 Made new file, robot.c, to deal with robots
40446 ----------------------------
40447 revision 1.39
40448 date: 1994/05/18 11:00:05;  author: mike;  state: Exp;
40449 Add robot_info stuff.
40450 ----------------------------
40451 revision 1.38
40452 date: 1994/05/17 14:44:56;  author: mike;  state: Exp;
40453 Get object type and id from ObjType and ObjId.
40454 ----------------------------
40455 revision 1.37
40456 date: 1994/05/17 12:04:45;  author: mike;  state: Exp;
40457 Deal with little known fact that polygon object != robot.
40458 ----------------------------
40459 revision 1.36
40460 date: 1994/05/16 16:17:35;  author: john;  state: Exp;
40461 Bunch of stuff on my Inferno Task list May16-23
40462 ----------------------------
40463 revision 1.35
40464 date: 1994/04/27 11:43:42;  author: john;  state: Exp;
40465 First version of sound! Yay!
40466 ----------------------------
40467 revision 1.34
40468 date: 1994/04/22 10:53:48;  author: john;  state: Exp;
40469 Increased MAX_TEXTURES to 500.
40470 ----------------------------
40471 revision 1.33
40472 date: 1994/04/01 11:15:05;  author: yuan;  state: Exp;
40473 Added multiple bitmap functionality to all objects...
40474 (hostages, powerups, lasers, etc.)  
40475 Hostages and powerups are implemented in the object system,
40476 just need to finish function call to "affect" player.
40477 ----------------------------
40478 revision 1.32
40479 date: 1994/03/25 17:30:37;  author: yuan;  state: Exp;
40480 Checking in hostage stuff.
40481 ----------------------------
40482 revision 1.31
40483 date: 1994/03/17 18:07:28;  author: yuan;  state: Exp;
40484 Removed switch code... Now we just have Walls, Triggers, and Links...
40485 ----------------------------
40486 revision 1.30
40487 date: 1994/03/15 17:03:51;  author: yuan;  state: Exp;
40488 Added Robot/object bitmap capability
40489 ----------------------------
40490 revision 1.29
40491 date: 1994/03/15 16:32:58;  author: yuan;  state: Exp;
40492 Cleaned up bm-loading code.
40493 (Fixed structures too)
40494 ----------------------------
40495 revision 1.28
40496 date: 1994/03/04 17:09:13;  author: yuan;  state: Exp;
40497 New door stuff.
40498 ----------------------------
40499 revision 1.27
40500 date: 1994/01/31 14:50:09;  author: yuan;  state: Exp;
40501 Added Robotex
40502 ----------------------------
40503 revision 1.26
40504 date: 1994/01/31 12:27:14;  author: yuan;  state: Exp;
40505 Added demo stuff (menu, etc.)
40506 ----------------------------
40507 revision 1.25
40508 date: 1994/01/25 17:11:43;  author: john;  state: Exp;
40509 New texmaped lasers.
40510 ----------------------------
40511 revision 1.24
40512 date: 1994/01/24 11:48:06;  author: yuan;  state: Exp;
40513 Lighting stuff
40514 ----------------------------
40515 revision 1.23
40516 date: 1994/01/22 13:40:15;  author: yuan;  state: Exp;
40517 Modified the bmd_bitmap structure a bit.
40518 (Saves some memory, and added reflection)
40519 ----------------------------
40520 revision 1.22
40521 date: 1994/01/11 10:58:38;  author: yuan;  state: Exp;
40522 Added effects system
40523 ----------------------------
40524 revision 1.21
40525 date: 1994/01/06 17:13:12;  author: john;  state: Exp;
40526 Added Video clip functionality
40527 ----------------------------
40528 revision 1.20
40529 date: 1993/12/21 20:00:15;  author: john;  state: Exp;
40530 moved selector stuff to grs_bitmap
40531 ----------------------------
40532 revision 1.19
40533 date: 1993/12/21 19:33:58;  author: john;  state: Exp;
40534 Added selector to bmd_bitmap.
40535 ----------------------------
40536 revision 1.18
40537 date: 1993/12/07 12:28:48;  author: john;  state: Exp;
40538 moved bmd_palette to gr_palette
40539 ----------------------------
40540 revision 1.17
40541 date: 1993/12/06 18:40:37;  author: matt;  state: Exp;
40542 Changed object loading & handling
40543 ----------------------------
40544 revision 1.16
40545 date: 1993/12/05 23:05:03;  author: matt;  state: Exp;
40546 Added include of gr.h
40547 ----------------------------
40548 revision 1.15
40549 date: 1993/12/03 17:38:04;  author: yuan;  state: Exp;
40550 Ooops. meant to say:
40551 Moved MAX variables to bm.c, Arrays left open.
40552 ----------------------------
40553 revision 1.14
40554 date: 1993/12/03 17:37:26;  author: yuan;  state: Exp;
40555 Added Asserts.
40556 ----------------------------
40557 revision 1.13
40558 date: 1993/12/02 17:22:54;  author: yuan;  state: Exp;
40559 New global var. Num_object_types
40560 ----------------------------
40561 revision 1.12
40562 date: 1993/12/02 16:34:39;  author: yuan;  state: Exp;
40563 Added fireball hack stuff.
40564 ----------------------------
40565 revision 1.11
40566 date: 1993/12/02 15:45:14;  author: yuan;  state: Exp;
40567 Added a buncha constants, variables, and function prototypes
40568 for the new bitmaps.tbl format.
40569 ----------------------------
40570 revision 1.10
40571 date: 1993/12/01 11:25:11;  author: yuan;  state: Exp;
40572 Changed MALLOC'd buffers for filename and type in
40573 the bmd_bitmap structure into arrays... Saves time
40574 at load up.
40575 ----------------------------
40576 revision 1.9
40577 date: 1993/12/01 00:28:09;  author: yuan;  state: Exp;
40578 New bitmap system structure.
40579 ----------------------------
40580 revision 1.8
40581 date: 1993/11/03 11:34:08;  author: john;  state: Exp;
40582 made it use bitmaps.tbl
40583 ----------------------------
40584 revision 1.7
40585 date: 1993/10/26 18:11:03;  author: john;  state: Exp;
40586 made all palette data be statically allocated
40587 ----------------------------
40588 revision 1.6
40589 date: 1993/10/19 12:17:51;  author: john;  state: Exp;
40590 *** empty log message ***
40591 ----------------------------
40592 revision 1.5
40593 date: 1993/10/16 20:02:41;  author: matt;  state: Exp;
40594 Changed name of backdrop bitmap file
40595 ----------------------------
40596 revision 1.4
40597 date: 1993/10/12 15:08:52;  author: matt;  state: Exp;
40598 Added a bunch of new textures
40599 ----------------------------
40600 revision 1.3
40601 date: 1993/10/12 12:30:41;  author: john;  state: Exp;
40602 *** empty log message ***
40603 ----------------------------
40604 revision 1.2
40605 date: 1993/10/12 11:27:58;  author: john;  state: Exp;
40606 added more bitmaps
40607 ----------------------------
40608 revision 1.1
40609 date: 1993/09/23 13:09:10;  author: john;  state: Exp;
40610 Initial revision
40611 =============================================================================
40612 RCS file: f:/miner/source/main/bmread.c,v
40613 Working file: main/bmread.c
40614 head: 2.4
40615 branch:
40616 description: Routines to parse bitmaps.tbl
40617 ----------------------------
40618 revision 2.4
40619 date: 1995/03/28 18:05:29;  author: john;  state: Exp;
40620 Fixed it so you don't have to delete pig after changing bitmaps.tbl
40621 ----------------------------
40622 revision 2.3
40623 date: 1995/03/07 16:52:03;  author: john;  state: Exp;
40624 Fixed robots not moving without edtiro bug.
40625 ----------------------------
40626 revision 2.2
40627 date: 1995/03/06 16:10:20;  author: mike;  state: Exp;
40628 Fix compile errors if building without editor.
40629 ----------------------------
40630 revision 2.1
40631 date: 1995/03/02 14:55:40;  author: john;  state: Exp;
40632 Fixed bug with EDITOR never defined.
40633 ----------------------------
40634 revision 2.0
40635 date: 1995/02/27 11:33:10;  author: john;  state: Exp;
40636 New version 2.0, which has no anonymous unions, builds with
40637 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40638 ----------------------------
40639 revision 1.1
40640 date: 1995/02/25 14:02:36;  author: john;  state: Exp;
40641 Initial revision
40642 =============================================================================
40643 RCS file: f:/miner/source/main/cdrom.c,v
40644 Working file: main/cdrom.c
40645 head: 1.2
40646 branch:
40647 description: Routines to access a cdrom drive.
40648 ----------------------------
40649 revision 1.2
40650 date: 1995/03/20 15:01:19;  author: john;  state: Exp;
40651 Initial revision.
40652 ----------------------------
40653 revision 1.1
40654 date: 1995/03/14 16:56:59;  author: john;  state: Exp;
40655 Initial revision
40656 =============================================================================
40657 RCS file: f:/miner/source/main/cdrom.h,v
40658 Working file: main/cdrom.h
40659 head: 1.2
40660 branch:
40661 description: Prototypes for cdrom.c
40662 ----------------------------
40663 revision 1.2
40664 date: 1995/03/20 15:01:12;  author: john;  state: Exp;
40665 Initial revision.
40666 ----------------------------
40667 revision 1.1
40668 date: 1995/03/14 17:01:37;  author: john;  state: Exp;
40669 Initial revision
40670 =============================================================================
40671 RCS file: f:/miner/source/main/editor/centers.c,v
40672 Working file: main/editor/centers.c
40673 head: 2.0
40674 branch:
40675 description: Dialog box stuff for control centers, material centers, etc.
40676 ----------------------------
40677 revision 2.0
40678 date: 1995/02/27 11:35:30;  author: john;  state: Exp;
40679 Version 2.0! No anonymous unions, Watcom 10.0, with no need
40680 for bitmaps.tbl.
40681 ----------------------------
40682 revision 1.9
40683 date: 1994/11/27 23:17:28;  author: matt;  state: Exp;
40684 Made changes for new mprintf calling convention
40685 ----------------------------
40686 revision 1.8
40687 date: 1994/10/05 22:13:46;  author: mike;  state: Exp;
40688 Clean up Centers dialog.
40689 ----------------------------
40690 revision 1.7
40691 date: 1994/10/03 23:39:55;  author: mike;  state: Exp;
40692 Call fuelcen_activate instead of fuelcen_create.
40693 ----------------------------
40694 revision 1.6
40695 date: 1994/08/02 12:16:35;  author: mike;  state: Exp;
40696 Change materialization center functionality.
40697 ----------------------------
40698 revision 1.5
40699 date: 1994/08/01 11:04:42;  author: yuan;  state: Exp;
40700 New materialization centers.
40701 ----------------------------
40702 revision 1.4
40703 date: 1994/07/22 17:19:10;  author: yuan;  state: Exp;
40704 Working on dialog box for refuel/repair/material/control centers.
40705 ----------------------------
40706 revision 1.3
40707 date: 1994/07/21 19:35:09;  author: yuan;  state: Exp;
40708 Fixed #include problem
40709 ----------------------------
40710 revision 1.2
40711 date: 1994/07/21 19:02:41;  author: yuan;  state: Exp;
40712 *** empty log message ***
40713 ----------------------------
40714 revision 1.1
40715 date: 1994/07/18 16:00:54;  author: yuan;  state: Exp;
40716 Initial revision
40717 =============================================================================
40718 RCS file: f:/miner/source/main/editor/centers.h,v
40719 Working file: main/editor/centers.h
40720 head: 2.0
40721 branch:
40722 description: Center header
40723 ----------------------------
40724 revision 2.0
40725 date: 1995/02/27 11:35:02;  author: john;  state: Exp;
40726 Version 2.0! No anonymous unions, Watcom 10.0, with no need
40727 for bitmaps.tbl.
40728 ----------------------------
40729 revision 1.3
40730 date: 1994/08/02 12:16:27;  author: mike;  state: Exp;
40731 Prototype Center_names.
40732 ----------------------------
40733 revision 1.2
40734 date: 1994/07/21 19:35:20;  author: yuan;  state: Exp;
40735 Fixed #include problem
40736 ----------------------------
40737 revision 1.1
40738 date: 1994/07/21 19:11:36;  author: yuan;  state: Exp;
40739 Initial revision
40740 =============================================================================
40741 RCS file: f:/miner/source/main/cntrlcen.c,v
40742 Working file: main/cntrlcen.c
40743 head: 2.1
40744 branch:
40745 description: Code for the control center
40746 ----------------------------
40747 revision 2.1
40748 date: 1995/03/21 14:40:25;  author: john;  state: Exp;
40749 Ifdef'd out the NETWORK code.
40750 ----------------------------
40751 revision 2.0
40752 date: 1995/02/27 11:31:25;  author: john;  state: Exp;
40753 New version 2.0, which has no anonymous unions, builds with
40754 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40755 ----------------------------
40756 revision 1.22
40757 date: 1995/02/11 01:56:14;  author: mike;  state: Exp;
40758 robots don't fire cheat.
40759 ----------------------------
40760 revision 1.21
40761 date: 1995/02/05 13:39:39;  author: mike;  state: Exp;
40762 fix stupid bug in control center firing timing.
40763 ----------------------------
40764 revision 1.20
40765 date: 1995/02/03 17:41:21;  author: mike;  state: Exp;
40766 fix control cen next fire time in multiplayer.
40767 ----------------------------
40768 revision 1.19
40769 date: 1995/01/29 13:46:41;  author: mike;  state: Exp;
40770 adapt to new create_small_fireball_on_object prototype.
40771 ----------------------------
40772 revision 1.18
40773 date: 1995/01/18 16:12:13;  author: mike;  state: Exp;
40774 Make control center aware of a cloaked playerr when he fires.
40775 ----------------------------
40776 revision 1.17
40777 date: 1995/01/12 12:53:44;  author: rob;  state: Exp;
40778 Trying to fix a bug with having cntrlcen in robotarchy games.
40779 ----------------------------
40780 revision 1.16
40781 date: 1994/12/11 12:37:22;  author: mike;  state: Exp;
40782 make control center smarter about firing at cloaked player, don't fire through self, though
40783 it still looks that way due to prioritization problems.
40784 ----------------------------
40785 revision 1.15
40786 date: 1994/12/01 11:34:33;  author: mike;  state: Exp;
40787 fix control center shield strength in multiplayer team games.
40788 ----------------------------
40789 revision 1.14
40790 date: 1994/11/30 15:44:29;  author: mike;  state: Exp;
40791 make cntrlcen harder at higher levels.
40792 ----------------------------
40793 revision 1.13
40794 date: 1994/11/29 22:26:23;  author: yuan;  state: Exp;
40795 Fixed boss bug.
40796 ----------------------------
40797 revision 1.12
40798 date: 1994/11/27 23:12:31;  author: matt;  state: Exp;
40799 Made changes for new mprintf calling convention
40800 ----------------------------
40801 revision 1.11
40802 date: 1994/11/23 17:29:38;  author: mike;  state: Exp;
40803 deal with peculiarities going between net and regular game on boss level.
40804 ----------------------------
40805 revision 1.10
40806 date: 1994/11/18 18:27:15;  author: rob;  state: Exp;
40807 Fixed some bugs with the last version.
40808 ----------------------------
40809 revision 1.9
40810 date: 1994/11/18 17:13:59;  author: mike;  state: Exp;
40811 special case handling for level 8.
40812 ----------------------------
40813 revision 1.8
40814 date: 1994/11/15 12:45:28;  author: mike;  state: Exp;
40815 don't let cntrlcen know where a cloaked player is.
40816 ----------------------------
40817 revision 1.7
40818 date: 1994/11/08 12:18:37;  author: mike;  state: Exp;
40819 small explosions on control center.
40820 ----------------------------
40821 revision 1.6
40822 date: 1994/11/02 17:59:18;  author: rob;  state: Exp;
40823 Changed control centers so they can find people in network games.
40824 Side effect of this is that control centers can find cloaked players.
40825 (see in-code comments for explanation).  
40826 Also added network hooks so control center shots 'sync up'.
40827 ----------------------------
40828 revision 1.5
40829 date: 1994/10/22 14:13:21;  author: mike;  state: Exp;
40830 Make control center stop firing shortly after player dies.
40831 Fix bug: If play from editor and die, tries to initialize non-control center object.
40832 ----------------------------
40833 revision 1.4
40834 date: 1994/10/20 15:17:30;  author: mike;  state: Exp;
40835 Hack for control center inside boss robot.
40836 ----------------------------
40837 revision 1.3
40838 date: 1994/10/20 09:47:46;  author: mike;  state: Exp;
40839 lots stuff.
40840 ----------------------------
40841 revision 1.2
40842 date: 1994/10/17 21:35:09;  author: matt;  state: Exp;
40843 Added support for new Control Center/Main Reactor
40844 ----------------------------
40845 revision 1.1
40846 date: 1994/10/17 20:24:01;  author: matt;  state: Exp;
40847 Initial revision
40848 =============================================================================
40849 RCS file: f:/miner/source/main/cntrlcen.h,v
40850 Working file: main/cntrlcen.h
40851 head: 2.0
40852 branch:
40853 description: Header for cntrlcen.c
40854 ----------------------------
40855 revision 2.0
40856 date: 1995/02/27 11:30:40;  author: john;  state: Exp;
40857 New version 2.0, which has no anonymous unions, builds with
40858 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40859 ----------------------------
40860 revision 1.7
40861 date: 1995/02/01 16:34:14;  author: john;  state: Exp;
40862 Linted.
40863 ----------------------------
40864 revision 1.6
40865 date: 1995/01/03 20:19:14;  author: john;  state: Exp;
40866 Pretty good working version of game save.
40867 ----------------------------
40868 revision 1.5
40869 date: 1994/11/08 12:18:28;  author: mike;  state: Exp;
40870 small explosions on control center.
40871 ----------------------------
40872 revision 1.4
40873 date: 1994/11/02 18:00:12;  author: rob;  state: Exp;
40874 Added extern for Gun_pos array for network hooks.
40875 ----------------------------
40876 revision 1.3
40877 date: 1994/10/20 09:47:37;  author: mike;  state: Exp;
40878 *** empty log message ***
40879 ----------------------------
40880 revision 1.2
40881 date: 1994/10/17 21:35:10;  author: matt;  state: Exp;
40882 Added support for new Control Center/Main Reactor
40883 ----------------------------
40884 revision 1.1
40885 date: 1994/10/17 20:24:28;  author: matt;  state: Exp;
40886 Initial revision
40887 =============================================================================
40888 RCS file: f:/miner/source/main/coindev.c,v
40889 Working file: main/coindev.c
40890 head: 2.0
40891 branch:
40892 description: Routines to read the coin counter.
40893 ----------------------------
40894 revision 2.0
40895 date: 1995/02/27 11:26:39;  author: john;  state: Exp;
40896 New version 2.0, which has no anonymous unions, builds with
40897 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40898 ----------------------------
40899 revision 1.2
40900 date: 1994/09/16 16:15:05;  author: john;  state: Exp;
40901 Added acrade sequencing.
40902 ----------------------------
40903 revision 1.1
40904 date: 1994/09/16 12:56:09;  author: john;  state: Exp;
40905 Initial revision
40906 =============================================================================
40907 RCS file: f:/miner/source/main/coindev.h,v
40908 Working file: main/coindev.h
40909 head: 2.0
40910 branch:
40911 description: Routines to read the coin counter.
40912 ----------------------------
40913 revision 2.0
40914 date: 1995/02/27 11:30:38;  author: john;  state: Exp;
40915 New version 2.0, which has no anonymous unions, builds with
40916 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40917 ----------------------------
40918 revision 1.2
40919 date: 1994/09/16 16:15:10;  author: john;  state: Exp;
40920 Added acrade sequencing.
40921 ----------------------------
40922 revision 1.1
40923 date: 1994/09/16 12:56:24;  author: john;  state: Exp;
40924 Initial revision
40925 =============================================================================
40926 RCS file: f:/miner/source/main/collide.c,v
40927 Working file: main/collide.c
40928 head: 2.5
40929 branch:
40930 description: ----------------------------
40931 revision 2.5
40932 date: 1995/07/26 12:07:46;  author: john;  state: Exp;
40933 Made code that pages in weapon_info->robot_hit_vclip not
40934 page in unless it is a badass weapon.  Took out old functionallity
40935 of using this if no robot exp1_vclip, since all robots have these.
40936 ----------------------------
40937 revision 2.4
40938 date: 1995/03/30 16:36:09;  author: mike;  state: Exp;
40939 text localization.
40940 ----------------------------
40941 revision 2.3
40942 date: 1995/03/24 15:11:13;  author: john;  state: Exp;
40943 Added ugly robot cheat.
40944 ----------------------------
40945 revision 2.2
40946 date: 1995/03/21 14:41:04;  author: john;  state: Exp;
40947 Ifdef'd out the NETWORK code.
40948 ----------------------------
40949 revision 2.1
40950 date: 1995/03/20 18:16:02;  author: john;  state: Exp;
40951 Added code to not store the normals in the segment structure.
40952 ----------------------------
40953 revision 2.0
40954 date: 1995/02/27 11:32:20;  author: john;  state: Exp;
40955 New version 2.0, which has no anonymous unions, builds with
40956 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
40957 ----------------------------
40958 revision 1.289
40959 date: 1995/02/22 13:56:06;  author: allender;  state: Exp;
40960 remove anonymous unions from object structure
40961 ----------------------------
40962 revision 1.288
40963 date: 1995/02/11 15:52:45;  author: rob;  state: Exp;
40964 Included text.h.
40965 ----------------------------
40966 revision 1.287
40967 date: 1995/02/11 15:04:11;  author: rob;  state: Exp;
40968 Localized a string.
40969 ----------------------------
40970 revision 1.286
40971 date: 1995/02/11 14:25:41;  author: rob;  state: Exp;
40972 Added invul. controlcen option.
40973 ----------------------------
40974 revision 1.285
40975 date: 1995/02/06 15:53:00;  author: mike;  state: Exp;
40976 create awareness event for player:wall collision.
40977 ----------------------------
40978 revision 1.284
40979 date: 1995/02/05 23:18:17;  author: matt;  state: Exp;
40980 Deal with objects (such as fusion blobs) that get created already
40981 poking through a wall
40982 ----------------------------
40983 revision 1.283
40984 date: 1995/02/01 17:51:33;  author: mike;  state: Exp;
40985 fusion bolt can now toast multiple proximity bombs.
40986 ----------------------------
40987 revision 1.282
40988 date: 1995/02/01 17:29:20;  author: john;  state: Exp;
40989 Lintized
40990 ----------------------------
40991 revision 1.281
40992 date: 1995/02/01 15:04:00;  author: rob;  state: Exp;
40993 Changed sound of weapons hitting invulnerable players.
40994 ----------------------------
40995 revision 1.280
40996 date: 1995/01/31 16:16:35;  author: mike;  state: Exp;
40997 Separate smart blobs for robot and player.
40998 ----------------------------
40999 revision 1.279
41000 date: 1995/01/29 15:57:10;  author: rob;  state: Exp;
41001 Fixed another bug with robot_request_change calls.
41002 ----------------------------
41003 revision 1.278
41004 date: 1995/01/28 18:15:06;  author: rob;  state: Exp;
41005 Fixed a bug in multi_request_robot_change.
41006 ----------------------------
41007 revision 1.277
41008 date: 1995/01/27 15:15:44;  author: rob;  state: Exp;
41009 Fixing problems with controlcen damage.
41010 ----------------------------
41011 revision 1.276
41012 date: 1995/01/27 15:13:10;  author: mike;  state: Exp;
41013 comment out mprintf.
41014 ----------------------------
41015 revision 1.275
41016 date: 1995/01/26 22:11:51;  author: mike;  state: Exp;
41017 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
41018 ----------------------------
41019 revision 1.274
41020 date: 1995/01/26 18:57:55;  author: rob;  state: Exp;
41021 Changed two uses of digi_play_sample to digi_link_sound_to_pos which
41022 made more sense.
41023 ----------------------------
41024 revision 1.273
41025 date: 1995/01/25 23:37:58;  author: mike;  state: Exp;
41026 make persistent objects not hit player more than once.
41027 Also, make them hit player before degrading them, else they often did 0 damage.
41028 ----------------------------
41029 revision 1.272
41030 date: 1995/01/25 18:23:54;  author: rob;  state: Exp;
41031 Don't let players pick up powerups in exit tunnel.
41032 ----------------------------
41033 revision 1.271
41034 date: 1995/01/25 13:43:18;  author: rob;  state: Exp;
41035 Added robot transfer for player collisions.
41036 Removed mprintf from collide.c on Mike's request.
41037 ----------------------------
41038 revision 1.270
41039 date: 1995/01/25 10:24:01;  author: mike;  state: Exp;
41040 Make sizzle and rock happen in lava even if you're invulnerable.
41041 ----------------------------
41042 revision 1.269
41043 date: 1995/01/22 17:05:33;  author: mike;  state: Exp;
41044 Call multi_robot_request_change when a robot gets whacked by a player or
41045 player weapon, if player_num != Player_num
41046 ----------------------------
41047 revision 1.268
41048 date: 1995/01/21 21:20:28;  author: matt;  state: Exp;
41049 Fixed stupid bug
41050 ----------------------------
41051 revision 1.267
41052 date: 1995/01/21 18:47:47;  author: rob;  state: Exp;
41053 Fixed a really dumb bug with player keys.
41054 ----------------------------
41055 revision 1.266
41056 date: 1995/01/21 17:39:30;  author: matt;  state: Exp;
41057 Cleaned up laser/player hit wall confusions
41058 ----------------------------
41059 revision 1.265
41060 date: 1995/01/19 17:44:42;  author: mike;  state: Exp;
41061 damage_force removed, that information coming from strength field.
41062 ----------------------------
41063 revision 1.264
41064 date: 1995/01/18 17:12:56;  author: rob;  state: Exp;
41065 Fixed control stuff for multiplayer.
41066 ----------------------------
41067 revision 1.263
41068 date: 1995/01/18 16:12:33;  author: mike;  state: Exp;
41069 Make control center aware of a cloaked playerr when he fires.
41070 ----------------------------
41071 revision 1.262
41072 date: 1995/01/17 17:48:42;  author: rob;  state: Exp;
41073 Added key syncing for coop players.
41074 ----------------------------
41075 revision 1.261
41076 date: 1995/01/16 19:30:28;  author: rob;  state: Exp;
41077 Fixed an assert error in fireball.c
41078 ----------------------------
41079 revision 1.260
41080 date: 1995/01/16 19:23:51;  author: mike;  state: Exp;
41081 Say Boss_been_hit if he been hit so he gates appropriately.
41082 ----------------------------
41083 revision 1.259
41084 date: 1995/01/16 11:55:16;  author: mike;  state: Exp;
41085 make enemies become aware of player if he damages control center.
41086 ----------------------------
41087 revision 1.258
41088 date: 1995/01/15 16:42:00;  author: rob;  state: Exp;
41089 Fixed problem with robot bumping damage.
41090 ----------------------------
41091 revision 1.257
41092 date: 1995/01/14 19:16:36;  author: john;  state: Exp;
41093 First version of new bitmap paging code.
41094 ----------------------------
41095 revision 1.256
41096 date: 1995/01/03 17:58:37;  author: rob;  state: Exp;
41097 Fixed scoring problems.
41098 ----------------------------
41099 revision 1.255
41100 date: 1994/12/29 12:41:11;  author: rob;  state: Exp;
41101 Tweaking robot exploding in coop.
41102 ----------------------------
41103 revision 1.254
41104 date: 1994/12/28 10:37:59;  author: rob;  state: Exp;
41105 Fixed ifdef of multibot stuff.
41106 ----------------------------
41107 revision 1.253
41108 date: 1994/12/21 19:03:14;  author: rob;  state: Exp;
41109 Fixing score accounting for multiplayer robots
41110 ----------------------------
41111 revision 1.252
41112 date: 1994/12/21 17:36:31;  author: rob;  state: Exp;
41113 Fix hostage pickup problem in network.
41114 tweaking robot powerup drops.
41115 ----------------------------
41116 revision 1.251
41117 date: 1994/12/19 20:32:34;  author: rob;  state: Exp;
41118 Remove awareness events from player collisions and lasers that are not the console player.
41119 ----------------------------
41120 revision 1.250
41121 date: 1994/12/19 20:01:22;  author: rob;  state: Exp;
41122 Added multibot.h include.
41123 ----------------------------
41124 revision 1.249
41125 date: 1994/12/19 16:36:41;  author: rob;  state: Exp;
41126 Patches damaging of multiplayer robots.
41127 ----------------------------
41128 revision 1.248
41129 date: 1994/12/14 21:15:18;  author: rob;  state: Exp;
41130 play lava hiss across network.
41131 ----------------------------
41132 revision 1.247
41133 date: 1994/12/14 17:09:09;  author: matt;  state: Exp;
41134 Fixed problem with no sound when lasers hit closed walls, like grates.
41135 ----------------------------
41136 revision 1.246
41137 date: 1994/12/14 09:51:49;  author: mike;  state: Exp;
41138 make any weapon cause proximity bomb detonation.
41139 ----------------------------
41140 revision 1.245
41141 date: 1994/12/13 12:55:25;  author: mike;  state: Exp;
41142 change number of proximity bomb powerups which get dropped.
41143 ----------------------------
41144 revision 1.244
41145 date: 1994/12/12 17:17:53;  author: mike;  state: Exp;
41146 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
41147 ----------------------------
41148 revision 1.243
41149 date: 1994/12/12 12:07:51;  author: rob;  state: Exp;
41150 Don't take damage if we're in endlevel sequence.
41151 ----------------------------
41152 revision 1.242
41153 date: 1994/12/11 23:44:52;  author: mike;  state: Exp;
41154 less phys_apply_rot() at higher skill levels.
41155 ----------------------------
41156 revision 1.241
41157 date: 1994/12/11 12:37:02;  author: mike;  state: Exp;
41158 remove stupid robot spinning code.  it was really stupid.  (actually, call here, code in ai.c).
41159 ----------------------------
41160 revision 1.240
41161 date: 1994/12/10 16:44:51;  author: matt;  state: Exp;
41162 Added debugging code to track down door that turns into rock
41163 ----------------------------
41164 revision 1.239
41165 date: 1994/12/09 14:59:19;  author: matt;  state: Exp;
41166 Added system to attach a fireball to another object for rendering purposes,
41167 so the fireball always renders on top of (after) the object.
41168 ----------------------------
41169 revision 1.238
41170 date: 1994/12/09 09:57:02;  author: mike;  state: Exp;
41171 Don't allow robots or their weapons to pass through control center.
41172 ----------------------------
41173 revision 1.237
41174 date: 1994/12/08 15:46:03;  author: mike;  state: Exp;
41175 better robot behavior.
41176 ----------------------------
41177 revision 1.236
41178 date: 1994/12/08 12:32:56;  author: mike;  state: Exp;
41179 make boss dying more interesting.
41180 ----------------------------
41181 revision 1.235
41182 date: 1994/12/07 22:49:15;  author: mike;  state: Exp;
41183 tweak rotation due to collision.
41184 ----------------------------
41185 revision 1.234
41186 date: 1994/12/07 16:44:50;  author: mike;  state: Exp;
41187 make bump sound if supposed to, even if not taking damage.
41188 ----------------------------
41189 revision 1.233
41190 date: 1994/12/07 12:55:08;  author: mike;  state: Exp;
41191 tweak rotvel applied from collisions.
41192 ----------------------------
41193 revision 1.232
41194 date: 1994/12/05 19:30:48;  author: matt;  state: Exp;
41195 Fixed horrible segment over-dereferencing
41196 ----------------------------
41197 revision 1.231
41198 date: 1994/12/05 00:32:15;  author: mike;  state: Exp;
41199 do rotvel on badass and bump collisions.
41200 ----------------------------
41201 revision 1.230
41202 date: 1994/12/03 12:49:22;  author: mike;  state: Exp;
41203 don't play bonk sound when you collide with a volatile wall (like lava).
41204 ----------------------------
41205 revision 1.229
41206 date: 1994/12/02 16:51:09;  author: mike;  state: Exp;
41207 make lava sound only happen at 4 Hz.
41208 ----------------------------
41209 revision 1.228
41210 date: 1994/11/30 23:55:27;  author: rob;  state: Exp;
41211 Fixed a bug where a laser hitting a wall was making 2 sounds.
41212 ----------------------------
41213 revision 1.227
41214 date: 1994/11/30 20:11:00;  author: rob;  state: Exp;
41215 Fixed # of dropped laser powerups.
41216 ----------------------------
41217 revision 1.226
41218 date: 1994/11/30 19:19:03;  author: rob;  state: Exp;
41219 Transmit collission sounds for net games.
41220 ----------------------------
41221 revision 1.225
41222 date: 1994/11/30 16:33:01;  author: mike;  state: Exp;
41223 new boss behavior.
41224 ----------------------------
41225 revision 1.224
41226 date: 1994/11/30 15:44:17;  author: mike;  state: Exp;
41227 /2 on boss smart children damage.
41228 ----------------------------
41229 revision 1.223
41230 date: 1994/11/30 14:03:03;  author: mike;  state: Exp;
41231 hook for claw sounds
41232 ----------------------------
41233 revision 1.222
41234 date: 1994/11/29 20:41:09;  author: matt;  state: Exp;
41235 Deleted a bunch of commented-out lines
41236 ----------------------------
41237 revision 1.221
41238 date: 1994/11/27 23:15:08;  author: matt;  state: Exp;
41239 Made changes for new mprintf calling convention
41240 ----------------------------
41241 revision 1.220
41242 date: 1994/11/19 16:11:28;  author: rob;  state: Exp;
41243 Collision damage with walls or lava is counted as suicides in net games
41244 ----------------------------
41245 revision 1.219
41246 date: 1994/11/19 15:20:41;  author: mike;  state: Exp;
41247 rip out unused code and data
41248 ----------------------------
41249 revision 1.218
41250 date: 1994/11/17 18:44:27;  author: rob;  state: Exp;
41251 Added OBJ_GHOST to list of valid player types to create eggs.
41252 ----------------------------
41253 revision 1.217
41254 date: 1994/11/17 14:57:59;  author: mike;  state: Exp;
41255 moved segment validation functions from editor to main.
41256 ----------------------------
41257 revision 1.216
41258 date: 1994/11/16 23:38:36;  author: mike;  state: Exp;
41259 new improved boss teleportation behavior.
41260 ----------------------------
41261 revision 1.215
41262 date: 1994/11/16 12:16:29;  author: mike;  state: Exp;
41263 Enable collisions between robots.  A hack in fvi.c only does this for robots which lunge to attack (eg, green guy)
41264 ----------------------------
41265 revision 1.214
41266 date: 1994/11/15 16:51:50;  author: mike;  state: Exp;
41267 bump player when he hits a volatile wall.
41268 ----------------------------
41269 revision 1.213
41270 date: 1994/11/12 16:38:44;  author: mike;  state: Exp;
41271 allow flares to open doors.
41272 ----------------------------
41273 revision 1.212
41274 date: 1994/11/10 13:09:19;  author: matt;  state: Exp;
41275 Added support for new run-length-encoded bitmaps
41276 ----------------------------
41277 revision 1.211
41278 date: 1994/11/09 17:05:43;  author: matt;  state: Exp;
41279 Fixed problem with volatile walls
41280 ----------------------------
41281 revision 1.210
41282 date: 1994/11/09 12:11:46;  author: mike;  state: Exp;
41283 only award points if ConsoleObject killed robot.
41284 ----------------------------
41285 revision 1.209
41286 date: 1994/11/09 11:11:03;  author: yuan;  state: Exp;
41287 Made wall volatile if either tmap_num1 or tmap_num2 is a volatile wall.
41288 ----------------------------
41289 revision 1.208
41290 date: 1994/11/08 12:20:15;  author: mike;  state: Exp;
41291 moved do_controlcen_destroyed_stuff from here to cntrlcen.c
41292 ----------------------------
41293 revision 1.207
41294 date: 1994/11/02 23:22:08;  author: mike;  state: Exp;
41295 Make ` (backquote, KEY_LAPOSTRO) tell what wall was hit by laser.
41296 ----------------------------
41297 revision 1.206
41298 date: 1994/11/02 18:03:00;  author: rob;  state: Exp;
41299 Fix control_center_been_hit logic so it only cares about the local player.
41300 Other players take care of their own control center 'ai'.
41301 ----------------------------
41302 revision 1.205
41303 date: 1994/11/01 19:37:33;  author: rob;  state: Exp;
41304 Changed the max # of consussion missiles to 4.
41305 (cause they're lame and clutter things up)
41306 ----------------------------
41307 revision 1.204
41308 date: 1994/11/01 18:06:35;  author: john;  state: Exp;
41309 Tweaked wall banging sound constant.
41310 ----------------------------
41311 revision 1.203
41312 date: 1994/11/01 18:01:40;  author: john;  state: Exp;
41313 Made wall bang less obnoxious, but volume based.
41314 ----------------------------
41315 revision 1.202
41316 date: 1994/11/01 17:11:05;  author: rob;  state: Exp;
41317 Changed some stuff in drop_player_eggs.
41318 ----------------------------
41319 revision 1.201
41320 date: 1994/11/01 12:18:23;  author: john;  state: Exp;
41321 Added sound volume support. Made wall collisions be louder/softer.
41322 ----------------------------
41323 revision 1.200
41324 date: 1994/10/31 13:48:44;  author: rob;  state: Exp;
41325 Fixed bug in opening doors over network/modem.  Added a new message
41326 type to multi.c that communicates door openings across the net. 
41327 Changed includes in multi.c and wall.c to accomplish this.
41328 ----------------------------
41329 revision 1.199
41330 date: 1994/10/28 14:42:52;  author: john;  state: Exp;
41331 Added sound volumes to all sound calls.
41332 ----------------------------
41333 revision 1.198
41334 date: 1994/10/27 16:58:37;  author: allender;  state: Exp;
41335 added demo recording of monitors blowing up
41336 ----------------------------
41337 revision 1.197
41338 date: 1994/10/26 23:20:52;  author: matt;  state: Exp;
41339 Tone down flash even more
41340 ----------------------------
41341 revision 1.196
41342 date: 1994/10/26 23:01:50;  author: matt;  state: Exp;
41343 Toned down red flash when damaged
41344 ----------------------------
41345 revision 1.195
41346 date: 1994/10/26 15:56:29;  author: yuan;  state: Exp;
41347 Tweaked some palette flashes.
41348 ----------------------------
41349 revision 1.194
41350 date: 1994/10/25 11:32:26;  author: matt;  state: Exp;
41351 Fixed bugs with vulcan powerups in mutliplayer
41352 ----------------------------
41353 revision 1.193
41354 date: 1994/10/25 10:51:18;  author: matt;  state: Exp;
41355 Vulcan cannon powerups now contain ammo count
41356 ----------------------------
41357 revision 1.192
41358 date: 1994/10/24 14:14:05;  author: matt;  state: Exp;
41359 Fixed bug in bump_two_objects()
41360 ----------------------------
41361 revision 1.191
41362 date: 1994/10/23 19:17:04;  author: matt;  state: Exp;
41363 Fixed bug with "no key" messages
41364 ----------------------------
41365 revision 1.190
41366 date: 1994/10/22 00:08:46;  author: matt;  state: Exp;
41367 Fixed up problems with bonus & game sequencing
41368 Player doesn't get credit for hostages unless he gets them out alive
41369 ----------------------------
41370 revision 1.189
41371 date: 1994/10/21 20:42:34;  author: mike;  state: Exp;
41372 Clear number of hostages on board between levels.
41373 ----------------------------
41374 revision 1.188
41375 date: 1994/10/20 15:17:43;  author: mike;  state: Exp;
41376 control center in boss handling.
41377 ----------------------------
41378 revision 1.187
41379 date: 1994/10/20 10:09:47;  author: mike;  state: Exp;
41380 Only ever drop 1 shield powerup in multiplayer (as an egg).
41381 ----------------------------
41382 revision 1.186
41383 date: 1994/10/20 09:47:11;  author: mike;  state: Exp;
41384 Fix bug in dropping vulcan ammo in multiplayer.
41385 Also control center stuff.
41386 ----------------------------
41387 revision 1.185
41388 date: 1994/10/19 15:14:32;  author: john;  state: Exp;
41389 Took % hits out of player structure, made %kills work properly.
41390 ----------------------------
41391 revision 1.184
41392 date: 1994/10/19 11:33:16;  author: john;  state: Exp;
41393 Fixed hostage rescued percent.
41394 ----------------------------
41395 revision 1.183
41396 date: 1994/10/19 11:16:49;  author: mike;  state: Exp;
41397 Don't allow crazy josh to open locked doors.
41398 Don't allow weapons to harm parent.
41399 ----------------------------
41400 revision 1.182
41401 date: 1994/10/18 18:37:01;  author: mike;  state: Exp;
41402 No more hostage killing.  Too much stuff to do to integrate into game.
41403 ----------------------------
41404 revision 1.181
41405 date: 1994/10/18 16:37:35;  author: mike;  state: Exp;
41406 Debug function for Yuan: Show seg:side when hit by puny laser if Show_seg_and_side != 0.
41407 ----------------------------
41408 revision 1.180
41409 date: 1994/10/18 10:53:17;  author: mike;  state: Exp;
41410 Support attack type as a property of a robot, not of being == GREEN_GUY.
41411 ----------------------------
41412 revision 1.179
41413 date: 1994/10/17 21:18:36;  author: mike;  state: Exp;
41414 diminish damage player does to robot due to collision, only took 2-3 hits to kill a josh.
41415 ----------------------------
41416 revision 1.178
41417 date: 1994/10/17 20:30:40;  author: john;  state: Exp;
41418 Made player_hostages_rescued or whatever count properly.
41419 ----------------------------
41420 revision 1.177
41421 date: 1994/10/16 12:42:56;  author: mike;  state: Exp;
41422 Trap bogus amount of vulcan ammo dropping.
41423 ----------------------------
41424 revision 1.176
41425 date: 1994/10/15 19:06:51;  author: mike;  state: Exp;
41426 Drop vulcan ammo if player has it, but no vulcan cannon (when he dies).
41427 ----------------------------
41428 revision 1.175
41429 date: 1994/10/13 15:42:06;  author: mike;  state: Exp;
41430 Remove afterburner.
41431 ----------------------------
41432 revision 1.174
41433 date: 1994/10/13 11:12:57;  author: mike;  state: Exp;
41434 Apply damage to robots.  I hosed it a couple weeks ago when I made the green guy special.
41435 =============================================================================
41436 RCS file: f:/miner/source/main/collide.h,v
41437 Working file: main/collide.h
41438 head: 2.0
41439 branch:
41440 description: .
41441 ----------------------------
41442 revision 2.0
41443 date: 1995/02/27 11:28:59;  author: john;  state: Exp;
41444 New version 2.0, which has no anonymous unions, builds with
41445 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41446 ----------------------------
41447 revision 1.23
41448 date: 1995/01/26 22:11:47;  author: mike;  state: Exp;
41449 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
41450 ----------------------------
41451 revision 1.22
41452 date: 1994/12/21 19:03:24;  author: rob;  state: Exp;
41453 Fixing score accounting for multiplayer robots
41454 ----------------------------
41455 revision 1.21
41456 date: 1994/12/21 11:34:56;  author: mike;  state: Exp;
41457 make control center take badass damage.
41458 ----------------------------
41459 revision 1.20
41460 date: 1994/10/29 16:53:16;  author: allender;  state: Exp;
41461 added check_effect_blowup for demo recording to record monitor explosions
41462 ----------------------------
41463 revision 1.19
41464 date: 1994/10/09 13:46:48;  author: mike;  state: Exp;
41465 Make public collide_player_and_powerup.
41466 ----------------------------
41467 revision 1.18
41468 date: 1994/10/05 14:54:29;  author: rob;  state: Exp;
41469 Added serial game support in control center sequence..
41470 ----------------------------
41471 revision 1.17
41472 date: 1994/09/15 16:32:12;  author: mike;  state: Exp;
41473 Prototype collide_player_and_nasty_robot.
41474 ----------------------------
41475 revision 1.16
41476 date: 1994/09/11 15:49:04;  author: mike;  state: Exp;
41477 Prototype for maybe_detonate_weapon.
41478 ----------------------------
41479 revision 1.15
41480 date: 1994/09/09 14:20:07;  author: matt;  state: Exp;
41481 Added prototype for scrape function
41482 ----------------------------
41483 revision 1.14
41484 date: 1994/09/02 14:00:44;  author: matt;  state: Exp;
41485 Simplified explode_object() & mutliple-stage explosions
41486 ----------------------------
41487 revision 1.13
41488 date: 1994/08/18 10:47:35;  author: john;  state: Exp;
41489 Cleaned up game sequencing and player death stuff
41490 in preparation for making the player explode into
41491 pieces when dead.
41492 ----------------------------
41493 revision 1.12
41494 date: 1994/08/17 16:50:08;  author: john;  state: Exp;
41495 Added damaging fireballs, missiles.
41496 ----------------------------
41497 revision 1.11
41498 date: 1994/08/03 16:45:31;  author: mike;  state: Exp;
41499 Prototype a function.
41500 ----------------------------
41501 revision 1.10
41502 date: 1994/08/03 15:17:41;  author: mike;  state: Exp;
41503 make matcen whack on you if it's ready to make a robot.
41504 ----------------------------
41505 revision 1.9
41506 date: 1994/07/22 12:08:03;  author: mike;  state: Exp;
41507 Make robot hit vclip and sound weapon-based until robot dies, then robot-based.
41508 ----------------------------
41509 revision 1.8
41510 date: 1994/07/09 17:36:31;  author: mike;  state: Exp;
41511 Prototype apply_damage_to_robot.
41512 ----------------------------
41513 revision 1.7
41514 date: 1994/07/09 13:20:36;  author: mike;  state: Exp;
41515 Prototype apply_damage_to_player.
41516 ----------------------------
41517 revision 1.6
41518 date: 1994/06/20 23:35:52;  author: john;  state: Exp;
41519 Bunch of stuff.
41520 ----------------------------
41521 revision 1.5
41522 date: 1994/06/17 18:04:03;  author: yuan;  state: Exp;
41523 Added Immaterialization...
41524 Fixed Invulnerability to allow being hit.
41525 ----------------------------
41526 revision 1.4
41527 date: 1994/05/13 20:28:02;  author: john;  state: Exp;
41528 Version II of John's new object code.
41529 ----------------------------
41530 revision 1.3
41531 date: 1994/05/13 12:20:35;  author: john;  state: Exp;
41532 Fixed some potential problems with code using global variables
41533 that are set in fvi. 
41534 ----------------------------
41535 revision 1.2
41536 date: 1994/05/12 23:20:32;  author: john;  state: Exp;
41537 Moved all object collision handling into collide.c.
41538 ----------------------------
41539 revision 1.1
41540 date: 1994/05/12 20:39:09;  author: john;  state: Exp;
41541 Initial revision
41542 =============================================================================
41543 RCS file: f:/miner/source/main/compbit.h,v
41544 Working file: main/compbit.h
41545 head: 2.0
41546 branch:
41547 description: Contains encryption key for bitmaps.tbl
41548 ----------------------------
41549 revision 2.0
41550 date: 1995/02/27 11:28:46;  author: john;  state: Exp;
41551 New version 2.0, which has no anonymous unions, builds with
41552 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41553 ----------------------------
41554 revision 1.3
41555 date: 1994/12/05 15:10:28;  author: allender;  state: Exp;
41556 changed extern prototype definition
41557 ----------------------------
41558 revision 1.2
41559 date: 1994/10/19 15:43:33;  author: allender;  state: Exp;
41560 header file which contains the xor value which is used when encrypting
41561 bitmaps.tbl
41562 ----------------------------
41563 revision 1.1
41564 date: 1994/10/19 13:22:19;  author: allender;  state: Exp;
41565 Initial revision
41566 =============================================================================
41567 RCS file: f:/miner/source/main/config.c,v
41568 Working file: main/config.c
41569 head: 2.2
41570 branch:
41571 description: contains routine(s) to read in the configuration file which contains
41572 game configuration stuff like detail level, sound card, etc
41573 ----------------------------
41574 revision 2.2
41575 date: 1995/03/27 09:42:59;  author: john;  state: Exp;
41576 Added VR Settings in config file.
41577 ----------------------------
41578 revision 2.1
41579 date: 1995/03/16 11:20:40;  author: john;  state: Exp;
41580 Put in support for Crystal Lake soundcard.
41581 ----------------------------
41582 revision 2.0
41583 date: 1995/02/27 11:30:13;  author: john;  state: Exp;
41584 New version 2.0, which has no anonymous unions, builds with
41585 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41586 ----------------------------
41587 revision 1.14
41588 date: 1995/02/11 16:19:36;  author: john;  state: Exp;
41589 Added code to make the default mission be the one last played.
41590 ----------------------------
41591 revision 1.13
41592 date: 1995/01/18 13:23:24;  author: matt;  state: Exp;
41593 Made curtom detail level vars initialize properly at load
41594 ----------------------------
41595 revision 1.12
41596 date: 1995/01/04 22:15:36;  author: matt;  state: Exp;
41597 Fixed stupid bug using scanf() to read bytes
41598 ----------------------------
41599 revision 1.11
41600 date: 1995/01/04 13:14:21;  author: matt;  state: Exp;
41601 Made custom detail level settings save in config file
41602 ----------------------------
41603 revision 1.10
41604 date: 1994/12/12 21:35:09;  author: john;  state: Exp;
41605 *** empty log message ***
41606 ----------------------------
41607 revision 1.9
41608 date: 1994/12/12 21:31:51;  author: john;  state: Exp;
41609 Made volume work better by making sure volumes are valid
41610 and set correctly at program startup.
41611 ----------------------------
41612 revision 1.8
41613 date: 1994/12/12 13:58:01;  author: john;  state: Exp;
41614 MAde -nomusic work.
41615 Fixed GUS hang at exit by deinitializing digi before midi.
41616 ----------------------------
41617 revision 1.7
41618 date: 1994/12/08 10:01:33;  author: john;  state: Exp;
41619 Changed the way the player callsign stuff works.
41620 ----------------------------
41621 revision 1.6
41622 date: 1994/12/01 11:24:07;  author: john;  state: Exp;
41623 Made volume/gamma/joystick sliders all be the same length.  0-->8.
41624 ----------------------------
41625 revision 1.5
41626 date: 1994/11/29 02:01:07;  author: john;  state: Exp;
41627 Added code to look at -volume command line arg.
41628 ----------------------------
41629 revision 1.4
41630 date: 1994/11/14 20:14:11;  author: john;  state: Exp;
41631 Fixed some warnings.
41632 ----------------------------
41633 revision 1.3
41634 date: 1994/11/14 19:51:01;  author: john;  state: Exp;
41635 Added joystick cal values to descent.cfg.
41636 ----------------------------
41637 revision 1.2
41638 date: 1994/11/14 17:53:09;  author: allender;  state: Exp;
41639 read and write descent.cfg file
41640 ----------------------------
41641 revision 1.1
41642 date: 1994/11/14 16:28:08;  author: allender;  state: Exp;
41643 Initial revision
41644 =============================================================================
41645 RCS file: f:/miner/source/main/config.h,v
41646 Working file: main/config.h
41647 head: 2.0
41648 branch:
41649 description: prototype definitions for descent.cfg reading/writing
41650 ----------------------------
41651 revision 2.0
41652 date: 1995/02/27 11:32:48;  author: john;  state: Exp;
41653 New version 2.0, which has no anonymous unions, builds with
41654 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41655 ----------------------------
41656 revision 1.4
41657 date: 1995/02/11 16:20:06;  author: john;  state: Exp;
41658 Added code to make the default mission be the one last played.
41659 ----------------------------
41660 revision 1.3
41661 date: 1994/12/08 10:01:41;  author: john;  state: Exp;
41662 Changed the way the player callsign stuff works.
41663 ----------------------------
41664 revision 1.2
41665 date: 1994/11/14 17:53:17;  author: allender;  state: Exp;
41666 extern definitions for ReadConfigFile and WriteConfigFile
41667 ----------------------------
41668 revision 1.1
41669 date: 1994/11/14 16:56:17;  author: allender;  state: Exp;
41670 Initial revision
41671 =============================================================================
41672 RCS file: f:/miner/source/main/controls.c,v
41673 Working file: main/controls.c
41674 head: 2.0
41675 branch:
41676 description: Code for controlling player movement
41677 ----------------------------
41678 revision 2.0
41679 date: 1995/02/27 11:27:11;  author: john;  state: Exp;
41680 New version 2.0, which has no anonymous unions, builds with
41681 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41682 ----------------------------
41683 revision 1.50
41684 date: 1995/02/22 14:11:19;  author: allender;  state: Exp;
41685 remove anonymous unions from object structure
41686 ----------------------------
41687 revision 1.49
41688 date: 1994/12/15 13:04:10;  author: mike;  state: Exp;
41689 Replace Players[Player_num].time_total references with GameTime.
41690 ----------------------------
41691 revision 1.48
41692 date: 1994/11/27 23:12:13;  author: matt;  state: Exp;
41693 Made changes for new mprintf calling convention
41694 ----------------------------
41695 revision 1.47
41696 date: 1994/11/25 22:15:54;  author: matt;  state: Exp;
41697 Added asserts to try to trap frametime < 0 bug
41698 ----------------------------
41699 revision 1.46
41700 date: 1994/11/16 11:25:40;  author: matt;  state: Exp;
41701 Took out int3's since I determined that the errors are caused by neg frametime
41702 ----------------------------
41703 revision 1.45
41704 date: 1994/11/15 13:07:23;  author: matt;  state: Exp;
41705 Added int3's to try to trap bug
41706 ----------------------------
41707 revision 1.44
41708 date: 1994/10/14 16:18:12;  author: john;  state: Exp;
41709 Made Assert that the object was player just nicely exit
41710 the function.
41711 ----------------------------
41712 revision 1.43
41713 date: 1994/10/13 11:35:25;  author: john;  state: Exp;
41714 Made Thrustmaster FCS Hat work.  Put a background behind the
41715 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
41716 menu to new menu. Made F6 be calibrate joystick.
41717 ----------------------------
41718 revision 1.42
41719 date: 1994/09/29 11:22:02;  author: mike;  state: Exp;
41720 Zero thrust when player dies.
41721 ----------------------------
41722 revision 1.41
41723 date: 1994/09/16 13:10:30;  author: mike;  state: Exp;
41724 Hook in afterburner stuff.
41725 ----------------------------
41726 revision 1.40
41727 date: 1994/09/14 22:21:54;  author: matt;  state: Exp;
41728 Avoid post-death assert
41729 ----------------------------
41730 revision 1.39
41731 date: 1994/09/11 20:30:27;  author: matt;  state: Exp;
41732 Cleaned up thrust vars, changing a few names
41733 ----------------------------
41734 revision 1.38
41735 date: 1994/09/10 15:46:31;  author: john;  state: Exp;
41736 First version of new keyboard configuration.
41737 ----------------------------
41738 revision 1.37
41739 date: 1994/09/07 15:58:12;  author: mike;  state: Exp;
41740 Check for player dead in controls so you can't fire or move after dead, logical, huh?
41741 ----------------------------
41742 revision 1.36
41743 date: 1994/09/06 14:51:56;  author: john;  state: Exp;
41744 Added sensitivity adjustment, fixed bug with joystick button not
41745 staying down.
41746 ----------------------------
41747 revision 1.35
41748 date: 1994/09/01 15:43:26;  author: john;  state: Exp;
41749 Put pitch bak like it was.
41750 ----------------------------
41751 revision 1.34
41752 date: 1994/08/31 18:59:35;  author: john;  state: Exp;
41753 Made rotthrust back like it was.
41754 ----------------------------
41755 revision 1.33
41756 date: 1994/08/31 18:49:17;  author: john;  state: Exp;
41757 Slowed Maxrothrust a bit,
41758 ..
41759 ----------------------------
41760 revision 1.32
41761 date: 1994/08/31 18:32:05;  author: john;  state: Exp;
41762 Lower max rotational thrust
41763 ----------------------------
41764 revision 1.31
41765 date: 1994/08/29 21:18:27;  author: john;  state: Exp;
41766 First version of new keyboard/oystick remapping stuff.
41767 ----------------------------
41768 revision 1.30
41769 date: 1994/08/29 16:18:30;  author: mike;  state: Exp;
41770 trap divide overflow.
41771 ----------------------------
41772 revision 1.29
41773 date: 1994/08/26 14:40:45;  author: john;  state: Exp;
41774 *** empty log message ***
41775 ----------------------------
41776 revision 1.28
41777 date: 1994/08/26 12:23:50;  author: john;  state: Exp;
41778 MAde joystick read up to 15 times per second max.
41779 ----------------------------
41780 revision 1.27
41781 date: 1994/08/26 10:50:59;  author: john;  state: Exp;
41782 Took out Controls_always_stopped.
41783 ----------------------------
41784 revision 1.26
41785 date: 1994/08/26 10:47:27;  author: john;  state: Exp;
41786 *** empty log message ***
41787 ----------------------------
41788 revision 1.25
41789 date: 1994/08/26 10:46:50;  author: john;  state: Exp;
41790 New version of controls.
41791 ----------------------------
41792 revision 1.24
41793 date: 1994/08/25 19:41:44;  author: john;  state: Exp;
41794 *** empty log message ***
41795 ----------------------------
41796 revision 1.23
41797 date: 1994/08/25 18:44:55;  author: john;  state: Exp;
41798 *** empty log message ***
41799 ----------------------------
41800 revision 1.22
41801 date: 1994/08/25 18:43:46;  author: john;  state: Exp;
41802 First revision of new control code.
41803 ----------------------------
41804 revision 1.21
41805 date: 1994/08/24 20:02:46;  author: john;  state: Exp;
41806 Added cyberman support; made keys work key_down_time
41807 returning seconds instead of milliseconds,.
41808 ----------------------------
41809 revision 1.20
41810 date: 1994/08/24 19:00:27;  author: john;  state: Exp;
41811 Changed key_down_time to return fixed seconds instead of
41812 milliseconds.
41813 ----------------------------
41814 revision 1.19
41815 date: 1994/08/19 15:22:12;  author: mike;  state: Exp;
41816 Fix divide overflow in sliding.
41817 ----------------------------
41818 revision 1.18
41819 date: 1994/08/19 14:42:50;  author: john;  state: Exp;
41820 Added joystick sensitivity.
41821 ----------------------------
41822 revision 1.17
41823 date: 1994/08/17 16:50:01;  author: john;  state: Exp;
41824 Added damaging fireballs, missiles.
41825 ----------------------------
41826 revision 1.16
41827 date: 1994/08/12 22:41:54;  author: john;  state: Exp;
41828 Took away Player_stats; added Players array.
41829 ----------------------------
41830 revision 1.15
41831 date: 1994/08/09 16:03:56;  author: john;  state: Exp;
41832 Added network players to editor.
41833 ----------------------------
41834 revision 1.14
41835 date: 1994/07/28 12:33:31;  author: matt;  state: Exp;
41836 Made sliding use thrust, rather than changing velocity directly
41837 ----------------------------
41838 revision 1.13
41839 date: 1994/07/27 20:53:21;  author: matt;  state: Exp;
41840 Added rotational drag & thrust, so turning now has momemtum like moving
41841 ----------------------------
41842 revision 1.12
41843 date: 1994/07/25 10:24:06;  author: john;  state: Exp;
41844 Victor stuff.
41845 ----------------------------
41846 revision 1.11
41847 date: 1994/07/22 17:53:16;  author: john;  state: Exp;
41848 Added better victormax support
41849 ----------------------------
41850 revision 1.10
41851 date: 1994/07/21 21:31:29;  author: john;  state: Exp;
41852 First cheapo version of VictorMaxx tracking.
41853 ----------------------------
41854 revision 1.9
41855 date: 1994/07/15 15:16:18;  author: john;  state: Exp;
41856 Fixed some joystick stuff.
41857 ----------------------------
41858 revision 1.8
41859 date: 1994/07/15 09:32:09;  author: john;  state: Exp;
41860 Changes player movement.
41861 ----------------------------
41862 revision 1.7
41863 date: 1994/07/13 00:14:58;  author: matt;  state: Exp;
41864 Moved all (or nearly all) of the values that affect player movement to 
41865 bitmaps.tbl
41866 ----------------------------
41867 revision 1.6
41868 date: 1994/07/12 12:40:14;  author: matt;  state: Exp;
41869 Revamped physics system
41870 ----------------------------
41871 revision 1.5
41872 date: 1994/07/02 13:50:39;  author: matt;  state: Exp;
41873 Cleaned up includes
41874 ----------------------------
41875 revision 1.4
41876 date: 1994/07/01 10:55:25;  author: john;  state: Exp;
41877 Added analog joystick throttle
41878 ----------------------------
41879 revision 1.3
41880 date: 1994/06/30 20:04:28;  author: john;  state: Exp;
41881 Added -joydef support.
41882 ----------------------------
41883 revision 1.2
41884 date: 1994/06/30 19:01:58;  author: matt;  state: Exp;
41885 Moved flying controls code from physics.c to controls.c
41886 ----------------------------
41887 revision 1.1
41888 date: 1994/06/30 18:41:25;  author: matt;  state: Exp;
41889 Initial revision
41890 =============================================================================
41891 RCS file: f:/miner/source/main/controls.h,v
41892 Working file: main/controls.h
41893 head: 2.0
41894 branch:
41895 description: Header for controls.c
41896 ----------------------------
41897 revision 2.0
41898 date: 1995/02/27 11:27:17;  author: john;  state: Exp;
41899 New version 2.0, which has no anonymous unions, builds with
41900 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41901 ----------------------------
41902 revision 1.4
41903 date: 1994/07/21 18:15:33;  author: matt;  state: Exp;
41904 Ripped out a bunch of unused stuff
41905 ----------------------------
41906 revision 1.3
41907 date: 1994/07/15 09:32:08;  author: john;  state: Exp;
41908 Changes player movement.
41909 ----------------------------
41910 revision 1.2
41911 date: 1994/06/30 19:02:22;  author: matt;  state: Exp;
41912 Moved flying controls code from physics.c to controls.c
41913 ----------------------------
41914 revision 1.1
41915 date: 1994/06/30 18:41:36;  author: matt;  state: Exp;
41916 Initial revision
41917 =============================================================================
41918 RCS file: f:/miner/source/main/credits.c,v
41919 Working file: main/credits.c
41920 head: 2.2
41921 branch:
41922 description: Routines to display the credits.
41923 ----------------------------
41924 revision 2.2
41925 date: 1995/06/14 17:26:08;  author: john;  state: Exp;
41926 Fixed bug with VFX palette not getting loaded for credits, titles.
41927 ----------------------------
41928 revision 2.1
41929 date: 1995/03/06 15:23:30;  author: john;  state: Exp;
41930 New screen techniques.
41931 ----------------------------
41932 revision 2.0
41933 date: 1995/02/27 11:29:25;  author: john;  state: Exp;
41934 New version 2.0, which has no anonymous unions, builds with
41935 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
41936 ----------------------------
41937 revision 1.33
41938 date: 1995/02/11 12:41:56;  author: john;  state: Exp;
41939 Added new song method, with FM bank switching..
41940 ----------------------------
41941 revision 1.32
41942 date: 1995/02/03 14:18:06;  author: john;  state: Exp;
41943 Added columns.
41944 ----------------------------
41945 revision 1.31
41946 date: 1994/12/28 10:43:00;  author: john;  state: Exp;
41947 More VFX tweaking.
41948 ----------------------------
41949 revision 1.30
41950 date: 1994/12/20 18:22:31;  author: john;  state: Exp;
41951 Added code to support non-looping songs, and put
41952 it in for endlevel and credits.
41953 ----------------------------
41954 revision 1.29
41955 date: 1994/12/15 14:23:00;  author: adam;  state: Exp;
41956 fixed timing.
41957 ----------------------------
41958 revision 1.28
41959 date: 1994/12/14 16:56:33;  author: adam;  state: Exp;
41960 *** empty log message ***
41961 ----------------------------
41962 revision 1.27
41963 date: 1994/12/14 12:18:11;  author: adam;  state: Exp;
41964 messed w/timing
41965 ----------------------------
41966 revision 1.26
41967 date: 1994/12/12 22:52:59;  author: matt;  state: Exp;
41968 Fixed little bug
41969 ----------------------------
41970 revision 1.25
41971 date: 1994/12/12 22:49:35;  author: adam;  state: Exp;
41972 *** empty log message ***
41973 ----------------------------
41974 revision 1.24
41975 date: 1994/12/09 23:16:50;  author: john;  state: Exp;
41976 Make credits.txb load.
41977 ----------------------------
41978 revision 1.23
41979 date: 1994/12/09 00:41:54;  author: mike;  state: Exp;
41980 fix hang in automap print screen.
41981 ----------------------------
41982 revision 1.22
41983 date: 1994/12/09 00:34:22;  author: matt;  state: Exp;
41984 Added support for half-height lines
41985 ----------------------------
41986 revision 1.21
41987 date: 1994/12/08 18:36:03;  author: yuan;  state: Exp;
41988 More HOGfile support.
41989 ----------------------------
41990 revision 1.20
41991 date: 1994/12/04 14:48:17;  author: john;  state: Exp;
41992 Made credits restore playing descent.hmp.
41993 ----------------------------
41994 revision 1.19
41995 date: 1994/12/04 14:30:20;  author: john;  state: Exp;
41996 Added hooks for music..
41997 ----------------------------
41998 revision 1.18
41999 date: 1994/12/04 12:06:46;  author: matt;  state: Exp;
42000 Put in support for large font
42001 ----------------------------
42002 revision 1.17
42003 date: 1994/12/01 10:47:27;  author: john;  state: Exp;
42004 Took out code that allows keypresses to change scroll rate.
42005 ----------------------------
42006 revision 1.16
42007 date: 1994/11/30 12:10:52;  author: adam;  state: Exp;
42008 added support for PCX titles/brief screens
42009 ----------------------------
42010 revision 1.15
42011 date: 1994/11/27 23:12:17;  author: matt;  state: Exp;
42012 Made changes for new mprintf calling convention
42013 ----------------------------
42014 revision 1.14
42015 date: 1994/11/27 19:51:46;  author: matt;  state: Exp;
42016 Made screen shots work in a few more places
42017 ----------------------------
42018 revision 1.13
42019 date: 1994/11/18 16:41:51;  author: adam;  state: Exp;
42020 trimmed some more meat for shareware
42021 ----------------------------
42022 revision 1.12
42023 date: 1994/11/10 20:38:29;  author: john;  state: Exp;
42024 Made credits not loop.
42025 ----------------------------
42026 revision 1.11
42027 date: 1994/11/05 15:04:06;  author: john;  state: Exp;
42028 Added non-popup menu for the main menu, so that scores and credits don't have to save
42029 the background.
42030 ----------------------------
42031 revision 1.10
42032 date: 1994/11/05 14:05:52;  author: john;  state: Exp;
42033 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
42034 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
42035 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
42036 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
42037 ----------------------------
42038 revision 1.9
42039 date: 1994/11/04 12:02:32;  author: john;  state: Exp;
42040 Fixed fading transitions a bit more.
42041 ----------------------------
42042 revision 1.8
42043 date: 1994/11/04 11:30:44;  author: john;  state: Exp;
42044 Fixed fade transitions between game/menu/credits.
42045 ----------------------------
42046 revision 1.7
42047 date: 1994/11/04 11:06:32;  author: john;  state: Exp;
42048 Added code to support credit fade table.
42049 ----------------------------
42050 revision 1.6
42051 date: 1994/11/04 10:16:13;  author: john;  state: Exp;
42052 Made the credits fade in/out smoothly on top of a bitmap background.
42053 ----------------------------
42054 revision 1.5
42055 date: 1994/11/03 21:24:12;  author: john;  state: Exp;
42056 Made credits exit the instant a key is pressed.
42057 Made it scroll a bit slower.
42058 ----------------------------
42059 revision 1.4
42060 date: 1994/11/03 21:20:28;  author: john;  state: Exp;
42061 Working.
42062 ----------------------------
42063 revision 1.3
42064 date: 1994/11/03 21:01:24;  author: john;  state: Exp;
42065 First version of credits that works.
42066 ----------------------------
42067 revision 1.2
42068 date: 1994/11/03 20:17:39;  author: john;  state: Exp;
42069 Added initial code for showing credits.
42070 ----------------------------
42071 revision 1.1
42072 date: 1994/11/03 20:09:05;  author: john;  state: Exp;
42073 Initial revision
42074 =============================================================================
42075 RCS file: f:/miner/source/main/credits.h,v
42076 Working file: main/credits.h
42077 head: 2.0
42078 branch:
42079 description: Prototypes for the credit sequence.
42080 ----------------------------
42081 revision 2.0
42082 date: 1995/02/27 11:32:30;  author: john;  state: Exp;
42083 New version 2.0, which has no anonymous unions, builds with
42084 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42085 ----------------------------
42086 revision 1.2
42087 date: 1994/11/03 20:17:40;  author: john;  state: Exp;
42088 Added initial code for showing credits.
42089 ----------------------------
42090 revision 1.1
42091 date: 1994/11/03 20:09:19;  author: john;  state: Exp;
42092 Initial revision
42093 =============================================================================
42094 RCS file: f:/miner/source/main/editor/curves.c,v
42095 Working file: main/editor/curves.c
42096 head: 2.0
42097 branch:
42098 description: curve generation stuff
42099 =============================================================================
42100 RCS file: f:/miner/source/main/editor/dcflib.h,v
42101 Working file: main/editor/dcflib.h
42102 head: 2.0
42103 branch:
42104 description: temporary demo version for mine.c
42105 ----------------------------
42106 revision 2.0
42107 date: 1995/02/27 11:34:25;  author: john;  state: Exp;
42108 Version 2.0! No anonymous unions, Watcom 10.0, with no need
42109 for bitmaps.tbl.
42110 ----------------------------
42111 revision 1.3
42112 date: 1994/02/14 20:14:27;  author: john;  state: Exp;
42113 First version working with new cfile stuff.
42114 ----------------------------
42115 revision 1.2
42116 date: 1994/02/08 13:38:21;  author: yuan;  state: Exp;
42117 mine loading functions converted.
42118 ----------------------------
42119 revision 1.1
42120 date: 1994/02/08 13:23:14;  author: yuan;  state: Exp;
42121 Initial revision
42122 =============================================================================
42123 RCS file: f:/miner/source/main/demo.c,v
42124 Working file: main/demo.c
42125 head: 2.0
42126 branch:
42127 description: Demo playback and recording.
42128 ----------------------------
42129 revision 2.0
42130 date: 1995/02/27 11:30:55;  author: john;  state: Exp;
42131 New version 2.0, which has no anonymous unions, builds with
42132 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42133 ----------------------------
42134 revision 1.19
42135 date: 1994/12/15 13:04:11;  author: mike;  state: Exp;
42136 Replace Players[Player_num].time_total references with GameTime.
42137 ----------------------------
42138 revision 1.18
42139 date: 1994/07/02 13:49:49;  author: matt;  state: Exp;
42140 Cleaned up includes
42141 ----------------------------
42142 revision 1.17
42143 date: 1994/06/24 17:01:37;  author: john;  state: Exp;
42144 Add VFX support; Took Game Sequencing, like EndGame and stuff and
42145 took it out of game.c and into gameseq.c
42146 ----------------------------
42147 revision 1.16
42148 date: 1994/06/20 12:02:10;  author: john;  state: Exp;
42149 Made demo only start if the -autostart switch is on ...
42150 ----------------------------
42151 revision 1.15
42152 date: 1994/05/19 18:53:21;  author: yuan;  state: Exp;
42153 Changing player structure...
42154 ----------------------------
42155 revision 1.14
42156 date: 1994/05/14 17:16:08;  author: matt;  state: Exp;
42157 Got rid of externs in source (non-header) files
42158 ----------------------------
42159 revision 1.13
42160 date: 1994/02/17 11:32:33;  author: matt;  state: Exp;
42161 Changes in object system
42162 ----------------------------
42163 revision 1.12
42164 date: 1994/02/11 21:51:12;  author: matt;  state: Exp;
42165 Made auto_demo off by default
42166 ----------------------------
42167 revision 1.11
42168 date: 1994/02/10 17:45:38;  author: yuan;  state: Exp;
42169 Integrated some hacks which still need to be fixed.
42170 ----------------------------
42171 revision 1.10
42172 date: 1994/02/09 13:42:31;  author: john;  state: Exp;
42173 Fix demo playback bug with Slew_object->pos and
42174 Slew_object->seg_id not being in sync by call
42175 ing check_object_seg after the demo code computes
42176 x,y,z and segment each frame.
42177 ----------------------------
42178 revision 1.9
42179 date: 1994/02/08 12:38:29;  author: yuan;  state: Exp;
42180 fixed demo_loaded variable, so it must be 1 (first time)
42181 to run demo.
42182 ----------------------------
42183 revision 1.8
42184 date: 1994/02/07 17:25:01;  author: yuan;  state: Exp;
42185 Fixed hack, reset time.
42186 ----------------------------
42187 revision 1.7
42188 date: 1994/02/02 09:41:51;  author: mike;  state: Exp;
42189 much auto-demo stuff.
42190 ----------------------------
42191 revision 1.6
42192 date: 1994/02/01 18:04:19;  author: yuan;  state: Exp;
42193 Tweaked gauges
42194 ----------------------------
42195 revision 1.5
42196 date: 1994/02/01 16:26:51;  author: yuan;  state: Exp;
42197 Removed mprintf debugs.
42198 ----------------------------
42199 revision 1.4
42200 date: 1994/02/01 16:21:03;  author: yuan;  state: Exp;
42201 Checked in.
42202 ----------------------------
42203 revision 1.3
42204 date: 1994/02/01 15:14:53;  author: mike;  state: Exp;
42205 Self-running demo code.
42206 ----------------------------
42207 revision 1.2
42208 date: 1994/02/01 11:49:46;  author: mike;  state: Exp;
42209 Demo system.
42210 ----------------------------
42211 revision 1.1
42212 date: 1994/01/31 18:10:23;  author: mike;  state: Exp;
42213 Initial revision
42214 =============================================================================
42215 RCS file: f:/miner/source/main/demo.h,v
42216 Working file: main/demo.h
42217 head: 2.0
42218 branch:
42219 description: Demo constants.
42220 ----------------------------
42221 revision 2.0
42222 date: 1995/02/27 11:27:03;  author: john;  state: Exp;
42223 New version 2.0, which has no anonymous unions, builds with
42224 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42225 ----------------------------
42226 revision 1.5
42227 date: 1994/05/14 17:16:10;  author: matt;  state: Exp;
42228 Got rid of externs in source (non-header) files
42229 ----------------------------
42230 revision 1.4
42231 date: 1994/02/02 09:40:49;  author: mike;  state: Exp;
42232 prototypes, change MAX_DEMO_RECORDS.
42233 ----------------------------
42234 revision 1.3
42235 date: 1994/02/01 15:15:02;  author: mike;  state: Exp;
42236 Self-running demo code.
42237 ----------------------------
42238 revision 1.2
42239 date: 1994/02/01 11:51:49;  author: mike;  state: Exp;
42240 demo functions.
42241 ----------------------------
42242 revision 1.1
42243 date: 1994/01/31 19:15:05;  author: mike;  state: Exp;
42244 Initial revision
42245 =============================================================================
42246 RCS file: f:/miner/source/main/desc_id.h,v
42247 Working file: main/desc_id.h
42248 head: 2.0
42249 branch:
42250 description: Header file which contains string for id and timestamp information
42251 ----------------------------
42252 revision 2.0
42253 date: 1995/02/27 11:29:38;  author: john;  state: Exp;
42254 New version 2.0, which has no anonymous unions, builds with
42255 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42256 ----------------------------
42257 revision 1.3
42258 date: 1994/10/19 09:52:57;  author: allender;  state: Exp;
42259 Added variable for bogus error number return when game exits
42260 ----------------------------
42261 revision 1.2
42262 date: 1994/10/18 16:43:52;  author: allender;  state: Exp;
42263 Added constants for id and time stamping
42264 ----------------------------
42265 revision 1.1
42266 date: 1994/10/17 09:56:47;  author: allender;  state: Exp;
42267 Initial revision
42268 =============================================================================
42269 RCS file: f:/miner/source/main/digi.c,v
42270 Working file: main/digi.c
42271 head: 2.5
42272 branch:
42273 description: Routines to access digital sound hardware
42274 ----------------------------
42275 revision 2.5
42276 date: 1996/01/05 16:51:51;  author: john;  state: Exp;
42277 Made the midi handler lock down to +4K.
42278 ----------------------------
42279 revision 2.4
42280 date: 1996/01/05 16:46:54;  author: john;  state: Exp;
42281 Made code lock down midicallback +4K.
42282 ----------------------------
42283 revision 2.3
42284 date: 1995/05/26 16:16:03;  author: john;  state: Exp;
42285 Split SATURN into define's for requiring cd, using cd, etc.
42286 Also started adding all the Rockwell stuff.
42287 ----------------------------
42288 revision 2.2
42289 date: 1995/03/30 16:36:04;  author: mike;  state: Exp;
42290 text localization.
42291 ----------------------------
42292 revision 2.1
42293 date: 1995/03/15 11:41:23;  author: john;  state: Exp;
42294 Better Saturn CD-ROM support.
42295 ----------------------------
42296 revision 2.0
42297 date: 1995/02/27 11:29:15;  author: john;  state: Exp;
42298 New version 2.0, which has no anonymous unions, builds with
42299 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42300 ----------------------------
42301 revision 1.172
42302 date: 1995/02/15 09:57:53;  author: john;  state: Exp;
42303 Fixed bug with loading new banks while song is playing.
42304 ----------------------------
42305 revision 1.171
42306 date: 1995/02/14 16:36:26;  author: john;  state: Exp;
42307 Fixed bug with countdown voice getting cut off.
42308 ----------------------------
42309 revision 1.170
42310 date: 1995/02/13 20:34:51;  author: john;  state: Exp;
42311 Lintized
42312 ----------------------------
42313 revision 1.169
42314 date: 1995/02/13 15:18:21;  author: john;  state: Exp;
42315 Added code to reset sounds.
42316 ----------------------------
42317 revision 1.168
42318 date: 1995/02/13 12:53:11;  author: john;  state: Exp;
42319 Fixed bug with demos recording wrong volumes.
42320 ----------------------------
42321 revision 1.167
42322 date: 1995/02/11 15:04:29;  author: john;  state: Exp;
42323 Made FM files load as if you have FM card.
42324 ----------------------------
42325 revision 1.166
42326 date: 1995/02/11 12:41:35;  author: john;  state: Exp;
42327 Added new song method, with FM bank switching..
42328 ----------------------------
42329 revision 1.165
42330 date: 1995/02/10 16:24:58;  author: john;  state: Exp;
42331 MAde previous change only reverse for RAP10.
42332 ----------------------------
42333 revision 1.164
42334 date: 1995/02/10 13:47:37;  author: john;  state: Exp;
42335 Made digi init before midi to maybe fix RAP10 bug.
42336 ----------------------------
42337 revision 1.163
42338 date: 1995/02/08 21:05:22;  author: john;  state: Exp;
42339 Added code that loads patches for every FM song.
42340 ----------------------------
42341 revision 1.162
42342 date: 1995/02/03 17:17:51;  author: john;  state: Exp;
42343 Made digi lowmem default to off.
42344 ----------------------------
42345 revision 1.161
42346 date: 1995/02/03 17:08:22;  author: john;  state: Exp;
42347 Changed sound stuff to allow low memory usage.
42348 Also, changed so that Sounds isn't an array of digi_sounds, it
42349 is a ubyte pointing into GameSounds, this way the digi.c code that
42350 locks sounds won't accidentally unlock a sound that is already playing, but
42351 since it's Sounds[soundno] is different, it would erroneously be unlocked.
42352 ----------------------------
42353 revision 1.160
42354 date: 1995/02/01 22:37:06;  author: john;  state: Exp;
42355 Reduced sound travel distance to 1.25 times original.
42356 ----------------------------
42357 revision 1.159
42358 date: 1995/02/01 22:20:41;  author: john;  state: Exp;
42359 Added digi_is_sound_playing.
42360 ----------------------------
42361 revision 1.158
42362 date: 1995/01/28 15:56:56;  author: john;  state: Exp;
42363 Made sounds carry 1.5 times farther.
42364 ----------------------------
42365 revision 1.157
42366 date: 1995/01/27 17:17:09;  author: john;  state: Exp;
42367 Made max sounds relate better to MAX_SOUND_OBJECTS
42368 ----------------------------
42369 revision 1.156
42370 date: 1995/01/25 12:18:06;  author: john;  state: Exp;
42371 Fixed bug with not closing MIDI files when midi volume is 0.
42372 ----------------------------
42373 revision 1.155
42374 date: 1995/01/24 17:52:17;  author: john;  state: Exp;
42375 MAde midi music stop playing when volume is 0.
42376 ----------------------------
42377 revision 1.154
42378 date: 1995/01/21 21:22:31;  author: mike;  state: Exp;
42379 Correct bogus error message.
42380 ----------------------------
42381 revision 1.153
42382 date: 1995/01/17 14:53:38;  author: john;  state: Exp;
42383 IFDEF'D out digital drums.
42384 ----------------------------
42385 revision 1.152
42386 date: 1995/01/11 16:26:50;  author: john;  state: Exp;
42387 Restored MIDI pausing to actually setting volume to 0,.
42388 ----------------------------
42389 revision 1.151
42390 date: 1995/01/10 16:38:46;  author: john;  state: Exp;
42391 Made MIDI songs pause, not lower volume when pausing, and
42392 had to fix an HMI bug by clearing the TRACKINFO array or something.
42393 ----------------------------
42394 revision 1.150
42395 date: 1995/01/05 19:46:27;  author: john;  state: Exp;
42396 Added code to reset the midi tracks to use the ones 
42397 in the midi file before each song is played.
42398 ----------------------------
42399 revision 1.149
42400 date: 1994/12/21 15:08:59;  author: matt;  state: Exp;
42401 Bumped MAX_SOUND_OBJECTS back up to match v1.00 of shareware
42402 ----------------------------
42403 revision 1.148
42404 date: 1994/12/20 18:22:54;  author: john;  state: Exp;
42405 Added code to support non-looping songs, and put
42406 it in for endlevel and credits.
42407 ----------------------------
42408 revision 1.147
42409 date: 1994/12/19 17:58:19;  author: john;  state: Exp;
42410 Changed Assert for too many sounds to gracefully exit.
42411 ----------------------------
42412 revision 1.146
42413 date: 1994/12/14 16:03:27;  author: john;  state: Exp;
42414 Made the digi/midi deinit in reverse order for anything
42415 other than GUS.
42416 ----------------------------
42417 revision 1.145
42418 date: 1994/12/14 14:51:06;  author: john;  state: Exp;
42419 Added assert.
42420 ----------------------------
42421 revision 1.144
42422 date: 1994/12/14 12:14:40;  author: john;  state: Exp;
42423 Relplaced a bunch of (a*b)/c with fixmuldiv
42424 to get rid of a overflow bug mike found.
42425 ----------------------------
42426 revision 1.143
42427 date: 1994/12/13 17:30:16;  author: john;  state: Exp;
42428 Made the timer rate be changed right after initializing it.
42429 ----------------------------
42430 revision 1.142
42431 date: 1994/12/13 14:08:35;  author: john;  state: Exp;
42432 Made Pause key set midi volume to 0.
42433 Made digi_init set midi volume to proper level.
42434 ----------------------------
42435 revision 1.141
42436 date: 1994/12/13 12:42:31;  author: jasen;  state: Exp;
42437 Fixed sound priority bugs... -john
42438 ----------------------------
42439 revision 1.140
42440 date: 1994/12/13 12:11:38;  author: john;  state: Exp;
42441 Added debugging code.
42442 ----------------------------
42443 revision 1.139
42444 date: 1994/12/13 11:45:19;  author: john;  state: Exp;
42445 Disabled interrupts around the midisetvolume because awe32
42446 hangs if you don't.
42447 ----------------------------
42448 revision 1.138
42449 date: 1994/12/13 11:33:45;  author: john;  state: Exp;
42450 MAde so that sounds with volumes > f1_0 don't cut off.
42451 ----------------------------
42452 revision 1.137
42453 date: 1994/12/13 02:24:29;  author: matt;  state: Exp;
42454 digi_init() now doesn't return error when no sound card
42455 ----------------------------
42456 revision 1.136
42457 date: 1994/12/13 00:46:27;  author: john;  state: Exp;
42458 Split digi and midi volume into 2 seperate functions.
42459 ----------------------------
42460 revision 1.135
42461 date: 1994/12/12 22:19:20;  author: john;  state: Exp;
42462 Made general midi versions of files load...
42463 .hmq instead of .hmp.
42464 ----------------------------
42465 revision 1.134
42466 date: 1994/12/12 21:32:49;  author: john;  state: Exp;
42467 Made volume work better by making sure volumes are valid
42468 and set correctly at program startup.
42469 ----------------------------
42470 revision 1.133
42471 date: 1994/12/12 20:52:35;  author: john;  state: Exp;
42472 Fixed bug with pause calling set mastervolume to 0.
42473 ----------------------------
42474 revision 1.132
42475 date: 1994/12/12 20:39:52;  author: john;  state: Exp;
42476 Changed so that instead of using MasterVolume for 
42477 digital sounds, I just scale the volume I play the
42478 sound by.
42479 ----------------------------
42480 revision 1.131
42481 date: 1994/12/12 13:58:21;  author: john;  state: Exp;
42482 MAde -nomusic work.
42483 Fixed GUS hang at exit by deinitializing digi before midi.
42484 ----------------------------
42485 revision 1.130
42486 date: 1994/12/11 23:29:39;  author: john;  state: Exp;
42487 *** empty log message ***
42488 ----------------------------
42489 revision 1.129
42490 date: 1994/12/11 23:18:07;  author: john;  state: Exp;
42491 Added -nomusic.
42492 Added RealFrameTime.
42493 Put in a pause when sound initialization error.
42494 Made controlcen countdown and framerate use RealFrameTime.
42495 ----------------------------
42496 revision 1.128
42497 date: 1994/12/11 13:35:26;  author: john;  state: Exp;
42498 Let sounds play louder than F1_0.  btw, 4*f1_0 is maxed.
42499 ----------------------------
42500 revision 1.127
42501 date: 1994/12/11 00:43:45;  author: john;  state: Exp;
42502 Fixed bug with sounds taking over channels that sound objects own.
42503 ----------------------------
42504 revision 1.126
42505 date: 1994/12/10 20:35:03;  author: john;  state: Exp;
42506 Added digi_kill_sound_linked_to_object.
42507 ----------------------------
42508 revision 1.125
42509 date: 1994/12/10 15:44:20;  author: john;  state: Exp;
42510 Added max_distance passing for sound objects.
42511 ----------------------------
42512 revision 1.124
42513 date: 1994/12/09 20:16:37;  author: john;  state: Exp;
42514 Made it so that when Mike's AI code passes bogus values, the
42515 digi code will saturate them.
42516 ----------------------------
42517 revision 1.123
42518 date: 1994/12/09 17:07:52;  author: john;  state: Exp;
42519 Fixed abrupt fan cutoff.
42520 ----------------------------
42521 revision 1.122
42522 date: 1994/12/08 17:19:14;  author: yuan;  state: Exp;
42523 Cfiling stuff.
42524 ----------------------------
42525 revision 1.121
42526 date: 1994/12/06 19:24:08;  author: john;  state: Exp;
42527 CLosed HMI timer after making our not call it.
42528 ----------------------------
42529 revision 1.120
42530 date: 1994/12/06 19:00:42;  author: john;  state: Exp;
42531 Moved digi_reset_sounds to reset instead of digi_close.
42532 ----------------------------
42533 revision 1.119
42534 date: 1994/12/06 18:23:48;  author: matt;  state: Exp;
42535 Don't pause midi songs, becuase it can lock up
42536 ----------------------------
42537 revision 1.118
42538 date: 1994/12/06 16:07:09;  author: john;  state: Exp;
42539 MAde the gus pats only load if using midi==midi_gus.
42540 ----------------------------
42541 revision 1.117
42542 date: 1994/12/06 10:17:07;  author: john;  state: Exp;
42543 MAde digi_close call reset_sounds.
42544 ----------------------------
42545 revision 1.116
42546 date: 1994/12/05 23:36:50;  author: john;  state: Exp;
42547 Took out lock down of GETDS, because, I, john, was wrong, and it
42548 was me, not the HMI people, that was calling GETDS in an interrupt.
42549 I un-formally apologize to HMI.
42550 ----------------------------
42551 revision 1.115
42552 date: 1994/12/05 22:50:09;  author: john;  state: Exp;
42553 Put in code to lock down GETDS, because the HMI
42554 people don't lock it down, even tho they use it 
42555 in their timerhandler interrupt.
42556 ----------------------------
42557 revision 1.114
42558 date: 1994/12/05 18:54:09;  author: john;  state: Exp;
42559 *** empty log message ***
42560 ----------------------------
42561 revision 1.113
42562 date: 1994/12/05 18:52:11;  author: john;  state: Exp;
42563 Locked down the TrackMap array, since SOS references it in an interupt.
42564 Added -noloadpats command line option.
42565 ----------------------------
42566 revision 1.112
42567 date: 1994/12/05 16:55:45;  author: john;  state: Exp;
42568 Made so that digi_init_System is  called before 
42569 the timer system calls the timer handler.
42570 ----------------------------
42571 revision 1.111
42572 date: 1994/12/05 12:56:19;  author: john;  state: Exp;
42573 Made the intruments patches only load for FM devices.
42574 ----------------------------
42575 revision 1.110
42576 date: 1994/12/05 12:17:16;  author: john;  state: Exp;
42577 Added code that locks/unlocks digital sounds on demand.
42578 ----------------------------
42579 revision 1.109
42580 date: 1994/12/04 14:30:10;  author: john;  state: Exp;
42581 Added hooks for music..
42582 ----------------------------
42583 revision 1.108
42584 date: 1994/12/02 13:58:27;  author: matt;  state: Exp;
42585 Put in Int3()s when try to play a non-existant sound
42586 ----------------------------
42587 revision 1.107
42588 date: 1994/12/02 10:35:58;  author: john;  state: Exp;
42589 Took out loadpats.c
42590 ----------------------------
42591 revision 1.106
42592 date: 1994/12/01 02:22:33;  author: john;  state: Exp;
42593 Incorporated LOADPATS.EXE into our code.
42594 ----------------------------
42595 revision 1.105
42596 date: 1994/12/01 00:59:51;  author: john;  state: Exp;
42597 Fixed some pot. bugs with closing.
42598 ----------------------------
42599 revision 1.104
42600 date: 1994/11/30 23:54:40;  author: rob;  state: Exp;
42601 Tweaked some volume params due to a fix in find_connected_distance.
42602 ----------------------------
42603 revision 1.103
42604 date: 1994/11/30 19:36:44;  author: john;  state: Exp;
42605 Made Gravis Ultrasound work again.  Made the scores blink
42606 at a constant rate.  Revamped the newmenu background storage,
42607 which hopefully fixed some bugs.  Made menus in ame not pause
42608 sound, except for the pause key.               ^== Game!
42609 ----------------------------
42610 revision 1.102
42611 date: 1994/11/30 15:14:25;  author: rob;  state: Exp;
42612 Removed unused include file..
42613 ----------------------------
42614 revision 1.101
42615 date: 1994/11/30 15:08:45;  author: john;  state: Exp;
42616 Changed some open/close stuff with sound.
42617 ----------------------------
42618 revision 1.100
42619 date: 1994/11/29 13:35:41;  author: john;  state: Exp;
42620 Test code.
42621 ----------------------------
42622 revision 1.99
42623 date: 1994/11/29 03:46:32;  author: john;  state: Exp;
42624 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
42625 command line arg.
42626 ----------------------------
42627 revision 1.98
42628 date: 1994/11/28 18:37:59;  author: john;  state: Exp;
42629 Made sample play once work.
42630 ----------------------------
42631 revision 1.97
42632 date: 1994/11/28 18:35:19;  author: john;  state: Exp;
42633 Made the digi_max_channels cut of an old sound instead of
42634 not playing a new sound.
42635 ----------------------------
42636 revision 1.96
42637 date: 1994/11/28 01:32:02;  author: mike;  state: Exp;
42638 use quick form of matrix function.
42639 ----------------------------
42640 revision 1.95
42641 date: 1994/11/27 23:12:14;  author: matt;  state: Exp;
42642 Made changes for new mprintf calling convention
42643 ----------------------------
42644 revision 1.94
42645 date: 1994/11/22 17:13:31;  author: john;  state: Exp;
42646 Fixed bug with the digital drums hanging.
42647 ----------------------------
42648 revision 1.93
42649 date: 1994/11/21 19:09:21;  author: john;  state: Exp;
42650 Made so if digi and midi both 0, same as -nosound.
42651 ----------------------------
42652 revision 1.92
42653 date: 1994/11/21 16:46:46;  author: john;  state: Exp;
42654 Limited digital channels to 10.
42655 ----------------------------
42656 revision 1.91
42657 date: 1994/11/21 16:28:42;  author: john;  state: Exp;
42658 Fixed bug with digi_close hanging.
42659 ----------------------------
42660 revision 1.90
42661 date: 1994/11/21 15:40:28;  author: john;  state: Exp;
42662 Locked down the instrument data.
42663 ----------------------------
42664 revision 1.89
42665 date: 1994/11/21 14:43:55;  author: john;  state: Exp;
42666 Fixed some bugs with setting volumes even when -nosound was used. Duh!
42667 ----------------------------
42668 revision 1.88
42669 date: 1994/11/21 11:55:26;  author: john;  state: Exp;
42670 Fixed some sound pausing in menus bugs.
42671 ----------------------------
42672 revision 1.87
42673 date: 1994/11/21 11:02:21;  author: john;  state: Exp;
42674 Made fan sounds be 1/2 the volume so that they
42675 don'
42676 don't carry as far.
42677 ----------------------------
42678 revision 1.86
42679 date: 1994/11/20 17:47:51;  author: john;  state: Exp;
42680 Fixed a potential bug with sound initializing.
42681 ----------------------------
42682 revision 1.85
42683 date: 1994/11/20 17:29:07;  author: john;  state: Exp;
42684 Fixed bug with page fault during digi_close.
42685 ----------------------------
42686 revision 1.84
42687 date: 1994/11/19 15:19:24;  author: mike;  state: Exp;
42688 rip out unused code and data.
42689 ----------------------------
42690 revision 1.83
42691 date: 1994/11/16 23:38:33;  author: mike;  state: Exp;
42692 new improved boss teleportation behavior.
42693 ----------------------------
42694 revision 1.82
42695 date: 1994/11/14 18:12:46;  author: john;  state: Exp;
42696 Took out some sound objects stuff.
42697 =============================================================================
42698 RCS file: f:/miner/source/main/digi.h,v
42699 Working file: main/digi.h
42700 head: 2.0
42701 branch:
42702 description: Include file for sound hardware.
42703 ----------------------------
42704 revision 2.0
42705 date: 1995/02/27 11:28:40;  author: john;  state: Exp;
42706 New version 2.0, which has no anonymous unions, builds with
42707 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42708 ----------------------------
42709 revision 1.29
42710 date: 1995/02/11 12:42:00;  author: john;  state: Exp;
42711 Added new song method, with FM bank switching..
42712 ----------------------------
42713 revision 1.28
42714 date: 1995/02/03 17:08:26;  author: john;  state: Exp;
42715 Changed sound stuff to allow low memory usage.
42716 Also, changed so that Sounds isn't an array of digi_sounds, it
42717 is a ubyte pointing into GameSounds, this way the digi.c code that
42718 locks sounds won't accidentally unlock a sound that is already playing, but
42719 since it's Sounds[soundno] is different, it would erroneously be unlocked.
42720 ----------------------------
42721 revision 1.27
42722 date: 1995/02/01 22:20:31;  author: john;  state: Exp;
42723 Added digi_is_sound_playing.
42724 ----------------------------
42725 revision 1.26
42726 date: 1994/12/20 18:03:51;  author: john;  state: Exp;
42727 Added loop midi flag.
42728 ----------------------------
42729 revision 1.25
42730 date: 1994/12/13 00:46:14;  author: john;  state: Exp;
42731 Split digi and midi volume into 2 seperate functions.
42732 ----------------------------
42733 revision 1.24
42734 date: 1994/12/10 20:34:53;  author: john;  state: Exp;
42735 Added digi_kill_sound_linked_to_object.
42736 ----------------------------
42737 revision 1.23
42738 date: 1994/12/10 15:59:39;  author: mike;  state: Exp;
42739 Fixed bug.
42740 ----------------------------
42741 revision 1.22
42742 date: 1994/12/10 15:44:35;  author: john;  state: Exp;
42743 Added max_distance passing for sound objects.
42744 ----------------------------
42745 revision 1.21
42746 date: 1994/12/05 12:17:40;  author: john;  state: Exp;
42747 Added code that locks/unlocks digital sounds on demand.
42748 ----------------------------
42749 revision 1.20
42750 date: 1994/11/28 18:34:57;  author: john;  state: Exp;
42751 Made the digi_max_channels cut of an old sound instead of
42752 not playing a new sound.
42753 ----------------------------
42754 revision 1.19
42755 date: 1994/11/14 17:53:56;  author: allender;  state: Exp;
42756 made some digi variables extern
42757 ----------------------------
42758 revision 1.18
42759 date: 1994/10/28 14:42:58;  author: john;  state: Exp;
42760 Added sound volumes to all sound calls.
42761 ----------------------------
42762 revision 1.17
42763 date: 1994/10/11 15:25:37;  author: john;  state: Exp;
42764 Added new function to play a sound once...
42765 ----------------------------
42766 revision 1.16
42767 date: 1994/10/03 20:51:44;  author: john;  state: Exp;
42768 Started added pause sound function; for the network I changed to 
42769 packet structure a bit; never tested, though.
42770 ----------------------------
42771 revision 1.15
42772 date: 1994/10/03 13:09:43;  author: john;  state: Exp;
42773 Added Pause function, but never tested it yet.
42774 ----------------------------
42775 revision 1.14
42776 date: 1994/09/30 10:09:24;  author: john;  state: Exp;
42777 Changed sound stuff... made it so the reseting card doesn't hang, 
42778 made volume change only if sound is installed.
42779 ----------------------------
42780 revision 1.13
42781 date: 1994/09/29 21:13:43;  author: john;  state: Exp;
42782 Added Master volumes for digi and midi. Also took out panning,
42783 because it doesn't work with MasterVolume stuff. 
42784 ----------------------------
42785 revision 1.12
42786 date: 1994/09/29 12:42:34;  author: john;  state: Exp;
42787 Added sidenum to keep track of sound pos. Made sound functions
42788 not do anything if nosound. Made sounds_init delete currently
42789 playing sounds.
42790 ----------------------------
42791 revision 1.11
42792 date: 1994/09/29 12:23:42;  author: john;  state: Exp;
42793 Added digi_kill_sound_linked_to_segment function.
42794 ----------------------------
42795 revision 1.10
42796 date: 1994/09/29 11:59:04;  author: john;  state: Exp;
42797 Added digi_kill_sound
42798 ----------------------------
42799 revision 1.9
42800 date: 1994/09/29 10:37:38;  author: john;  state: Exp;
42801 Added sound objects that dynamicaly change volume,pan.
42802 ----------------------------
42803 revision 1.8
42804 date: 1994/09/28 16:18:37;  author: john;  state: Exp;
42805 Added capability to play midi song.
42806 ----------------------------
42807 revision 1.7
42808 date: 1994/06/17 18:01:41;  author: john;  state: Exp;
42809 A bunch of new stuff by John
42810 ----------------------------
42811 revision 1.6
42812 date: 1994/06/15 19:00:58;  author: john;  state: Exp;
42813 Added the capability to make 3d sounds play just once for the
42814 laser hit wall effects.
42815 ----------------------------
42816 revision 1.5
42817 date: 1994/06/07 10:54:30;  author: john;  state: Exp;
42818 Made key S reinit the sound system.
42819 ----------------------------
42820 revision 1.4
42821 date: 1994/05/09 21:11:39;  author: john;  state: Exp;
42822 Sound changes; pass index instead of pointer to digi routines.
42823 Made laser sound cut off the last laser sound.
42824 ----------------------------
42825 revision 1.3
42826 date: 1994/04/27 11:44:25;  author: john;  state: Exp;
42827 First version of sound! Yay!
42828 ----------------------------
42829 revision 1.2
42830 date: 1994/04/20 21:58:50;  author: john;  state: Exp;
42831 First version of sound stuff... hopefully everything
42832 is commented out because it hangs..
42833 ----------------------------
42834 revision 1.1
42835 date: 1994/04/15 14:25:02;  author: john;  state: Exp;
42836 Initial revision
42837 =============================================================================
42838 RCS file: f:/miner/source/main/digicomp.c,v
42839 Working file: main/digicomp.c
42840 head: 2.0
42841 branch:
42842 description: Routines for manipulating digi samples.
42843 ----------------------------
42844 revision 2.0
42845 date: 1995/02/27 11:33:04;  author: john;  state: Exp;
42846 New version 2.0, which has no anonymous unions, builds with
42847 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42848 ----------------------------
42849 revision 1.2
42850 date: 1994/12/07 18:42:21;  author: john;  state: Exp;
42851 Initial, unused version..
42852 ----------------------------
42853 revision 1.1
42854 date: 1994/12/05 09:37:13;  author: john;  state: Exp;
42855 Initial revision
42856 =============================================================================
42857 RCS file: f:/miner/source/main/digicomp.h,v
42858 Working file: main/digicomp.h
42859 head: 2.0
42860 branch:
42861 description: prototypes for digicomp.c
42862 ----------------------------
42863 revision 2.0
42864 date: 1995/02/27 11:27:54;  author: john;  state: Exp;
42865 New version 2.0, which has no anonymous unions, builds with
42866 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42867 ----------------------------
42868 revision 1.2
42869 date: 1994/12/07 18:42:30;  author: john;  state: Exp;
42870 Initial, unused version..
42871 ----------------------------
42872 revision 1.1
42873 date: 1994/12/05 09:37:23;  author: john;  state: Exp;
42874 Initial revision
42875 =============================================================================
42876 RCS file: f:/miner/source/main/dumpmine.c,v
42877 Working file: main/dumpmine.c
42878 head: 2.1
42879 branch:
42880 description: Functions to dump text description of mine.
42881 An editor-only function, called at mine load time.
42882 To be read by a human to verify the correctness and completeness of a mine.
42883 ----------------------------
42884 revision 2.1
42885 date: 1995/04/06 12:21:50;  author: mike;  state: Exp;
42886 Add texture map information to txm files.
42887 ----------------------------
42888 revision 2.0
42889 date: 1995/02/27 11:26:41;  author: john;  state: Exp;
42890 New version 2.0, which has no anonymous unions, builds with
42891 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
42892 ----------------------------
42893 revision 1.24
42894 date: 1995/01/23 15:34:43;  author: mike;  state: Exp;
42895 New diagnostic code, levels.all stuff.
42896 ----------------------------
42897 revision 1.23
42898 date: 1994/12/20 17:56:36;  author: yuan;  state: Exp;
42899 Multiplayer object capability.
42900 ----------------------------
42901 revision 1.22
42902 date: 1994/11/27 23:12:19;  author: matt;  state: Exp;
42903 Made changes for new mprintf calling convention
42904 ----------------------------
42905 revision 1.21
42906 date: 1994/11/23 12:19:04;  author: mike;  state: Exp;
42907 move out level names, stick in gamesave.
42908 ----------------------------
42909 revision 1.20
42910 date: 1994/11/21 16:54:36;  author: mike;  state: Exp;
42911 oops.
42912 ----------------------------
42913 revision 1.19
42914 date: 1994/11/20 22:12:55;  author: mike;  state: Exp;
42915 Lotsa new stuff in this fine debug file.
42916 ----------------------------
42917 revision 1.18
42918 date: 1994/11/17 14:58:09;  author: mike;  state: Exp;
42919 moved segment validation functions from editor to main.
42920 ----------------------------
42921 revision 1.17
42922 date: 1994/11/15 21:43:02;  author: mike;  state: Exp;
42923 texture usage system.
42924 ----------------------------
42925 revision 1.16
42926 date: 1994/11/15 12:45:59;  author: mike;  state: Exp;
42927 debug code for dumping texture info.
42928 ----------------------------
42929 revision 1.15
42930 date: 1994/11/14 20:47:50;  author: john;  state: Exp;
42931 Attempted to strip out all the code in the game 
42932 directory that uses any ui code.
42933 ----------------------------
42934 revision 1.14
42935 date: 1994/10/14 17:33:38;  author: mike;  state: Exp;
42936 Fix error reporting for number of multiplayer objects in mine.
42937 ----------------------------
42938 revision 1.13
42939 date: 1994/10/14 13:37:46;  author: mike;  state: Exp;
42940 Forgot parameter in fprintf, was getting bogus number of excess keys.
42941 ----------------------------
42942 revision 1.12
42943 date: 1994/10/12 08:05:33;  author: mike;  state: Exp;
42944 Detect keys contained in objects for error checking (txm file).
42945 ----------------------------
42946 revision 1.11
42947 date: 1994/10/10 17:02:08;  author: mike;  state: Exp;
42948 fix fix.
42949 ----------------------------
42950 revision 1.10
42951 date: 1994/10/10 17:00:37;  author: mike;  state: Exp;
42952 Add checking for proper number of players.
42953 ----------------------------
42954 revision 1.9
42955 date: 1994/10/03 23:37:19;  author: mike;  state: Exp;
42956 Adapt to clear and rational understanding of matcens as related to fuelcens as related to something that might work.
42957 ----------------------------
42958 revision 1.8
42959 date: 1994/09/30 17:15:29;  author: mike;  state: Exp;
42960 Fix error message, was telling bogus filename.
42961 ----------------------------
42962 revision 1.7
42963 date: 1994/09/30 11:50:55;  author: mike;  state: Exp;
42964 More diagnostics.
42965 ----------------------------
42966 revision 1.6
42967 date: 1994/09/28 17:31:19;  author: mike;  state: Exp;
42968 More error checking.
42969 ----------------------------
42970 revision 1.5
42971 date: 1994/09/28 11:14:05;  author: mike;  state: Exp;
42972 Better checking on bogus walls.
42973 ----------------------------
42974 revision 1.4
42975 date: 1994/09/28 09:23:50;  author: mike;  state: Exp;
42976 Change some Error messages to Warnings.
42977 ----------------------------
42978 revision 1.3
42979 date: 1994/09/27 17:08:31;  author: mike;  state: Exp;
42980 More mine validation stuff.
42981 ----------------------------
42982 revision 1.2
42983 date: 1994/09/27 15:43:22;  author: mike;  state: Exp;
42984 The amazing code to tell you everything and more about our mines!
42985 ----------------------------
42986 revision 1.1
42987 date: 1994/09/27 10:51:15;  author: mike;  state: Exp;
42988 Initial revision
42989 =============================================================================
42990 RCS file: f:/miner/source/main/editor/editor.h,v
42991 Working file: main/editor/editor.h
42992 head: 2.0
42993 branch:
42994 description: Header for editor functions, data strcutures, etc.
42995 ----------------------------
42996 revision 2.0
42997 date: 1995/02/27 11:34:47;  author: john;  state: Exp;
42998 Version 2.0! No anonymous unions, Watcom 10.0, with no need
42999 for bitmaps.tbl.
43000 ----------------------------
43001 revision 1.113
43002 date: 1994/11/17 14:47:55;  author: mike;  state: Exp;
43003 validation functions moved from editor to game.
43004 ----------------------------
43005 revision 1.112
43006 date: 1994/08/03 10:30:51;  author: mike;  state: Exp;
43007 Prototype Stretch_scale_x and Stretch_scale_y.
43008 ----------------------------
43009 revision 1.111
43010 date: 1994/08/02 14:18:23;  author: mike;  state: Exp;
43011 Clean up dialog boxes.
43012 ----------------------------
43013 revision 1.110
43014 date: 1994/07/28 16:59:45;  author: mike;  state: Exp;
43015 objects containing objects.
43016 ----------------------------
43017 revision 1.109
43018 date: 1994/07/21 12:45:18;  author: mike;  state: Exp;
43019 Add Editor_time_of_day, prototype render_3d_in_big_window, move_object_to_mouse_click.
43020 ----------------------------
43021 revision 1.108
43022 date: 1994/07/20 16:43:33;  author: mike;  state: Exp;
43023 Move a bunch of things here so eobject can access variables in med
43024 ----------------------------
43025 revision 1.107
43026 date: 1994/07/06 16:36:43;  author: mike;  state: Exp;
43027 Prototype draw_world_from_game.
43028 ----------------------------
43029 revision 1.106
43030 date: 1994/06/24 17:04:26;  author: john;  state: Exp;
43031 *** empty log message ***
43032 ----------------------------
43033 revision 1.105
43034 date: 1994/06/08 18:13:53;  author: mike;  state: Exp;
43035 Add prototype for med_validate_segment_all
43036 ----------------------------
43037 revision 1.104
43038 date: 1994/05/23 14:47:59;  author: mike;  state: Exp;
43039 Make current segment be add segment.
43040 ----------------------------
43041 revision 1.103
43042 date: 1994/05/19 23:34:46;  author: mike;  state: Exp;
43043 Change VMAG to be compatible with new uv coordinates in range 0..1.0.
43044 ----------------------------
43045 revision 1.102
43046 date: 1994/05/19 12:10:12;  author: matt;  state: Exp;
43047 Use new vecmat macros and globals
43048 ----------------------------
43049 revision 1.101
43050 date: 1994/05/14 18:00:34;  author: matt;  state: Exp;
43051 Got rid of externs in source (non-header) files
43052 ----------------------------
43053 revision 1.100
43054 date: 1994/05/14 17:18:12;  author: matt;  state: Exp;
43055 Got rid of externs in source (non-header) files
43056 ----------------------------
43057 revision 1.99
43058 date: 1994/05/09 23:33:20;  author: mike;  state: Exp;
43059 Current_group, make med_combine_duplicate_vertices take vlp parameter.
43060 Change med_find_closest_threshold_segment_side take threshold as a parameter.
43061 ----------------------------
43062 revision 1.98
43063 date: 1994/05/06 14:39:46;  author: mike;  state: Exp;
43064 Prototype place_object.
43065 ----------------------------
43066 revision 1.97
43067 date: 1994/05/04 19:16:12;  author: mike;  state: Exp;
43068 Add prototype for Degenerate_segment_found.
43069 ----------------------------
43070 revision 1.96
43071 date: 1994/05/04 13:07:34;  author: matt;  state: Exp;
43072 Moved a bunch of color constants to meddraw.c, which was the only file
43073 that used them.
43074 ----------------------------
43075 revision 1.95
43076 date: 1994/05/03 11:06:08;  author: mike;  state: Exp;
43077 Change VMAG, add constants for SEGSIZEMODE_FREE, etc.
43078 ----------------------------
43079 revision 1.94
43080 date: 1994/05/02 17:56:29;  author: yuan;  state: Exp;
43081 Changed undo_status into array rather than malloced pointers.
43082 ----------------------------
43083 revision 1.93
43084 date: 1994/04/19 18:29:37;  author: matt;  state: Exp;
43085 In wire-frame editor window, draw objects as "spheres"
43086 ----------------------------
43087 revision 1.92
43088 date: 1994/04/13 13:25:12;  author: mike;  state: Exp;
43089 Add constant definitions for each keypad.
43090 ----------------------------
43091 revision 1.91
43092 date: 1994/04/01 11:17:08;  author: yuan;  state: Exp;
43093 Added objects to objpage. Added buttons for easier tmap scrolling.
43094 Objects are selected fully from objpage and add object menu or pad.
43095 ----------------------------
43096 revision 1.90
43097 date: 1994/03/21 16:54:16;  author: yuan;  state: Exp;
43098 Fixed bogus group generated by segment rotation.
43099 ----------------------------
43100 revision 1.89
43101 date: 1994/02/16 13:49:07;  author: mike;  state: Exp;
43102 enable editor to compile out.
43103 ----------------------------
43104 revision 1.88
43105 date: 1994/02/10 16:04:57;  author: mike;  state: Exp;
43106 separate editor based on EDITOR flag.
43107 ----------------------------
43108 revision 1.87
43109 date: 1994/02/08 12:41:29;  author: yuan;  state: Exp;
43110 Added med_load_game function prototype
43111 ----------------------------
43112 revision 1.86
43113 date: 1994/01/14 12:16:04;  author: yuan;  state: Exp;
43114 Fixed function prototype for med_find_closest_threshold_segment_side.
43115 ----------------------------
43116 revision 1.85
43117 date: 1994/01/14 11:58:55;  author: yuan;  state: Exp;
43118 New function in build menu. 
43119 "Punch" through walls to force a joint formation with
43120 closest segment:side, if the closest segment:side allows
43121 a connection.
43122 ----------------------------
43123 revision 1.84
43124 date: 1994/01/06 12:57:47;  author: mike;  state: Exp;
43125 Fix bug in assigning texture maps and uv coordinates to removable wall.
43126 ----------------------------
43127 revision 1.83
43128 date: 1994/01/05 17:51:04;  author: mike;  state: Exp;
43129 Add prototypes for create_removable_wall and remove_removable_wall
43130 ----------------------------
43131 revision 1.82
43132 date: 1994/01/05 09:59:09;  author: yuan;  state: Exp;
43133 Added med_load_pmine function prototype
43134 ----------------------------
43135 revision 1.81
43136 date: 1993/12/16 14:00:46;  author: mike;  state: Exp;
43137 Add Curvert and Curedge.
43138 ----------------------------
43139 revision 1.80
43140 date: 1993/12/14 18:33:07;  author: yuan;  state: Exp;
43141 Added prototype for timed autosave.
43142 ----------------------------
43143 revision 1.79
43144 date: 1993/12/10 14:48:48;  author: mike;  state: Exp;
43145 Kill orthogonal views.
43146 ----------------------------
43147 revision 1.78
43148 date: 1993/12/09 16:27:16;  author: yuan;  state: Exp;
43149 Added toggle for autosave
43150 ----------------------------
43151 revision 1.77
43152 date: 1993/12/09 14:02:52;  author: mike;  state: Exp;
43153 Add prototype for med_combine_duplicate_vertices.
43154 ----------------------------
43155 revision 1.76
43156 date: 1993/12/08 10:59:52;  author: mike;  state: Exp;
43157 Add DisplayCurrentRobotType and Cur_object_index.
43158 ----------------------------
43159 revision 1.75
43160 date: 1993/12/06 18:43:49;  author: matt;  state: Exp;
43161 Changed object loading & handling
43162 ----------------------------
43163 revision 1.74
43164 date: 1993/12/05 22:50:49;  author: matt;  state: Exp;
43165 Reworked include files in an attempt to cut down on build times
43166 ----------------------------
43167 revision 1.73
43168 date: 1993/12/02 17:51:31;  author: john;  state: Exp;
43169 Changed my variable to match Mike's
43170 ----------------------------
43171 revision 1.72
43172 date: 1993/12/02 17:36:26;  author: john;  state: Exp;
43173 added cur_obj_type
43174 ----------------------------
43175 revision 1.71
43176 date: 1993/11/30 17:06:33;  author: mike;  state: Exp;
43177 Add prototype for med_set_vertex.
43178 ----------------------------
43179 revision 1.70
43180 date: 1993/11/29 19:47:11;  author: matt;  state: Exp;
43181 Changed how coordinate axes draw routine gets vertices
43182 Added functions alloc_vert() & free_vert()
43183 =============================================================================
43184 RCS file: f:/miner/source/main/gauges.c,v
43185 Working file: main/gauges.c
43186 head: 2.1
43187 branch:
43188 description: Inferno gauge drivers
43189 ----------------------------
43190 revision 2.1
43191 date: 1995/02/27 13:13:45;  author: john;  state: Exp;
43192 Removed floating point.
43193 ----------------------------
43194 revision 2.0
43195 date: 1995/02/27 11:29:06;  author: john;  state: Exp;
43196 New version 2.0, which has no anonymous unions, builds with
43197 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
43198 ----------------------------
43199 revision 1.203
43200 date: 1995/02/11 01:56:45;  author: mike;  state: Exp;
43201 move up weapons text on fullscreen hud, missiles was offscreen.
43202 ----------------------------
43203 revision 1.202
43204 date: 1995/02/09 13:23:34;  author: rob;  state: Exp;
43205 Added reticle names in demo playback.
43206 ----------------------------
43207 revision 1.201
43208 date: 1995/02/08 19:20:46;  author: rob;  state: Exp;
43209 Show cloaked teammates on H
43210 UD.  Get rid of show ID's in anarchy option.
43211 ----------------------------
43212 revision 1.200
43213 date: 1995/02/07 21:09:00;  author: mike;  state: Exp;
43214 add flashing to invulnerability and cloak on fullscreen.
43215 ----------------------------
43216 revision 1.199
43217 date: 1995/02/02 21:55:57;  author: matt;  state: Exp;
43218 Added new colored key icons for fullscreen
43219 ----------------------------
43220 revision 1.198
43221 date: 1995/01/30 17:17:07;  author: rob;  state: Exp;
43222 Fixed teammate names on hud.
43223 ----------------------------
43224 revision 1.197
43225 date: 1995/01/28 17:40:49;  author: mike;  state: Exp;
43226 fix gauge fontcolor.
43227 ----------------------------
43228 revision 1.196
43229 date: 1995/01/27 17:03:14;  author: mike;  state: Exp;
43230 fix placement of weapon info in multiplayer fullscreen, as per AP request.
43231 ----------------------------
43232 revision 1.195
43233 date: 1995/01/27 11:51:23;  author: rob;  state: Exp;
43234 Put deaths tally into cooperative mode
43235 ----------------------------
43236 revision 1.194
43237 date: 1995/01/27 11:43:24;  author: adam;  state: Exp;
43238 fiddled with key display
43239 ----------------------------
43240 revision 1.193
43241 date: 1995/01/25 23:38:35;  author: mike;  state: Exp;
43242 fix keys on fullscreen.
43243 ----------------------------
43244 revision 1.192
43245 date: 1995/01/24 22:03:28;  author: mike;  state: Exp;
43246 Lotsa hud stuff, put a lot of messages up.
43247 ----------------------------
43248 revision 1.191
43249 date: 1995/01/23 16:47:21;  author: rob;  state: Exp;
43250 Fixed problem with playing extra life noise in coop.
43251 ----------------------------
43252 revision 1.190
43253 date: 1995/01/22 16:00:46;  author: mike;  state: Exp;
43254 remove unneeded string.
43255 ----------------------------
43256 revision 1.189
43257 date: 1995/01/22 15:58:22;  author: mike;  state: Exp;
43258 localization
43259 ----------------------------
43260 revision 1.188
43261 date: 1995/01/20 17:19:45;  author: rob;  state: Exp;
43262 Fixing colors of hud kill list players.
43263 ----------------------------
43264 revision 1.187
43265 date: 1995/01/20 09:19:18;  author: allender;  state: Exp;
43266 record player flags when in CM_FULL_SCREEN
43267 ----------------------------
43268 revision 1.186
43269 date: 1995/01/19 16:29:09;  author: allender;  state: Exp;
43270 made demo recording of weapon change be in this file for shareware only
43271 ----------------------------
43272 revision 1.185
43273 date: 1995/01/19 15:00:33;  author: allender;  state: Exp;
43274 code to record shield, energy, and ammo in fullscreen
43275 ----------------------------
43276 revision 1.184
43277 date: 1995/01/19 13:43:13;  author: matt;  state: Exp;
43278 Fixed "cheater" message on HUD
43279 ----------------------------
43280 revision 1.183
43281 date: 1995/01/18 16:11:58;  author: mike;  state: Exp;
43282 Don't show added scores of 0.
43283 ----------------------------
43284 revision 1.182
43285 date: 1995/01/17 17:42:39;  author: allender;  state: Exp;
43286 do ammo counts in demo recording
43287 ----------------------------
43288 revision 1.181
43289 date: 1995/01/16 17:26:25;  author: rob;  state: Exp;
43290 Fixed problem with coloration of team kill list.
43291 ----------------------------
43292 revision 1.180
43293 date: 1995/01/16 17:22:39;  author: john;  state: Exp;
43294 Made so that KB and framerate don't collide.
43295 ----------------------------
43296 revision 1.179
43297 date: 1995/01/16 14:58:31;  author: matt;  state: Exp;
43298 Changed score_added display to print "Cheater!" when cheats enabled
43299 ----------------------------
43300 revision 1.178
43301 date: 1995/01/15 19:42:07;  author: matt;  state: Exp;
43302 Ripped out hostage faces for registered version
43303 ----------------------------
43304 revision 1.177
43305 date: 1995/01/15 19:25:07;  author: mike;  state: Exp;
43306 show vulcan ammo and secondary ammo in fullscreen view.
43307 ----------------------------
43308 revision 1.176
43309 date: 1995/01/15 13:16:12;  author: john;  state: Exp;
43310 Made so that paging always happens, lowmem just loads less.
43311 Also, make KB load print to hud.
43312 ----------------------------
43313 revision 1.175
43314 date: 1995/01/14 19:17:32;  author: john;  state: Exp;
43315 First version of piggy paging.
43316 ----------------------------
43317 revision 1.174
43318 date: 1995/01/05 21:25:23;  author: rob;  state: Exp;
43319 Re-did some changes lost due to RCS weirdness.
43320 ----------------------------
43321 revision 1.173
43322 date: 1995/01/05 12:22:34;  author: rob;  state: Exp;
43323 Don't show player names for cloaked players.
43324 ----------------------------
43325 revision 1.172
43326 date: 1995/01/04 17:14:50;  author: allender;  state: Exp;
43327 make init_gauges work properly on demo playback
43328 ----------------------------
43329 revision 1.171
43330 date: 1995/01/04 15:04:42;  author: allender;  state: Exp;
43331 new demo calls for registered version
43332 ----------------------------
43333 revision 1.167
43334 date: 1995/01/03 13:03:57;  author: allender;  state: Exp;
43335 pass score points instead of total points.   Added ifdef for
43336 multi_send_score
43337 ----------------------------
43338 revision 1.166
43339 date: 1995/01/03 11:45:02;  author: allender;  state: Exp;
43340 add hook to record player score
43341 ----------------------------
43342 revision 1.165
43343 date: 1995/01/03 11:25:19;  author: allender;  state: Exp;
43344 remove newdemo stuff around score display
43345 ----------------------------
43346 revision 1.163
43347 date: 1995/01/02 21:03:53;  author: rob;  state: Exp;
43348 Fixing up the hud-score-list for coop games.
43349 ----------------------------
43350 revision 1.162
43351 date: 1994/12/31 20:54:40;  author: rob;  state: Exp;
43352 Added coop mode HUD score list.
43353 Added more generic system for player names on HUD.
43354 ----------------------------
43355 revision 1.161
43356 date: 1994/12/30 20:13:01;  author: rob;  state: Exp;
43357 Ifdef reticle names on shareware.
43358 Added robot reticle naming.
43359 ----------------------------
43360 revision 1.160
43361 date: 1994/12/29 17:53:51;  author: mike;  state: Exp;
43362 move up energy/shield in fullscreen to get out of way of kill list.
43363 ----------------------------
43364 revision 1.159
43365 date: 1994/12/29 16:44:05;  author: mike;  state: Exp;
43366 add energy and shield showing.
43367 ----------------------------
43368 revision 1.158
43369 date: 1994/12/28 16:34:29;  author: mike;  state: Exp;
43370 make warning beep go away on Player_is_dead.
43371 ----------------------------
43372 revision 1.157
43373 date: 1994/12/28 10:00:43;  author: allender;  state: Exp;
43374 change in init_gauges to for multiplayer demo playbacks
43375 ----------------------------
43376 revision 1.156
43377 date: 1994/12/27 11:06:46;  author: allender;  state: Exp;
43378 removed some previous code to for demo playback stuff
43379 ----------------------------
43380 revision 1.155
43381 date: 1994/12/23 14:23:06;  author: john;  state: Exp;
43382 Added floating reticle for VR helments.  
43383 ----------------------------
43384 revision 1.154
43385 date: 1994/12/21 12:56:41;  author: allender;  state: Exp;
43386 on multiplayer demo playback, show kills and deaths
43387 ----------------------------
43388 revision 1.153
43389 date: 1994/12/19 20:28:42;  author: rob;  state: Exp;
43390 Get rid of kill list in coop games.
43391 ----------------------------
43392 revision 1.152
43393 date: 1994/12/14 18:06:44;  author: matt;  state: Exp;
43394 Removed compile warnings
43395 ----------------------------
43396 revision 1.151
43397 date: 1994/12/14 15:21:28;  author: rob;  state: Exp;
43398 Made gauges align in status_bar net game.
43399 ----------------------------
43400 revision 1.150
43401 date: 1994/12/12 17:20:33;  author: matt;  state: Exp;
43402 Don't get bonus points when cheating
43403 ----------------------------
43404 revision 1.149
43405 date: 1994/12/12 16:47:00;  author: matt;  state: Exp;
43406 When cheating, get no score.  Change level cheat to prompt for and 
43407 jump to new level.
43408 ----------------------------
43409 revision 1.148
43410 date: 1994/12/12 12:05:45;  author: rob;  state: Exp;
43411 Grey out players who are disconnected.
43412 ----------------------------
43413 revision 1.147
43414 date: 1994/12/09 16:19:48;  author: yuan;  state: Exp;
43415 kill matrix stuff.
43416 ----------------------------
43417 revision 1.146
43418 date: 1994/12/09 16:12:34;  author: rob;  state: Exp;
43419 Fixed up the status bar kills gauges for net play.
43420 ----------------------------
43421 revision 1.145
43422 date: 1994/12/09 01:55:34;  author: rob;  state: Exp;
43423 Added kills list to HUD/status bar.
43424 Added something for Mark.
43425 ----------------------------
43426 revision 1.144
43427 date: 1994/12/08 21:03:30;  author: allender;  state: Exp;
43428 pass old player flags to record_player_flags
43429 ----------------------------
43430 revision 1.143
43431 date: 1994/12/07 22:49:33;  author: mike;  state: Exp;
43432 no homing missile warning during endlevel sequence.
43433 ----------------------------
43434 revision 1.142
43435 date: 1994/12/06 13:55:31;  author: matt;  state: Exp;
43436 Use new rounding func, f2ir()
43437 ----------------------------
43438 revision 1.141
43439 date: 1994/12/03 19:03:37;  author: matt;  state: Exp;
43440 Fixed vulcan ammo HUD message
43441 ----------------------------
43442 revision 1.140
43443 date: 1994/12/03 18:43:18;  author: matt;  state: Exp;
43444 Fixed (hopefully) claok gauge
43445 ----------------------------
43446 revision 1.139
43447 date: 1994/12/03 14:26:21;  author: yuan;  state: Exp;
43448 Fixed dumb bug
43449 ----------------------------
43450 revision 1.138
43451 date: 1994/12/03 14:17:30;  author: yuan;  state: Exp;
43452 Localization 320
43453 =============================================================================
43454 RCS file: f:/miner/source/main/ai.c,v
43455 Working file: main/ai.c
43456 head: 2.11
43457 branch:
43458 description: Autonomous Individual movement.
43459 ----------------------------
43460 revision 2.11
43461 date: 1995/07/09 11:15:48;  author: john;  state: Exp;
43462 Put in Mike's code to fix bug where bosses don't gate in bots after
43463 32767 seconds of playing.
43464 ----------------------------
43465 revision 2.10
43466 date: 1995/06/15 12:31:08;  author: john;  state: Exp;
43467 Fixed bug with cheats getting enabled when you type
43468 the whole alphabet.
43469 ----------------------------
43470 revision 2.9
43471 date: 1995/05/26 16:16:18;  author: john;  state: Exp;
43472 Split SATURN into define's for requiring cd, using cd, etc.
43473 Also started adding all the Rockwell stuff.
43474 ----------------------------
43475 revision 2.8
43476 date: 1995/04/06 15:12:27;  author: john;  state: Exp;
43477 Fixed bug with insane not working.
43478 ----------------------------
43479 revision 2.7
43480 date: 1995/03/30 16:36:44;  author: mike;  state: Exp;
43481 text localization.
43482 ----------------------------
43483 revision 2.6
43484 date: 1995/03/28 11:22:24;  author: john;  state: Exp;
43485 Added cheats to save file. Changed lunacy text.
43486 ----------------------------
43487 revision 2.5
43488 date: 1995/03/27 16:45:07;  author: john;  state: Exp;
43489 Fixed some cheat bugs.  Added astral cheat.
43490 ----------------------------
43491 revision 2.4
43492 date: 1995/03/24 15:29:17;  author: mike;  state: Exp;
43493 add new cheats.
43494 ----------------------------
43495 revision 2.3
43496 date: 1995/03/21 14:39:45;  author: john;  state: Exp;
43497 Ifdef'd out the NETWORK code.
43498 ----------------------------
43499 revision 2.2
43500 date: 1995/03/14 18:24:39;  author: john;  state: Exp;
43501 Force Destination Saturn to use CD-ROM drive.
43502 ----------------------------
43503 revision 2.1
43504 date: 1995/03/06 16:47:14;  author: mike;  state: Exp;
43505 destination saturn
43506 ----------------------------
43507 revision 2.0
43508 date: 1995/02/27 11:30:01;  author: john;  state: Exp;
43509 New version 2.0, which has no anonymous unions, builds with
43510 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
43511 ----------------------------
43512 revision 1.295
43513 date: 1995/02/22 13:23:04;  author: allender;  state: Exp;
43514 remove anonymous unions from object structure
43515 ----------------------------
43516 revision 1.294
43517 date: 1995/02/13 11:00:43;  author: rob;  state: Exp;
43518 Make brain guys high enough to get an open slot.
43519 ----------------------------
43520 revision 1.293
43521 date: 1995/02/13 10:31:55;  author: mike;  state: Exp;
43522 Make brains understand they can't open locked doors.
43523 ----------------------------
43524 revision 1.292
43525 date: 1995/02/13 10:18:01;  author: rob;  state: Exp;
43526 Reduced brain guy's level of awareness to keep him from hogging slots.
43527 ----------------------------
43528 revision 1.291
43529 date: 1995/02/11 12:27:12;  author: mike;  state: Exp;
43530 fix path-to-exit cheat.
43531 ----------------------------
43532 revision 1.290
43533 date: 1995/02/11 01:56:30;  author: mike;  state: Exp;
43534 robots don't fire cheat.
43535 ----------------------------
43536 revision 1.289
43537 date: 1995/02/10 17:15:09;  author: rob;  state: Exp;
43538 Fixed some stuff with 64 awareness stuff.
43539 ----------------------------
43540 revision 1.288
43541 date: 1995/02/10 16:31:32;  author: mike;  state: Exp;
43542 oops.
43543 ----------------------------
43544 revision 1.287
43545 date: 1995/02/10 16:24:45;  author: mike;  state: Exp;
43546 fix the network follow path fix.
43547 ----------------------------
43548 revision 1.286
43549 date: 1995/02/10 16:11:40;  author: mike;  state: Exp;
43550 in serial or modem games, follow path guys don't move if far away and
43551 can't see player.
43552 ----------------------------
43553 revision 1.285
43554 date: 1995/02/09 13:11:35;  author: mike;  state: Exp;
43555 comment out a bunch of mprintfs.
43556 add toaster (drops prox bombs, runs away) to boss gate list.
43557 ----------------------------
43558 revision 1.284
43559 date: 1995/02/08 22:44:53;  author: rob;  state: Exp;
43560 Lowerd anger level for follow path of any sort.
43561 ----------------------------
43562 revision 1.283
43563 date: 1995/02/08 22:30:43;  author: mike;  state: Exp;
43564 lower awareness on station guys if they are returning home (multiplayer).
43565 ----------------------------
43566 revision 1.282
43567 date: 1995/02/08 17:01:06;  author: rob;  state: Exp;
43568 Fixed problem with toasters dropping of proximity bombs.
43569 ----------------------------
43570 revision 1.281
43571 date: 1995/02/08 11:49:35;  author: rob;  state: Exp;
43572 Reduce Green-guy attack awareness level so we don't let him attack us too.
43573 ----------------------------
43574 revision 1.280
43575 date: 1995/02/08 11:37:52;  author: mike;  state: Exp;
43576 Check for failures in call to obj_create.
43577 ----------------------------
43578 revision 1.279
43579 date: 1995/02/07 20:38:46;  author: mike;  state: Exp;
43580 fix toasters in multiplayer
43581 ----------------------------
43582 revision 1.278
43583 date: 1995/02/07 16:51:07;  author: mike;  state: Exp;
43584 fix sound time play bug.
43585 ----------------------------
43586 revision 1.277
43587 date: 1995/02/06 22:33:04;  author: mike;  state: Exp;
43588 make robots follow path better in cooperative/roboarchy.
43589 ----------------------------
43590 revision 1.276
43591 date: 1995/02/06 18:15:42;  author: rob;  state: Exp;
43592 Added forced sends for evasion movemnet.
43593 ----------------------------
43594 revision 1.275
43595 date: 1995/02/06 16:41:22;  author: rob;  state: Exp;
43596 Change some positioning calls.
43597 ----------------------------
43598 revision 1.274
43599 date: 1995/02/06 11:40:33;  author: mike;  state: Exp;
43600 replace some lint-related hacks with clean, proper code.
43601 ----------------------------
43602 revision 1.273
43603 date: 1995/02/04 17:28:19;  author: mike;  state: Exp;
43604 make station guys return better.
43605 ----------------------------
43606 revision 1.272
43607 date: 1995/02/03 17:40:55;  author: mike;  state: Exp;
43608 fix problem with robots falling asleep if you sit in game overnight, not in pause...bah.
43609 ----------------------------
43610 revision 1.271
43611 date: 1995/02/02 21:11:25;  author: rob;  state: Exp;
43612 Tweaking stuff for multiplayer ai.
43613 ----------------------------
43614 revision 1.270
43615 date: 1995/02/02 17:32:06;  author: john;  state: Exp;
43616 Added Hack for Assert that Mike put in after using Lint to find
43617 uninitialized variables.
43618 ----------------------------
43619 revision 1.269
43620 date: 1995/02/02 16:46:31;  author: mike;  state: Exp;
43621 fix boss gating.
43622 ----------------------------
43623 revision 1.268
43624 date: 1995/02/02 16:27:29;  author: mike;  state: Exp;
43625 make boss not put out infinite robots.
43626 ----------------------------
43627 revision 1.267
43628 date: 1995/02/01 21:10:02;  author: mike;  state: Exp;
43629 lint found bug! player_visibility not initialized!
43630 ----------------------------
43631 revision 1.266
43632 date: 1995/02/01 20:51:27;  author: john;  state: Exp;
43633 Lintized
43634 ----------------------------
43635 revision 1.265
43636 date: 1995/02/01 17:14:05;  author: mike;  state: Exp;
43637 fix robot sounds.
43638 ----------------------------
43639 revision 1.264
43640 date: 1995/01/31 16:16:40;  author: mike;  state: Exp;
43641 Comment out "Darn you, John" Int3().
43642 ----------------------------
43643 revision 1.263
43644 date: 1995/01/30 20:55:04;  author: mike;  state: Exp;
43645 fix nonsense in robot firing when a player is cloaked.
43646 ----------------------------
43647 revision 1.262
43648 date: 1995/01/30 17:15:10;  author: rob;  state: Exp;
43649 Fixed problems with bigboss eclip messages.
43650 Tweaked robot position sending for modem purposes.
43651 ----------------------------
43652 revision 1.261
43653 date: 1995/01/30 15:30:31;  author: rob;  state: Exp;
43654 Prevent non-master players from gating in robots.
43655 ----------------------------
43656 revision 1.260
43657 date: 1995/01/30 13:30:55;  author: mike;  state: Exp;
43658 new cases for firing at other players were bogus, could send position
43659 without permission.
43660 ----------------------------
43661 revision 1.259
43662 date: 1995/01/30 13:01:17;  author: mike;  state: Exp;
43663 Make robots fire at player other than one they are controlled by sometimes.
43664 ----------------------------
43665 revision 1.258
43666 date: 1995/01/29 16:09:17;  author: rob;  state: Exp;
43667 Trying to get robots to shoot at non-controlling players.
43668 ----------------------------
43669 revision 1.257
43670 date: 1995/01/29 13:47:05;  author: mike;  state: Exp;
43671 Make boss have more fireballs on death, have until end (though silent at end).
43672 Fix bug which was preventing him from teleporting until hit, so he'd always
43673 be in the same place when the player enters the room.
43674 ----------------------------
43675 revision 1.256
43676 date: 1995/01/28 17:40:18;  author: mike;  state: Exp;
43677 make boss teleport & gate before you see him.
43678 ----------------------------
43679 revision 1.255
43680 date: 1995/01/27 17:02:08;  author: mike;  state: Exp;
43681 move code around, was sending one frame (or worse!) old robot information.
43682 ----------------------------
43683 revision 1.254
43684 date: 1995/01/26 17:02:43;  author: mike;  state: Exp;
43685 make fusion cannon have more chrome, make fusion, mega rock you!
43686 ----------------------------
43687 revision 1.253
43688 date: 1995/01/26 15:11:17;  author: rob;  state: Exp;
43689 Shutup!  I fixed it!
43690 ----------------------------
43691 revision 1.252
43692 date: 1995/01/26 15:08:55;  author: rob;  state: Exp;
43693 Changed robot gating to accomodate multiplayer.
43694 ----------------------------
43695 revision 1.251
43696 date: 1995/01/26 14:49:04;  author: rob;  state: Exp;
43697 Increase awareness level for firing to 94.
43698 ----------------------------
43699 revision 1.250
43700 date: 1995/01/26 12:41:20;  author: mike;  state: Exp;
43701 fix bogus multiplayer code, would send permission without getting permission.
43702 ----------------------------
43703 revision 1.249
43704 date: 1995/01/26 12:23:23;  author: rob;  state: Exp;
43705 Removed defines that were moved to ai.h
43706 ----------------------------
43707 revision 1.248
43708 date: 1995/01/25 23:38:48;  author: mike;  state: Exp;
43709 modify list of robots gated in by super boss.
43710 ----------------------------
43711 revision 1.247
43712 date: 1995/01/25 21:21:13;  author: rob;  state: Exp;
43713 Trying to let robots fire at a player even if they're not in control.
43714 ----------------------------
43715 revision 1.246
43716 date: 1995/01/25 13:50:37;  author: mike;  state: Exp;
43717 Robots make angry sounds.
43718 ----------------------------
43719 revision 1.245
43720 date: 1995/01/25 10:53:47;  author: mike;  state: Exp;
43721 better handling of robots which poke out of mine and try to recover.
43722 ----------------------------
43723 revision 1.244
43724 date: 1995/01/24 22:03:02;  author: mike;  state: Exp;
43725 Tricky code to move a robot to a legal position if he is poking out of
43726 the mine, even if it means moving him to another segment.
43727 ----------------------------
43728 revision 1.243
43729 date: 1995/01/24 20:12:06;  author: rob;  state: Exp;
43730 Changed robot fire awareness level from 74 to 94.
43731 ----------------------------
43732 revision 1.242
43733 date: 1995/01/24 13:22:32;  author: mike;  state: Exp;
43734 make robots accelerate faster, and Difficulty_level dependent.
43735 ----------------------------
43736 revision 1.241
43737 date: 1995/01/24 12:09:39;  author: mike;  state: Exp;
43738 make robots animate in multiplayer.
43739 ----------------------------
43740 revision 1.240
43741 date: 1995/01/21 21:21:10;  author: mike;  state: Exp;
43742 Make boss only gate robots into specified segments.
43743 ----------------------------
43744 revision 1.239
43745 date: 1995/01/20 20:21:26;  author: mike;  state: Exp;
43746 prevent unnecessary boss cloaking.
43747 =============================================================================
43748 RCS file: f:/miner/source/main/effects.h,v
43749 Working file: main/effects.h
43750 head: 2.0
43751 branch:
43752 description: Headerfile for effects.c
43753 ----------------------------
43754 revision 2.0
43755 date: 1995/02/27 11:27:34;  author: john;  state: Exp;
43756 New version 2.0, which has no anonymous unions, builds with
43757 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
43758 ----------------------------
43759 revision 1.15
43760 date: 1994/11/08 21:12:07;  author: matt;  state: Exp;
43761 Added functions to stop & start effects
43762 ----------------------------
43763 revision 1.14
43764 date: 1994/10/13 17:14:11;  author: adam;  state: Exp;
43765 MAX_EFFECTS to 60 (ugh)
43766 ----------------------------
43767 revision 1.13
43768 date: 1994/10/05 10:14:34;  author: adam;  state: Exp;
43769 MAX_EFFECTS to 50
43770 ----------------------------
43771 revision 1.12
43772 date: 1994/10/04 18:59:09;  author: matt;  state: Exp;
43773 Exploding eclips now play eclip while exploding, then switch to static bm
43774 ----------------------------
43775 revision 1.11
43776 date: 1994/10/04 15:17:52;  author: matt;  state: Exp;
43777 Took out references to unused constant
43778 ----------------------------
43779 revision 1.10
43780 date: 1994/09/29 14:15:00;  author: matt;  state: Exp;
43781 Added sounds for eclips (wall effects)
43782 ----------------------------
43783 revision 1.9
43784 date: 1994/09/25 00:40:24;  author: matt;  state: Exp;
43785 Added the ability to make eclips (monitors, fans) which can be blown up
43786 ----------------------------
43787 revision 1.8
43788 date: 1994/08/05 15:55:25;  author: matt;  state: Exp;
43789 Cleaned up effects system, and added alternate effects for after mine
43790 destruction.
43791 ----------------------------
43792 revision 1.7
43793 date: 1994/08/01 23:17:20;  author: matt;  state: Exp;
43794 Add support for animating textures on robots
43795 ----------------------------
43796 revision 1.6
43797 date: 1994/05/19 18:13:18;  author: yuan;  state: Exp;
43798 MAX_EFFECTS increased to 30
43799 ----------------------------
43800 revision 1.5
43801 date: 1994/03/15 16:32:37;  author: yuan;  state: Exp;
43802 Cleaned up bm-loading code.
43803 (Fixed structures too)
43804 ----------------------------
43805 revision 1.4
43806 date: 1994/03/04 17:09:07;  author: yuan;  state: Exp;
43807 New door stuff.
43808 ----------------------------
43809 revision 1.3
43810 date: 1994/01/19 18:22:45;  author: yuan;  state: Exp;
43811 Changed number of effects from 10-20
43812 ----------------------------
43813 revision 1.2
43814 date: 1994/01/11 10:39:07;  author: yuan;  state: Exp;
43815 Special effects new implementation
43816 ----------------------------
43817 revision 1.1
43818 date: 1994/01/10 10:36:14;  author: yuan;  state: Exp;
43819 Initial revision
43820 =============================================================================
43821 RCS file: f:/miner/source/main/editor/eglobal.c,v
43822 Working file: main/editor/eglobal.c
43823 head: 2.0
43824 branch:
43825 description: Globals for editor.
43826 ----------------------------
43827 revision 2.0
43828 date: 1995/02/27 11:35:52;  author: john;  state: Exp;
43829 Version 2.0! No anonymous unions, Watcom 10.0, with no need
43830 for bitmaps.tbl.
43831 ----------------------------
43832 revision 1.35
43833 date: 1994/05/23 14:48:15;  author: mike;  state: Exp;
43834 make current segment be add segment.
43835 ----------------------------
43836 revision 1.34
43837 date: 1994/05/19 12:10:30;  author: matt;  state: Exp;
43838 Use new vecmat macros and globals
43839 ----------------------------
43840 revision 1.33
43841 date: 1994/05/04 19:16:27;  author: mike;  state: Exp;
43842 Add Degenerate_segment_found.
43843 ----------------------------
43844 revision 1.32
43845 date: 1994/05/03 11:02:57;  author: mike;  state: Exp;
43846 Add SegSizeMode.
43847 ----------------------------
43848 revision 1.31
43849 date: 1994/02/16 13:49:12;  author: mike;  state: Exp;
43850 enable editor to compile out.
43851 ----------------------------
43852 revision 1.30
43853 date: 1994/02/10 15:36:35;  author: matt;  state: Exp;
43854 Various changes to make editor compile out.
43855 ----------------------------
43856 revision 1.29
43857 date: 1993/12/16 14:00:33;  author: mike;  state: Exp;
43858 Add Curvert and Curedge.
43859 ----------------------------
43860 revision 1.28
43861 date: 1993/12/10 14:48:28;  author: mike;  state: Exp;
43862 Kill orthogonal views.
43863 ----------------------------
43864 revision 1.27
43865 date: 1993/12/08 10:58:49;  author: mike;  state: Exp;
43866 Add Cur_object_index.
43867 ----------------------------
43868 revision 1.26
43869 date: 1993/12/06 18:45:45;  author: matt;  state: Exp;
43870 Changed object loading & handling
43871 ----------------------------
43872 revision 1.25
43873 date: 1993/12/02 17:51:49;  author: john;  state: Exp;
43874 Changed my variable to match Mike's.
43875 ----------------------------
43876 revision 1.24
43877 date: 1993/12/02 17:36:13;  author: john;  state: Exp;
43878 Added cur_obj_type
43879 ----------------------------
43880 revision 1.23
43881 date: 1993/11/24 14:41:16;  author: mike;  state: Exp;
43882 Add variable Num_tilings.
43883 ----------------------------
43884 revision 1.22
43885 date: 1993/11/12 16:40:55;  author: mike;  state: Exp;
43886 Add Identity_matrix, which is an identity matrix.
43887 ----------------------------
43888 revision 1.21
43889 date: 1993/11/02 13:08:17;  author: mike;  state: Exp;
43890 Add N_warning_segs and Warning_segs
43891 ----------------------------
43892 revision 1.20
43893 date: 1993/11/02 10:31:53;  author: mike;  state: Exp;
43894 Document some variables,
43895 Add Been_visited, removing it from editor.c
43896 Add Selected_segs[] and N_selected_segs.
43897 ----------------------------
43898 revision 1.19
43899 date: 1993/10/31 18:07:48;  author: mike;  state: Exp;
43900 Add variable Lock_view_to_cursegp.
43901 ----------------------------
43902 revision 1.18
43903 date: 1993/10/19 20:54:51;  author: matt;  state: Exp;
43904 Changed/cleaned up window updates
43905 ----------------------------
43906 revision 1.17
43907 date: 1993/10/18 18:35:43;  author: mike;  state: Exp;
43908 Move Highest_vertex_index and Highest_segment_index here because they need
43909 to be globals.
43910 ----------------------------
43911 revision 1.16
43912 date: 1993/10/15 13:10:00;  author: mike;  state: Exp;
43913 Move globals from editor.c to eglobal.c
43914 ----------------------------
43915 revision 1.15
43916 date: 1993/10/14 18:08:55;  author: mike;  state: Exp;
43917 Change use of CONNECTIVITY to MAX_SIDES_PER_SEGMENT
43918 ----------------------------
43919 revision 1.14
43920 date: 1993/10/13 11:11:38;  author: matt;  state: Exp;
43921 Made coordinate axes off by default
43922 ----------------------------
43923 revision 1.13
43924 date: 1993/10/12 09:59:27;  author: mike;  state: Exp;
43925 Remove definition of Side_to_verts, which belongs in the game, not in the editor.
43926 ----------------------------
43927 revision 1.12
43928 date: 1993/10/09 15:48:07;  author: mike;  state: Exp;
43929 Change type of Vertex_active and Side_to_verts from char to byte
43930 Move N_found_segs and Found_segs here from render.c
43931 Add Show_axes_flag.
43932 ----------------------------
43933 revision 1.11
43934 date: 1993/10/06 11:29:58;  author: mike;  state: Exp;
43935 Add prototype for Side_opposite
43936 ----------------------------
43937 revision 1.10
43938 date: 1993/10/05 17:00:17;  author: mike;  state: Exp;
43939 Add Vertex_active.
43940 ----------------------------
43941 revision 1.9
43942 date: 1993/10/04 17:18:16;  author: mike;  state: Exp;
43943 Add variables Markedsegp, Markedside
43944 ----------------------------
43945 revision 1.8
43946 date: 1993/10/02 18:18:02;  author: mike;  state: Exp;
43947 Added Draw_all_segments.  If !0, then all segments are drawn in draw_world.  If not set, then only those segments which
43948 are connected to the first segment are drawn.
43949 ----------------------------
43950 revision 1.7
43951 date: 1993/10/01 10:03:15;  author: mike;  state: Exp;
43952 Fix ordering of vertices on front face: Used to be 0,1,2,3 made it 3,2,1,0
43953 ----------------------------
43954 revision 1.6
43955 date: 1993/09/27 16:04:28;  author: mike;  state: Exp;
43956 Add Side_to_verts to replace _verts, which was local to segment.c
43957 ----------------------------
43958 revision 1.5
43959 date: 1993/09/27 15:20:52;  author: mike;  state: Exp;
43960 Add Curside, which is current side, so we can make a certain side active.
43961 ----------------------------
43962 revision 1.4
43963 date: 1993/09/23 15:01:13;  author: mike;  state: Exp;
43964 Remove game specific variables, put in mglobal.c
43965 ----------------------------
43966 revision 1.3
43967 date: 1993/09/22 10:52:17;  author: mike;  state: Exp;
43968 Add global New_segment
43969 ----------------------------
43970 revision 1.2
43971 date: 1993/09/22 09:41:21;  author: mike;  state: Exp;
43972 Change constand and variable names to conform to coding standards.
43973 ----------------------------
43974 revision 1.1
43975 date: 1993/09/20 17:06:09;  author: mike;  state: Exp;
43976 Initial revision
43977 =============================================================================
43978 RCS file: f:/miner/source/main/editor/ehostage.c,v
43979 Working file: main/editor/ehostage.c
43980 head: 2.0
43981 branch:
43982 description: Routines for placing hostages, etc...
43983 ----------------------------
43984 revision 2.0
43985 date: 1995/02/27 11:35:45;  author: john;  state: Exp;
43986 Version 2.0! No anonymous unions, Watcom 10.0, with no need
43987 for bitmaps.tbl.
43988 ----------------------------
43989 revision 1.17
43990 date: 1995/01/14 19:18:05;  author: john;  state: Exp;
43991 First version of object paging.
43992 ----------------------------
43993 revision 1.16
43994 date: 1994/11/20 14:11:41;  author: matt;  state: Exp;
43995 Show object number in hostage window
43996 ----------------------------
43997 revision 1.15
43998 date: 1994/11/19 19:55:46;  author: matt;  state: Exp;
43999 Added code to full support different hostage head clip & message for
44000 each hostage.
44001 ----------------------------
44002 revision 1.14
44003 date: 1994/10/28 15:03:27;  author: john;  state: Exp;
44004 Made digi_play_sample use volume.
44005 ----------------------------
44006 revision 1.13
44007 date: 1994/10/23 02:11:39;  author: matt;  state: Exp;
44008 Got rid of obsolete hostage_info stuff
44009 ----------------------------
44010 revision 1.12
44011 date: 1994/10/04 13:15:44;  author: john;  state: Exp;
44012 Changed PLAY_SOUND to digi_play_sample.
44013 ----------------------------
44014 revision 1.11
44015 date: 1994/08/02 14:17:28;  author: mike;  state: Exp;
44016 Clean up dialog boxes.
44017 ----------------------------
44018 revision 1.10
44019 date: 1994/07/22 17:19:17;  author: yuan;  state: Exp;
44020 Working on dialog box for refuel/repair/material/control centers.
44021 ----------------------------
44022 revision 1.9
44023 date: 1994/07/06 15:22:34;  author: john;  state: Exp;
44024 Added new sound.
44025 ----------------------------
44026 revision 1.8
44027 date: 1994/07/06 14:26:07;  author: john;  state: Exp;
44028 Added vclip.
44029 ----------------------------
44030 revision 1.7
44031 date: 1994/07/06 13:25:52;  author: john;  state: Exp;
44032 Added compress hostages functions.
44033 ----------------------------
44034 revision 1.6
44035 date: 1994/07/06 12:52:27;  author: john;  state: Exp;
44036 Fixed warnings.
44037 ----------------------------
44038 revision 1.5
44039 date: 1994/07/06 12:43:04;  author: john;  state: Exp;
44040 Made generic messages for hostages.
44041 ----------------------------
44042 revision 1.4
44043 date: 1994/07/06 11:49:01;  author: john;  state: Exp;
44044 Made adding hostage update current object.
44045 ----------------------------
44046 revision 1.3
44047 date: 1994/07/06 10:56:00;  author: john;  state: Exp;
44048 New structures for hostages.
44049 ----------------------------
44050 revision 1.2
44051 date: 1994/07/01 17:57:13;  author: john;  state: Exp;
44052 First version of not-working hostage system
44053 ----------------------------
44054 revision 1.1
44055 date: 1994/07/01 14:21:44;  author: john;  state: Exp;
44056 Initial revision
44057 =============================================================================
44058 RCS file: f:/miner/source/main/editor/ehostage.h,v
44059 Working file: main/editor/ehostage.h
44060 head: 2.0
44061 branch:
44062 description: .
44063 ----------------------------
44064 revision 2.0
44065 date: 1995/02/27 11:35:13;  author: john;  state: Exp;
44066 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44067 for bitmaps.tbl.
44068 ----------------------------
44069 revision 1.2
44070 date: 1994/07/01 17:57:14;  author: john;  state: Exp;
44071 First version of not-working hostage system
44072 ----------------------------
44073 revision 1.1
44074 date: 1994/07/01 14:24:41;  author: john;  state: Exp;
44075 Initial revision
44076 =============================================================================
44077 RCS file: f:/miner/source/main/editor/einit.c,v
44078 Working file: main/editor/einit.c
44079 head: 2.0
44080 branch:
44081 description: Initialization routines for editor.
44082 ----------------------------
44083 revision 2.0
44084 date: 1995/02/27 11:34:24;  author: john;  state: Exp;
44085 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44086 for bitmaps.tbl.
44087 ----------------------------
44088 revision 1.9
44089 date: 1993/09/23 15:01:38;  author: mike;  state: Exp;
44090 *** empty log message ***
44091 ----------------------------
44092 revision 1.8
44093 date: 1993/09/22 10:52:36;  author: mike;  state: Exp;
44094 Move create_new_mine to segment.c, thereby making this a rather unimportant file.
44095 ----------------------------
44096 revision 1.7
44097 date: 1993/09/22 09:41:33;  author: mike;  state: Exp;
44098 Change constant and variable names to conform to coding standards.
44099 ----------------------------
44100 revision 1.6
44101 date: 1993/09/21 15:09:25;  author: mike;  state: Exp;
44102 Make create_new_mine create a multi-segment mine.
44103 ----------------------------
44104 revision 1.5
44105 date: 1993/09/17 16:44:31;  author: mike;  state: Exp;
44106 new create_new_mine
44107 ----------------------------
44108 revision 1.4
44109 date: 1993/09/16 12:50:00;  author: mike;  state: Exp;
44110 Create file.
44111 ----------------------------
44112 revision 1.3
44113 date: 1993/09/15 19:11:20;  author: matt;  state: Exp;
44114 Hacked this to make it work
44115 ----------------------------
44116 revision 1.2
44117 date: 1993/09/15 18:10:54;  author: mike;  state: Exp;
44118 no changes
44119 ----------------------------
44120 revision 1.1
44121 date: 1993/09/15 18:01:39;  author: mike;  state: Exp;
44122 Initial revision
44123 =============================================================================
44124 RCS file: f:/miner/source/main/editor/elight.c,v
44125 Working file: main/editor/elight.c
44126 head: 2.0
44127 branch:
44128 description: Editor lighting functions.
44129 ----------------------------
44130 revision 2.0
44131 date: 1995/02/27 11:35:16;  author: john;  state: Exp;
44132 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44133 for bitmaps.tbl.
44134 ----------------------------
44135 revision 1.21
44136 date: 1994/06/14 16:59:23;  author: mike;  state: Exp;
44137 Fix references to tmap_num2, must strip off orientation bits.
44138 ----------------------------
44139 revision 1.20
44140 date: 1994/05/31 12:31:57;  author: mike;  state: Exp;
44141 fix bug in lighting -- WALL_IS_DOORWAY return value getting ignored,
44142 almost never recursively propagated light.
44143 ----------------------------
44144 revision 1.19
44145 date: 1994/05/19 23:35:12;  author: mike;  state: Exp;
44146 Support uv coordinates in range 0..1.0.
44147 ----------------------------
44148 revision 1.18
44149 date: 1994/05/16 12:05:29;  author: john;  state: Exp;
44150 Made texturemap light be a fix from 0 to 1.
44151 ----------------------------
44152 revision 1.17
44153 date: 1994/05/14 18:00:38;  author: matt;  state: Exp;
44154 Got rid of externs in source (non-header) files
44155 ----------------------------
44156 revision 1.16
44157 date: 1994/05/03 11:04:27;  author: mike;  state: Exp;
44158 Add function to select edge.
44159 ----------------------------
44160 revision 1.15
44161 date: 1994/04/20 17:29:11;  author: yuan;  state: Exp;
44162 Fixed bug where tmaps above 256 don't light properly.
44163 (duh!)
44164 ----------------------------
44165 revision 1.14
44166 date: 1994/03/22 14:20:46;  author: yuan;  state: Exp;
44167 Made texture map 1 also cast light.  (Cumulative with tmap_num2)
44168 ----------------------------
44169 revision 1.13
44170 date: 1994/03/15 16:34:14;  author: yuan;  state: Exp;
44171 Fixed bm loader (might have some changes in walls and switches)
44172 ----------------------------
44173 revision 1.12
44174 date: 1994/02/22 18:55:10;  author: yuan;  state: Exp;
44175 Ambient lighting "shines" on doors too!
44176 ----------------------------
44177 revision 1.11
44178 date: 1994/02/17 12:05:55;  author: matt;  state: Exp;
44179 Got rid of warnings
44180 ----------------------------
44181 revision 1.10
44182 date: 1994/02/16 22:28:03;  author: mike;  state: Exp;
44183 fix ambient lighting and smoothing.
44184 ----------------------------
44185 revision 1.9
44186 date: 1994/02/14 12:05:42;  author: mike;  state: Exp;
44187 change segment data structure.
44188 ----------------------------
44189 revision 1.8
44190 date: 1994/01/26 17:27:45;  author: yuan;  state: Exp;
44191 Still not perfected ambient lighting
44192 ----------------------------
44193 revision 1.7
44194 date: 1994/01/25 17:58:08;  author: yuan;  state: Exp;
44195 Added ambient lighting, and also added fixing bogus segments
44196 functions to the editor... (they don't work fully... need to
44197 check out seguvs.c
44198 ----------------------------
44199 revision 1.6
44200 date: 1994/01/24 11:46:10;  author: yuan;  state: Exp;
44201 *** empty log message ***
44202 ----------------------------
44203 revision 1.5
44204 date: 1994/01/24 11:03:05;  author: yuan;  state: Exp;
44205 Set lgiht maximum added... Changes are still in progress
44206 ----------------------------
44207 revision 1.4
44208 date: 1994/01/18 19:16:07;  author: yuan;  state: Exp;
44209 Added assign default to lighting pad.
44210 ----------------------------
44211 revision 1.3
44212 date: 1993/12/17 12:26:00;  author: mike;  state: Exp;
44213 Add functions for setting light values on whole segment at once.
44214 ----------------------------
44215 revision 1.2
44216 date: 1993/12/16 16:56:12;  author: mike;  state: Exp;
44217 Add new texture map lighting control functions.
44218 ----------------------------
44219 revision 1.1
44220 date: 1993/12/16 13:21:50;  author: mike;  state: Exp;
44221 Initial revision
44222 =============================================================================
44223 RCS file: f:/miner/source/main/endlevel.c,v
44224 Working file: main/endlevel.c
44225 head: 2.2
44226 branch:
44227 description: Code for rendering external scenes
44228 ----------------------------
44229 revision 2.2
44230 date: 1995/03/21 14:40:14;  author: john;  state: Exp;
44231 Ifdef'd out the NETWORK code.
44232 ----------------------------
44233 revision 2.1
44234 date: 1995/03/20 18:15:50;  author: john;  state: Exp;
44235 Added code to not store the normals in the segment structure.
44236 ----------------------------
44237 revision 2.0
44238 date: 1995/02/27 11:30:42;  author: john;  state: Exp;
44239 New version 2.0, which has no anonymous unions, builds with
44240 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
44241 ----------------------------
44242 revision 1.80
44243 date: 1995/02/22 13:24:45;  author: john;  state: Exp;
44244 Removed the vecmat anonymous unions.
44245 ----------------------------
44246 revision 1.79
44247 date: 1995/02/11 12:41:54;  author: john;  state: Exp;
44248 Added new song method, with FM bank switching..
44249 ----------------------------
44250 revision 1.78
44251 date: 1995/02/08 11:37:41;  author: mike;  state: Exp;
44252 Check for failures in call to obj_create.
44253 ----------------------------
44254 revision 1.77
44255 date: 1995/02/05 22:09:49;  author: matt;  state: Exp;
44256 Switch out of rear view when starting endlevel sequence
44257 ----------------------------
44258 revision 1.76
44259 date: 1995/01/30 18:08:28;  author: rob;  state: Exp;
44260 Add palette fade out before ending level on special missions.
44261 ----------------------------
44262 revision 1.75
44263 date: 1995/01/29 16:19:19;  author: rob;  state: Exp;
44264 Fixed endlevel for custom missions.
44265 ----------------------------
44266 revision 1.74
44267 date: 1995/01/26 12:18:10;  author: rob;  state: Exp;
44268 Changed calling convention of network_do_frame.
44269 ----------------------------
44270 revision 1.73
44271 date: 1995/01/21 16:50:03;  author: matt;  state: Exp;
44272 Made endlevel work with new mission stuff
44273 ----------------------------
44274 revision 1.72
44275 date: 1994/12/20 18:22:51;  author: john;  state: Exp;
44276 Added code to support non-looping songs, and put
44277 it in for endlevel and credits.
44278 ----------------------------
44279 revision 1.71
44280 date: 1994/12/15 12:23:58;  author: matt;  state: Exp;
44281 Added check for failure to create camera object
44282 ----------------------------
44283 revision 1.70
44284 date: 1994/12/15 03:05:28;  author: matt;  state: Exp;
44285 Added error checking for NULL return from object_create_explosion()
44286 ----------------------------
44287 revision 1.69
44288 date: 1994/12/12 21:41:38;  author: matt;  state: Exp;
44289 Don't start endlevel if OF_SHOULD_BE_DEAD is set for player
44290 ----------------------------
44291 revision 1.68
44292 date: 1994/12/12 15:44:54;  author: rob;  state: Exp;
44293 Rolled back a change to endlevel_start that caused more bugs than
44294 it fixed.
44295 ----------------------------
44296 revision 1.67
44297 date: 1994/12/12 12:08:33;  author: rob;  state: Exp;
44298 IF a player is dead upon entering the tunnel, make them not dead.  Not perfect solution
44299 but avoids some last-minute weirdness we want to fix.  This should be revisited in new
44300 versions if possible!
44301 ----------------------------
44302 revision 1.66
44303 date: 1994/12/11 22:02:13;  author: allender;  state: Exp;
44304 made endlevel data loading work with .txb encoded format (made with
44305 compbit -i level0?.end -o level0?.txb)
44306 ----------------------------
44307 revision 1.65
44308 date: 1994/12/11 20:32:47;  author: matt;  state: Exp;
44309 Made camera transition happen 1/3 of the way through exit tunnel
44310 ----------------------------
44311 revision 1.64
44312 date: 1994/12/08 20:56:27;  author: john;  state: Exp;
44313 More cfile stuff.
44314 ----------------------------
44315 revision 1.63
44316 date: 1994/12/07 17:00:52;  author: rob;  state: Exp;
44317 Trying to fix homing tone warning when in exit tunnel.
44318 ----------------------------
44319 revision 1.62
44320 date: 1994/12/06 13:24:47;  author: matt;  state: Exp;
44321 Made exit model come out of bitmaps.tbl
44322 ----------------------------
44323 revision 1.61
44324 date: 1994/12/06 12:06:22;  author: matt;  state: Exp;
44325 Fixed/cleaned up satellite (planet/sun) code
44326 ----------------------------
44327 revision 1.60
44328 date: 1994/12/05 13:37:12;  author: adam;  state: Exp;
44329 removed slew-mode
44330 ----------------------------
44331 revision 1.59
44332 date: 1994/12/05 12:49:37;  author: matt;  state: Exp;
44333 Made satellite a rod (instead of a plane old non-rotating bitmap), and
44334 made the size settable in the .end file
44335 ----------------------------
44336 revision 1.58
44337 date: 1994/12/04 21:40:00;  author: matt;  state: Exp;
44338 Added explosion sounds
44339 ----------------------------
44340 revision 1.57
44341 date: 1994/12/04 18:31:41;  author: matt;  state: Exp;
44342 Wasn't coding planet position, causing it to disappear sometimes
44343 ----------------------------
44344 revision 1.56
44345 date: 1994/12/04 14:30:26;  author: john;  state: Exp;
44346 Added hooks for music..
44347 ----------------------------
44348 revision 1.55
44349 date: 1994/12/04 13:53:52;  author: matt;  state: Exp;
44350 Added code to make camera off-centered during lookback
44351 ----------------------------
44352 revision 1.54
44353 date: 1994/12/04 12:30:18;  author: matt;  state: Exp;
44354 Fixed slew for short sequence
44355 ----------------------------
44356 revision 1.53
44357 date: 1994/12/03 19:28:10;  author: matt;  state: Exp;
44358 Added alternate model for exit model after mine destruction
44359 ----------------------------
44360 revision 1.52
44361 date: 1994/12/03 00:17:23;  author: matt;  state: Exp;
44362 Made endlevel sequence cut off early
44363 Made exit model and bit explosion always plot last (after all terrain)
44364 ----------------------------
44365 revision 1.51
44366 date: 1994/12/01 20:15:43;  author: yuan;  state: Exp;
44367 Localization.
44368 ----------------------------
44369 revision 1.50
44370 date: 1994/11/30 23:27:35;  author: adam;  state: Exp;
44371 mucked around carelessly
44372 ----------------------------
44373 revision 1.49
44374 date: 1994/11/28 21:50:37;  author: mike;  state: Exp;
44375 optimizations.
44376 ----------------------------
44377 revision 1.48
44378 date: 1994/11/28 00:12:05;  author: allender;  state: Exp;
44379 took out demo code that was in at one time to record endlevel sequence.
44380 We are _not_ recording endlevel sequence
44381 ----------------------------
44382 revision 1.47
44383 date: 1994/11/27 23:35:54;  author: allender;  state: Exp;
44384 pause demo recording when starting endlevel sequence.  on demo playback,
44385 don't do endlevel at all.
44386 ----------------------------
44387 revision 1.46
44388 date: 1994/11/27 23:13:59;  author: matt;  state: Exp;
44389 Made changes for new mprintf calling convention
44390 ----------------------------
44391 revision 1.45
44392 date: 1994/11/26 23:17:29;  author: matt;  state: Exp;
44393 When camera leaves mine, bank it so it's level with the ground
44394 ----------------------------
44395 revision 1.44
44396 date: 1994/11/23 16:52:13;  author: rob;  state: Exp;
44397 Ended netgame endlevel sequence a bit earlier.
44398 ----------------------------
44399 revision 1.43
44400 date: 1994/11/22 19:20:46;  author: rob;  state: Exp;
44401 Modem support for secret levels.
44402 ----------------------------
44403 revision 1.42
44404 date: 1994/11/22 12:11:03;  author: rob;  state: Exp;
44405 Fixed bug - file handle left open in load_endlevel_data.
44406 ----------------------------
44407 revision 1.41
44408 date: 1994/11/21 17:29:22;  author: matt;  state: Exp;
44409 Cleaned up sequencing & game saving for secret levels
44410 ----------------------------
44411 revision 1.40
44412 date: 1994/11/19 15:14:54;  author: mike;  state: Exp;
44413 remove unused code and data
44414 ----------------------------
44415 revision 1.39
44416 date: 1994/11/19 12:41:32;  author: matt;  state: Exp;
44417 Added system to read endlevel data from file, and to make it work
44418 with any exit tunnel.
44419 ----------------------------
44420 revision 1.38
44421 date: 1994/11/17 15:02:24;  author: mike;  state: Exp;
44422 support new segment validation functions.
44423 ----------------------------
44424 revision 1.37
44425 date: 1994/11/17 13:04:45;  author: allender;  state: Exp;
44426 backout out newdemo changes
44427 ----------------------------
44428 revision 1.35
44429 date: 1994/11/16 14:52:33;  author: rob;  state: Exp;
44430 Commented out SLEW_ON on Matt's direction.
44431 Changed something to fix demo recording.
44432 ----------------------------
44433 revision 1.34
44434 date: 1994/11/16 11:49:29;  author: matt;  state: Exp;
44435 Added code to rotate terrain to match mine
44436 ----------------------------
44437 revision 1.33
44438 date: 1994/11/14 17:54:54;  author: allender;  state: Exp;
44439 on exit sequence during demo recording, force player exited from mine
44440 packet to all other network players
44441 ----------------------------
44442 revision 1.32
44443 date: 1994/11/10 21:27:42;  author: matt;  state: Exp;
44444 Took out printf's
44445 ----------------------------
44446 revision 1.31
44447 date: 1994/11/10 14:02:24;  author: matt;  state: Exp;
44448 Hacked in support for player ships with different textures
44449 ----------------------------
44450 revision 1.30
44451 date: 1994/11/09 10:31:33;  author: matt;  state: Exp;
44452 Don't create explosions if can't find seg to create them in
44453 ----------------------------
44454 revision 1.29
44455 date: 1994/11/05 17:22:37;  author: john;  state: Exp;
44456 Fixed lots of sequencing problems with newdemo stuff.
44457 ----------------------------
44458 revision 1.28
44459 date: 1994/11/03 11:10:39;  author: matt;  state: Exp;
44460 Fixed chase angles code
44461 Maybe other things, too.
44462 ----------------------------
44463 revision 1.27
44464 date: 1994/10/30 20:09:21;  author: matt;  state: Exp;
44465 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
44466 go out; made more explosions on walls.
44467 ----------------------------
44468 revision 1.26
44469 date: 1994/10/28 16:37:50;  author: allender;  state: Exp;
44470 stop demo recording when endlevel sequence activated
44471 ----------------------------
44472 revision 1.25
44473 date: 1994/10/27 21:15:21;  author: matt;  state: Exp;
44474 Added explosions in mine chasing player
44475 ----------------------------
44476 revision 1.24
44477 date: 1994/10/27 01:03:57;  author: matt;  state: Exp;
44478 Fixed several small bugs in flythrough
44479 ----------------------------
44480 revision 1.23
44481 date: 1994/10/22 01:32:30;  author: matt;  state: Exp;
44482 Don't start endlevel sequence if player dead
44483 ----------------------------
44484 revision 1.22
44485 date: 1994/10/22 00:08:06;  author: matt;  state: Exp;
44486 Fixed up problems with bonus & game sequencing
44487 Player doesn't get credit for hostages unless he gets them out alive
44488 =============================================================================
44489 RCS file: f:/miner/source/main/endlevel.h,v
44490 Working file: main/endlevel.h
44491 head: 2.0
44492 branch:
44493 description: Header for newfile.c
44494 ----------------------------
44495 revision 2.0
44496 date: 1995/02/27 11:31:37;  author: john;  state: Exp;
44497 New version 2.0, which has no anonymous unions, builds with
44498 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
44499 ----------------------------
44500 revision 1.5
44501 date: 1994/12/06 13:24:55;  author: matt;  state: Exp;
44502 Made exit model come out of bitmaps.tbl
44503 ----------------------------
44504 revision 1.4
44505 date: 1994/11/19 12:41:35;  author: matt;  state: Exp;
44506 Added system to read endlevel data from file, and to make it work
44507 with any exit tunnel.
44508 ----------------------------
44509 revision 1.3
44510 date: 1994/10/30 20:09:20;  author: matt;  state: Exp;
44511 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
44512 go out; made more explosions on walls.
44513 ----------------------------
44514 revision 1.2
44515 date: 1994/08/19 20:09:38;  author: matt;  state: Exp;
44516 Added end-of-level cut scene with external scene
44517 ----------------------------
44518 revision 1.1
44519 date: 1994/08/15 19:18:47;  author: matt;  state: Exp;
44520 Initial revision
44521 =============================================================================
44522 RCS file: f:/miner/source/main/editor/eobject.c,v
44523 Working file: main/editor/eobject.c
44524 head: 2.0
44525 branch:
44526 description: Editor object functions.
44527 ----------------------------
44528 revision 2.0
44529 date: 1995/02/27 11:35:14;  author: john;  state: Exp;
44530 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44531 for bitmaps.tbl.
44532 ----------------------------
44533 revision 1.93
44534 date: 1995/02/22 15:09:04;  author: allender;  state: Exp;
44535 remove anonymous unions from object structure
44536 ----------------------------
44537 revision 1.92
44538 date: 1995/01/12 12:10:32;  author: yuan;  state: Exp;
44539 Added coop object capability.
44540 ----------------------------
44541 revision 1.91
44542 date: 1994/12/20 17:57:02;  author: yuan;  state: Exp;
44543 Multiplayer object stuff.
44544 ----------------------------
44545 revision 1.90
44546 date: 1994/11/27 23:17:49;  author: matt;  state: Exp;
44547 Made changes for new mprintf calling convention
44548 ----------------------------
44549 revision 1.89
44550 date: 1994/11/17 14:48:06;  author: mike;  state: Exp;
44551 validation functions moved from editor to game.
44552 ----------------------------
44553 revision 1.88
44554 date: 1994/11/14 11:40:03;  author: mike;  state: Exp;
44555 fix default robot behavior.
44556 ----------------------------
44557 revision 1.87
44558 date: 1994/10/25 10:51:31;  author: matt;  state: Exp;
44559 Vulcan cannon powerups now contain ammo count
44560 ----------------------------
44561 revision 1.86
44562 date: 1994/10/23 02:11:40;  author: matt;  state: Exp;
44563 Got rid of obsolete hostage_info stuff
44564 ----------------------------
44565 revision 1.85
44566 date: 1994/10/17 21:35:32;  author: matt;  state: Exp;
44567 Added support for new Control Center/Main Reactor
44568 ----------------------------
44569 revision 1.84
44570 date: 1994/10/10 17:23:13;  author: mike;  state: Exp;
44571 Verify that not placing too many player objects.
44572 ----------------------------
44573 revision 1.83
44574 date: 1994/09/24 14:15:35;  author: mike;  state: Exp;
44575 Custom colored object support.
44576 ----------------------------
44577 revision 1.82
44578 date: 1994/09/15 22:58:12;  author: matt;  state: Exp;
44579 Made new objects be oriented to their segment
44580 Added keypad function to flip an object upside-down
44581 ----------------------------
44582 revision 1.81
44583 date: 1994/09/01 10:58:41;  author: matt;  state: Exp;
44584 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
44585 correctly if width & height of bitmap are different.
44586 ----------------------------
44587 revision 1.80
44588 date: 1994/08/25 21:58:14;  author: mike;  state: Exp;
44589 Write ObjectSelectPrevInMine and something else, I think...
44590 ----------------------------
44591 revision 1.79
44592 date: 1994/08/16 20:19:54;  author: mike;  state: Exp;
44593 Make STILL default (from CHASE_OBJECT).
44594 ----------------------------
44595 revision 1.78
44596 date: 1994/08/14 23:15:45;  author: matt;  state: Exp;
44597 Added animating bitmap hostages, and cleaned up vclips a bit
44598 ----------------------------
44599 revision 1.77
44600 date: 1994/08/13 14:58:43;  author: matt;  state: Exp;
44601 Finished adding support for miscellaneous objects
44602 ----------------------------
44603 revision 1.76
44604 date: 1994/08/12 22:24:58;  author: matt;  state: Exp;
44605 Generalized polygon objects (such as control center)
44606 ----------------------------
44607 revision 1.75
44608 date: 1994/08/09 16:06:11;  author: john;  state: Exp;
44609 Added the ability to place players.  Made old
44610 Player variable be ConsoleObject.
44611 ----------------------------
44612 revision 1.74
44613 date: 1994/08/05 18:18:55;  author: matt;  state: Exp;
44614 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
44615 ----------------------------
44616 revision 1.73
44617 date: 1994/08/01 13:30:56;  author: matt;  state: Exp;
44618 Made fvi() check holes in transparent walls, and changed fvi() calling
44619 parms to take all input data in query structure.
44620 =============================================================================
44621 RCS file: f:/miner/source/main/editor/eobject.h,v
44622 Working file: main/editor/eobject.h
44623 head: 2.0
44624 branch:
44625 description: Header for eobject.c
44626 ----------------------------
44627 revision 2.0
44628 date: 1995/02/27 11:35:30;  author: john;  state: Exp;
44629 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44630 for bitmaps.tbl.
44631 ----------------------------
44632 revision 1.5
44633 date: 1994/09/15 22:57:46;  author: matt;  state: Exp;
44634 Made new objects be oriented to their segment
44635 Added keypad function to flip an object upside-down
44636 ----------------------------
44637 revision 1.4
44638 date: 1994/08/25 21:57:23;  author: mike;  state: Exp;
44639 Prototype ObjectSelectPrevInMine, and probably wrote it too, though not in this file.
44640 ----------------------------
44641 revision 1.3
44642 date: 1994/08/05 18:17:48;  author: matt;  state: Exp;
44643 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
44644 ----------------------------
44645 revision 1.2
44646 date: 1994/05/14 18:00:59;  author: matt;  state: Exp;
44647 Got rid of externs in source (non-header) files
44648 ----------------------------
44649 revision 1.1
44650 date: 1994/05/14 17:36:30;  author: matt;  state: Exp;
44651 Initial revision
44652 =============================================================================
44653 RCS file: f:/miner/source/main/escort.c,v
44654 Working file: main/escort.c
44655 head: 1.1
44656 branch:
44657 description: Escort robot behavior.
44658 ----------------------------
44659 revision 1.1
44660 date: 1995/05/06 23:32:19;  author: mike;  state: Exp;
44661 Initial revision
44662 =============================================================================
44663 RCS file: f:/miner/source/main/editor/eswitch.c,v
44664 Working file: main/editor/eswitch.c
44665 head: 2.0
44666 branch:
44667 description: Editor switch functions. 
44668 ----------------------------
44669 revision 2.0
44670 date: 1995/02/27 11:35:18;  author: john;  state: Exp;
44671 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44672 for bitmaps.tbl.
44673 ----------------------------
44674 revision 1.33
44675 date: 1995/01/14 19:18:04;  author: john;  state: Exp;
44676 First version of object paging.
44677 ----------------------------
44678 revision 1.32
44679 date: 1994/11/27 23:18:01;  author: matt;  state: Exp;
44680 Made changes for new mprintf calling convention
44681 ----------------------------
44682 revision 1.31
44683 date: 1994/11/07 10:55:42;  author: yuan;  state: Exp;
44684 *** empty log message ***
44685 ----------------------------
44686 revision 1.30
44687 date: 1994/10/13 13:15:06;  author: yuan;  state: Exp;
44688 Fixed trigger removal bug.
44689 ----------------------------
44690 revision 1.29
44691 date: 1994/10/06 21:24:16;  author: matt;  state: Exp;
44692 Added switch for exit to secret level
44693 ----------------------------
44694 revision 1.28
44695 date: 1994/09/29 17:06:10;  author: matt;  state: Exp;
44696 Took out references to obsolete external triggers
44697 ----------------------------
44698 revision 1.27
44699 date: 1994/09/28 13:40:34;  author: yuan;  state: Exp;
44700 Fixed control center trigger bug.
44701 ----------------------------
44702 revision 1.26
44703 date: 1994/09/26 16:25:04;  author: yuan;  state: Exp;
44704 Only allow one binding of each matcen .
44705 ----------------------------
44706 revision 1.25
44707 date: 1994/09/24 17:10:19;  author: yuan;  state: Exp;
44708 Added Matcen triggers.
44709 ----------------------------
44710 revision 1.24
44711 date: 1994/09/20 18:23:58;  author: yuan;  state: Exp;
44712 Killed the BOGIFYING WALL DRAGON...
44713 There was a problem with triggers being created that had bogus
44714 pointers back to their segments.
44715 ----------------------------
44716 revision 1.23
44717 date: 1994/08/25 21:56:33;  author: mike;  state: Exp;
44718 IS_CHILD stuff.
44719 ----------------------------
44720 revision 1.22
44721 date: 1994/08/15 18:06:54;  author: yuan;  state: Exp;
44722 Added external trigger.
44723 ----------------------------
44724 revision 1.21
44725 date: 1994/07/22 17:18:47;  author: yuan;  state: Exp;
44726 Working on dialog box for refuel/repair/material/control centers.
44727 ----------------------------
44728 revision 1.20
44729 date: 1994/07/06 10:55:55;  author: john;  state: Exp;
44730 New structures for hostages.
44731 ----------------------------
44732 revision 1.19
44733 date: 1994/07/01 16:36:20;  author: yuan;  state: Exp;
44734 Working on triggers that aren't always on.
44735 ----------------------------
44736 revision 1.18
44737 date: 1994/06/21 18:50:14;  author: john;  state: Exp;
44738 Made ESC key exit dialog.
44739 ----------------------------
44740 revision 1.17
44741 date: 1994/06/20 22:30:36;  author: yuan;  state: Exp;
44742 Fixed crazy runaway trigger bug that Adam found
44743 ----------------------------
44744 revision 1.16
44745 date: 1994/05/31 10:03:48;  author: yuan;  state: Exp;
44746 Fixed compiler warnings...
44747 ----------------------------
44748 revision 1.15
44749 date: 1994/05/30 20:22:30;  author: yuan;  state: Exp;
44750 New triggers.
44751 ----------------------------
44752 revision 1.14
44753 date: 1994/05/27 12:33:50;  author: yuan;  state: Exp;
44754 Fixed some bugs when adding trigger.
44755 ----------------------------
44756 revision 1.13
44757 date: 1994/05/27 10:34:29;  author: yuan;  state: Exp;
44758 Added new Dialog boxes for Walls and Triggers.
44759 ----------------------------
44760 revision 1.12
44761 date: 1994/05/25 18:15:02;  author: yuan;  state: Exp;
44762 Fixed make warnings to save 10 cents!
44763 ----------------------------
44764 revision 1.11
44765 date: 1994/05/25 18:08:03;  author: yuan;  state: Exp;
44766 Revamping walls and triggers interface.
44767 Wall interface complete, but triggers are still in progress.
44768 ----------------------------
44769 revision 1.10
44770 date: 1994/04/29 15:05:50;  author: yuan;  state: Exp;
44771 Trigger/Link removing stuff still needs to be fixed.
44772 ----------------------------
44773 revision 1.9
44774 date: 1994/04/28 23:25:34;  author: yuan;  state: Exp;
44775 Obliterated warnings.
44776 ----------------------------
44777 revision 1.8
44778 date: 1994/04/28 18:08:06;  author: yuan;  state: Exp;
44779 Fixed trigger bug.
44780 =============================================================================
44781 RCS file: f:/miner/source/main/editor/eswitch.h,v
44782 Working file: main/editor/eswitch.h
44783 head: 2.0
44784 branch:
44785 description: Headers for switch adding functions
44786 ----------------------------
44787 revision 2.0
44788 date: 1995/02/27 11:35:40;  author: john;  state: Exp;
44789 Version 2.0! No anonymous unions, Watcom 10.0, with no need
44790 for bitmaps.tbl.
44791 ----------------------------
44792 revision 1.6
44793 date: 1994/05/30 20:22:35;  author: yuan;  state: Exp;
44794 New triggers.
44795 ----------------------------
44796 revision 1.5
44797 date: 1994/05/27 10:34:35;  author: yuan;  state: Exp;
44798 Added new Dialog boxes for Walls and Triggers.
44799 ----------------------------
44800 revision 1.4
44801 date: 1994/05/25 18:08:39;  author: yuan;  state: Exp;
44802 Revamping walls and triggers interface.
44803 Wall interface complete, but triggers are still in progress.
44804 ----------------------------
44805 revision 1.3
44806 date: 1994/04/28 23:46:56;  author: yuan;  state: Exp;
44807 Added prototype for remove_trigger.
44808 ----------------------------
44809 revision 1.2
44810 date: 1994/03/15 16:34:20;  author: yuan;  state: Exp;
44811 Fixed bm loader (might have some changes in walls and switches)
44812 ----------------------------
44813 revision 1.1
44814 date: 1994/03/10 14:49:03;  author: yuan;  state: Exp;
44815 Initial revision
44816 =============================================================================
44817 RCS file: f:/miner/source/main/fireball.c,v
44818 Working file: main/fireball.c
44819 head: 2.2
44820 branch:
44821 description: Code for rendering & otherwise dealing with explosions
44822 ----------------------------
44823 revision 2.2
44824 date: 1995/03/21 14:39:57;  author: john;  state: Exp;
44825 Ifdef'd out the NETWORK code.
44826 ----------------------------
44827 revision 2.1
44828 date: 1995/03/20 18:15:47;  author: john;  state: Exp;
44829 Added code to not store the normals in the segment structure.
44830 ----------------------------
44831 revision 2.0
44832 date: 1995/02/27 11:30:34;  author: john;  state: Exp;
44833 New version 2.0, which has no anonymous unions, builds with
44834 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
44835 ----------------------------
44836 revision 1.200
44837 date: 1995/02/22 13:18:41;  author: allender;  state: Exp;
44838 remove anonymous unions from object structure
44839 ----------------------------
44840 revision 1.199
44841 date: 1995/02/14 19:58:32;  author: mike;  state: Exp;
44842 comment out "something bad has happened" int3.
44843 ----------------------------
44844 revision 1.198
44845 date: 1995/02/09 13:11:01;  author: mike;  state: Exp;
44846 remove an annoying mprintf and Int3().
44847 ----------------------------
44848 revision 1.197
44849 date: 1995/02/08 17:10:14;  author: mike;  state: Exp;
44850 don't drop cloaks if one nearby.
44851 ----------------------------
44852 revision 1.196
44853 date: 1995/02/08 13:27:14;  author: rob;  state: Exp;
44854 Give keys dropped by robots 0 velocity in coop game.
44855 ----------------------------
44856 revision 1.195
44857 date: 1995/02/08 11:57:40;  author: mike;  state: Exp;
44858 determine whether debris object failed to create because buffer was
44859 exhausted or because limit was hit.
44860 ----------------------------
44861 revision 1.194
44862 date: 1995/02/08 11:37:58;  author: mike;  state: Exp;
44863 Check for failures in call to obj_create.
44864 ----------------------------
44865 revision 1.193
44866 date: 1995/02/07 21:09:41;  author: mike;  state: Exp;
44867 only replace weapon with energy 1/2 time.
44868 ----------------------------
44869 revision 1.192
44870 date: 1995/01/30 18:21:52;  author: rob;  state: Exp;
44871 Replace extra life powerups in multiplayer to invul when
44872 dropped by robots.
44873 ----------------------------
44874 revision 1.191
44875 date: 1995/01/28 17:40:59;  author: mike;  state: Exp;
44876 fix stupidity in converting quad lasers to energy.
44877 ----------------------------
44878 revision 1.190
44879 date: 1995/01/27 15:05:59;  author: rob;  state: Exp;
44880 Trying to fix a bug with damaging robots with player badass explosions.
44881 ----------------------------
44882 revision 1.189
44883 date: 1995/01/26 18:59:04;  author: rob;  state: Exp;
44884 Powerups were flying too far in robot-cooperative games.
44885 ----------------------------
44886 revision 1.188
44887 date: 1995/01/25 10:53:35;  author: mike;  state: Exp;
44888 make badass damage go through grates.
44889 ----------------------------
44890 revision 1.187
44891 date: 1995/01/25 09:37:23;  author: mike;  state: Exp;
44892 fix objects containing robots, worked for powerups, bad {} placement.
44893 ----------------------------
44894 revision 1.186
44895 date: 1995/01/23 22:51:20;  author: mike;  state: Exp;
44896 drop energy instead of primary weapon if you already have primary weapon.
44897 ----------------------------
44898 revision 1.185
44899 date: 1995/01/20 16:56:37;  author: mike;  state: Exp;
44900 Cut damage done by badass weapons.
44901 ----------------------------
44902 revision 1.184
44903 date: 1995/01/19 17:44:57;  author: mike;  state: Exp;
44904 damage_force removed, that information coming from strength field.
44905 ----------------------------
44906 revision 1.183
44907 date: 1995/01/16 21:06:54;  author: mike;  state: Exp;
44908 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
44909 ----------------------------
44910 revision 1.182
44911 date: 1995/01/16 19:24:04;  author: mike;  state: Exp;
44912 If a gated-in robot and going to drop energy powerup, don't!
44913 ----------------------------
44914 revision 1.181
44915 date: 1995/01/15 20:48:03;  author: mike;  state: Exp;
44916 drop energy in place of quad lasers if player already has quad lasers.
44917 ----------------------------
44918 revision 1.180
44919 date: 1995/01/14 19:32:19;  author: rob;  state: Exp;
44920 Fixed an error.
44921 ----------------------------
44922 revision 1.179
44923 date: 1995/01/14 18:50:55;  author: rob;  state: Exp;
44924 Make robot egg creation suitable for mutliplayer situations.
44925 ----------------------------
44926 revision 1.178
44927 date: 1995/01/14 14:55:07;  author: rob;  state: Exp;
44928 Make weapons/keys/etc never disappear in network mode.
44929 =============================================================================
44930 RCS file: f:/miner/source/main/fireball.h,v
44931 Working file: main/fireball.h
44932 head: 2.0
44933 branch:
44934 description: Header for fireball.c
44935 ----------------------------
44936 revision 2.0
44937 date: 1995/02/27 11:27:03;  author: john;  state: Exp;
44938 New version 2.0, which has no anonymous unions, builds with
44939 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
44940 ----------------------------
44941 revision 1.13
44942 date: 1995/01/17 12:14:38;  author: john;  state: Exp;
44943 Made walls, object explosion vclips load at level start.
44944 ----------------------------
44945 revision 1.12
44946 date: 1995/01/13 15:41:52;  author: rob;  state: Exp;
44947 Added prototype for maybe_replace_powerup_with_energy
44948 ----------------------------
44949 revision 1.11
44950 date: 1994/11/17 16:28:36;  author: rob;  state: Exp;
44951 Changed maybe_drop_cloak_powerup to maybe_drop_net_powerup (more
44952 generic and useful)
44953 ----------------------------
44954 revision 1.10
44955 date: 1994/10/12 08:03:42;  author: mike;  state: Exp;
44956 Prototype maybe_drop_cloak_powerup.
44957 ----------------------------
44958 revision 1.9
44959 date: 1994/10/11 12:24:39;  author: matt;  state: Exp;
44960 Cleaned up/change badass explosion calls
44961 ----------------------------
44962 revision 1.8
44963 date: 1994/09/07 16:00:34;  author: mike;  state: Exp;
44964 Add object pointer to parameter list of object_create_badass_explosion.
44965 ----------------------------
44966 revision 1.7
44967 date: 1994/09/02 14:00:39;  author: matt;  state: Exp;
44968 Simplified explode_object() & mutliple-stage explosions
44969 ----------------------------
44970 revision 1.6
44971 date: 1994/08/17 16:49:58;  author: john;  state: Exp;
44972 Added damaging fireballs, missiles.
44973 ----------------------------
44974 revision 1.5
44975 date: 1994/07/14 22:39:19;  author: matt;  state: Exp;
44976 Added exploding doors
44977 ----------------------------
44978 revision 1.4
44979 date: 1994/06/08 10:56:36;  author: matt;  state: Exp;
44980 Improved debris: now get submodel size from new POF files; debris now has
44981 limited life; debris can now be blown up.
44982 ----------------------------
44983 revision 1.3
44984 date: 1994/04/01 13:35:44;  author: matt;  state: Exp;
44985 Added multiple-stage explosions
44986 ----------------------------
44987 revision 1.2
44988 date: 1994/02/17 11:33:32;  author: matt;  state: Exp;
44989 Changes in object system
44990 ----------------------------
44991 revision 1.1
44992 date: 1994/02/16 22:41:15;  author: matt;  state: Exp;
44993 Initial revision
44994 =============================================================================
44995 RCS file: f:/miner/source/main/editor/fixseg.c,v
44996 Working file: main/editor/fixseg.c
44997 head: 2.0
44998 branch:
44999 description: Functions to make faces planar and probably other things.
45000 ----------------------------
45001 revision 2.0
45002 date: 1995/02/27 11:36:25;  author: john;  state: Exp;
45003 Version 2.0. Ansi-fied.
45004 ----------------------------
45005 revision 1.7
45006 date: 1994/11/27 23:18:01;  author: matt;  state: Exp;
45007 Made changes for new mprintf calling convention
45008 ----------------------------
45009 revision 1.6
45010 date: 1994/11/17 14:48:00;  author: mike;  state: Exp;
45011 validation functions moved from editor to game.
45012 ----------------------------
45013 revision 1.5
45014 date: 1994/08/04 19:13:26;  author: matt;  state: Exp;
45015 Changed a bunch of vecmat calls to use multiple-function routines, and to
45016 allow the use of C macros for some functions
45017 ----------------------------
45018 revision 1.4
45019 date: 1994/02/10 15:36:31;  author: matt;  state: Exp;
45020 Various changes to make editor compile out.
45021 ----------------------------
45022 revision 1.3
45023 date: 1993/12/03 18:45:09;  author: mike;  state: Exp;
45024 initial stuff.
45025 ----------------------------
45026 revision 1.2
45027 date: 1993/11/30 17:05:09;  author: mike;  state: Exp;
45028 Added part of code to make a side planar.
45029 ----------------------------
45030 revision 1.1
45031 date: 1993/11/30 10:05:36;  author: mike;  state: Exp;
45032 Initial revision
45033 =============================================================================
45034 RCS file: f:/miner/source/main/flyby.c,v
45035 Working file: main/flyby.c
45036 head: 2.0
45037 branch:
45038 description: Routines to fly though a mine (to show it off)
45039 ----------------------------
45040 revision 2.0
45041 date: 1995/02/27 11:33:03;  author: john;  state: Exp;
45042 New version 2.0, which has no anonymous unions, builds with
45043 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
45044 ----------------------------
45045 revision 1.20
45046 date: 1994/11/19 15:17:49;  author: mike;  state: Exp;
45047 rip out unused code and data
45048 ----------------------------
45049 revision 1.19
45050 date: 1994/11/17 14:58:40;  author: mike;  state: Exp;
45051 move segment validation functions from editor to main.
45052 ----------------------------
45053 revision 1.18
45054 date: 1994/08/19 20:09:39;  author: matt;  state: Exp;
45055 Added end-of-level cut scene with external scene
45056 ----------------------------
45057 revision 1.17
45058 date: 1994/05/20 11:56:44;  author: matt;  state: Exp;
45059 Cleaned up find_vector_intersection() interface
45060 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
45061 ----------------------------
45062 revision 1.16
45063 date: 1994/05/19 09:51:06;  author: matt;  state: Exp;
45064 Use new function vm_vec_normalized_dir()
45065 ----------------------------
45066 revision 1.15
45067 date: 1994/05/18 22:29:25;  author: matt;  state: Exp;
45068 Use new function vm_extract_angles_vector()
45069 ----------------------------
45070 revision 1.14
45071 date: 1994/05/12 10:26:33;  author: matt;  state: Exp;
45072 Took out references to unused structure fields.
45073 ----------------------------
45074 revision 1.13
45075 date: 1994/03/30 16:44:13;  author: matt;  state: Exp;
45076 Use great new vm_vec_scale_add2() function
45077 ----------------------------
45078 revision 1.12
45079 date: 1994/02/17 11:32:37;  author: matt;  state: Exp;
45080 Changes in object system
45081 ----------------------------
45082 revision 1.11
45083 date: 1994/01/27 18:18:10;  author: john;  state: Exp;
45084 Added new module, objfly, and made robots
45085 fly using this code.
45086 ----------------------------
45087 revision 1.10
45088 date: 1994/01/05 14:26:01;  author: john;  state: Exp;
45089 Made Slew_object be able to slew, fly, and auto-fly.
45090 ----------------------------
45091 revision 1.9
45092 date: 1994/01/05 10:53:52;  author: john;  state: Exp;
45093 New object code by John.  
45094 ----------------------------
45095 revision 1.8
45096 date: 1993/12/21 14:30:32;  author: matt;  state: Exp;
45097 Explicitely set some variables in init, so flyby is the same each time.
45098 ----------------------------
45099 revision 1.7
45100 date: 1993/12/01 11:44:15;  author: matt;  state: Exp;
45101 Chagned Frfract to FrameTime
45102 ----------------------------
45103 revision 1.6
45104 date: 1993/11/04 15:47:29;  author: matt;  state: Exp;
45105 Added check to hopefully prevent divide overflow
45106 ----------------------------
45107 revision 1.5
45108 date: 1993/10/29 22:54:38;  author: matt;  state: Exp;
45109 Made changes for new matrix ordering
45110 ----------------------------
45111 revision 1.4
45112 date: 1993/10/26 11:23:25;  author: matt;  state: Exp;
45113 Doesn't get stuck now in some cases with very small segments
45114 ----------------------------
45115 revision 1.3
45116 date: 1993/10/25 14:34:42;  author: matt;  state: Exp;
45117 Added direction choice keys to flythrough
45118 ----------------------------
45119 revision 1.2
45120 date: 1993/10/14 18:04:51;  author: mike;  state: Exp;
45121 Change CONNECTIVITY to MAX_SIDES_PER_SEGMENT
45122 ----------------------------
45123 revision 1.1
45124 date: 1993/10/14 11:03:47;  author: matt;  state: Exp;
45125 Initial revision
45126 =============================================================================
45127 RCS file: f:/miner/source/main/fuelcen.c,v
45128 Working file: main/fuelcen.c
45129 head: 2.3
45130 branch:
45131 description: Functions for refueling centers.
45132 ----------------------------
45133 revision 2.3
45134 date: 1995/03/21 14:38:40;  author: john;  state: Exp;
45135 Ifdef'd out the NETWORK code.
45136 ----------------------------
45137 revision 2.2
45138 date: 1995/03/06 15:23:09;  author: john;  state: Exp;
45139 New screen techniques.
45140 ----------------------------
45141 revision 2.1
45142 date: 1995/02/27 13:13:26;  author: john;  state: Exp;
45143 Removed floating point.
45144 ----------------------------
45145 revision 2.0
45146 date: 1995/02/27 11:27:20;  author: john;  state: Exp;
45147 New version 2.0, which has no anonymous unions, builds with
45148 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
45149 ----------------------------
45150 revision 1.159
45151 date: 1995/02/22 13:48:10;  author: allender;  state: Exp;
45152 remove anonymous unions in object structure
45153 ----------------------------
45154 revision 1.158
45155 date: 1995/02/08 11:37:48;  author: mike;  state: Exp;
45156 Check for failures in call to obj_create.
45157 ----------------------------
45158 revision 1.157
45159 date: 1995/02/07 20:39:39;  author: mike;  state: Exp;
45160 fix toasters in multiplayer
45161 ----------------------------
45162 revision 1.156
45163 date: 1995/02/02 18:40:10;  author: john;  state: Exp;
45164 Fixed bug with full screen cockpit flashing non-white.
45165 ----------------------------
45166 revision 1.155
45167 date: 1995/01/28 15:27:22;  author: yuan;  state: Exp;
45168 Make sure fuelcen nums are valid.
45169 ----------------------------
45170 revision 1.154
45171 date: 1995/01/03 14:26:23;  author: rob;  state: Exp;
45172 Better ifdef for robot centers.
45173 ----------------------------
45174 revision 1.153
45175 date: 1995/01/03 11:27:49;  author: rob;  state: Exp;
45176 Added include of fuelcen.c
45177 ----------------------------
45178 revision 1.152
45179 date: 1995/01/03 09:47:22;  author: john;  state: Exp;
45180 Some ifdef SHAREWARE lines.
45181 ----------------------------
45182 revision 1.151
45183 date: 1995/01/02 21:02:07;  author: rob;  state: Exp;
45184 added matcen support for coop/multirobot.
45185 ----------------------------
45186 revision 1.150
45187 date: 1994/12/15 18:31:22;  author: mike;  state: Exp;
45188 fix confusing precedence problems.
45189 ----------------------------
45190 revision 1.149
45191 date: 1994/12/15 13:04:22;  author: mike;  state: Exp;
45192 Replace Players[Player_num].time_total references with GameTime.
45193 ----------------------------
45194 revision 1.148
45195 date: 1994/12/15 03:05:18;  author: matt;  state: Exp;
45196 Added error checking for NULL return from object_create_explosion()
45197 ----------------------------
45198 revision 1.147
45199 date: 1994/12/13 19:49:12;  author: rob;  state: Exp;
45200 Made the fuelcen noise quieter.
45201 ----------------------------
45202 revision 1.146
45203 date: 1994/12/13 12:03:18;  author: john;  state: Exp;
45204 Made the warning sirens not start until after "desccruction
45205 secquence activated voice".
45206 ----------------------------
45207 revision 1.145
45208 date: 1994/12/12 17:18:30;  author: mike;  state: Exp;
45209 make warning siren louder.
45210 ----------------------------
45211 revision 1.144
45212 date: 1994/12/11 23:18:04;  author: john;  state: Exp;
45213 Added -nomusic.
45214 Added RealFrameTime.
45215 Put in a pause when sound initialization error.
45216 Made controlcen countdown and framerate use RealFrameTime.
45217 ----------------------------
45218 revision 1.143
45219 date: 1994/12/11 14:10:16;  author: mike;  state: Exp;
45220 louder sounds.
45221 ----------------------------
45222 revision 1.142
45223 date: 1994/12/06 11:33:19;  author: yuan;  state: Exp;
45224 Fixed bug with fueling when above 100.
45225 ----------------------------
45226 revision 1.141
45227 date: 1994/12/05 23:37:14;  author: matt;  state: Exp;
45228 Took out calls to warning() function
45229 ----------------------------
45230 revision 1.140
45231 date: 1994/12/05 23:19:18;  author: yuan;  state: Exp;
45232 Fixed fuel center refuelers..
45233 ----------------------------
45234 revision 1.139
45235 date: 1994/12/03 12:48:12;  author: mike;  state: Exp;
45236 diminish rocking due to control center destruction.
45237 ----------------------------
45238 revision 1.138
45239 date: 1994/12/02 23:30:32;  author: mike;  state: Exp;
45240 fix bumpiness after toasting control center.
45241 ----------------------------
45242 revision 1.137
45243 date: 1994/12/02 22:48:14;  author: mike;  state: Exp;
45244 rock the ship after toasting the control center!
45245 ----------------------------
45246 revision 1.136
45247 date: 1994/12/02 17:12:11;  author: rob;  state: Exp;
45248 Fixed countdown sounds.
45249 ----------------------------
45250 revision 1.135
45251 date: 1994/11/29 20:59:43;  author: rob;  state: Exp;
45252 Don't run out of fuel in net games (don't want to sync it between machines)
45253 ----------------------------
45254 revision 1.134
45255 date: 1994/11/29 19:10:57;  author: john;  state: Exp;
45256 Took out debugging mprintf.
45257 ----------------------------
45258 revision 1.133
45259 date: 1994/11/29 13:19:40;  author: john;  state: Exp;
45260 Made voice for "destruction actived in t-"
45261 be at 12.75 secs.
45262 ----------------------------
45263 revision 1.132
45264 date: 1994/11/29 12:19:46;  author: john;  state: Exp;
45265 MAde the "Mine desctruction will commence"
45266 voice play at 12.5 secs.
45267 ----------------------------
45268 revision 1.131
45269 date: 1994/11/29 12:12:54;  author: adam;  state: Exp;
45270 *** empty log message ***
45271 ----------------------------
45272 revision 1.130
45273 date: 1994/11/28 21:04:26;  author: rob;  state: Exp;
45274 Added code to cast noise when player refuels.
45275 ----------------------------
45276 revision 1.129
45277 date: 1994/11/27 23:15:04;  author: matt;  state: Exp;
45278 Made changes for new mprintf calling convention
45279 ----------------------------
45280 revision 1.128
45281 date: 1994/11/21 16:27:51;  author: mike;  state: Exp;
45282 debug code for morphing.
45283 ----------------------------
45284 revision 1.127
45285 date: 1994/11/21 12:33:50;  author: matt;  state: Exp;
45286 For control center explosions, use small fireball, not pseudo-random vclip
45287 ----------------------------
45288 revision 1.126
45289 date: 1994/11/20 22:12:15;  author: mike;  state: Exp;
45290 Fix bug in initializing materialization centers.
45291 ----------------------------
45292 revision 1.125
45293 date: 1994/11/19 15:18:22;  author: mike;  state: Exp;
45294 rip out unused code and data.
45295 ----------------------------
45296 revision 1.124
45297 date: 1994/11/08 12:18:59;  author: mike;  state: Exp;
45298 Initialize Fuelcen_seconds_left.
45299 ----------------------------
45300 revision 1.123
45301 date: 1994/10/30 14:12:33;  author: mike;  state: Exp;
45302 rip out repair center stuff
45303 ----------------------------
45304 revision 1.122
45305 date: 1994/10/28 14:42:45;  author: john;  state: Exp;
45306 Added sound volumes to all sound calls.
45307 ----------------------------
45308 revision 1.121
45309 date: 1994/10/16 12:44:02;  author: mike;  state: Exp;
45310 Make time to exit mine after control center destruction diff level dependent.
45311 ----------------------------
45312 revision 1.120
45313 date: 1994/10/09 22:03:26;  author: mike;  state: Exp;
45314 Adapt to new create_n_segment_path parameters.
45315 ----------------------------
45316 revision 1.119
45317 date: 1994/10/06 14:52:42;  author: mike;  state: Exp;
45318 Remove last of ability to damage fuel centers.
45319 ----------------------------
45320 revision 1.118
45321 date: 1994/10/06 14:08:45;  author: matt;  state: Exp;
45322 Made morph flash effect get orientation from segment
45323 ----------------------------
45324 revision 1.117
45325 date: 1994/10/05 16:09:03;  author: mike;  state: Exp;
45326 Put debugging code into matcen/fuelcen synchronization problem.
45327 ----------------------------
45328 revision 1.116
45329 date: 1994/10/04 15:32:41;  author: john;  state: Exp;
45330 Took out the old PLAY_SOUND??? code and replaced it
45331 with direct calls into digi_link_??? so that all sounds
45332 can be made 3d.
45333 ----------------------------
45334 revision 1.115
45335 date: 1994/10/03 23:37:57;  author: mike;  state: Exp;
45336 Clean up this mess of confusion to the point where maybe matcens actually work.
45337 ----------------------------
45338 revision 1.114
45339 date: 1994/10/03 13:34:40;  author: matt;  state: Exp;
45340 Added new (and hopefully better) game sequencing functions
45341 ----------------------------
45342 revision 1.113
45343 date: 1994/09/30 14:41:57;  author: matt;  state: Exp;
45344 Fixed bug as per Mike's instructions
45345 ----------------------------
45346 revision 1.112
45347 date: 1994/09/30 00:37:33;  author: mike;  state: Exp;
45348 Balance materialization centers.
45349 ----------------------------
45350 revision 1.111
45351 date: 1994/09/28 23:12:52;  author: matt;  state: Exp;
45352 Macroized palette flash system
45353 ----------------------------
45354 revision 1.110
45355 date: 1994/09/27 15:42:31;  author: mike;  state: Exp;
45356 Add names of Specials.
45357 ----------------------------
45358 revision 1.109
45359 date: 1994/09/27 00:02:23;  author: mike;  state: Exp;
45360 Yet more materialization center stuff.
45361 ----------------------------
45362 revision 1.108
45363 date: 1994/09/26 11:26:23;  author: mike;  state: Exp;
45364 Balance materialization centers.
45365 ----------------------------
45366 revision 1.107
45367 date: 1994/09/25 23:40:47;  author: matt;  state: Exp;
45368 Changed the object load & save code to read/write the structure fields one
45369 at a time (rather than the whole structure at once).  This mean that the
45370 object structure can be changed without breaking the load/save functions.
45371 As a result of this change, the local_object data can be and has been 
45372 incorporated into the object array.  Also, timeleft is now a property 
45373 of all objects, and the object structure has been otherwise cleaned up.
45374 ----------------------------
45375 revision 1.106
45376 date: 1994/09/25 15:55:58;  author: mike;  state: Exp;
45377 Balance materialization centers, make them emit light, make them re-triggerable after awhile.
45378 ----------------------------
45379 revision 1.105
45380 date: 1994/09/24 17:42:33;  author: mike;  state: Exp;
45381 Making materialization centers be activated by triggers and balancing them.
45382 ----------------------------
45383 revision 1.104
45384 date: 1994/09/24 14:16:06;  author: mike;  state: Exp;
45385 Support new network constants.
45386 ----------------------------
45387 revision 1.103
45388 date: 1994/09/20 19:14:40;  author: john;  state: Exp;
45389 Massaged the sound system; used a better formula for determining
45390 which l/r balance, also, put in Mike's stuff that searches for a connection
45391 between the 2 sounds' segments, stopping for closed doors, etc.
45392 ----------------------------
45393 revision 1.102
45394 date: 1994/09/17 01:40:51;  author: matt;  state: Exp;
45395 Added status bar/sizable window mode, and in the process revamped the
45396 whole cockpit mode system.
45397 ----------------------------
45398 revision 1.101
45399 date: 1994/08/31 20:57:25;  author: matt;  state: Exp;
45400 Cleaned up endlevel/death code
45401 ----------------------------
45402 revision 1.100
45403 date: 1994/08/30 17:54:20;  author: mike;  state: Exp;
45404 Slow down rate of creation of objects by materialization centers.
45405 ----------------------------
45406 revision 1.99
45407 date: 1994/08/29 11:47:01;  author: john;  state: Exp;
45408 Added warning if no control centers in mine.
45409 =============================================================================
45410 RCS file: f:/miner/source/main/fuelcen.h,v
45411 Working file: main/fuelcen.h
45412 head: 2.0
45413 branch:
45414 description: Definitions for fueling centers.
45415 ----------------------------
45416 revision 2.0
45417 date: 1995/02/27 11:28:43;  author: john;  state: Exp;
45418 New version 2.0, which has no anonymous unions, builds with
45419 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
45420 ----------------------------
45421 revision 1.26
45422 date: 1995/01/26 12:19:16;  author: rob;  state: Exp;
45423 Added externs of things needed for multiplayer.
45424 ----------------------------
45425 revision 1.25
45426 date: 1994/10/30 14:11:10;  author: mike;  state: Exp;
45427 rip out repair center stuff.
45428 ----------------------------
45429 revision 1.24
45430 date: 1994/10/03 23:36:36;  author: mike;  state: Exp;
45431 Add segnum and fuelcen_num (renaming dest_seg and *path) in matcen_info struct.
45432 ----------------------------
45433 revision 1.23
45434 date: 1994/09/30 00:37:44;  author: mike;  state: Exp;
45435 Change FuelCenter struct.
45436 ----------------------------
45437 revision 1.22
45438 date: 1994/09/27 15:42:49;  author: mike;  state: Exp;
45439 Kill some obsolete matcen constants, Prototype Special_names.
45440 ----------------------------
45441 revision 1.21
45442 date: 1994/09/27 00:04:30;  author: mike;  state: Exp;
45443 Moved FuelCenter struct here from fuelcen.c
45444 ----------------------------
45445 revision 1.20
45446 date: 1994/09/25 15:55:37;  author: mike;  state: Exp;
45447 Prototype function disable_matcens.
45448 ----------------------------
45449 revision 1.19
45450 date: 1994/09/24 17:41:34;  author: mike;  state: Exp;
45451 Prototype trigger_matcen.
45452 ----------------------------
45453 revision 1.18
45454 date: 1994/08/03 17:52:19;  author: matt;  state: Exp;
45455 Tidied up repair centers a bit
45456 ----------------------------
45457 revision 1.17
45458 date: 1994/08/02 12:16:01;  author: mike;  state: Exp;
45459 *** empty log message ***
45460 ----------------------------
45461 revision 1.16
45462 date: 1994/08/01 11:04:03;  author: yuan;  state: Exp;
45463 New materialization centers.
45464 ----------------------------
45465 revision 1.15
45466 date: 1994/07/21 19:02:15;  author: mike;  state: Exp;
45467 break repair centers.
45468 ----------------------------
45469 revision 1.14
45470 date: 1994/07/14 11:25:22;  author: john;  state: Exp;
45471 Made control centers destroy better; made automap use Tab key.
45472 ----------------------------
45473 revision 1.13
45474 date: 1994/07/13 10:45:33;  author: john;  state: Exp;
45475 Made control center object switch when dead.
45476 ----------------------------
45477 revision 1.12
45478 date: 1994/07/09 17:36:44;  author: mike;  state: Exp;
45479 Add extern for find_connected_repair_seg.
45480 ----------------------------
45481 revision 1.11
45482 date: 1994/06/15 19:00:32;  author: john;  state: Exp;
45483 Show timer in on top of 3d with mine destroyed...
45484 ----------------------------
45485 revision 1.10
45486 date: 1994/05/31 16:49:46;  author: john;  state: Exp;
45487 Begin to add robot materialization centers.
45488 ----------------------------
45489 revision 1.9
45490 date: 1994/05/30 20:22:03;  author: yuan;  state: Exp;
45491 New triggers.
45492 ----------------------------
45493 revision 1.8
45494 date: 1994/05/05 16:41:14;  author: matt;  state: Exp;
45495 Cleaned up repair center code, and moved some from object.c to fuelcen.c
45496 ----------------------------
45497 revision 1.7
45498 date: 1994/04/21 20:41:21;  author: yuan;  state: Exp;
45499 Added extern.
45500 ----------------------------
45501 revision 1.6
45502 date: 1994/04/21 20:28:32;  author: john;  state: Exp;
45503 Added flag for Yuan to tell when a fuel center is destroyed.
45504 ----------------------------
45505 revision 1.5
45506 date: 1994/04/14 17:00:59;  author: john;  state: Exp;
45507 Made repair cen's work properly; added reset_all_fuelcens.
45508 ----------------------------
45509 revision 1.4
45510 date: 1994/04/12 20:28:04;  author: john;  state: Exp;
45511 Added control center.
45512 ----------------------------
45513 revision 1.3
45514 date: 1994/04/08 15:37:10;  author: john;  state: Exp;
45515 Added repair centers.
45516 ----------------------------
45517 revision 1.2
45518 date: 1994/04/06 19:10:38;  author: john;  state: Exp;
45519 NEw version.
45520 ----------------------------
45521 revision 1.1
45522 date: 1994/04/06 12:39:02;  author: john;  state: Exp;
45523 Initial revision
45524 =============================================================================
45525 RCS file: f:/miner/source/main/fvi.c,v
45526 Working file: main/fvi.c
45527 head: 2.3
45528 branch:
45529 description: New home for find_vector_intersection()
45530 ----------------------------
45531 revision 2.3
45532 date: 1995/03/24 14:49:04;  author: john;  state: Exp;
45533 Added cheat for player to go thru walls.
45534 ----------------------------
45535 revision 2.2
45536 date: 1995/03/21 17:58:32;  author: john;  state: Exp;
45537 Fixed bug with normals..
45538 ----------------------------
45539 revision 2.1
45540 date: 1995/03/20 18:15:37;  author: john;  state: Exp;
45541 Added code to not store the normals in the segment structure.
45542 ----------------------------
45543 revision 2.0
45544 date: 1995/02/27 11:27:41;  author: john;  state: Exp;
45545 New version 2.0, which has no anonymous unions, builds with
45546 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
45547 ----------------------------
45548 revision 1.49
45549 date: 1995/02/22 14:45:47;  author: allender;  state: Exp;
45550 remove anonymous unions from object structure
45551 ----------------------------
45552 revision 1.48
45553 date: 1995/02/22 13:24:50;  author: john;  state: Exp;
45554 Removed the vecmat anonymous unions.
45555 ----------------------------
45556 revision 1.47
45557 date: 1995/02/07 16:17:26;  author: matt;  state: Exp;
45558 Disabled all robot-robot collisions except those involving two green
45559 guys.  Used to do collisions if either robot was green guy.
45560 ----------------------------
45561 revision 1.46
45562 date: 1995/02/02 14:07:53;  author: matt;  state: Exp;
45563 Fixed confusion about which segment you are touching when you're 
45564 touching a wall.  This manifested itself in spurious lava burns.
45565 ----------------------------
45566 revision 1.45
45567 date: 1995/02/02 13:45:53;  author: matt;  state: Exp;
45568 Made a bunch of lint-inspired changes
45569 ----------------------------
45570 revision 1.44
45571 date: 1995/01/24 12:10:17;  author: matt;  state: Exp;
45572 Fudged collisions for player/player, and player weapon/other player in
45573 coop games.
45574 ----------------------------
45575 revision 1.43
45576 date: 1995/01/14 19:16:45;  author: john;  state: Exp;
45577 First version of new bitmap paging code.
45578 ----------------------------
45579 revision 1.42
45580 date: 1994/12/15 12:22:40;  author: matt;  state: Exp;
45581 Small change which may or may not help
45582 ----------------------------
45583 revision 1.41
45584 date: 1994/12/14 11:45:51;  author: matt;  state: Exp;
45585 Fixed (hopefully) little bug with invalid segnum
45586 ----------------------------
45587 revision 1.40
45588 date: 1994/12/13 17:12:01;  author: matt;  state: Exp;
45589 Increased edge tolerance a bunch more
45590 ----------------------------
45591 revision 1.39
45592 date: 1994/12/13 14:37:59;  author: matt;  state: Exp;
45593 Fixed another stupid little bug
45594 ----------------------------
45595 revision 1.38
45596 date: 1994/12/13 13:25:44;  author: matt;  state: Exp;
45597 Increased tolerance massively to avoid catching on corners
45598 ----------------------------
45599 revision 1.37
45600 date: 1994/12/13 12:02:20;  author: matt;  state: Exp;
45601 Fixed small bug
45602 ----------------------------
45603 revision 1.36
45604 date: 1994/12/13 11:17:35;  author: matt;  state: Exp;
45605 Lots of changes to hopefully fix objects leaving the mine.  Note that
45606 this code should be considered somewhat experimental - one problem I
45607 know about is that you can get stuck on edges more easily than before.
45608 There may be other problems I don't know about yet.
45609 ----------------------------
45610 revision 1.35
45611 date: 1994/12/12 01:20:57;  author: matt;  state: Exp;
45612 Added hack in object-object collisions that treats claw guys as
45613 if they have 3/4 of their actual radius.
45614 ----------------------------
45615 revision 1.34
45616 date: 1994/12/04 22:48:39;  author: matt;  state: Exp;
45617 Physics & FVI now only build seglist for player objects, and they 
45618 responsilby deal with buffer full conditions
45619 ----------------------------
45620 revision 1.33
45621 date: 1994/12/04 22:07:05;  author: matt;  state: Exp;
45622 Added better handing of buffer full condition
45623 ----------------------------
45624 revision 1.32
45625 date: 1994/12/01 21:06:33;  author: matt;  state: Exp;
45626 Several important changes:
45627  (1) Checking against triangulated sides has been standardized a bit
45628  (2) Code has been added to de-triangulate some sides
45629  (3) BIG ONE: the tolerance for checking a point against a plane has
45630      been drastically relaxed
45631 ----------------------------
45632 revision 1.31
45633 date: 1994/11/27 23:15:03;  author: matt;  state: Exp;
45634 Made changes for new mprintf calling convention
45635 ----------------------------
45636 revision 1.30
45637 date: 1994/11/19 15:20:30;  author: mike;  state: Exp;
45638 rip out unused code and data
45639 ----------------------------
45640 revision 1.29
45641 date: 1994/11/16 12:18:17;  author: mike;  state: Exp;
45642 hack for green_guy:green_guy collision detection.
45643 ----------------------------
45644 revision 1.28
45645 date: 1994/11/10 13:08:54;  author: matt;  state: Exp;
45646 Added support for new run-length-encoded bitmaps
45647 ----------------------------
45648 revision 1.27
45649 date: 1994/10/31 12:27:51;  author: matt;  state: Exp;
45650 Added new function object_intersects_wall()
45651 ----------------------------
45652 revision 1.26
45653 date: 1994/10/20 13:59:27;  author: matt;  state: Exp;
45654 Added assert
45655 ----------------------------
45656 revision 1.25
45657 date: 1994/10/09 23:51:09;  author: matt;  state: Exp;
45658 Made find_hitpoint_uv() work with triangulated sides
45659 ----------------------------
45660 revision 1.24
45661 date: 1994/09/25 00:39:29;  author: matt;  state: Exp;
45662 Took out mprintf's
45663 ----------------------------
45664 revision 1.23
45665 date: 1994/09/25 00:37:53;  author: matt;  state: Exp;
45666 Made the 'find the point in the bitmap where something hit' system
45667 publicly accessible.
45668 ----------------------------
45669 revision 1.22
45670 date: 1994/09/21 16:58:22;  author: matt;  state: Exp;
45671 Fixed bug in trans wall check that was checking against verically 
45672 flipped bitmap (i.e., the y coord was negative when checking).
45673 ----------------------------
45674 revision 1.21
45675 date: 1994/09/02 11:31:40;  author: matt;  state: Exp;
45676 Fixed object/object collisions, so you can't fly through robots anymore.
45677 Cleaned up object damage system.
45678 ----------------------------
45679 revision 1.20
45680 date: 1994/08/26 09:42:03;  author: matt;  state: Exp;
45681 Increased the size of a buffer
45682 ----------------------------
45683 revision 1.19
45684 date: 1994/08/11 18:57:53;  author: mike;  state: Exp;
45685 Convert shorts to ints for optimization.
45686 ----------------------------
45687 revision 1.18
45688 date: 1994/08/08 21:38:24;  author: matt;  state: Exp;
45689 Put in small optimization
45690 ----------------------------
45691 revision 1.17
45692 date: 1994/08/08 12:21:52;  author: yuan;  state: Exp;
45693 Fixed assert
45694 ----------------------------
45695 revision 1.16
45696 date: 1994/08/08 11:47:04;  author: matt;  state: Exp;
45697 Cleaned up fvi and physics a little
45698 ----------------------------
45699 revision 1.15
45700 date: 1994/08/04 00:21:04;  author: matt;  state: Exp;
45701 Cleaned up fvi & physics error handling; put in code to make sure objects
45702 are in correct segment; simplified segment finding for objects and points
45703 ----------------------------
45704 revision 1.14
45705 date: 1994/08/02 19:04:26;  author: matt;  state: Exp;
45706 Cleaned up vertex list functions
45707 ----------------------------
45708 revision 1.13
45709 date: 1994/08/02 09:56:28;  author: matt;  state: Exp;
45710 Put in check for bad value find_plane_line_intersection()
45711 ----------------------------
45712 revision 1.12
45713 date: 1994/08/01 17:27:26;  author: matt;  state: Exp;
45714 Added support for triangulated walls in trans point check
45715 ----------------------------
45716 revision 1.11
45717 date: 1994/08/01 13:30:40;  author: matt;  state: Exp;
45718 Made fvi() check holes in transparent walls, and changed fvi() calling
45719 parms to take all input data in query structure.
45720 ----------------------------
45721 revision 1.10
45722 date: 1994/07/13 21:47:17;  author: matt;  state: Exp;
45723 FVI() and physics now keep lists of segments passed through which the
45724 trigger code uses.
45725 ----------------------------
45726 revision 1.9
45727 date: 1994/07/09 21:21:40;  author: matt;  state: Exp;
45728 Fixed, hopefull, bugs in sphere-to-vector intersection code
45729 ----------------------------
45730 revision 1.8
45731 date: 1994/07/08 14:26:42;  author: matt;  state: Exp;
45732 Non-needed powerups don't get picked up now; this required changing FVI to
45733 take a list of ingore objects rather than just one ignore object.
45734 ----------------------------
45735 revision 1.7
45736 date: 1994/07/06 20:02:37;  author: matt;  state: Exp;
45737 Made change to match gameseg that uses lowest point number as reference
45738 point when checking against a plane
45739 ----------------------------
45740 revision 1.6
45741 date: 1994/06/29 15:43:58;  author: matt;  state: Exp;
45742 When computing intersection of vector and sphere, use the radii of both
45743 objects.
45744 ----------------------------
45745 revision 1.5
45746 date: 1994/06/14 15:57:58;  author: matt;  state: Exp;
45747 Took out asserts, and added other hacks, pending real bug fixes
45748 ----------------------------
45749 revision 1.4
45750 date: 1994/06/13 23:10:08;  author: matt;  state: Exp;
45751 Fixed problems with triangulated sides
45752 ----------------------------
45753 revision 1.3
45754 date: 1994/06/09 12:11:14;  author: matt;  state: Exp;
45755 Fixed confusing use of two variables, hit_objnum & fvi_hit_object, to
45756 keep the same information in different ways.
45757 ----------------------------
45758 revision 1.2
45759 date: 1994/06/09 09:58:38;  author: matt;  state: Exp;
45760 Moved find_vector_intersection() from physics.c to new file fvi.c
45761 ----------------------------
45762 revision 1.1
45763 date: 1994/06/09 09:25:57;  author: matt;  state: Exp;
45764 Initial revision
45765 =============================================================================
45766 RCS file: f:/miner/source/main/fvi.h,v
45767 Working file: main/fvi.h
45768 head: 2.1
45769 branch:
45770 description: Header for fvi.c
45771 ----------------------------
45772 revision 2.1
45773 date: 1995/03/20 18:15:58;  author: john;  state: Exp;
45774 Added code to not store the normals in the segment structure.
45775 ----------------------------
45776 revision 2.0
45777 date: 1995/02/27 11:32:02;  author: john;  state: Exp;
45778 New version 2.0, which has no anonymous unions, builds with
45779 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
45780 ----------------------------
45781 revision 1.10
45782 date: 1995/02/02 14:07:58;  author: matt;  state: Exp;
45783 Fixed confusion about which segment you are touching when you're 
45784 touching a wall.  This manifested itself in spurious lava burns.
45785 ----------------------------
45786 revision 1.9
45787 date: 1994/12/04 22:48:04;  author: matt;  state: Exp;
45788 Physics & FVI now only build seglist for player objects, and they 
45789 responsilby deal with buffer full conditions
45790 ----------------------------
45791 revision 1.8
45792 date: 1994/10/31 12:28:01;  author: matt;  state: Exp;
45793 Added new function object_intersects_wall()
45794 ----------------------------
45795 revision 1.7
45796 date: 1994/10/10 13:10:00;  author: matt;  state: Exp;
45797 Increased max_fvi_segs
45798 ----------------------------
45799 revision 1.6
45800 date: 1994/09/25 00:38:29;  author: matt;  state: Exp;
45801 Made the 'find the point in the bitmap where something hit' system
45802 publicly accessible.
45803 ----------------------------
45804 revision 1.5
45805 date: 1994/08/01 13:30:35;  author: matt;  state: Exp;
45806 Made fvi() check holes in transparent walls, and changed fvi() calling
45807 parms to take all input data in query structure.
45808 ----------------------------
45809 revision 1.4
45810 date: 1994/07/13 21:47:59;  author: matt;  state: Exp;
45811 FVI() and physics now keep lists of segments passed through which the
45812 trigger code uses.
45813 ----------------------------
45814 revision 1.3
45815 date: 1994/07/08 14:27:26;  author: matt;  state: Exp;
45816 Non-needed powerups don't get picked up now; this required changing FVI to
45817 take a list of ingore objects rather than just one ignore object.
45818 ----------------------------
45819 revision 1.2
45820 date: 1994/06/09 09:58:39;  author: matt;  state: Exp;
45821 Moved find_vector_intersection() from physics.c to new file fvi.c
45822 ----------------------------
45823 revision 1.1
45824 date: 1994/06/09 09:26:14;  author: matt;  state: Exp;
45825 Initial revision
45826 =============================================================================
45827 RCS file: f:/miner/source/main/game.c,v
45828 Working file: main/game.c
45829 head: 2.36
45830 branch:
45831 description: Game loop for Inferno
45832 ----------------------------
45833 revision 2.36
45834 date: 1996/01/05 16:52:05;  author: john;  state: Exp;
45835 Improved 3d stuff.
45836 ----------------------------
45837 revision 2.35
45838 date: 1995/10/09 22:17:10;  author: john;  state: Exp;
45839 Took out the page flipping in set_screen_mode, which shouldn't
45840 be there.  This was hosing the modex stuff.
45841 ----------------------------
45842 revision 2.34
45843 date: 1995/10/09 19:46:34;  author: john;  state: Exp;
45844 Fixed bug with modex paging with lcdbios.
45845 ----------------------------
45846 revision 2.33
45847 date: 1995/10/08 11:46:09;  author: john;  state: Exp;
45848 Fixed bug with 2d offset in interlaced mode in low res.
45849 Made LCDBIOS with pageflipping using VESA set start
45850 Address function.  X=CRTC offset, Y=0.
45851 ----------------------------
45852 revision 2.32
45853 date: 1995/10/07 13:20:51;  author: john;  state: Exp;
45854 Added new modes for LCDBIOS, also added support for -JoyNice,
45855 and added Shift+F1-F4 to controls various stereoscopic params.
45856 ----------------------------
45857 revision 2.31
45858 date: 1995/05/31 14:34:43;  author: unknown;  state: Exp;
45859 fixed warnings.
45860 ----------------------------
45861 revision 2.30
45862 date: 1995/05/08 11:23:45;  author: john;  state: Exp;
45863 Made 3dmax work like Kasan wants it to.
45864 ----------------------------
45865 revision 2.29
45866 date: 1995/04/06 13:47:39;  author: yuan;  state: Exp;
45867 Restored rear view to original.
45868 ----------------------------
45869 revision 2.28
45870 date: 1995/04/06 12:13:07;  author: john;  state: Exp;
45871 Fixed some bugs with 3dmax.
45872 ----------------------------
45873 revision 2.27
45874 date: 1995/04/05 13:18:18;  author: mike;  state: Exp;
45875 decrease energy usage on fusion cannon
45876 ----------------------------
45877 revision 2.26
45878 date: 1995/03/30 16:36:32;  author: mike;  state: Exp;
45879 text localization.
45880 ----------------------------
45881 revision 2.25
45882 date: 1995/03/27 16:45:26;  author: john;  state: Exp;
45883 Fixed some cheat bugs.  Added astral cheat.
45884 ----------------------------
45885 revision 2.24
45886 date: 1995/03/27 15:37:11;  author: mike;  state: Exp;
45887 boost fusion cannon for non-multiplayer modes.
45888 ----------------------------
45889 revision 2.23
45890 date: 1995/03/24 17:48:04;  author: john;  state: Exp;
45891 Fixed bug with menus and 320x100.
45892 ----------------------------
45893 revision 2.22
45894 date: 1995/03/24 15:34:02;  author: mike;  state: Exp;
45895 cheats.
45896 ----------------------------
45897 revision 2.21
45898 date: 1995/03/24 13:11:39;  author: john;  state: Exp;
45899 Added save game during briefing screens.
45900 ----------------------------
45901 revision 2.20
45902 date: 1995/03/21 14:40:50;  author: john;  state: Exp;
45903 Ifdef'd out the NETWORK code.
45904 ----------------------------
45905 revision 2.19
45906 date: 1995/03/16 22:07:16;  author: john;  state: Exp;
45907 Made so only for screen can be used for anything other
45908 than mode 13.
45909 ----------------------------
45910 revision 2.18
45911 date: 1995/03/16 21:45:35;  author: john;  state: Exp;
45912 Made all paged modes have incompatible menus!
45913 ----------------------------
45914 revision 2.17
45915 date: 1995/03/16 18:30:35;  author: john;  state: Exp;
45916 Made wider than 320 screens not have
45917 a status bar mode.
45918 ----------------------------
45919 revision 2.16
45920 date: 1995/03/16 10:53:34;  author: john;  state: Exp;
45921 Move VFX center to Shift+Z instead of Enter because
45922 it conflicted with toggling HUD on/off.
45923 ----------------------------
45924 revision 2.15
45925 date: 1995/03/16 10:18:33;  author: john;  state: Exp;
45926 Fixed bug with VFX mode not working. also made warning
45927 when it can't set VESA mode.
45928 ----------------------------
45929 revision 2.14
45930 date: 1995/03/14 16:22:39;  author: john;  state: Exp;
45931 Added cdrom alternate directory stuff.
45932 ----------------------------
45933 revision 2.13
45934 date: 1995/03/14 12:14:17;  author: john;  state: Exp;
45935 Made VR helmets have 4 resolutions to choose from.
45936 ----------------------------
45937 revision 2.12
45938 date: 1995/03/10 13:47:33;  author: john;  state: Exp;
45939 Added head tracking sensitivity.
45940 ----------------------------
45941 revision 2.11
45942 date: 1995/03/10 13:13:47;  author: john;  state: Exp;
45943 Added code to show T-xx on iglasses.
45944 ----------------------------
45945 revision 2.10
45946 date: 1995/03/09 18:07:29;  author: john;  state: Exp;
45947 Fixed bug with iglasses tracking not "centering" right.
45948 Made VFX have bright headlight lighting.
45949 ----------------------------
45950 revision 2.9
45951 date: 1995/03/09 11:48:02;  author: john;  state: Exp;
45952 Added HUD for VR helmets.
45953 ----------------------------
45954 revision 2.8
45955 date: 1995/03/07 15:12:53;  author: john;  state: Exp;
45956 Fixed VFX,3dmax support.
45957 ----------------------------
45958 revision 2.7
45959 date: 1995/03/07 11:35:03;  author: john;  state: Exp;
45960 Fixed bug with cockpit in rear view.
45961 ----------------------------
45962 revision 2.6
45963 date: 1995/03/06 18:40:17;  author: john;  state: Exp;
45964 Added some ifdef EDITOR stuff.
45965 ----------------------------
45966 revision 2.5
45967 date: 1995/03/06 18:31:21;  author: john;  state: Exp;
45968 Fixed bug with nmenu popping up on editor screen.
45969 ----------------------------
45970 revision 2.4
45971 date: 1995/03/06 17:28:33;  author: john;  state: Exp;
45972 Fixed but with cockpit toggling wrong.
45973 ----------------------------
45974 revision 2.3
45975 date: 1995/03/06 16:08:10;  author: mike;  state: Exp;
45976 Fix compile errors if building without editor.
45977 ----------------------------
45978 revision 2.2
45979 date: 1995/03/06 15:24:10;  author: john;  state: Exp;
45980 New screen techniques.
45981 ----------------------------
45982 revision 2.1
45983 date: 1995/02/27 13:41:03;  author: john;  state: Exp;
45984 Removed floating point from frame rate calculations.
45985 ----------------------------
45986 revision 2.0
45987 date: 1995/02/27 11:31:54;  author: john;  state: Exp;
45988 New version 2.0, which has no anonymous unions, builds with
45989 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
45990 ----------------------------
45991 revision 1.770
45992 date: 1995/02/22 12:45:15;  author: allender;  state: Exp;
45993 remove anonymous unions from object structure
45994 ----------------------------
45995 revision 1.769
45996 date: 1995/02/15 10:06:25;  author: allender;  state: Exp;
45997 make pause pause game during demo playback
45998 ----------------------------
45999 revision 1.768
46000 date: 1995/02/13 20:35:11;  author: john;  state: Exp;
46001 Lintized
46002 ----------------------------
46003 revision 1.767
46004 date: 1995/02/13 19:40:29;  author: allender;  state: Exp;
46005 added place to demo record restoration from rear view in place that
46006 I forgot before
46007 ----------------------------
46008 revision 1.766
46009 date: 1995/02/13 10:29:27;  author: john;  state: Exp;
46010 Fixed bug with cheats not restoreing across save games.
46011 ----------------------------
46012 revision 1.765
46013 date: 1995/02/11 22:54:33;  author: john;  state: Exp;
46014 Made loading for pig not show up for demos.
46015 ----------------------------
46016 revision 1.764
46017 date: 1995/02/11 17:30:08;  author: allender;  state: Exp;
46018 ifndef NDEBUG around strip frame stuff
46019 ----------------------------
46020 revision 1.763
46021 date: 1995/02/11 17:13:01;  author: rob;  state: Exp;
46022 Took out modem.c code fille stuff.
46023 ----------------------------
46024 revision 1.762
46025 date: 1995/02/11 16:36:47;  author: allender;  state: Exp;
46026 debug key to strip frames from end of demo
46027 ----------------------------
46028 revision 1.761
46029 date: 1995/02/11 14:29:16;  author: john;  state: Exp;
46030 Turned off cheats when going into game.
46031 ----------------------------
46032 revision 1.760
46033 date: 1995/02/11 13:46:54;  author: mike;  state: Exp;
46034 fix cheats.
46035 ----------------------------
46036 revision 1.759
46037 date: 1995/02/11 12:36:09;  author: matt;  state: Exp;
46038 Cleaned up cheats
46039 ----------------------------
46040 revision 1.758
46041 date: 1995/02/11 12:27:04;  author: mike;  state: Exp;
46042 fix path-to-exit cheat.
46043 ----------------------------
46044 revision 1.757
46045 date: 1995/02/11 01:56:24;  author: mike;  state: Exp;
46046 robots don't fire cheat.
46047 ----------------------------
46048 revision 1.756
46049 date: 1995/02/10 16:38:40;  author: mike;  state: Exp;
46050 illuminate path to exit cheat.
46051 ----------------------------
46052 revision 1.755
46053 date: 1995/02/10 16:19:40;  author: mike;  state: Exp;
46054 new show-path-to-exit system, still buggy, compiled out.
46055 ----------------------------
46056 revision 1.754
46057 date: 1995/02/10 15:54:46;  author: matt;  state: Exp;
46058 Added new cheats
46059 ----------------------------
46060 revision 1.753
46061 date: 1995/02/09 12:25:42;  author: matt;  state: Exp;
46062 Made mem_fill() test routines not be called if RELEASE
46063 ----------------------------
46064 revision 1.752
46065 date: 1995/02/09 08:49:32;  author: mike;  state: Exp;
46066 change fill opcode value to 0xcc, int 3 value.
46067 ----------------------------
46068 revision 1.751
46069 date: 1995/02/09 02:59:26;  author: mike;  state: Exp;
46070 check code for 00066xxx bugs.
46071 ----------------------------
46072 revision 1.750
46073 date: 1995/02/08 17:10:02;  author: mike;  state: Exp;
46074 add, but don't call, debug code.
46075 ----------------------------
46076 revision 1.749
46077 date: 1995/02/07 11:07:27;  author: john;  state: Exp;
46078 Added hooks for confirm on game state restore.
46079 ----------------------------
46080 revision 1.748
46081 date: 1995/02/06 15:52:45;  author: mike;  state: Exp;
46082 add mini megawow powerup for giving reasonable weapons.
46083 ----------------------------
46084 revision 1.747
46085 date: 1995/02/06 12:53:35;  author: allender;  state: Exp;
46086 force endlevel_sequence to 0 to fix weird bug
46087 ----------------------------
46088 revision 1.746
46089 date: 1995/02/04 10:03:30;  author: mike;  state: Exp;
46090 Fly to exit cheat.
46091 ----------------------------
46092 revision 1.745
46093 date: 1995/02/02 15:57:52;  author: john;  state: Exp;
46094 Added turbo mode cheat.
46095 ----------------------------
46096 revision 1.744
46097 date: 1995/02/02 14:43:39;  author: john;  state: Exp;
46098 Uppped frametime limit to 150 Hz.
46099 ----------------------------
46100 revision 1.743
46101 date: 1995/02/02 13:37:16;  author: mike;  state: Exp;
46102 move T-?? message down in certain modes.
46103 ----------------------------
46104 revision 1.742
46105 date: 1995/02/02 01:26:59;  author: john;  state: Exp;
46106 Took out no key repeating.
46107 ----------------------------
46108 revision 1.741
46109 date: 1995/01/29 21:36:44;  author: mike;  state: Exp;
46110 make fusion cannon not make pitching slow.
46111 ----------------------------
46112 revision 1.740
46113 date: 1995/01/28 15:57:57;  author: john;  state: Exp;
46114 Made joystick calibration be only when wrong detected in
46115 menu or joystick axis changed.
46116 ----------------------------
46117 revision 1.739
46118 date: 1995/01/28 15:21:03;  author: yuan;  state: Exp;
46119 Added X-tra life cheat.
46120 ----------------------------
46121 revision 1.738
46122 date: 1995/01/27 14:08:31;  author: rob;  state: Exp;
46123 Fixed a bug.
46124 ----------------------------
46125 revision 1.737
46126 date: 1995/01/27 14:04:59;  author: rob;  state: Exp;
46127 Its not my fault, Mark told me to do it!
46128 ----------------------------
46129 revision 1.736
46130 date: 1995/01/27 13:12:18;  author: rob;  state: Exp;
46131 Added charging noises to play across net.
46132 ----------------------------
46133 revision 1.735
46134 date: 1995/01/27 11:48:28;  author: allender;  state: Exp;
46135 check for newdemo_state to be paused and stop recording.  We might be
46136 in between levels
46137 ----------------------------
46138 revision 1.734
46139 date: 1995/01/26 22:11:41;  author: mike;  state: Exp;
46140 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
46141 ----------------------------
46142 revision 1.733
46143 date: 1995/01/26 17:03:04;  author: mike;  state: Exp;
46144 make fusion cannon have more chrome, make fusion, mega rock you!
46145 ----------------------------
46146 revision 1.732
46147 date: 1995/01/25 14:37:25;  author: john;  state: Exp;
46148 Made joystick only prompt for calibration once...
46149 ----------------------------
46150 revision 1.731
46151 date: 1995/01/24 15:49:14;  author: john;  state: Exp;
46152 Made typeing in long net messages wrap on 
46153 small screen sizes.
46154 ----------------------------
46155 revision 1.730
46156 date: 1995/01/24 15:23:42;  author: mike;  state: Exp;
46157 network message tweaking.
46158 ----------------------------
46159 revision 1.729
46160 date: 1995/01/24 12:00:47;  author: john;  state: Exp;
46161 Fixed bug with defing macro passing keys to controls.
46162 ----------------------------
46163 revision 1.728
46164 date: 1995/01/24 11:53:35;  author: john;  state: Exp;
46165 Added better macro defining code.
46166 ----------------------------
46167 revision 1.727
46168 date: 1995/01/23 22:17:15;  author: john;  state: Exp;
46169 Fixed bug with not clearing key buffer when leaving f8.
46170 ----------------------------
46171 revision 1.726
46172 date: 1995/01/23 22:07:09;  author: john;  state: Exp;
46173 Added flush to game inputs during F8.
46174 =============================================================================
46175 RCS file: f:/miner/source/main/game.h,v
46176 Working file: main/game.h
46177 head: 2.1
46178 branch:
46179 description: Constants & prototypes which pertain to the game only
46180 ----------------------------
46181 revision 2.1
46182 date: 1995/03/06 15:23:22;  author: john;  state: Exp;
46183 New screen techniques.
46184 ----------------------------
46185 revision 2.0
46186 date: 1995/02/27 11:28:21;  author: john;  state: Exp;
46187 New version 2.0, which has no anonymous unions, builds with
46188 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
46189 ----------------------------
46190 revision 1.79
46191 date: 1995/02/13 10:37:17;  author: john;  state: Exp;
46192 Saved Buggin' cheat mode to save file.
46193 ----------------------------
46194 revision 1.78
46195 date: 1995/02/01 16:34:12;  author: john;  state: Exp;
46196 Linted.
46197 ----------------------------
46198 revision 1.77
46199 date: 1995/01/29 21:37:14;  author: mike;  state: Exp;
46200 initialize variables on game load so you don't drain your energy when you fire.
46201 ----------------------------
46202 revision 1.76
46203 date: 1995/01/26 22:11:36;  author: mike;  state: Exp;
46204 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
46205 ----------------------------
46206 revision 1.75
46207 date: 1995/01/26 16:45:31;  author: mike;  state: Exp;
46208 Add autofire fusion cannon stuff.
46209 ----------------------------
46210 revision 1.74
46211 date: 1994/12/11 23:18:06;  author: john;  state: Exp;
46212 Added -nomusic.
46213 Added RealFrameTime.
46214 Put in a pause when sound initialization error.
46215 Made controlcen countdown and framerate use RealFrameTime.
46216 ----------------------------
46217 revision 1.73
46218 date: 1994/12/09 00:41:24;  author: mike;  state: Exp;
46219 fix hang in automap print screen
46220 ----------------------------
46221 revision 1.72
46222 date: 1994/12/04 13:47:00;  author: mike;  state: Exp;
46223 enhance custom detail level support.
46224 ----------------------------
46225 revision 1.71
46226 date: 1994/12/02 15:05:44;  author: matt;  state: Exp;
46227 Added new "official" cheats
46228 ----------------------------
46229 revision 1.70
46230 date: 1994/11/28 18:14:09;  author: rob;  state: Exp;
46231 Added game_mode flag for team games.
46232 ----------------------------
46233 revision 1.69
46234 date: 1994/11/15 16:51:13;  author: matt;  state: Exp;
46235 Made rear view only switch to rear cockpit if cockpit on in front view
46236 ----------------------------
46237 revision 1.68
46238 date: 1994/11/04 16:26:10;  author: john;  state: Exp;
46239 Fixed bug with letterbox mode game after you finish a game.
46240 ----------------------------
46241 revision 1.67
46242 date: 1994/11/02 11:59:48;  author: john;  state: Exp;
46243 Moved menu out of game into inferno main loop.
46244 ----------------------------
46245 revision 1.66
46246 date: 1994/10/26 23:02:19;  author: matt;  state: Exp;
46247 Made palette flash saturate negative values
46248 ----------------------------
46249 revision 1.65
46250 date: 1994/10/26 15:21:05;  author: mike;  state: Exp;
46251 Detail level stuff.  Make Render_depth public.
46252 ----------------------------
46253 revision 1.64
46254 date: 1994/10/19 00:13:01;  author: matt;  state: Exp;
46255 Added prototypes
46256 ----------------------------
46257 revision 1.63
46258 date: 1994/10/09 14:54:39;  author: matt;  state: Exp;
46259 Made player cockpit state & window size save/restore with saved games & automap
46260 ----------------------------
46261 revision 1.62
46262 date: 1994/10/08 19:56:32;  author: matt;  state: Exp;
46263 Added prototype
46264 ----------------------------
46265 revision 1.61
46266 date: 1994/10/07 22:19:32;  author: mike;  state: Exp;
46267 Increase number of difficulty levels from 4 to 5.
46268 ----------------------------
46269 revision 1.60
46270 date: 1994/10/06 14:14:11;  author: matt;  state: Exp;
46271 Added new function to reset time (to prevent big FrameTime) at start of level
46272 ----------------------------
46273 revision 1.59
46274 date: 1994/10/05 17:08:43;  author: matt;  state: Exp;
46275 Changed order of cockpit bitmaps, since there's no longer a full-screen cockpit
46276 ----------------------------
46277 revision 1.58
46278 date: 1994/10/03 23:44:13;  author: matt;  state: Exp;
46279 Save & restore palette effect around menus & pause message
46280 ----------------------------
46281 revision 1.57
46282 date: 1994/09/29 17:42:12;  author: matt;  state: Exp;
46283 Cleaned up game_mode a little
46284 ----------------------------
46285 revision 1.56
46286 date: 1994/09/28 23:12:01;  author: matt;  state: Exp;
46287 Macroized palette flash system
46288 ----------------------------
46289 revision 1.55
46290 date: 1994/09/24 16:56:13;  author: rob;  state: Exp;
46291 Added new fields for the Game_mode bitvector for modem play.
46292 ----------------------------
46293 revision 1.54
46294 date: 1994/09/24 14:16:20;  author: mike;  state: Exp;
46295 Added new game mode constants.
46296 ----------------------------
46297 revision 1.53
46298 date: 1994/09/22 19:00:57;  author: mike;  state: Exp;
46299 Move NDL from robot.h to here.
46300 ----------------------------
46301 revision 1.52
46302 date: 1994/09/22 10:46:51;  author: mike;  state: Exp;
46303 Add difficulty levels.
46304 ----------------------------
46305 revision 1.51
46306 date: 1994/09/17 01:39:52;  author: matt;  state: Exp;
46307 Added status bar/sizable window mode, and in the process revamped the
46308 whole cockpit mode system.
46309 ----------------------------
46310 revision 1.50
46311 date: 1994/09/15 21:23:10;  author: matt;  state: Exp;
46312 Changed system to keep track of whether & what cockpit is up
46313 ----------------------------
46314 revision 1.49
46315 date: 1994/09/15 16:11:33;  author: john;  state: Exp;
46316 Added support for VFX1 head tracking. Fixed bug with memory over-
46317 write when using stereo mode.
46318 ----------------------------
46319 revision 1.48
46320 date: 1994/09/13 16:40:10;  author: mike;  state: Exp;
46321 Prototype Global_missile_firing_count.
46322 ----------------------------
46323 revision 1.47
46324 date: 1994/09/13 11:19:05;  author: mike;  state: Exp;
46325 Add Next_missile_fire_time.
46326 ----------------------------
46327 revision 1.46
46328 date: 1994/09/12 09:52:50;  author: john;  state: Exp;
46329 Made global flush function that flushes keyboard,mouse, and joystick.
46330 ----------------------------
46331 revision 1.45
46332 date: 1994/09/03 15:24:14;  author: mike;  state: Exp;
46333 Make global Global_laser_firing_count.
46334 ----------------------------
46335 revision 1.44
46336 date: 1994/08/31 19:26:57;  author: mike;  state: Exp;
46337 Prototypes for Next_laser_fire_time, Laser_delay_time.
46338 ----------------------------
46339 revision 1.43
46340 date: 1994/08/18 10:47:22;  author: john;  state: Exp;
46341 Cleaned up game sequencing and player death stuff
46342 in preparation for making the player explode into
46343 pieces when dead.
46344 ----------------------------
46345 revision 1.42
46346 date: 1994/08/11 18:03:53;  author: matt;  state: Exp;
46347 Added prototype
46348 ----------------------------
46349 revision 1.41
46350 date: 1994/06/29 20:41:38;  author: matt;  state: Exp;
46351 Added new pause mode; cleaned up countdown & game startup code
46352 ----------------------------
46353 revision 1.40
46354 date: 1994/06/24 17:03:49;  author: john;  state: Exp;
46355 Added VFX support. Also took all game sequencing stuff like
46356 EndGame out and put it into gameseq.c
46357 ----------------------------
46358 revision 1.39
46359 date: 1994/06/20 15:01:08;  author: yuan;  state: Exp;
46360 Added death when mine blows up...
46361 Continues onto next level.
46362 ----------------------------
46363 revision 1.38
46364 date: 1994/06/17 18:07:20;  author: matt;  state: Exp;
46365 Moved some vars out of ifdef
46366 ----------------------------
46367 revision 1.37
46368 date: 1994/06/15 11:09:22;  author: yuan;  state: Exp;
46369 Moved gauge_message to mono screen for now.
46370 ----------------------------
46371 revision 1.36
46372 date: 1994/05/30 20:22:11;  author: yuan;  state: Exp;
46373 New triggers.
46374 ----------------------------
46375 revision 1.35
46376 date: 1994/05/27 10:32:48;  author: yuan;  state: Exp;
46377 New dialog boxes (Walls and Triggers) added.
46378 ----------------------------
46379 revision 1.34
46380 date: 1994/05/20 11:56:45;  author: matt;  state: Exp;
46381 Cleaned up find_vector_intersection() interface
46382 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
46383 ----------------------------
46384 revision 1.33
46385 date: 1994/05/19 21:45:21;  author: matt;  state: Exp;
46386 Removed unused prototypes
46387 ----------------------------
46388 revision 1.32
46389 date: 1994/05/19 18:53:17;  author: yuan;  state: Exp;
46390 Changing player structure...
46391 ----------------------------
46392 revision 1.31
46393 date: 1994/05/16 16:38:35;  author: yuan;  state: Exp;
46394 Fixed palette add so it doesn't show up in the menu.
46395 ----------------------------
46396 revision 1.30
46397 date: 1994/05/16 09:28:17;  author: matt;  state: Exp;
46398 Renamed init_player() to be init_player_stats(), added new funtion
46399 init_player_object()
46400 ----------------------------
46401 revision 1.29
46402 date: 1994/05/14 17:14:57;  author: matt;  state: Exp;
46403 Got rid of externs in source (non-header) files
46404 =============================================================================
46405 RCS file: f:/miner/source/main/gamefont.c,v
46406 Working file: main/gamefont.c
46407 head: 2.0
46408 branch:
46409 description: Fonts for the game.
46410 ----------------------------
46411 revision 2.0
46412 date: 1995/02/27 11:30:14;  author: john;  state: Exp;
46413 New version 2.0, which has no anonymous unions, builds with
46414 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
46415 ----------------------------
46416 revision 1.8
46417 date: 1994/11/18 16:41:39;  author: adam;  state: Exp;
46418 trimmed some meat
46419 ----------------------------
46420 revision 1.7
46421 date: 1994/11/17 13:07:11;  author: adam;  state: Exp;
46422 removed unused font
46423 ----------------------------
46424 revision 1.6
46425 date: 1994/11/03 21:36:12;  author: john;  state: Exp;
46426 Added code for credit fonts.
46427 ----------------------------
46428 revision 1.5
46429 date: 1994/08/17 20:20:02;  author: matt;  state: Exp;
46430 Took out alternate-color versions of font3, since this is a mono font
46431 ----------------------------
46432 revision 1.4
46433 date: 1994/08/12 12:03:44;  author: adam;  state: Exp;
46434 tweaked fonts.
46435 ----------------------------
46436 revision 1.3
46437 date: 1994/08/11 12:43:40;  author: adam;  state: Exp;
46438 changed font filenames
46439 ----------------------------
46440 revision 1.2
46441 date: 1994/08/10 19:57:15;  author: john;  state: Exp;
46442 Changed font stuff; Took out old menu; messed up lots of
46443 other stuff like game sequencing messages, etc.
46444 ----------------------------
46445 revision 1.1
46446 date: 1994/08/10 17:20:09;  author: john;  state: Exp;
46447 Initial revision
46448 =============================================================================
46449 RCS file: f:/miner/source/main/gamefont.h,v
46450 Working file: main/gamefont.h
46451 head: 2.0
46452 branch:
46453 description: Font declarations for the game,.
46454 ----------------------------
46455 revision 2.0
46456 date: 1995/02/27 11:31:09;  author: john;  state: Exp;
46457 New version 2.0, which has no anonymous unions, builds with
46458 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
46459 ----------------------------
46460 revision 1.7
46461 date: 1994/11/18 16:41:28;  author: adam;  state: Exp;
46462 trimmed meat
46463 ----------------------------
46464 revision 1.6
46465 date: 1994/11/17 13:07:00;  author: adam;  state: Exp;
46466 removed unused font
46467 ----------------------------
46468 revision 1.5
46469 date: 1994/11/03 21:36:02;  author: john;  state: Exp;
46470 Added code for credit fonts.
46471 ----------------------------
46472 revision 1.4
46473 date: 1994/08/17 20:20:25;  author: matt;  state: Exp;
46474 Took out alternate-color versions of font3, since this is a mono font
46475 ----------------------------
46476 revision 1.3
46477 date: 1994/08/11 12:44:32;  author: adam;  state: Exp;
46478 killed a #define
46479 ----------------------------
46480 revision 1.2
46481 date: 1994/08/10 19:57:16;  author: john;  state: Exp;
46482 Changed font stuff; Took out old menu; messed up lots of
46483 other stuff like game sequencing messages, etc.
46484 ----------------------------
46485 revision 1.1
46486 date: 1994/08/10 17:20:22;  author: john;  state: Exp;
46487 Initial revision
46488 =============================================================================
46489 RCS file: f:/miner/source/main/gamemine.c,v
46490 Working file: main/gamemine.c
46491 head: 2.2
46492 branch:
46493 description: Functions for loading mines in the game
46494 ----------------------------
46495 revision 2.2
46496 date: 1995/03/06 15:23:14;  author: john;  state: Exp;
46497 New screen techniques.
46498 ----------------------------
46499 revision 2.1
46500 date: 1995/02/27 13:13:37;  author: john;  state: Exp;
46501 Removed floating point.
46502 ----------------------------
46503 revision 2.0
46504 date: 1995/02/27 11:27:45;  author: john;  state: Exp;
46505 New version 2.0, which has no anonymous unions, builds with
46506 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
46507 ----------------------------
46508 revision 1.70
46509 date: 1995/02/13 20:35:09;  author: john;  state: Exp;
46510 Lintized
46511 ----------------------------
46512 revision 1.69
46513 date: 1995/02/07 17:12:03;  author: rob;  state: Exp;
46514 Added ifdef's for Editor.
46515 ----------------------------
46516 revision 1.68
46517 date: 1995/02/07 16:51:48;  author: mike;  state: Exp;
46518 fix gray rock josh problem.
46519 ----------------------------
46520 revision 1.67
46521 date: 1995/02/01 15:46:26;  author: yuan;  state: Exp;
46522 Fixed matcen_nums.
46523 ----------------------------
46524 revision 1.66
46525 date: 1995/01/19 15:19:28;  author: mike;  state: Exp;
46526 new super-compressed registered file format.
46527 ----------------------------
46528 revision 1.65
46529 date: 1994/12/10 16:44:59;  author: matt;  state: Exp;
46530 Added debugging code to track down door that turns into rock
46531 ----------------------------
46532 revision 1.64
46533 date: 1994/12/10 14:58:24;  author: yuan;  state: Exp;
46534 *** empty log message ***
46535 ----------------------------
46536 revision 1.63
46537 date: 1994/12/08 17:19:10;  author: yuan;  state: Exp;
46538 Cfiling stuff.
46539 ----------------------------
46540 revision 1.62
46541 date: 1994/12/07 14:05:33;  author: yuan;  state: Exp;
46542 Fixed wall assert problem... Bashed highest_segment
46543 _index before WALL_IS_DOORWAY check.
46544 ----------------------------
46545 revision 1.61
46546 date: 1994/11/27 23:14:52;  author: matt;  state: Exp;
46547 Made changes for new mprintf calling convention
46548 ----------------------------
46549 revision 1.60
46550 date: 1994/11/27 18:05:20;  author: matt;  state: Exp;
46551 Compile out LVL reader when editor compiled out
46552 ----------------------------
46553 revision 1.59
46554 date: 1994/11/26 22:51:45;  author: matt;  state: Exp;
46555 Removed editor-only fields from segment structure when editor is compiled
46556 out, and padded segment structure to even multiple of 4 bytes.
46557 ----------------------------
46558 revision 1.58
46559 date: 1994/11/26 21:48:02;  author: matt;  state: Exp;
46560 Fixed saturation in short light value 
46561 ----------------------------
46562 revision 1.57
46563 date: 1994/11/20 22:11:49;  author: mike;  state: Exp;
46564 comment out an apparently unnecessary call to fuelcen_reset().
46565 ----------------------------
46566 revision 1.56
46567 date: 1994/11/18 21:56:42;  author: john;  state: Exp;
46568 Added a better, leaner pig format.
46569 ----------------------------
46570 revision 1.55
46571 date: 1994/11/17 20:09:18;  author: john;  state: Exp;
46572 Added new compiled level format.
46573 ----------------------------
46574 revision 1.54
46575 date: 1994/11/17 15:40:17;  author: mike;  state: Exp;
46576 Comment out mprintf which was causing important information to scroll away.
46577 ----------------------------
46578 revision 1.53
46579 date: 1994/11/17 14:56:37;  author: mike;  state: Exp;
46580 moved segment validation functions from editor to main.
46581 ----------------------------
46582 revision 1.52
46583 date: 1994/11/17 11:39:35;  author: matt;  state: Exp;
46584 Ripped out code to load old mines
46585 ----------------------------
46586 revision 1.51
46587 date: 1994/11/14 20:47:53;  author: john;  state: Exp;
46588 Attempted to strip out all the code in the game 
46589 directory that uses any ui code.
46590 ----------------------------
46591 revision 1.50
46592 date: 1994/11/14 16:05:38;  author: matt;  state: Exp;
46593 Fixed, maybe, again, errors when can't find texture during remap
46594 ----------------------------
46595 revision 1.49
46596 date: 1994/11/14 14:34:03;  author: matt;  state: Exp;
46597 Fixed up handling when textures can't be found during remap
46598 ----------------------------
46599 revision 1.48
46600 date: 1994/11/14 13:01:55;  author: matt;  state: Exp;
46601 Added Int3() when can't find texture
46602 ----------------------------
46603 revision 1.47
46604 date: 1994/10/30 14:12:21;  author: mike;  state: Exp;
46605 rip out local segments stuff.
46606 ----------------------------
46607 revision 1.46
46608 date: 1994/10/27 19:43:07;  author: john;  state: Exp;
46609 Disable the piglet option.
46610 ----------------------------
46611 revision 1.45
46612 date: 1994/10/27 18:51:42;  author: john;  state: Exp;
46613 Added -piglet option that only loads needed textures for a 
46614 mine.  Only saved ~1MB, and code still doesn't free textures
46615 before you load a new mine.
46616 ----------------------------
46617 revision 1.44
46618 date: 1994/10/20 12:47:22;  author: matt;  state: Exp;
46619 Replace old save files (MIN/SAV/HOT) with new LVL files
46620 ----------------------------
46621 revision 1.43
46622 date: 1994/10/19 16:46:40;  author: matt;  state: Exp;
46623 Made tmap overrides for robots remap texture numbers
46624 ----------------------------
46625 revision 1.42
46626 date: 1994/10/03 23:37:01;  author: mike;  state: Exp;
46627 Adapt to changed fuelcen_activate parameters.
46628 ----------------------------
46629 revision 1.41
46630 date: 1994/09/23 22:14:49;  author: matt;  state: Exp;
46631 Took out obsolete structure fields
46632 ----------------------------
46633 revision 1.40
46634 date: 1994/08/01 11:04:11;  author: yuan;  state: Exp;
46635 New materialization centers.
46636 ----------------------------
46637 revision 1.39
46638 date: 1994/07/21 19:01:47;  author: mike;  state: Exp;
46639 Call Lsegment stuff.
46640 =============================================================================
46641 RCS file: f:/miner/source/main/gamemine.h,v
46642 Working file: main/gamemine.h
46643 head: 2.0
46644 branch:
46645 description: Header for gamemine.c
46646 ----------------------------
46647 revision 2.0
46648 date: 1995/02/27 11:28:50;  author: john;  state: Exp;
46649 New version 2.0, which has no anonymous unions, builds with
46650 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
46651 ----------------------------
46652 revision 1.15
46653 date: 1994/11/17 11:39:34;  author: matt;  state: Exp;
46654 Ripped out code to load old mines
46655 ----------------------------
46656 revision 1.14
46657 date: 1994/10/19 16:46:40;  author: matt;  state: Exp;
46658 Made tmap overrides for robots remap texture numbers
46659 ----------------------------
46660 revision 1.13
46661 date: 1994/09/23 22:14:37;  author: matt;  state: Exp;
46662 Took out obsolete structure fields
46663 ----------------------------
46664 revision 1.12
46665 date: 1994/07/22 12:36:32;  author: matt;  state: Exp;
46666 Cleaned up editor/game interactions some more.
46667 ----------------------------
46668 revision 1.11
46669 date: 1994/06/01 11:21:37;  author: yuan;  state: Exp;
46670 Added controlcentertriggers to the gamesave.
46671 ----------------------------
46672 revision 1.10
46673 date: 1994/05/10 12:14:26;  author: yuan;  state: Exp;
46674 Game save/load... Demo levels 1-5 added...
46675 High scores fixed...
46676 ----------------------------
46677 revision 1.9
46678 date: 1994/05/04 18:25:05;  author: yuan;  state: Exp;
46679 Working on gamesave.
46680 ----------------------------
46681 revision 1.8
46682 date: 1994/05/03 15:53:27;  author: yuan;  state: Exp;
46683 Readded structure field groups for backward compatibility...
46684 ----------------------------
46685 revision 1.7
46686 date: 1994/05/03 11:36:26;  author: yuan;  state: Exp;
46687 Stabilizing gamesave stuff.
46688 ----------------------------
46689 revision 1.6
46690 date: 1994/04/28 11:01:32;  author: yuan;  state: Exp;
46691 Added objects in structure.
46692 ----------------------------
46693 revision 1.5
46694 date: 1994/04/06 18:30:03;  author: john;  state: Exp;
46695 Added Refueling segments.
46696 ----------------------------
46697 revision 1.4
46698 date: 1994/03/17 18:06:53;  author: yuan;  state: Exp;
46699 Removed switch code... Now we just have Walls, Triggers, and Links...
46700 ----------------------------
46701 revision 1.3
46702 date: 1994/03/01 18:12:24;  author: yuan;  state: Exp;
46703 Wallswitches, triggers, and more!
46704 ----------------------------
46705 revision 1.2
46706 date: 1994/02/10 15:36:01;  author: matt;  state: Exp;
46707 Various changes to make editor compile out.
46708 ----------------------------
46709 revision 1.1
46710 date: 1994/02/09 17:11:45;  author: matt;  state: Exp;
46711 Initial revision
46712 =============================================================================
46713 RCS file: f:/miner/source/main/gamesave.c,v
46714 Working file: main/gamesave.c
46715 head: 2.2
46716 branch:
46717 description: Save game information
46718 ----------------------------
46719 revision 2.2
46720 date: 1995/04/23 14:53:12;  author: john;  state: Exp;
46721 Made some mine structures read in with no structure packing problems.
46722 ----------------------------
46723 revision 2.1
46724 date: 1995/03/20 18:15:43;  author: john;  state: Exp;
46725 Added code to not store the normals in the segment structure.
46726 ----------------------------
46727 revision 2.0
46728 date: 1995/02/27 11:29:50;  author: john;  state: Exp;
46729 New version 2.0, which has no anonymous unions, builds with
46730 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
46731 ----------------------------
46732 revision 1.207
46733 date: 1995/02/23 10:17:36;  author: allender;  state: Exp;
46734 fixed parameter mismatch with compute_segment_center
46735 ----------------------------
46736 revision 1.206
46737 date: 1995/02/22 14:51:17;  author: allender;  state: Exp;
46738 fixed some things that I missed
46739 ----------------------------
46740 revision 1.205
46741 date: 1995/02/22 13:31:38;  author: allender;  state: Exp;
46742 remove anonymous unions from object structure
46743 ----------------------------
46744 revision 1.204
46745 date: 1995/02/01 20:58:08;  author: john;  state: Exp;
46746 Made editor check hog.
46747 ----------------------------
46748 revision 1.203
46749 date: 1995/01/28 17:40:34;  author: mike;  state: Exp;
46750 correct level names (use rdl, sdl) for dumpmine stuff.
46751 ----------------------------
46752 revision 1.202
46753 date: 1995/01/25 20:03:46;  author: matt;  state: Exp;
46754 Moved matrix check to avoid orthogonalizing an uninitialize matrix
46755 ----------------------------
46756 revision 1.201
46757 date: 1995/01/20 16:56:53;  author: mike;  state: Exp;
46758 remove some mprintfs.
46759 ----------------------------
46760 revision 1.200
46761 date: 1995/01/15 19:42:13;  author: matt;  state: Exp;
46762 Ripped out hostage faces for registered version
46763 ----------------------------
46764 revision 1.199
46765 date: 1995/01/05 16:59:09;  author: yuan;  state: Exp;
46766 Make it so if editor is loaded, don't get error from typo
46767 in filename.
46768 ----------------------------
46769 revision 1.198
46770 date: 1994/12/19 12:49:46;  author: mike;  state: Exp;
46771 Change fgets to cfgets.  fgets was getting a pointer mismatch warning.
46772 ----------------------------
46773 revision 1.197
46774 date: 1994/12/12 01:20:03;  author: matt;  state: Exp;
46775 Took out object size hack for green claw guys
46776 ----------------------------
46777 revision 1.196
46778 date: 1994/12/11 13:19:37;  author: matt;  state: Exp;
46779 Restored calls to fix_object_segs() when debugging is turned off, since
46780 it's not a big routine, and could fix some possibly bad problems.
46781 ----------------------------
46782 revision 1.195
46783 date: 1994/12/10 16:17:24;  author: mike;  state: Exp;
46784 fix editor bug that was converting transparent walls into rock.
46785 ----------------------------
46786 revision 1.194
46787 date: 1994/12/09 14:59:27;  author: matt;  state: Exp;
46788 Added system to attach a fireball to another object for rendering purposes,
46789 so the fireball always renders on top of (after) the object.
46790 ----------------------------
46791 revision 1.193
46792 date: 1994/12/08 17:19:02;  author: yuan;  state: Exp;
46793 Cfiling stuff.
46794 ----------------------------
46795 revision 1.192
46796 date: 1994/12/02 20:01:05;  author: matt;  state: Exp;
46797 Always give vulcan cannon powerup same amount of ammo, regardless of
46798 how much it was saved with
46799 ----------------------------
46800 revision 1.191
46801 date: 1994/11/30 17:45:57;  author: yuan;  state: Exp;
46802 Saving files now creates RDL/SDLs instead of CDLs.
46803 ----------------------------
46804 revision 1.190
46805 date: 1994/11/30 17:22:14;  author: matt;  state: Exp;
46806 Ripped out hostage faces in shareware version
46807 ----------------------------
46808 revision 1.189
46809 date: 1994/11/28 00:09:30;  author: allender;  state: Exp;
46810 commented out call to newdemo_record_start_demo in load_level...what is
46811 this doing here anyway?????
46812 ----------------------------
46813 revision 1.188
46814 date: 1994/11/27 23:13:48;  author: matt;  state: Exp;
46815 Made changes for new mprintf calling convention
46816 ----------------------------
46817 revision 1.187
46818 date: 1994/11/27 18:06:20;  author: matt;  state: Exp;
46819 Cleaned up LVL/CDL file loading
46820 ----------------------------
46821 revision 1.186
46822 date: 1994/11/25 22:46:29;  author: matt;  state: Exp;
46823 Allow ESC out of compiled/normal menu (esc=compiled).
46824 ----------------------------
46825 revision 1.185
46826 date: 1994/11/23 12:18:35;  author: mike;  state: Exp;
46827 move level names here...a more logical place than dumpmine.
46828 ----------------------------
46829 revision 1.184
46830 date: 1994/11/21 20:29:19;  author: matt;  state: Exp;
46831 If hostage info is bad, fix it.
46832 ----------------------------
46833 revision 1.183
46834 date: 1994/11/21 20:26:07;  author: matt;  state: Exp;
46835 Fixed bug, I hope
46836 ----------------------------
46837 revision 1.182
46838 date: 1994/11/21 20:20:37;  author: matt;  state: Exp;
46839 Fixed stupid mistake
46840 ----------------------------
46841 revision 1.181
46842 date: 1994/11/21 20:18:40;  author: matt;  state: Exp;
46843 Fixed (hopefully) totally bogus writing of hostage data
46844 ----------------------------
46845 revision 1.180
46846 date: 1994/11/20 14:11:56;  author: matt;  state: Exp;
46847 Gracefully handle two hostages having same id
46848 ----------------------------
46849 revision 1.179
46850 date: 1994/11/19 23:55:05;  author: mike;  state: Exp;
46851 remove Assert, put in comment for Matt.
46852 ----------------------------
46853 revision 1.178
46854 date: 1994/11/19 19:53:24;  author: matt;  state: Exp;
46855 Added code to full support different hostage head clip & message for
46856 each hostage.
46857 ----------------------------
46858 revision 1.177
46859 date: 1994/11/19 15:15:21;  author: mike;  state: Exp;
46860 remove unused code and data
46861 ----------------------------
46862 revision 1.176
46863 date: 1994/11/19 10:28:28;  author: matt;  state: Exp;
46864 Took out write routines when editor compiled out
46865 ----------------------------
46866 revision 1.175
46867 date: 1994/11/17 20:38:25;  author: john;  state: Exp;
46868 Took out warning.
46869 ----------------------------
46870 revision 1.174
46871 date: 1994/11/17 20:36:34;  author: john;  state: Exp;
46872 Made it so that saving a mine will write the .cdl even
46873 if .lvl gets error.
46874 ----------------------------
46875 revision 1.173
46876 date: 1994/11/17 20:26:19;  author: john;  state: Exp;
46877 Made the game load whichever of .cdl or .lvl exists,
46878 and if they both exist, prompt the user for which one.
46879 ----------------------------
46880 revision 1.172
46881 date: 1994/11/17 20:11:20;  author: john;  state: Exp;
46882 Fixed warning.
46883 ----------------------------
46884 revision 1.171
46885 date: 1994/11/17 20:09:26;  author: john;  state: Exp;
46886 Added new compiled level format.
46887 ----------------------------
46888 revision 1.170
46889 date: 1994/11/17 14:57:21;  author: mike;  state: Exp;
46890 moved segment validation functions from editor to main.
46891 ----------------------------
46892 revision 1.169
46893 date: 1994/11/17 11:39:21;  author: matt;  state: Exp;
46894 Ripped out code to load old mines
46895 ----------------------------
46896 revision 1.168
46897 date: 1994/11/16 11:24:53;  author: matt;  state: Exp;
46898 Made attack-type robots have smaller radius, so they get closer to player
46899 ----------------------------
46900 revision 1.167
46901 date: 1994/11/15 21:42:47;  author: mike;  state: Exp;
46902 better error messages.
46903 ----------------------------
46904 revision 1.166
46905 date: 1994/11/15 15:30:41;  author: matt;  state: Exp;
46906 Save ptr to name of level being loaded
46907 ----------------------------
46908 revision 1.165
46909 date: 1994/11/14 20:47:46;  author: john;  state: Exp;
46910 Attempted to strip out all the code in the game 
46911 directory that uses any ui code.
46912 ----------------------------
46913 revision 1.164
46914 date: 1994/11/14 14:34:23;  author: matt;  state: Exp;
46915 Fixed up handling when textures can't be found during remap
46916 ----------------------------
46917 revision 1.163
46918 date: 1994/11/10 14:02:49;  author: matt;  state: Exp;
46919 Hacked in support for player ships with different textures
46920 ----------------------------
46921 revision 1.162
46922 date: 1994/11/06 14:38:17;  author: mike;  state: Exp;
46923 Remove an apparently unnecessary mprintf.
46924 ----------------------------
46925 revision 1.161
46926 date: 1994/10/30 14:11:28;  author: mike;  state: Exp;
46927 ripout local segments stuff.
46928 ----------------------------
46929 revision 1.160
46930 date: 1994/10/28 12:10:41;  author: matt;  state: Exp;
46931 Check that was supposed to happen only when editor was in was happening
46932 only when editor was out.
46933 ----------------------------
46934 revision 1.159
46935 date: 1994/10/27 11:25:32;  author: matt;  state: Exp;
46936 Only do connectivity error check when editor in
46937 ----------------------------
46938 revision 1.158
46939 date: 1994/10/27 10:54:00;  author: matt;  state: Exp;
46940 Made connectivity error checking put up warning if errors found
46941 ----------------------------
46942 revision 1.157
46943 date: 1994/10/25 10:50:54;  author: matt;  state: Exp;
46944 Vulcan cannon powerups now contain ammo count
46945 ----------------------------
46946 revision 1.156
46947 date: 1994/10/23 02:10:43;  author: matt;  state: Exp;
46948 Got rid of obsolete hostage_info stuff
46949 ----------------------------
46950 revision 1.155
46951 date: 1994/10/22 18:57:26;  author: matt;  state: Exp;
46952 Added call to check_segment_connections()
46953 ----------------------------
46954 revision 1.154
46955 date: 1994/10/21 12:19:23;  author: matt;  state: Exp;
46956 Clear transient objects when saving (& loading) games
46957 ----------------------------
46958 revision 1.153
46959 date: 1994/10/21 11:25:10;  author: mike;  state: Exp;
46960 Use new constant IMMORTAL_TIME.
46961 ----------------------------
46962 revision 1.152
46963 date: 1994/10/20 12:46:59;  author: matt;  state: Exp;
46964 Replace old save files (MIN/SAV/HOT) with new LVL files
46965 ----------------------------
46966 revision 1.151
46967 date: 1994/10/19 19:26:32;  author: matt;  state: Exp;
46968 Fixed stupid bug
46969 ----------------------------
46970 revision 1.150
46971 date: 1994/10/19 16:46:21;  author: matt;  state: Exp;
46972 Made tmap overrides for robots remap texture numbers
46973 ----------------------------
46974 revision 1.149
46975 date: 1994/10/18 08:50:27;  author: yuan;  state: Exp;
46976 Fixed correct variable this time.
46977 ----------------------------
46978 revision 1.148
46979 date: 1994/10/18 08:45:02;  author: yuan;  state: Exp;
46980 Oops. forgot load function.
46981 ----------------------------
46982 revision 1.147
46983 date: 1994/10/18 08:42:10;  author: yuan;  state: Exp;
46984 Avoid the int3.
46985 ----------------------------
46986 revision 1.146
46987 date: 1994/10/17 21:34:57;  author: matt;  state: Exp;
46988 Added support for new Control Center/Main Reactor
46989 ----------------------------
46990 revision 1.145
46991 date: 1994/10/15 19:06:34;  author: mike;  state: Exp;
46992 Fix bug, maybe, having to do with something or other, ...
46993 ----------------------------
46994 revision 1.144
46995 date: 1994/10/12 21:07:33;  author: matt;  state: Exp;
46996 Killed unused field in object structure
46997 ----------------------------
46998 revision 1.143
46999 date: 1994/10/06 14:52:55;  author: mike;  state: Exp;
47000 Put check in to detect possibly bogus walls in last segment which leaked through an earlier check
47001 due to misuse of Highest_segment_index.
47002 ----------------------------
47003 revision 1.142
47004 date: 1994/10/05 22:12:44;  author: mike;  state: Exp;
47005 Put in cleanup for matcen/fuelcen links.
47006 ----------------------------
47007 revision 1.141
47008 date: 1994/10/03 11:30:05;  author: matt;  state: Exp;
47009 Make sure player in a valid segment before saving
47010 ----------------------------
47011 revision 1.140
47012 date: 1994/09/28 11:14:41;  author: mike;  state: Exp;
47013 Better error messaging on bogus mines: Only bring up dialog box if a "real" (level??.*) level.
47014 ----------------------------
47015 revision 1.139
47016 date: 1994/09/28 09:22:58;  author: mike;  state: Exp;
47017 Comment out a mprintf.
47018 ----------------------------
47019 revision 1.138
47020 date: 1994/09/27 17:08:36;  author: mike;  state: Exp;
47021 Message boxes when you load bogus mines.
47022 ----------------------------
47023 revision 1.137
47024 date: 1994/09/27 15:43:45;  author: mike;  state: Exp;
47025 Move the dump stuff to dumpmine.
47026 ----------------------------
47027 revision 1.136
47028 date: 1994/09/27 00:02:31;  author: mike;  state: Exp;
47029 Dump text files (".txm") when loading a mine, showing all kinds of useful mine info.
47030 ----------------------------
47031 revision 1.135
47032 date: 1994/09/26 11:30:41;  author: matt;  state: Exp;
47033 Took out code which loaded bogus player structure
47034 ----------------------------
47035 revision 1.134
47036 date: 1994/09/26 11:18:44;  author: john;  state: Exp;
47037 Fixed some conflicts with newseg.
47038 ----------------------------
47039 revision 1.133
47040 date: 1994/09/26 10:56:58;  author: matt;  state: Exp;
47041 Fixed inconsistancies in lifeleft for immortal objects
47042 ----------------------------
47043 revision 1.132
47044 date: 1994/09/25 23:41:10;  author: matt;  state: Exp;
47045 Changed the object load & save code to read/write the structure fields one
47046 at a time (rather than the whole structure at once).  This mean that the
47047 object structure can be changed without breaking the load/save functions.
47048 As a result of this change, the local_object data can be and has been 
47049 incorporated into the object array.  Also, timeleft is now a property 
47050 of all objects, and the object structure has been otherwise cleaned up.
47051 =============================================================================
47052 RCS file: f:/miner/source/main/gamesave.h,v
47053 Working file: main/gamesave.h
47054 head: 2.0
47055 branch:
47056 description: Headers for gamesave.c
47057 ----------------------------
47058 revision 2.0
47059 date: 1995/02/27 11:30:25;  author: john;  state: Exp;
47060 New version 2.0, which has no anonymous unions, builds with
47061 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47062 ----------------------------
47063 revision 1.11
47064 date: 1994/11/23 12:19:32;  author: mike;  state: Exp;
47065 detail level menu.
47066 ----------------------------
47067 revision 1.10
47068 date: 1994/10/20 12:47:30;  author: matt;  state: Exp;
47069 Replace old save files (MIN/SAV/HOT) with new LVL files
47070 ----------------------------
47071 revision 1.9
47072 date: 1994/09/27 17:08:47;  author: mike;  state: Exp;
47073 Message boxes when you load bogus mines.
47074 ----------------------------
47075 revision 1.8
47076 date: 1994/09/27 15:43:05;  author: mike;  state: Exp;
47077 Prototype write_game_text.
47078 ----------------------------
47079 revision 1.7
47080 date: 1994/09/14 15:46:39;  author: matt;  state: Exp;
47081 Added function load_mine_only()
47082 ----------------------------
47083 revision 1.6
47084 date: 1994/07/22 12:36:28;  author: matt;  state: Exp;
47085 Cleaned up editor/game interactions some more.
47086 ----------------------------
47087 revision 1.5
47088 date: 1994/07/20 13:38:14;  author: matt;  state: Exp;
47089 Added get_level_name() prototype
47090 ----------------------------
47091 revision 1.4
47092 date: 1994/06/20 22:19:41;  author: john;  state: Exp;
47093 Added Gamesave_num_org_robots.
47094 ----------------------------
47095 revision 1.3
47096 date: 1994/06/14 11:32:49;  author: john;  state: Exp;
47097 Made Newdemo record & restore the current mine.
47098 ----------------------------
47099 revision 1.2
47100 date: 1994/05/14 17:16:25;  author: matt;  state: Exp;
47101 Got rid of externs in source (non-header) files
47102 ----------------------------
47103 revision 1.1
47104 date: 1994/05/14 16:01:26;  author: matt;  state: Exp;
47105 Initial revision
47106 =============================================================================
47107 RCS file: f:/miner/source/main/gameseg.c,v
47108 Working file: main/gameseg.c
47109 head: 2.2
47110 branch:
47111 description: Functions moved from segment.c to make editor separable from game.
47112 ----------------------------
47113 revision 2.2
47114 date: 1995/03/20 18:15:39;  author: john;  state: Exp;
47115 Added code to not store the normals in the segment structure.
47116 ----------------------------
47117 revision 2.1
47118 date: 1995/03/08 12:11:39;  author: allender;  state: Exp;
47119 fix shortpos reading/writing
47120 ----------------------------
47121 revision 2.0
47122 date: 1995/02/27 11:29:21;  author: john;  state: Exp;
47123 New version 2.0, which has no anonymous unions, builds with
47124 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47125 ----------------------------
47126 revision 1.78
47127 date: 1995/02/22 13:52:22;  author: allender;  state: Exp;
47128 remove anonymous unions from object structure
47129 ----------------------------
47130 revision 1.77
47131 date: 1995/02/22 13:24:47;  author: john;  state: Exp;
47132 Removed the vecmat anonymous unions.
47133 ----------------------------
47134 revision 1.76
47135 date: 1995/02/13 20:35:01;  author: john;  state: Exp;
47136 Lintized
47137 ----------------------------
47138 revision 1.75
47139 date: 1995/02/09 13:10:51;  author: mike;  state: Exp;
47140 remove an annoying mprintf.
47141 ----------------------------
47142 revision 1.74
47143 date: 1995/02/05 17:49:28;  author: rob;  state: Exp;
47144 Added assert to gameseg.c.
47145 ----------------------------
47146 revision 1.73
47147 date: 1995/02/02 00:49:26;  author: mike;  state: Exp;
47148 new automap segment-depth functionality.
47149 ----------------------------
47150 revision 1.72
47151 date: 1995/01/16 21:06:51;  author: mike;  state: Exp;
47152 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
47153 ----------------------------
47154 revision 1.71
47155 date: 1994/12/21 19:54:32;  author: matt;  state: Exp;
47156 Added error checking
47157 ----------------------------
47158 revision 1.70
47159 date: 1994/12/11 21:34:09;  author: matt;  state: Exp;
47160 Changed assert() to int3()
47161 ----------------------------
47162 revision 1.69
47163 date: 1994/12/01 21:04:37;  author: matt;  state: Exp;
47164 Several important changes:
47165  (1) Checking against triangulated sides has been standardized a bit
47166  (2) Code has been added to de-triangulate some sides
47167  (3) BIG ONE: the tolerance for checking a point against a plane has
47168      been drastically relaxed
47169 ----------------------------
47170 revision 1.67
47171 date: 1994/11/27 23:12:21;  author: matt;  state: Exp;
47172 Made changes for new mprintf calling convention
47173 ----------------------------
47174 revision 1.66
47175 date: 1994/11/26 22:51:40;  author: matt;  state: Exp;
47176 Removed editor-only fields from segment structure when editor is compiled
47177 out, and padded segment structure to even multiple of 4 bytes.
47178 ----------------------------
47179 revision 1.65
47180 date: 1994/11/22 16:55:38;  author: mike;  state: Exp;
47181 use memset in place of loop to clear array.
47182 ----------------------------
47183 revision 1.64
47184 date: 1994/11/19 15:20:37;  author: mike;  state: Exp;
47185 rip out unused code and data
47186 ----------------------------
47187 revision 1.63
47188 date: 1994/11/18 18:31:48;  author: matt;  state: Exp;
47189 Fixed code again (and maybe for real)
47190 ----------------------------
47191 revision 1.62
47192 date: 1994/11/18 16:54:24;  author: matt;  state: Exp;
47193 Fixed extract_orient_from_segment()
47194 ----------------------------
47195 revision 1.61
47196 date: 1994/11/17 14:56:50;  author: mike;  state: Exp;
47197 moved segment validation functions from editor to main.
47198 ----------------------------
47199 revision 1.60
47200 date: 1994/11/16 23:38:53;  author: mike;  state: Exp;
47201 new improved boss teleportation behavior.
47202 ----------------------------
47203 revision 1.59
47204 date: 1994/10/30 14:12:46;  author: mike;  state: Exp;
47205 rip out local segments stuff.
47206 ----------------------------
47207 revision 1.58
47208 date: 1994/10/27 10:53:39;  author: matt;  state: Exp;
47209 Made connectivity error checking put up warning if errors found
47210 ----------------------------
47211 revision 1.57
47212 date: 1994/10/25 21:19:26;  author: mike;  state: Exp;
47213 debugging code.
47214 ----------------------------
47215 revision 1.56
47216 date: 1994/10/25 11:26:09;  author: mike;  state: Exp;
47217 *** empty log message ***
47218 ----------------------------
47219 revision 1.55
47220 date: 1994/10/22 22:36:08;  author: matt;  state: Exp;
47221 Improved error finding routine
47222 ----------------------------
47223 revision 1.54
47224 date: 1994/10/22 18:56:51;  author: matt;  state: Exp;
47225 Fixed obscure bug in segment trace code
47226 Added error find routine, check_segment_connections()
47227 ----------------------------
47228 revision 1.53
47229 date: 1994/10/17 14:05:19;  author: matt;  state: Exp;
47230 Don't give recursion assert if doing lighting
47231 ----------------------------
47232 revision 1.52
47233 date: 1994/10/15 19:03:48;  author: mike;  state: Exp;
47234 Don't do exhaustive search in smooth lighting.
47235 ----------------------------
47236 revision 1.51
47237 date: 1994/10/12 09:46:44;  author: mike;  state: Exp;
47238 Add debug code for trapping exhaustive searches.
47239 ----------------------------
47240 revision 1.50
47241 date: 1994/10/11 20:50:41;  author: matt;  state: Exp;
47242 Made find_point_seg() take -1 as segnum, meaning to search all segments
47243 ----------------------------
47244 revision 1.49
47245 date: 1994/10/11 17:40:31;  author: matt;  state: Exp;
47246 Fixed bug that caused segment trace to only go through sides you can fly through
47247 ----------------------------
47248 revision 1.48
47249 date: 1994/10/10 14:48:16;  author: matt;  state: Exp;
47250 Fixed mistake that caused odd pauses and occasional int3's
47251 ----------------------------
47252 revision 1.47
47253 date: 1994/10/09 23:50:41;  author: matt;  state: Exp;
47254 Made find_hitpoint_uv() work with triangulated sides
47255 ----------------------------
47256 revision 1.46
47257 date: 1994/10/08 23:06:52;  author: matt;  state: Exp;
47258 trace_segs() didn't know about external walls
47259 ----------------------------
47260 revision 1.45
47261 date: 1994/10/07 22:18:57;  author: mike;  state: Exp;
47262 Put in asserts to trap bad segnums.
47263 ----------------------------
47264 revision 1.44
47265 date: 1994/10/06 14:08:07;  author: matt;  state: Exp;
47266 Added new function, extract_orient_from_segment()
47267 ----------------------------
47268 revision 1.43
47269 date: 1994/10/04 16:24:11;  author: mike;  state: Exp;
47270 Set global Connected_segment_distance for debug reasons for aipath.c.
47271 ----------------------------
47272 revision 1.42
47273 date: 1994/10/04 09:18:42;  author: mike;  state: Exp;
47274 Comment out a variable definition, preventing a warning message.
47275 ----------------------------
47276 revision 1.41
47277 date: 1994/10/03 23:43:42;  author: mike;  state: Exp;
47278 Put in a warning for overrunning point_segs buffer.
47279 ----------------------------
47280 revision 1.40
47281 date: 1994/10/03 20:55:43;  author: rob;  state: Exp;
47282 Added velocity to shortpos.
47283 ----------------------------
47284 revision 1.39
47285 date: 1994/09/27 11:46:06;  author: rob;  state: Exp;
47286 re-fixed that same bug (ugh).
47287 ----------------------------
47288 revision 1.38
47289 date: 1994/09/27 10:10:51;  author: rob;  state: Exp;
47290 Fixed bug in extract_shortpos (obj_relink added).
47291 ----------------------------
47292 revision 1.37
47293 date: 1994/09/25 23:41:02;  author: matt;  state: Exp;
47294 Changed the object load & save code to read/write the structure fields one
47295 at a time (rather than the whole structure at once).  This mean that the
47296 object structure can be changed without breaking the load/save functions.
47297 As a result of this change, the local_object data can be and has been 
47298 incorporated into the object array.  Also, timeleft is now a property 
47299 of all objects, and the object structure has been otherwise cleaned up.
47300 ----------------------------
47301 revision 1.36
47302 date: 1994/09/22 19:03:05;  author: mike;  state: Exp;
47303 Add shortpos manipulation functions create_shortpos and extract_shortpos.
47304 ----------------------------
47305 revision 1.35
47306 date: 1994/09/19 21:21:16;  author: mike;  state: Exp;
47307 Minor optimization to find_connected_distance.
47308 ----------------------------
47309 revision 1.34
47310 date: 1994/09/19 21:05:25;  author: mike;  state: Exp;
47311 Write function find_connected_distance,
47312 returns distance between two points as travellable through the mine.
47313 ----------------------------
47314 revision 1.33
47315 date: 1994/08/30 15:07:15;  author: matt;  state: Exp;
47316 Changed find_point_seg() to deal with some infinite recursion problems.
47317 ----------------------------
47318 revision 1.32
47319 date: 1994/08/11 18:58:32;  author: mike;  state: Exp;
47320 Use ints in place of shorts for optimization.
47321 ----------------------------
47322 revision 1.31
47323 date: 1994/08/04 00:20:09;  author: matt;  state: Exp;
47324 Cleaned up fvi & physics error handling; put in code to make sure objects
47325 are in correct segment; simplified segment finding for objects and points
47326 ----------------------------
47327 revision 1.30
47328 date: 1994/08/03 16:46:12;  author: mike;  state: Exp;
47329 not much...
47330 ----------------------------
47331 revision 1.29
47332 date: 1994/08/02 20:41:31;  author: matt;  state: Exp;
47333 Fixed bug in get_side_verts()
47334 ----------------------------
47335 revision 1.28
47336 date: 1994/08/02 19:04:25;  author: matt;  state: Exp;
47337 Cleaned up vertex list functions
47338 ----------------------------
47339 revision 1.27
47340 date: 1994/08/01 10:39:44;  author: matt;  state: Exp;
47341 find_new_seg() now will look through any kind of wall but a totally solid one
47342 ----------------------------
47343 revision 1.26
47344 date: 1994/07/28 19:15:59;  author: matt;  state: Exp;
47345 Fixed yet another bug in get_seg_masks()
47346 =============================================================================
47347 RCS file: f:/miner/source/main/gameseg.h,v
47348 Working file: main/gameseg.h
47349 head: 2.0
47350 branch:
47351 description: Header file for stuff moved from segment.c to gameseg.c.
47352 ----------------------------
47353 revision 2.0
47354 date: 1995/02/27 11:31:20;  author: john;  state: Exp;
47355 New version 2.0, which has no anonymous unions, builds with
47356 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47357 ----------------------------
47358 revision 1.24
47359 date: 1995/02/01 16:34:03;  author: john;  state: Exp;
47360 Linted.
47361 ----------------------------
47362 revision 1.23
47363 date: 1995/01/16 21:06:36;  author: mike;  state: Exp;
47364 Move function pick_random_point_in_segment from fireball.c to gameseg.c.
47365 ----------------------------
47366 revision 1.22
47367 date: 1994/11/23 12:18:59;  author: mike;  state: Exp;
47368 prototype for level names.
47369 ----------------------------
47370 revision 1.21
47371 date: 1994/11/17 14:56:59;  author: mike;  state: Exp;
47372 moved segment validation functions from editor to main.
47373 ----------------------------
47374 revision 1.20
47375 date: 1994/11/16 23:38:46;  author: mike;  state: Exp;
47376 new improved boss teleportation behavior.
47377 ----------------------------
47378 revision 1.19
47379 date: 1994/10/30 14:12:14;  author: mike;  state: Exp;
47380 rip out local segments stuff.
47381 ----------------------------
47382 revision 1.18
47383 date: 1994/10/09 23:51:07;  author: matt;  state: Exp;
47384 Made find_hitpoint_uv() work with triangulated sides
47385 ----------------------------
47386 revision 1.17
47387 date: 1994/10/06 14:08:22;  author: matt;  state: Exp;
47388 Added new function, extract_orient_from_segment()
47389 ----------------------------
47390 revision 1.16
47391 date: 1994/09/19 21:05:52;  author: mike;  state: Exp;
47392 Prototype for find_connected_distance.
47393 ----------------------------
47394 revision 1.15
47395 date: 1994/08/11 18:58:45;  author: mike;  state: Exp;
47396 Change shorts to ints.
47397 ----------------------------
47398 revision 1.14
47399 date: 1994/08/04 00:21:09;  author: matt;  state: Exp;
47400 Cleaned up fvi & physics error handling; put in code to make sure objects
47401 are in correct segment; simplified segment finding for objects and points
47402 ----------------------------
47403 revision 1.13
47404 date: 1994/08/02 19:04:25;  author: matt;  state: Exp;
47405 Cleaned up vertex list functions
47406 ----------------------------
47407 revision 1.12
47408 date: 1994/07/21 19:01:53;  author: mike;  state: Exp;
47409 lsegment stuff.
47410 ----------------------------
47411 revision 1.11
47412 date: 1994/07/07 09:31:13;  author: matt;  state: Exp;
47413 Added comments
47414 ----------------------------
47415 revision 1.10
47416 date: 1994/06/14 12:21:20;  author: matt;  state: Exp;
47417 Added new function, find_point_seg()
47418 ----------------------------
47419 revision 1.9
47420 date: 1994/05/29 23:17:38;  author: matt;  state: Exp;
47421 Move find_object_seg() from physics.c to gameseg.c
47422 Killed unused find_point_seg()
47423 ----------------------------
47424 revision 1.8
47425 date: 1994/05/20 11:56:57;  author: matt;  state: Exp;
47426 Cleaned up find_vector_intersection() interface
47427 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
47428 ----------------------------
47429 revision 1.7
47430 date: 1994/03/17 18:07:38;  author: yuan;  state: Exp;
47431 Removed switch code... Now we just have Walls, Triggers, and Links...
47432 ----------------------------
47433 revision 1.6
47434 date: 1994/02/22 18:14:44;  author: yuan;  state: Exp;
47435 Added new wall system
47436 ----------------------------
47437 revision 1.5
47438 date: 1994/02/17 11:33:22;  author: matt;  state: Exp;
47439 Changes in object system
47440 ----------------------------
47441 revision 1.4
47442 date: 1994/02/16 13:48:33;  author: mike;  state: Exp;
47443 enable editor to compile out.
47444 ----------------------------
47445 revision 1.3
47446 date: 1994/02/14 12:05:07;  author: mike;  state: Exp;
47447 change segment data structure.
47448 ----------------------------
47449 revision 1.2
47450 date: 1994/02/10 16:07:20;  author: mike;  state: Exp;
47451 separate editor from game based on EDITOR flag.
47452 ----------------------------
47453 revision 1.1
47454 date: 1994/02/09 15:45:38;  author: mike;  state: Exp;
47455 Initial revision
47456 =============================================================================
47457 RCS file: f:/miner/source/main/gameseq.c,v
47458 Working file: main/gameseq.c
47459 head: 2.10
47460 branch:
47461 description: Routines for EndGame, EndLevel, etc.
47462 ----------------------------
47463 revision 2.10
47464 date: 1995/12/19 15:48:25;  author: john;  state: Exp;
47465 Made screen reset when loading new level.
47466 ----------------------------
47467 revision 2.9
47468 date: 1995/07/07 16:47:52;  author: john;  state: Exp;
47469 Fixed bug with reactor time..
47470 ----------------------------
47471 revision 2.8
47472 date: 1995/06/15 12:14:18;  author: john;  state: Exp;
47473 Made end game, win game and title sequences all go
47474 on after 5 minutes automatically.
47475 ----------------------------
47476 revision 2.7
47477 date: 1995/05/26 16:16:25;  author: john;  state: Exp;
47478 Split SATURN into define's for requiring cd, using cd, etc.
47479 Also started adding all the Rockwell stuff.
47480 ----------------------------
47481 revision 2.6
47482 date: 1995/03/24 13:11:20;  author: john;  state: Exp;
47483 Added save game during briefing screens.
47484 ----------------------------
47485 revision 2.5
47486 date: 1995/03/23 17:56:20;  author: allender;  state: Exp;
47487 added code to record old laser level and weapons when player gets
47488 new ship
47489 ----------------------------
47490 revision 2.4
47491 date: 1995/03/21 08:39:14;  author: john;  state: Exp;
47492 Ifdef'd out the NETWORK code.
47493 ----------------------------
47494 revision 2.3
47495 date: 1995/03/15 14:33:33;  author: john;  state: Exp;
47496 Added code to force the Descent CD-rom in the drive.
47497 ----------------------------
47498 revision 2.2
47499 date: 1995/03/06 16:47:26;  author: mike;  state: Exp;
47500 destination saturn
47501 ----------------------------
47502 revision 2.1
47503 date: 1995/03/06 15:23:23;  author: john;  state: Exp;
47504 New screen techniques.
47505 ----------------------------
47506 revision 2.0
47507 date: 1995/02/27 11:28:53;  author: john;  state: Exp;
47508 New version 2.0, which has no anonymous unions, builds with
47509 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47510 ----------------------------
47511 revision 1.310
47512 date: 1995/02/14 10:48:09;  author: mike;  state: Exp;
47513 zero bonus if you are a cheater.
47514 ----------------------------
47515 revision 1.309
47516 date: 1995/02/11 19:17:08;  author: rob;  state: Exp;
47517 Fixed bug in laser fire rate after demo playback.
47518 ----------------------------
47519 revision 1.308
47520 date: 1995/02/11 14:34:08;  author: rob;  state: Exp;
47521 Added include of netmisc.c
47522 ----------------------------
47523 revision 1.307
47524 date: 1995/02/11 14:29:04;  author: rob;  state: Exp;
47525 Fixes for invul. controlcen.
47526 ----------------------------
47527 revision 1.306
47528 date: 1995/02/11 13:47:00;  author: mike;  state: Exp;
47529 fix cheats.
47530 ----------------------------
47531 revision 1.305
47532 date: 1995/02/11 13:10:52;  author: rob;  state: Exp;
47533 Fixed end of anarchy mission problems.
47534 ----------------------------
47535 revision 1.304
47536 date: 1995/02/11 12:46:12;  author: mike;  state: Exp;
47537 initialize Robot_firing_enabled, part of AHIMSA cheat.
47538 ----------------------------
47539 revision 1.303
47540 date: 1995/02/11 12:42:03;  author: john;  state: Exp;
47541 Added new song method, with FM bank switching..
47542 ----------------------------
47543 revision 1.302
47544 date: 1995/02/10 17:39:29;  author: matt;  state: Exp;
47545 Changed secret exit message to be centered
47546 ----------------------------
47547 revision 1.301
47548 date: 1995/02/10 16:17:33;  author: mike;  state: Exp;
47549 init Last_level_path_shown.
47550 ----------------------------
47551 revision 1.300
47552 date: 1995/02/09 22:18:22;  author: john;  state: Exp;
47553 Took out between level saves.
47554 ----------------------------
47555 revision 1.299
47556 date: 1995/02/09 12:11:42;  author: rob;  state: Exp;
47557 Get rid of high scores thing for multiplayer games.
47558 ----------------------------
47559 revision 1.298
47560 date: 1995/02/08 20:34:24;  author: rob;  state: Exp;
47561 Took briefing screens back OUT of coop games (per Interplay request)
47562 ----------------------------
47563 revision 1.297
47564 date: 1995/02/08 19:20:09;  author: rob;  state: Exp;
47565 Moved checksum calc.
47566 ----------------------------
47567 revision 1.296
47568 date: 1995/02/05 14:39:24;  author: rob;  state: Exp;
47569 Changed object mapping to be more efficient.
47570 ----------------------------
47571 revision 1.295
47572 date: 1995/02/02 19:05:38;  author: john;  state: Exp;
47573 Made end level menu for 27 not overwrite descent title..
47574 ----------------------------
47575 revision 1.294
47576 date: 1995/02/02 16:36:42;  author: adam;  state: Exp;
47577 *** empty log message ***
47578 ----------------------------
47579 revision 1.293
47580 date: 1995/02/02 15:58:02;  author: john;  state: Exp;
47581 Added turbo mode cheat.
47582 ----------------------------
47583 revision 1.292
47584 date: 1995/02/02 15:29:34;  author: matt;  state: Exp;
47585 Changed & localized secret level text
47586 ----------------------------
47587 revision 1.291
47588 date: 1995/02/02 10:50:03;  author: adam;  state: Exp;
47589 messed with secret level message
47590 ----------------------------
47591 revision 1.290
47592 date: 1995/02/02 01:20:28;  author: adam;  state: Exp;
47593 changed endgame song temporarily.
47594 ----------------------------
47595 revision 1.289
47596 date: 1995/02/01 23:19:43;  author: rob;  state: Exp;
47597 Fixed up endlevel stuff for multiplayer.
47598 Put in palette fades around areas that didn't have them before.
47599 ----------------------------
47600 revision 1.288
47601 date: 1995/02/01 17:12:34;  author: mike;  state: Exp;
47602 Make score come after endgame screens.
47603 ----------------------------
47604 revision 1.287
47605 date: 1995/01/30 18:34:30;  author: rob;  state: Exp;
47606 Put briefing screens back into coop games.
47607 ----------------------------
47608 revision 1.286
47609 date: 1995/01/27 13:07:59;  author: rob;  state: Exp;
47610 Removed erroneous warning message.
47611 ----------------------------
47612 revision 1.285
47613 date: 1995/01/27 11:47:43;  author: rob;  state: Exp;
47614 Removed new secret level menu from multiplayer games.
47615 ----------------------------
47616 revision 1.284
47617 date: 1995/01/26 22:11:11;  author: mike;  state: Exp;
47618 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
47619 ----------------------------
47620 revision 1.283
47621 date: 1995/01/26 16:55:13;  author: rob;  state: Exp;
47622 Removed ship bonus from cooperative endgame.
47623 ----------------------------
47624 revision 1.282
47625 date: 1995/01/26 16:45:24;  author: mike;  state: Exp;
47626 Add autofire fusion cannon stuff.
47627 ----------------------------
47628 revision 1.281
47629 date: 1995/01/26 14:44:44;  author: rob;  state: Exp;
47630 Removed unnecessary #ifdefs around mprintfs.
47631 Changed NumNetPlayerPositions to be independant of MaxNumNetPlayers to
47632 accomodate 4-player robo-archy games with 8 start positions.
47633 ----------------------------
47634 revision 1.280
47635 date: 1995/01/26 12:19:01;  author: rob;  state: Exp;
47636 Changed network_do_frame call.
47637 ----------------------------
47638 revision 1.279
47639 date: 1995/01/26 00:35:03;  author: matt;  state: Exp;
47640 Changed numbering convention for HMP files for levels
47641 ----------------------------
47642 revision 1.278
47643 date: 1995/01/25 16:07:59;  author: matt;  state: Exp;
47644 Added message (prototype) when going to secret level
47645 ----------------------------
47646 revision 1.277
47647 date: 1995/01/22 18:57:23;  author: matt;  state: Exp;
47648 Made player highest level work with missions
47649 ----------------------------
47650 revision 1.276
47651 date: 1995/01/21 23:13:08;  author: matt;  state: Exp;
47652 Made high scores with (not work, really) with loaded missions
47653 Don't give player high score when quit game
47654 ----------------------------
47655 revision 1.275
47656 date: 1995/01/21 17:17:39;  author: john;  state: Exp;
47657 *** empty log message ***
47658 ----------------------------
47659 revision 1.274
47660 date: 1995/01/21 17:15:38;  author: john;  state: Exp;
47661 Added include for state.h
47662 ----------------------------
47663 revision 1.273
47664 date: 1995/01/21 16:21:14;  author: matt;  state: Exp;
47665 Fixed bugs in secret level sequencing
47666 ----------------------------
47667 revision 1.272
47668 date: 1995/01/20 22:47:29;  author: matt;  state: Exp;
47669 Mission system implemented, though imcompletely
47670 ----------------------------
47671 revision 1.271
47672 date: 1995/01/19 17:00:48;  author: john;  state: Exp;
47673 Made save game work between levels.
47674 ----------------------------
47675 revision 1.270
47676 date: 1995/01/17 17:49:10;  author: rob;  state: Exp;
47677 Added key syncing for coop.
47678 ----------------------------
47679 revision 1.269
47680 date: 1995/01/17 14:27:37;  author: john;  state: Exp;
47681 y
47682 ----------------------------
47683 revision 1.268
47684 date: 1995/01/17 13:36:33;  author: john;  state: Exp;
47685 Moved pig loading into StartNewLevelSub.
47686 ----------------------------
47687 revision 1.267
47688 date: 1995/01/16 16:53:55;  author: john;  state: Exp;
47689 Added code to save cheat state during save game.
47690 ----------------------------
47691 revision 1.266
47692 date: 1995/01/15 19:42:10;  author: matt;  state: Exp;
47693 Ripped out hostage faces for registered version
47694 ----------------------------
47695 revision 1.265
47696 date: 1995/01/15 16:55:06;  author: john;  state: Exp;
47697 Improved mine texture parsing.
47698 ----------------------------
47699 revision 1.264
47700 date: 1995/01/15 11:56:24;  author: john;  state: Exp;
47701 Working version of paging.
47702 ----------------------------
47703 revision 1.263
47704 date: 1995/01/14 19:16:40;  author: john;  state: Exp;
47705 First version of new bitmap paging code.
47706 ----------------------------
47707 revision 1.262
47708 date: 1995/01/13 17:38:58;  author: yuan;  state: Exp;
47709 Removed Int3() for number players check.
47710 ----------------------------
47711 revision 1.261
47712 date: 1995/01/12 12:09:52;  author: yuan;  state: Exp;
47713 Added coop object capability.
47714 ----------------------------
47715 revision 1.260
47716 date: 1995/01/05 17:16:08;  author: yuan;  state: Exp;
47717 Removed Int3s.
47718 ----------------------------
47719 revision 1.259
47720 date: 1995/01/05 11:34:29;  author: john;  state: Exp;
47721 Took out endlevel save stuff for registered.
47722 ----------------------------
47723 revision 1.258
47724 date: 1995/01/04 19:00:16;  author: rob;  state: Exp;
47725 Added some debugging for two bugs.
47726 ----------------------------
47727 revision 1.257
47728 date: 1995/01/04 13:18:18;  author: john;  state: Exp;
47729 Added cool 6 game save.
47730 ----------------------------
47731 revision 1.256
47732 date: 1995/01/04 08:46:18;  author: rob;  state: Exp;
47733 JOHN CHECKED IN FOR ROB !!!
47734 ----------------------------
47735 revision 1.255
47736 date: 1995/01/02 20:07:35;  author: rob;  state: Exp;
47737 Added score syncing.
47738 Get rid of endlevel score for coop games (put it back in elsewhere)
47739 ----------------------------
47740 revision 1.254
47741 date: 1995/01/02 16:17:43;  author: mike;  state: Exp;
47742 init super boss.
47743 ----------------------------
47744 revision 1.253
47745 date: 1994/12/21 21:08:47;  author: rob;  state: Exp;
47746 fixed a bug in coop player ship positions.
47747 ----------------------------
47748 revision 1.252
47749 date: 1994/12/21 12:57:08;  author: rob;  state: Exp;
47750 Handle additional player ships in mines.
47751 =============================================================================
47752 RCS file: f:/miner/source/main/gameseq.h,v
47753 Working file: main/gameseq.h
47754 head: 2.0
47755 branch:
47756 description: Prototypes for functions for game sequencing.
47757 ----------------------------
47758 revision 2.0
47759 date: 1995/02/27 11:32:03;  author: john;  state: Exp;
47760 New version 2.0, which has no anonymous unions, builds with
47761 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47762 ----------------------------
47763 revision 1.41
47764 date: 1995/02/07 10:51:54;  author: rob;  state: Exp;
47765 fix typo.
47766 ----------------------------
47767 revision 1.40
47768 date: 1995/02/06 20:10:16;  author: rob;  state: Exp;
47769 Extern'ed DoEndLevelScoreGlitz.
47770 ----------------------------
47771 revision 1.39
47772 date: 1995/02/01 16:34:13;  author: john;  state: Exp;
47773 Linted.
47774 ----------------------------
47775 revision 1.38
47776 date: 1995/01/27 11:15:03;  author: rob;  state: Exp;
47777 Added extern for player position vars.
47778 ----------------------------
47779 revision 1.37
47780 date: 1995/01/20 22:47:38;  author: matt;  state: Exp;
47781 Mission system implemented, though imcompletely
47782 ----------------------------
47783 revision 1.36
47784 date: 1995/01/17 13:36:08;  author: john;  state: Exp;
47785 Moved pig loading into StartNewLevelSub.
47786 ----------------------------
47787 revision 1.35
47788 date: 1995/01/04 12:21:28;  author: john;  state: Exp;
47789 *** empty log message ***
47790 ----------------------------
47791 revision 1.34
47792 date: 1995/01/04 12:20:47;  author: john;  state: Exp;
47793 Declearations to work better with game state save.
47794 ----------------------------
47795 revision 1.33
47796 date: 1994/12/08 09:46:35;  author: matt;  state: Exp;
47797 Made level name len a multiple of 4 for alignment
47798 ----------------------------
47799 revision 1.32
47800 date: 1994/11/29 16:33:29;  author: rob;  state: Exp;
47801 Added new defines for last_secret_level based on shareware or not shareware.
47802 ----------------------------
47803 revision 1.31
47804 date: 1994/11/26 15:30:20;  author: matt;  state: Exp;
47805 Allow escape out of change pilot menu
47806 ----------------------------
47807 revision 1.30
47808 date: 1994/11/21 17:29:38;  author: matt;  state: Exp;
47809 Cleaned up sequencing & game saving for secret levels
47810 ----------------------------
47811 revision 1.29
47812 date: 1994/11/21 15:55:03;  author: matt;  state: Exp;
47813 Corrected LAST_LEVEL
47814 ----------------------------
47815 revision 1.28
47816 date: 1994/11/20 22:12:43;  author: mike;  state: Exp;
47817 set LAST_LEVEL based on SHAREWARE.
47818 ----------------------------
47819 revision 1.27
47820 date: 1994/11/09 10:55:51;  author: matt;  state: Exp;
47821 Cleaned up initialization for editor -> game transitions
47822 ----------------------------
47823 revision 1.26
47824 date: 1994/11/08 17:50:48;  author: rob;  state: Exp;
47825 ADded prototype for StartNewLEvel.
47826 ----------------------------
47827 revision 1.25
47828 date: 1994/11/07 17:50:57;  author: rob;  state: Exp;
47829 Added extern prototype for init_player_stats_level called for
47830 network games.
47831 ----------------------------
47832 revision 1.24
47833 date: 1994/10/25 15:40:03;  author: yuan;  state: Exp;
47834 *** empty log message ***
47835 ----------------------------
47836 revision 1.23
47837 date: 1994/10/22 00:08:52;  author: matt;  state: Exp;
47838 Fixed up problems with bonus & game sequencing
47839 Player doesn't get credit for hostages unless he gets them out alive
47840 ----------------------------
47841 revision 1.22
47842 date: 1994/10/18 18:57:08;  author: matt;  state: Exp;
47843 Added main menu option to enter new player name
47844 ----------------------------
47845 revision 1.21
47846 date: 1994/10/07 23:37:32;  author: matt;  state: Exp;
47847 Added prototype
47848 ----------------------------
47849 revision 1.20
47850 date: 1994/10/07 16:02:53;  author: matt;  state: Exp;
47851 Loading saved game no longer clears players weapons & other stats
47852 ----------------------------
47853 revision 1.19
47854 date: 1994/10/06 14:12:46;  author: matt;  state: Exp;
47855 Added flash effect when player appears
47856 ----------------------------
47857 revision 1.18
47858 date: 1994/10/03 13:34:44;  author: matt;  state: Exp;
47859 Added new (and hopefully better) game sequencing functions
47860 ----------------------------
47861 revision 1.17
47862 date: 1994/09/30 15:19:53;  author: matt;  state: Exp;
47863 Added new game sequencing functions, but left them disabled for now.
47864 ----------------------------
47865 revision 1.16
47866 date: 1994/09/28 17:24:34;  author: matt;  state: Exp;
47867 Added first draft of game save/load system
47868 ----------------------------
47869 revision 1.15
47870 date: 1994/09/27 12:29:42;  author: matt;  state: Exp;
47871 Changed level naming
47872 ----------------------------
47873 revision 1.14
47874 date: 1994/09/02 11:53:55;  author: mike;  state: Exp;
47875 Rename init_player_stats to init_player_stats_game.
47876 ----------------------------
47877 revision 1.13
47878 date: 1994/08/31 20:57:34;  author: matt;  state: Exp;
47879 Cleaned up endlevel/death code
47880 ----------------------------
47881 revision 1.12
47882 date: 1994/08/23 18:45:06;  author: yuan;  state: Exp;
47883 Added level 10 capability.. (LEDGES)
47884 ----------------------------
47885 revision 1.11
47886 date: 1994/08/18 10:47:38;  author: john;  state: Exp;
47887 Cleaned up game sequencing and player death stuff
47888 in preparation for making the player explode into
47889 pieces when dead.
47890 ----------------------------
47891 revision 1.10
47892 date: 1994/08/15 15:24:45;  author: john;  state: Exp;
47893 Made players know who killed them; Disabled cheat menu
47894 during net player; fixed bug with not being able to turn
47895 of invulnerability; Made going into edit/starting new leve
47896 l drop you out of a net game; made death dialog box.
47897 ----------------------------
47898 revision 1.9
47899 date: 1994/08/13 12:20:56;  author: john;  state: Exp;
47900 Made the networking uise the Players array.
47901 ----------------------------
47902 revision 1.8
47903 date: 1994/07/22 12:36:24;  author: matt;  state: Exp;
47904 Cleaned up editor/game interactions some more.
47905 ----------------------------
47906 revision 1.7
47907 date: 1994/07/19 20:15:33;  author: matt;  state: Exp;
47908 Name for each level now saved in the .SAV file & stored in Current_level_name
47909 ----------------------------
47910 revision 1.6
47911 date: 1994/07/02 13:49:33;  author: matt;  state: Exp;
47912 Cleaned up includes
47913 ----------------------------
47914 revision 1.5
47915 date: 1994/07/02 13:09:52;  author: matt;  state: Exp;
47916 Moved player stats struct from gameseq.h to player.h
47917 ----------------------------
47918 revision 1.4
47919 date: 1994/07/01 16:35:35;  author: yuan;  state: Exp;
47920 Added key system
47921 ----------------------------
47922 revision 1.3
47923 date: 1994/06/26 14:07:35;  author: matt;  state: Exp;
47924 Added prototypes
47925 ----------------------------
47926 revision 1.2
47927 date: 1994/06/24 17:03:56;  author: john;  state: Exp;
47928 Added VFX support. Also took all game sequencing stuff like
47929 EndGame out and put it into gameseq.c
47930 ----------------------------
47931 revision 1.1
47932 date: 1994/06/24 14:13:53;  author: john;  state: Exp;
47933 Initial revision
47934 =============================================================================
47935 RCS file: f:/miner/source/main/garage.c,v
47936 Working file: main/garage.c
47937 head: 2.0
47938 branch:
47939 description: .
47940 ----------------------------
47941 revision 2.0
47942 date: 1995/02/27 11:30:32;  author: john;  state: Exp;
47943 New version 2.0, which has no anonymous unions, builds with
47944 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47945 ----------------------------
47946 revision 1.2
47947 date: 1994/08/17 16:50:28;  author: john;  state: Exp;
47948 Added damaging fireballs, missiles.
47949 ----------------------------
47950 revision 1.1
47951 date: 1994/08/16 12:45:12;  author: john;  state: Exp;
47952 Initial revision
47953 =============================================================================
47954 RCS file: f:/miner/source/main/gauges.c,v
47955 Working file: main/gauges.c
47956 head: 2.7
47957 branch:
47958 description: Inferno gauge drivers
47959 ----------------------------
47960 revision 2.7
47961 date: 1995/12/19 16:18:33;  author: john;  state: Exp;
47962 Made weapon info align with canvas width, not 315.
47963 ----------------------------
47964 revision 2.6
47965 date: 1995/03/21 14:39:25;  author: john;  state: Exp;
47966 Ifdef'd out the NETWORK code.
47967 ----------------------------
47968 revision 2.5
47969 date: 1995/03/14 12:31:25;  author: john;  state: Exp;
47970 Prevent negative shields from printing.
47971 ----------------------------
47972 revision 2.4
47973 date: 1995/03/10 12:57:58;  author: allender;  state: Exp;
47974 move rear view text up four pixels up when playing back demo
47975 ----------------------------
47976 revision 2.3
47977 date: 1995/03/09 11:47:51;  author: john;  state: Exp;
47978 Added HUD for VR helmets.
47979 ----------------------------
47980 revision 2.2
47981 date: 1995/03/06 15:23:26;  author: john;  state: Exp;
47982 New screen techniques.
47983 ----------------------------
47984 revision 2.1
47985 date: 1995/02/27 13:13:45;  author: john;  state: Exp;
47986 Removed floating point.
47987 ----------------------------
47988 revision 2.0
47989 date: 1995/02/27 11:29:06;  author: john;  state: Exp;
47990 New version 2.0, which has no anonymous unions, builds with
47991 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
47992 ----------------------------
47993 revision 1.203
47994 date: 1995/02/11 01:56:45;  author: mike;  state: Exp;
47995 move up weapons text on fullscreen hud, missiles was offscreen.
47996 ----------------------------
47997 revision 1.202
47998 date: 1995/02/09 13:23:34;  author: rob;  state: Exp;
47999 Added reticle names in demo playback.
48000 ----------------------------
48001 revision 1.201
48002 date: 1995/02/08 19:20:46;  author: rob;  state: Exp;
48003 Show cloaked teammates on H
48004 UD.  Get rid of show ID's in anarchy option.
48005 ----------------------------
48006 revision 1.200
48007 date: 1995/02/07 21:09:00;  author: mike;  state: Exp;
48008 add flashing to invulnerability and cloak on fullscreen.
48009 ----------------------------
48010 revision 1.199
48011 date: 1995/02/02 21:55:57;  author: matt;  state: Exp;
48012 Added new colored key icons for fullscreen
48013 ----------------------------
48014 revision 1.198
48015 date: 1995/01/30 17:17:07;  author: rob;  state: Exp;
48016 Fixed teammate names on hud.
48017 ----------------------------
48018 revision 1.197
48019 date: 1995/01/28 17:40:49;  author: mike;  state: Exp;
48020 fix gauge fontcolor.
48021 ----------------------------
48022 revision 1.196
48023 date: 1995/01/27 17:03:14;  author: mike;  state: Exp;
48024 fix placement of weapon info in multiplayer fullscreen, as per AP request.
48025 ----------------------------
48026 revision 1.195
48027 date: 1995/01/27 11:51:23;  author: rob;  state: Exp;
48028 Put deaths tally into cooperative mode
48029 ----------------------------
48030 revision 1.194
48031 date: 1995/01/27 11:43:24;  author: adam;  state: Exp;
48032 fiddled with key display
48033 ----------------------------
48034 revision 1.193
48035 date: 1995/01/25 23:38:35;  author: mike;  state: Exp;
48036 fix keys on fullscreen.
48037 ----------------------------
48038 revision 1.192
48039 date: 1995/01/24 22:03:28;  author: mike;  state: Exp;
48040 Lotsa hud stuff, put a lot of messages up.
48041 ----------------------------
48042 revision 1.191
48043 date: 1995/01/23 16:47:21;  author: rob;  state: Exp;
48044 Fixed problem with playing extra life noise in coop.
48045 ----------------------------
48046 revision 1.190
48047 date: 1995/01/22 16:00:46;  author: mike;  state: Exp;
48048 remove unneeded string.
48049 ----------------------------
48050 revision 1.189
48051 date: 1995/01/22 15:58:22;  author: mike;  state: Exp;
48052 localization
48053 ----------------------------
48054 revision 1.188
48055 date: 1995/01/20 17:19:45;  author: rob;  state: Exp;
48056 Fixing colors of hud kill list players.
48057 ----------------------------
48058 revision 1.187
48059 date: 1995/01/20 09:19:18;  author: allender;  state: Exp;
48060 record player flags when in CM_FULL_SCREEN
48061 ----------------------------
48062 revision 1.186
48063 date: 1995/01/19 16:29:09;  author: allender;  state: Exp;
48064 made demo recording of weapon change be in this file for shareware only
48065 ----------------------------
48066 revision 1.185
48067 date: 1995/01/19 15:00:33;  author: allender;  state: Exp;
48068 code to record shield, energy, and ammo in fullscreen
48069 ----------------------------
48070 revision 1.184
48071 date: 1995/01/19 13:43:13;  author: matt;  state: Exp;
48072 Fixed "cheater" message on HUD
48073 ----------------------------
48074 revision 1.183
48075 date: 1995/01/18 16:11:58;  author: mike;  state: Exp;
48076 Don't show added scores of 0.
48077 ----------------------------
48078 revision 1.182
48079 date: 1995/01/17 17:42:39;  author: allender;  state: Exp;
48080 do ammo counts in demo recording
48081 ----------------------------
48082 revision 1.181
48083 date: 1995/01/16 17:26:25;  author: rob;  state: Exp;
48084 Fixed problem with coloration of team kill list.
48085 ----------------------------
48086 revision 1.180
48087 date: 1995/01/16 17:22:39;  author: john;  state: Exp;
48088 Made so that KB and framerate don't collide.
48089 ----------------------------
48090 revision 1.179
48091 date: 1995/01/16 14:58:31;  author: matt;  state: Exp;
48092 Changed score_added display to print "Cheater!" when cheats enabled
48093 ----------------------------
48094 revision 1.178
48095 date: 1995/01/15 19:42:07;  author: matt;  state: Exp;
48096 Ripped out hostage faces for registered version
48097 ----------------------------
48098 revision 1.177
48099 date: 1995/01/15 19:25:07;  author: mike;  state: Exp;
48100 show vulcan ammo and secondary ammo in fullscreen view.
48101 ----------------------------
48102 revision 1.176
48103 date: 1995/01/15 13:16:12;  author: john;  state: Exp;
48104 Made so that paging always happens, lowmem just loads less.
48105 Also, make KB load print to hud.
48106 ----------------------------
48107 revision 1.175
48108 date: 1995/01/14 19:17:32;  author: john;  state: Exp;
48109 First version of piggy paging.
48110 ----------------------------
48111 revision 1.174
48112 date: 1995/01/05 21:25:23;  author: rob;  state: Exp;
48113 Re-did some changes lost due to RCS weirdness.
48114 ----------------------------
48115 revision 1.173
48116 date: 1995/01/05 12:22:34;  author: rob;  state: Exp;
48117 Don't show player names for cloaked players.
48118 ----------------------------
48119 revision 1.172
48120 date: 1995/01/04 17:14:50;  author: allender;  state: Exp;
48121 make init_gauges work properly on demo playback
48122 ----------------------------
48123 revision 1.171
48124 date: 1995/01/04 15:04:42;  author: allender;  state: Exp;
48125 new demo calls for registered version
48126 ----------------------------
48127 revision 1.167
48128 date: 1995/01/03 13:03:57;  author: allender;  state: Exp;
48129 pass score points instead of total points.   Added ifdef for
48130 multi_send_score
48131 ----------------------------
48132 revision 1.166
48133 date: 1995/01/03 11:45:02;  author: allender;  state: Exp;
48134 add hook to record player score
48135 ----------------------------
48136 revision 1.165
48137 date: 1995/01/03 11:25:19;  author: allender;  state: Exp;
48138 remove newdemo stuff around score display
48139 ----------------------------
48140 revision 1.163
48141 date: 1995/01/02 21:03:53;  author: rob;  state: Exp;
48142 Fixing up the hud-score-list for coop games.
48143 ----------------------------
48144 revision 1.162
48145 date: 1994/12/31 20:54:40;  author: rob;  state: Exp;
48146 Added coop mode HUD score list.
48147 Added more generic system for player names on HUD.
48148 ----------------------------
48149 revision 1.161
48150 date: 1994/12/30 20:13:01;  author: rob;  state: Exp;
48151 Ifdef reticle names on shareware.
48152 Added robot reticle naming.
48153 ----------------------------
48154 revision 1.160
48155 date: 1994/12/29 17:53:51;  author: mike;  state: Exp;
48156 move up energy/shield in fullscreen to get out of way of kill list.
48157 ----------------------------
48158 revision 1.159
48159 date: 1994/12/29 16:44:05;  author: mike;  state: Exp;
48160 add energy and shield showing.
48161 ----------------------------
48162 revision 1.158
48163 date: 1994/12/28 16:34:29;  author: mike;  state: Exp;
48164 make warning beep go away on Player_is_dead.
48165 ----------------------------
48166 revision 1.157
48167 date: 1994/12/28 10:00:43;  author: allender;  state: Exp;
48168 change in init_gauges to for multiplayer demo playbacks
48169 ----------------------------
48170 revision 1.156
48171 date: 1994/12/27 11:06:46;  author: allender;  state: Exp;
48172 removed some previous code to for demo playback stuff
48173 ----------------------------
48174 revision 1.155
48175 date: 1994/12/23 14:23:06;  author: john;  state: Exp;
48176 Added floating reticle for VR helments.  
48177 ----------------------------
48178 revision 1.154
48179 date: 1994/12/21 12:56:41;  author: allender;  state: Exp;
48180 on multiplayer demo playback, show kills and deaths
48181 ----------------------------
48182 revision 1.153
48183 date: 1994/12/19 20:28:42;  author: rob;  state: Exp;
48184 Get rid of kill list in coop games.
48185 ----------------------------
48186 revision 1.152
48187 date: 1994/12/14 18:06:44;  author: matt;  state: Exp;
48188 Removed compile warnings
48189 ----------------------------
48190 revision 1.151
48191 date: 1994/12/14 15:21:28;  author: rob;  state: Exp;
48192 Made gauges align in status_bar net game.
48193 ----------------------------
48194 revision 1.150
48195 date: 1994/12/12 17:20:33;  author: matt;  state: Exp;
48196 Don't get bonus points when cheating
48197 ----------------------------
48198 revision 1.149
48199 date: 1994/12/12 16:47:00;  author: matt;  state: Exp;
48200 When cheating, get no score.  Change level cheat to prompt for and 
48201 jump to new level.
48202 ----------------------------
48203 revision 1.148
48204 date: 1994/12/12 12:05:45;  author: rob;  state: Exp;
48205 Grey out players who are disconnected.
48206 ----------------------------
48207 revision 1.147
48208 date: 1994/12/09 16:19:48;  author: yuan;  state: Exp;
48209 kill matrix stuff.
48210 ----------------------------
48211 revision 1.146
48212 date: 1994/12/09 16:12:34;  author: rob;  state: Exp;
48213 Fixed up the status bar kills gauges for net play.
48214 ----------------------------
48215 revision 1.145
48216 date: 1994/12/09 01:55:34;  author: rob;  state: Exp;
48217 Added kills list to HUD/status bar.
48218 Added something for Mark.
48219 ----------------------------
48220 revision 1.144
48221 date: 1994/12/08 21:03:30;  author: allender;  state: Exp;
48222 pass old player flags to record_player_flags
48223 ----------------------------
48224 revision 1.143
48225 date: 1994/12/07 22:49:33;  author: mike;  state: Exp;
48226 no homing missile warning during endlevel sequence.
48227 ----------------------------
48228 revision 1.142
48229 date: 1994/12/06 13:55:31;  author: matt;  state: Exp;
48230 Use new rounding func, f2ir()
48231 ----------------------------
48232 revision 1.141
48233 date: 1994/12/03 19:03:37;  author: matt;  state: Exp;
48234 Fixed vulcan ammo HUD message
48235 ----------------------------
48236 revision 1.140
48237 date: 1994/12/03 18:43:18;  author: matt;  state: Exp;
48238 Fixed (hopefully) claok gauge
48239 ----------------------------
48240 revision 1.139
48241 date: 1994/12/03 14:26:21;  author: yuan;  state: Exp;
48242 Fixed dumb bug
48243 ----------------------------
48244 revision 1.138
48245 date: 1994/12/03 14:17:30;  author: yuan;  state: Exp;
48246 Localization 320
48247 =============================================================================
48248 RCS file: f:/miner/source/main/gauges.h,v
48249 Working file: main/gauges.h
48250 head: 2.0
48251 branch:
48252 description: Prototypes and defines for gauges
48253 ----------------------------
48254 revision 2.0
48255 date: 1995/02/27 11:28:45;  author: john;  state: Exp;
48256 New version 2.0, which has no anonymous unions, builds with
48257 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
48258 ----------------------------
48259 revision 1.27
48260 date: 1994/12/14 18:06:39;  author: matt;  state: Exp;
48261 Added prototype
48262 ----------------------------
48263 revision 1.26
48264 date: 1994/12/09 16:19:52;  author: yuan;  state: Exp;
48265 kill matrix stuff.
48266 ----------------------------
48267 revision 1.25
48268 date: 1994/10/25 11:07:34;  author: mike;  state: Exp;
48269 Prototype play_homing_warning.
48270 ----------------------------
48271 revision 1.24
48272 date: 1994/10/24 16:34:39;  author: mike;  state: Exp;
48273 Increase MAX_GAUGE_BMS from 56 to 80...
48274 ----------------------------
48275 revision 1.23
48276 date: 1994/10/21 20:43:47;  author: mike;  state: Exp;
48277 Prototype add_bonus_points_to_score.
48278 ----------------------------
48279 revision 1.22
48280 date: 1994/10/14 15:56:33;  author: mike;  state: Exp;
48281 Prototype update_laser_weapon_info.
48282 ----------------------------
48283 revision 1.21
48284 date: 1994/10/13 15:17:26;  author: mike;  state: Exp;
48285 Remove afterburner references.
48286 ----------------------------
48287 revision 1.20
48288 date: 1994/10/05 17:09:46;  author: matt;  state: Exp;
48289 Added functional reticle
48290 ----------------------------
48291 revision 1.19
48292 date: 1994/10/04 21:41:29;  author: matt;  state: Exp;
48293 Added cloaked player gauge effect, and different ship bitmap for each player
48294 ----------------------------
48295 revision 1.18
48296 date: 1994/09/26 13:29:40;  author: matt;  state: Exp;
48297 Added extra life each 100,000 points, and show icons on HUD for num lives
48298 ----------------------------
48299 revision 1.17
48300 date: 1994/09/20 11:56:08;  author: matt;  state: Exp;
48301 Added prototype
48302 ----------------------------
48303 revision 1.16
48304 date: 1994/09/20 00:11:03;  author: matt;  state: Exp;
48305 Finished gauges for Status Bar, including hostage video display.
48306 ----------------------------
48307 revision 1.15
48308 date: 1994/09/17 23:57:18;  author: matt;  state: Exp;
48309 Got some, but not all, off the status bar gauges working
48310 ----------------------------
48311 revision 1.14
48312 date: 1994/09/16 13:08:46;  author: mike;  state: Exp;
48313 Prototype say_afterburner_status.
48314 ----------------------------
48315 revision 1.13
48316 date: 1994/09/14 16:27:03;  author: mike;  state: Exp;
48317 Prototype player_dead_message();
48318 ----------------------------
48319 revision 1.12
48320 date: 1994/07/20 17:34:43;  author: yuan;  state: Exp;
48321 Some minor bug fixes and new key gauges...
48322 ----------------------------
48323 revision 1.11
48324 date: 1994/07/14 14:46:02;  author: yuan;  state: Exp;
48325 Added score effect.
48326 ----------------------------
48327 revision 1.10
48328 date: 1994/07/12 16:22:00;  author: yuan;  state: Exp;
48329 Increased number of maximum gauges.
48330 ----------------------------
48331 revision 1.9
48332 date: 1994/07/11 20:10:36;  author: yuan;  state: Exp;
48333 Numerical gauges.
48334 ----------------------------
48335 revision 1.8
48336 date: 1994/07/10 18:01:28;  author: yuan;  state: Exp;
48337 Added new gauges.
48338 ----------------------------
48339 revision 1.7
48340 date: 1994/06/21 15:08:22;  author: john;  state: Exp;
48341 Made demo record HUD message and cleaned up the HUD code.
48342 ----------------------------
48343 revision 1.6
48344 date: 1994/06/21 12:40:46;  author: yuan;  state: Exp;
48345 Fixing HUD message.
48346 ----------------------------
48347 revision 1.5
48348 date: 1994/06/21 12:11:56;  author: yuan;  state: Exp;
48349 Fixed up menus and added HUDisplay messages.
48350 ----------------------------
48351 revision 1.4
48352 date: 1994/04/28 21:34:24;  author: mike;  state: Exp;
48353 prototype check_erase_gauge
48354 ----------------------------
48355 revision 1.3
48356 date: 1994/04/06 14:42:46;  author: yuan;  state: Exp;
48357 Adding new powerups.
48358 ----------------------------
48359 revision 1.2
48360 date: 1993/12/05 22:48:58;  author: matt;  state: Exp;
48361 Reworked include files in an attempt to cut down on build times
48362 ----------------------------
48363 revision 1.1
48364 date: 1993/12/05 21:07:55;  author: matt;  state: Exp;
48365 Initial revision
48366 =============================================================================
48367 RCS file: f:/miner/source/main/gamemine.c,v
48368 Working file: main/gamemine.c
48369 head: 1.45
48370 branch:
48371 description: Functions for loading mines in the game
48372 ----------------------------
48373 revision 1.45
48374 date: 1994/10/27 18:51:42;  author: john;  state: Exp;
48375 Added -piglet option that only loads needed textures for a 
48376 mine.  Only saved ~1MB, and code still doesn't free textures
48377 before you load a new mine.
48378 ----------------------------
48379 revision 1.44
48380 date: 1994/10/20 12:47:22;  author: matt;  state: Exp;
48381 Replace old save files (MIN/SAV/HOT) with new LVL files
48382 ----------------------------
48383 revision 1.43
48384 date: 1994/10/19 16:46:40;  author: matt;  state: Exp;
48385 Made tmap overrides for robots remap texture numbers
48386 ----------------------------
48387 revision 1.42
48388 date: 1994/10/03 23:37:01;  author: mike;  state: Exp;
48389 Adapt to changed fuelcen_activate parameters.
48390 ----------------------------
48391 revision 1.41
48392 date: 1994/09/23 22:14:49;  author: matt;  state: Exp;
48393 Took out obsolete structure fields
48394 ----------------------------
48395 revision 1.40
48396 date: 1994/08/01 11:04:11;  author: yuan;  state: Exp;
48397 New materialization centers.
48398 ----------------------------
48399 revision 1.39
48400 date: 1994/07/21 19:01:47;  author: mike;  state: Exp;
48401 Call Lsegment stuff.
48402 =============================================================================
48403 RCS file: f:/miner/source/main/editor/group.c,v
48404 Working file: main/editor/group.c
48405 head: 2.0
48406 branch:
48407 description: group functions
48408 ----------------------------
48409 revision 2.0
48410 date: 1995/02/27 11:35:05;  author: john;  state: Exp;
48411 Version 2.0! No anonymous unions, Watcom 10.0, with no need
48412 for bitmaps.tbl.
48413 ----------------------------
48414 revision 1.65
48415 date: 1994/11/27 23:17:21;  author: matt;  state: Exp;
48416 Made changes for new mprintf calling convention
48417 ----------------------------
48418 revision 1.64
48419 date: 1994/11/17 14:48:08;  author: mike;  state: Exp;
48420 validation functions moved from editor to game.
48421 ----------------------------
48422 revision 1.63
48423 date: 1994/11/17 11:38:56;  author: matt;  state: Exp;
48424 Ripped out code to load old mines
48425 ----------------------------
48426 revision 1.62
48427 date: 1994/10/27 10:06:20;  author: mike;  state: Exp;
48428 adapt to no inverse table.
48429 ----------------------------
48430 revision 1.61
48431 date: 1994/10/03 23:40:08;  author: mike;  state: Exp;
48432 New fuelcen_activate parameters.
48433 ----------------------------
48434 revision 1.60
48435 date: 1994/09/28 17:32:01;  author: mike;  state: Exp;
48436 Make group copying work for copying a group's walls.
48437 ----------------------------
48438 revision 1.59
48439 date: 1994/09/20 14:35:28;  author: mike;  state: Exp;
48440 Fix bugs in group subtraction code.  Don't allow to attach a group if the attach side is unfree.
48441 ----------------------------
48442 revision 1.58
48443 date: 1994/08/25 21:58:07;  author: mike;  state: Exp;
48444 IS_CHILD stuff.
48445 ----------------------------
48446 revision 1.57
48447 date: 1994/08/04 19:12:58;  author: matt;  state: Exp;
48448 Changed a bunch of vecmat calls to use multiple-function routines, and to
48449 allow the use of C macros for some functions
48450 ----------------------------
48451 revision 1.56
48452 date: 1994/08/03 15:40:01;  author: mike;  state: Exp;
48453 Enable calls to compress_mine to get rid of bugs in group
48454 copying -- was creating invalid segments.
48455 ----------------------------
48456 revision 1.55
48457 date: 1994/06/30 10:59:13;  author: yuan;  state: Exp;
48458 Fixed texture translations.
48459 ----------------------------
48460 revision 1.54
48461 date: 1994/06/22 17:36:00;  author: mike;  state: Exp;
48462 Fix bug in group creation, was stuffing first two group segs over number
48463 of segments in group (then number would overwrite them), so there would
48464 be two bogus segments in group, one of which was always 0, the other
48465 would be a small number.
48466 ----------------------------
48467 revision 1.53
48468 date: 1994/06/14 17:07:15;  author: john;  state: Exp;
48469 *** empty log message ***
48470 ----------------------------
48471 revision 1.52
48472 date: 1994/06/14 16:59:09;  author: mike;  state: Exp;
48473 Fix references to tmap_num2, must strip off orientation bits.
48474 ----------------------------
48475 revision 1.51
48476 date: 1994/05/23 14:56:37;  author: mike;  state: Exp;
48477 make current segment be add segment.
48478 ----------------------------
48479 revision 1.50
48480 date: 1994/05/19 12:10:01;  author: matt;  state: Exp;
48481 Use new vecmat macros and globals
48482 ----------------------------
48483 revision 1.49
48484 date: 1994/05/17 10:33:59;  author: matt;  state: Exp;
48485 Deleted unused get_free_object_num() func.
48486 ----------------------------
48487 revision 1.48
48488 date: 1994/05/09 23:34:17;  author: mike;  state: Exp;
48489 Punch all sloppy sides in a group, speed up segment rotation.
48490 ----------------------------
48491 revision 1.47
48492 date: 1994/05/06 14:39:56;  author: mike;  state: Exp;
48493 Make objects move and copy with groups.
48494 ----------------------------
48495 revision 1.46
48496 date: 1994/05/05 16:05:54;  author: yuan;  state: Exp;
48497 Added fuelcen/repaircens to groups...
48498 Eventually, walls will be added too...
48499 ----------------------------
48500 revision 1.45
48501 date: 1994/05/05 12:56:25;  author: yuan;  state: Exp;
48502 Fixed a bunch of group bugs.
48503 ----------------------------
48504 revision 1.44
48505 date: 1994/05/04 14:10:04;  author: mike;  state: Exp;
48506 Assert added to prevent bombing out when current_group = -1
48507 ----------------------------
48508 revision 1.43
48509 date: 1994/05/02 17:59:18;  author: yuan;  state: Exp;
48510 Changed undo_status into an array rather than malloced pointers.
48511 ----------------------------
48512 revision 1.42
48513 date: 1994/05/02 15:23:19;  author: mike;  state: Exp;
48514 Call med_combine_duplicate_vertices in med_copy_group and med_move_group.
48515 ----------------------------
48516 revision 1.41
48517 date: 1994/04/27 12:11:23;  author: mike;  state: Exp;
48518 Fix bug in group rotation.
48519 ----------------------------
48520 revision 1.40
48521 date: 1994/04/22 10:07:37;  author: yuan;  state: Exp;
48522 Make sure we don't get obj->next equal itself error.
48523 ----------------------------
48524 revision 1.39
48525 date: 1994/04/18 17:15:13;  author: yuan;  state: Exp;
48526 Added error checking for select prev, and next group.
48527 =============================================================================
48528 RCS file: f:/miner/source/main/hash.c,v
48529 Working file: main/hash.c
48530 head: 2.0
48531 branch:
48532 description: Functions to do hash table lookup.
48533 ----------------------------
48534 revision 2.0
48535 date: 1995/02/27 11:28:01;  author: john;  state: Exp;
48536 New version 2.0, which has no anonymous unions, builds with
48537 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
48538 ----------------------------
48539 revision 1.5
48540 date: 1994/12/05 23:37:06;  author: matt;  state: Exp;
48541 Took out calls to warning() function
48542 ----------------------------
48543 revision 1.4
48544 date: 1994/05/09 20:02:33;  author: john;  state: Exp;
48545 Fixed bug w/ upper/lower case.
48546 ----------------------------
48547 revision 1.3
48548 date: 1994/05/06 15:31:51;  author: john;  state: Exp;
48549 Don't add duplicate names to the hash table.
48550 ----------------------------
48551 revision 1.2
48552 date: 1994/05/03 16:45:35;  author: john;  state: Exp;
48553 Added hash table lookup to speed up loading.
48554 ----------------------------
48555 revision 1.1
48556 date: 1994/05/03 10:36:41;  author: john;  state: Exp;
48557 Initial revision
48558 =============================================================================
48559 RCS file: f:/miner/source/main/hash.h,v
48560 Working file: main/hash.h
48561 head: 2.0
48562 branch:
48563 description: .
48564 ----------------------------
48565 revision 2.0
48566 date: 1995/02/27 11:26:46;  author: john;  state: Exp;
48567 New version 2.0, which has no anonymous unions, builds with
48568 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
48569 ----------------------------
48570 revision 1.2
48571 date: 1994/05/03 16:45:24;  author: john;  state: Exp;
48572 Added hash table lookup to speed up loading.
48573 ----------------------------
48574 revision 1.1
48575 date: 1994/05/03 11:35:16;  author: john;  state: Exp;
48576 Initial revision
48577 =============================================================================
48578 RCS file: f:/miner/source/main/hostage.c,v
48579 Working file: main/hostage.c
48580 head: 2.0
48581 branch:
48582 description: Code to render and manipulate hostages
48583 ----------------------------
48584 revision 2.0
48585 date: 1995/02/27 11:28:36;  author: john;  state: Exp;
48586 New version 2.0, which has no anonymous unions, builds with
48587 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
48588 ----------------------------
48589 revision 1.65
48590 date: 1995/02/22 13:45:54;  author: allender;  state: Exp;
48591 remove anonymous unions from object structure
48592 ----------------------------
48593 revision 1.64
48594 date: 1995/02/13 20:34:57;  author: john;  state: Exp;
48595 Lintized
48596 ----------------------------
48597 revision 1.63
48598 date: 1995/01/15 19:41:48;  author: matt;  state: Exp;
48599 Ripped out hostage faces for registered version
48600 ----------------------------
48601 revision 1.62
48602 date: 1995/01/14 19:16:53;  author: john;  state: Exp;
48603 First version of new bitmap paging code.
48604 ----------------------------
48605 revision 1.61
48606 date: 1994/12/19 16:35:09;  author: john;  state: Exp;
48607 Made hoastage playback end when ship dies.
48608 ----------------------------
48609 revision 1.60
48610 date: 1994/12/06 16:30:41;  author: yuan;  state: Exp;
48611 Localization
48612 ----------------------------
48613 revision 1.59
48614 date: 1994/11/30 17:32:46;  author: matt;  state: Exp;
48615 Put hostage_face_clip array back in so editor would work
48616 ----------------------------
48617 revision 1.58
48618 date: 1994/11/30 17:22:13;  author: matt;  state: Exp;
48619 Ripped out hostage faces in shareware version
48620 ----------------------------
48621 revision 1.57
48622 date: 1994/11/30 16:11:25;  author: matt;  state: Exp;
48623 Use correct constant for hostage voice
48624 ----------------------------
48625 revision 1.56
48626 date: 1994/11/27 23:15:19;  author: matt;  state: Exp;
48627 Made changes for new mprintf calling convention
48628 ----------------------------
48629 revision 1.55
48630 date: 1994/11/19 19:53:44;  author: matt;  state: Exp;
48631 Added code to full support different hostage head clip & message for
48632 each hostage.
48633 ----------------------------
48634 revision 1.54
48635 date: 1994/11/19 16:35:15;  author: matt;  state: Exp;
48636 Got rid of unused code, & made an array smaller
48637 ----------------------------
48638 revision 1.53
48639 date: 1994/11/14 12:42:03;  author: matt;  state: Exp;
48640 Increased palette flash when hostage rescued
48641 ----------------------------
48642 revision 1.52
48643 date: 1994/10/28 14:43:09;  author: john;  state: Exp;
48644 Added sound volumes to all sound calls.
48645 ----------------------------
48646 revision 1.51
48647 date: 1994/10/23 02:10:57;  author: matt;  state: Exp;
48648 Got rid of obsolete hostage_info stuff
48649 ----------------------------
48650 revision 1.50
48651 date: 1994/10/22 00:08:44;  author: matt;  state: Exp;
48652 Fixed up problems with bonus & game sequencing
48653 Player doesn't get credit for hostages unless he gets them out alive
48654 ----------------------------
48655 revision 1.49
48656 date: 1994/10/20 22:52:49;  author: matt;  state: Exp;
48657 Fixed compiler warnings
48658 ----------------------------
48659 revision 1.48
48660 date: 1994/10/20 21:25:44;  author: matt;  state: Exp;
48661 Took out silly scale down/scale up code for hostage anim
48662 ----------------------------
48663 revision 1.47
48664 date: 1994/10/20 12:47:28;  author: matt;  state: Exp;
48665 Replace old save files (MIN/SAV/HOT) with new LVL files
48666 ----------------------------
48667 revision 1.46
48668 date: 1994/10/04 15:33:33;  author: john;  state: Exp;
48669 Took out the old PLAY_SOUND??? code and replaced it
48670 with direct calls into digi_link_??? so that all sounds
48671 can be made 3d.
48672 ----------------------------
48673 revision 1.45
48674 date: 1994/09/28 23:10:46;  author: matt;  state: Exp;
48675 Made hostage rescue do palette flash
48676 ----------------------------
48677 revision 1.44
48678 date: 1994/09/20 00:11:00;  author: matt;  state: Exp;
48679 Finished gauges for Status Bar, including hostage video display.
48680 ----------------------------
48681 revision 1.43
48682 date: 1994/09/15 21:24:19;  author: matt;  state: Exp;
48683 Changed system to keep track of whether & what cockpit is up
48684 Made hostage clip not queue when no cockpit
48685 ----------------------------
48686 revision 1.42
48687 date: 1994/08/25 13:45:19;  author: matt;  state: Exp;
48688 Made hostage vclips queue
48689 ----------------------------
48690 revision 1.41
48691 date: 1994/08/14 23:15:06;  author: matt;  state: Exp;
48692 Added animating bitmap hostages, and cleaned up vclips a bit
48693 ----------------------------
48694 revision 1.40
48695 date: 1994/08/12 22:41:11;  author: john;  state: Exp;
48696 Took away Player_stats; add Players array.
48697 ----------------------------
48698 revision 1.39
48699 date: 1994/07/14 22:06:35;  author: john;  state: Exp;
48700 Fix radar/hostage vclip conflict.
48701 ----------------------------
48702 revision 1.38
48703 date: 1994/07/12 18:40:21;  author: yuan;  state: Exp;
48704 Tweaked location of radar and hostage screen... 
48705 Still needs work.
48706 ----------------------------
48707 revision 1.37
48708 date: 1994/07/07 09:52:17;  author: john;  state: Exp;
48709 Moved hostage screen.
48710 ----------------------------
48711 revision 1.36
48712 date: 1994/07/06 15:23:52;  author: john;  state: Exp;
48713 Revamped hostage sound.
48714 ----------------------------
48715 revision 1.35
48716 date: 1994/07/06 15:14:54;  author: john;  state: Exp;
48717 Added hostage sound effect picking.
48718 ----------------------------
48719 revision 1.34
48720 date: 1994/07/06 13:25:33;  author: john;  state: Exp;
48721 Added compress hostages functions.
48722 ----------------------------
48723 revision 1.33
48724 date: 1994/07/06 12:52:59;  author: john;  state: Exp;
48725 Fixed compiler warnings.
48726 ----------------------------
48727 revision 1.32
48728 date: 1994/07/06 12:43:50;  author: john;  state: Exp;
48729 Made generic messages for hostages.
48730 ----------------------------
48731 revision 1.31
48732 date: 1994/07/06 10:55:07;  author: john;  state: Exp;
48733 New structures for hostages.
48734 ----------------------------
48735 revision 1.30
48736 date: 1994/07/05 12:49:09;  author: john;  state: Exp;
48737 Put functionality of New Hostage spec into code.
48738 ----------------------------
48739 revision 1.29
48740 date: 1994/07/02 13:08:47;  author: matt;  state: Exp;
48741 Increment stats when hostage rescued
48742 ----------------------------
48743 revision 1.28
48744 date: 1994/07/01 18:07:46;  author: john;  state: Exp;
48745 y
48746 ----------------------------
48747 revision 1.27
48748 date: 1994/07/01 18:07:03;  author: john;  state: Exp;
48749 *** empty log message ***
48750 ----------------------------
48751 revision 1.26
48752 date: 1994/07/01 17:55:26;  author: john;  state: Exp;
48753 First version of not-working hostage system.
48754 ----------------------------
48755 revision 1.25
48756 date: 1994/06/27 15:53:21;  author: john;  state: Exp;
48757 #define'd out the newdemo stuff
48758 ----------------------------
48759 revision 1.24
48760 date: 1994/06/20 16:08:52;  author: john;  state: Exp;
48761 Added volume control; made doors 3d sounds.
48762 ----------------------------
48763 revision 1.23
48764 date: 1994/06/16 10:15:32;  author: yuan;  state: Exp;
48765 Fixed location of face.
48766 ----------------------------
48767 revision 1.22
48768 date: 1994/06/15 15:05:33;  author: john;  state: Exp;
48769 *** empty log message ***
48770 ----------------------------
48771 revision 1.21
48772 date: 1994/06/14 21:15:20;  author: matt;  state: Exp;
48773 Made rod objects draw lighted or not depending on a parameter, so the
48774 materialization effect no longer darkens.
48775 ----------------------------
48776 revision 1.20
48777 date: 1994/06/08 18:16:26;  author: john;  state: Exp;
48778 Bunch of new stuff that basically takes constants out of the code
48779 and puts them into bitmaps.tbl.
48780 ----------------------------
48781 revision 1.19
48782 date: 1994/06/02 19:30:08;  author: matt;  state: Exp;
48783 Moved texture-mapped rod drawing stuff (used for hostage & now for the
48784 materialization center) to object.c
48785 =============================================================================
48786 RCS file: f:/miner/source/main/hostage.h,v
48787 Working file: main/hostage.h
48788 head: 2.0
48789 branch:
48790 description: Header for hostage.c
48791 ----------------------------
48792 revision 2.0
48793 date: 1995/02/27 11:27:50;  author: john;  state: Exp;
48794 New version 2.0, which has no anonymous unions, builds with
48795 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
48796 ----------------------------
48797 revision 1.23
48798 date: 1995/01/15 19:42:06;  author: matt;  state: Exp;
48799 Ripped out hostage faces for registered version
48800 ----------------------------
48801 revision 1.22
48802 date: 1994/12/19 16:35:07;  author: john;  state: Exp;
48803 Made hoastage playback end when ship dies.
48804 ----------------------------
48805 revision 1.21
48806 date: 1994/11/30 17:22:12;  author: matt;  state: Exp;
48807 Ripped out hostage faces in shareware version
48808 ----------------------------
48809 revision 1.20
48810 date: 1994/11/19 19:53:43;  author: matt;  state: Exp;
48811 Added code to full support different hostage head clip & message for
48812 each hostage.
48813 ----------------------------
48814 revision 1.19
48815 date: 1994/11/19 16:35:28;  author: matt;  state: Exp;
48816 Got rid of unused code, & made an array smaller
48817 ----------------------------
48818 revision 1.18
48819 date: 1994/10/23 02:10:57;  author: matt;  state: Exp;
48820 Got rid of obsolete hostage_info stuff
48821 ----------------------------
48822 revision 1.17
48823 date: 1994/09/20 00:10:37;  author: matt;  state: Exp;
48824 Finished gauges for Status Bar, including hostage video display.
48825 ----------------------------
48826 revision 1.16
48827 date: 1994/09/01 10:41:24;  author: matt;  state: Exp;
48828 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
48829 correctly if width & height of bitmap are different.
48830 ----------------------------
48831 revision 1.15
48832 date: 1994/08/14 23:15:14;  author: matt;  state: Exp;
48833 Added animating bitmap hostages, and cleaned up vclips a bit
48834 ----------------------------
48835 revision 1.14
48836 date: 1994/07/14 22:06:51;  author: john;  state: Exp;
48837 Fix radar/hostage vclip conflict.
48838 ----------------------------
48839 revision 1.13
48840 date: 1994/07/14 22:05:41;  author: john;  state: Exp;
48841 Made radar display not conflict with hostage
48842 vclip talking.
48843 ----------------------------
48844 revision 1.12
48845 date: 1994/07/06 13:41:46;  author: matt;  state: Exp;
48846 Added support for bitmap hostages
48847 ----------------------------
48848 revision 1.11
48849 date: 1994/07/06 12:43:36;  author: john;  state: Exp;
48850 Made generic messages for hostages.
48851 ----------------------------
48852 revision 1.10
48853 date: 1994/07/06 10:55:09;  author: john;  state: Exp;
48854 New structures for hostages.
48855 ----------------------------
48856 revision 1.9
48857 date: 1994/07/05 12:48:47;  author: john;  state: Exp;
48858 Put functionality of New Hostage spec into code.
48859 ----------------------------
48860 revision 1.8
48861 date: 1994/07/01 17:55:14;  author: john;  state: Exp;
48862 First version of not-working hostage system.
48863 ----------------------------
48864 revision 1.7
48865 date: 1994/06/15 14:57:10;  author: john;  state: Exp;
48866 Added triggers to demo recording.
48867 ----------------------------
48868 revision 1.6
48869 date: 1994/06/08 18:15:49;  author: john;  state: Exp;
48870 Bunch of new stuff that basically takes constants out of the code
48871 and puts them into bitmaps.tbl.
48872 ----------------------------
48873 revision 1.5
48874 date: 1994/05/02 12:43:06;  author: yuan;  state: Exp;
48875 Fixed warnings.
48876 ----------------------------
48877 revision 1.4
48878 date: 1994/04/06 14:42:46;  author: yuan;  state: Exp;
48879 Adding new powerups.
48880 ----------------------------
48881 revision 1.3
48882 date: 1994/04/01 11:15:14;  author: yuan;  state: Exp;
48883 Added multiple bitmap functionality to all objects...
48884 (hostages, powerups, lasers, etc.)  
48885 Hostages and powerups are implemented in the object system,
48886 just need to finish function call to "affect" player.
48887 ----------------------------
48888 revision 1.2
48889 date: 1994/03/31 12:04:35;  author: matt;  state: Exp;
48890 Added prototypes for 2 funcs
48891 ----------------------------
48892 revision 1.1
48893 date: 1994/03/31 11:39:24;  author: matt;  state: Exp;
48894 Initial revision
48895 =============================================================================
48896 RCS file: f:/miner/source/main/hud.c,v
48897 Working file: main/hud.c
48898 head: 2.2
48899 branch:
48900 description: Routines for displaying HUD messages...
48901 ----------------------------
48902 revision 2.2
48903 date: 1995/03/30 16:36:40;  author: mike;  state: Exp;
48904 text localization.
48905 ----------------------------
48906 revision 2.1
48907 date: 1995/03/06 15:23:50;  author: john;  state: Exp;
48908 New screen techniques.
48909 ----------------------------
48910 revision 2.0
48911 date: 1995/02/27 11:30:41;  author: john;  state: Exp;
48912 New version 2.0, which has no anonymous unions, builds with
48913 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
48914 ----------------------------
48915 revision 1.27
48916 date: 1995/01/23 16:51:30;  author: mike;  state: Exp;
48917 Show hud messages on 3d if window in three largest sizes.
48918 ----------------------------
48919 revision 1.26
48920 date: 1995/01/17 17:42:45;  author: rob;  state: Exp;
48921 Made message timeout for HUD messages longer.
48922 ----------------------------
48923 revision 1.25
48924 date: 1995/01/04 11:39:03;  author: rob;  state: Exp;
48925 Made HUD text get out of the way of large HUD messages.
48926 ----------------------------
48927 revision 1.24
48928 date: 1995/01/01 14:20:32;  author: rob;  state: Exp;
48929 longer timer for hud messages.
48930 ----------------------------
48931 revision 1.23
48932 date: 1994/12/15 13:04:34;  author: mike;  state: Exp;
48933 Replace Players[Player_num].time_total references with GameTime.
48934 ----------------------------
48935 revision 1.22
48936 date: 1994/12/13 12:55:12;  author: mike;  state: Exp;
48937 move press any key to continue message when you are dead to bottom of window.
48938 ----------------------------
48939 revision 1.21
48940 date: 1994/12/07 17:08:01;  author: rob;  state: Exp;
48941 removed unnecessary debug info.
48942 ----------------------------
48943 revision 1.20
48944 date: 1994/12/07 16:24:16;  author: john;  state: Exp;
48945 Took out code that kept track of messages differently for different
48946 screen modes... I made it so they just draw differently depending on screen mode.
48947 ----------------------------
48948 revision 1.19
48949 date: 1994/12/07 15:42:57;  author: rob;  state: Exp;
48950 Added a bunch of debug stuff to look for HUD message problems in net games...
48951 ----------------------------
48952 revision 1.18
48953 date: 1994/12/06 16:30:35;  author: yuan;  state: Exp;
48954 Localization
48955 ----------------------------
48956 revision 1.17
48957 date: 1994/12/05 00:32:36;  author: mike;  state: Exp;
48958 fix randomness of color on status bar hud messages.
48959 ----------------------------
48960 revision 1.16
48961 date: 1994/11/19 17:05:53;  author: rob;  state: Exp;
48962 Moved dead_player_message down to avoid overwriting HUD messages.
48963 ----------------------------
48964 revision 1.15
48965 date: 1994/11/18 23:37:56;  author: john;  state: Exp;
48966 Changed some shorts to ints.
48967 ----------------------------
48968 revision 1.14
48969 date: 1994/11/12 16:38:25;  author: mike;  state: Exp;
48970 clear some annoying debug messages.
48971 ----------------------------
48972 revision 1.13
48973 date: 1994/11/11 15:36:39;  author: mike;  state: Exp;
48974 write hud messages on background if 3d window small enough
48975 ----------------------------
48976 revision 1.12
48977 date: 1994/10/20 09:49:31;  author: mike;  state: Exp;
48978 Reduce number of messages.
48979 ----------------------------
48980 revision 1.11
48981 date: 1994/10/17 10:49:15;  author: john;  state: Exp;
48982 Took out some warnings.
48983 ----------------------------
48984 revision 1.10
48985 date: 1994/10/17 10:45:13;  author: john;  state: Exp;
48986 Made the player able to abort death by pressing any button or key.
48987 ----------------------------
48988 revision 1.9
48989 date: 1994/10/13 15:17:33;  author: mike;  state: Exp;
48990 Remove afterburner references.
48991 ----------------------------
48992 revision 1.8
48993 date: 1994/10/11 12:06:32;  author: mike;  state: Exp;
48994 Only show message advertising death sequence abort after player exploded.
48995 ----------------------------
48996 revision 1.7
48997 date: 1994/10/10 17:21:53;  author: john;  state: Exp;
48998 Made so instead of saying too many messages, it scrolls off the
48999 oldest message.
49000 ----------------------------
49001 revision 1.6
49002 date: 1994/10/07 23:05:39;  author: john;  state: Exp;
49003 Fixed bug with HUD not drawing stuff sometimes...
49004 ( I had a circular buffer that I was stepping thru
49005 to draw text that went: for (i=first;i<last;i++)...
49006 duh!! last could be less than first.)
49007 /
49008 ----------------------------
49009 revision 1.5
49010 date: 1994/09/16 13:08:20;  author: mike;  state: Exp;
49011 Arcade stuff, afterburner stuff.
49012 ----------------------------
49013 revision 1.4
49014 date: 1994/09/14 16:26:57;  author: mike;  state: Exp;
49015 player_dead_message.
49016 ----------------------------
49017 revision 1.3
49018 date: 1994/08/18 16:35:45;  author: john;  state: Exp;
49019 Made gauges messages stay up a bit longer.
49020 ----------------------------
49021 revision 1.2
49022 date: 1994/08/18 12:10:21;  author: john;  state: Exp;
49023 Made HUD messages scroll.
49024 ----------------------------
49025 revision 1.1
49026 date: 1994/08/18 11:22:09;  author: john;  state: Exp;
49027 Initial revision
49028 =============================================================================
49029 RCS file: f:/miner/source/main/iglasses.c,v
49030 Working file: main/iglasses.c
49031 head: 2.8
49032 branch:
49033 description: Routines for the i-glasses VR stuff.
49034 ----------------------------
49035 revision 2.8
49036 date: 1995/03/30 16:36:31;  author: mike;  state: Exp;
49037 text localization.
49038 ----------------------------
49039 revision 2.7
49040 date: 1995/03/24 13:10:37;  author: john;  state: Exp;
49041 Synced with shareware.
49042 ----------------------------
49043 revision 2.6
49044 date: 1995/03/09 18:07:35;  author: john;  state: Exp;
49045 Fixed bug with iglasses tracking not "centering" right.
49046 Made VFX have bright headlight lighting.
49047 ----------------------------
49048 revision 2.5
49049 date: 1995/03/09 15:33:23;  author: john;  state: Exp;
49050 Fixed bug with iglasses timeout too long, and objects
49051 disappearing from left eye.
49052 ----------------------------
49053 revision 2.4
49054 date: 1995/03/06 15:23:13;  author: john;  state: Exp;
49055 New screen techniques.
49056 ----------------------------
49057 revision 2.3
49058 date: 1995/03/03 22:38:30;  author: john;  state: Exp;
49059 Tweaked the filtering,.
49060 ----------------------------
49061 revision 2.2
49062 date: 1995/03/03 22:28:22;  author: john;  state: Exp;
49063 Added code to detect invalid serial ports.
49064 ----------------------------
49065 revision 2.1
49066 date: 1995/03/03 22:24:00;  author: john;  state: Exp;
49067 Added code to make iglasses work with Greenleaf.
49068 ----------------------------
49069 revision 1.2
49070 date: 1995/02/09 22:01:01;  author: john;  state: Exp;
49071 Added i-glasses tracking.
49072 ----------------------------
49073 revision 1.1
49074 date: 1995/02/09 15:53:47;  author: john;  state: Exp;
49075 Initial revision
49076 =============================================================================
49077 RCS file: f:/miner/source/main/iglasses.h,v
49078 Working file: main/iglasses.h
49079 head: 2.0
49080 branch:
49081 description: Routines for the i-glasses VR stuff.
49082 ----------------------------
49083 revision 2.0
49084 date: 1995/02/27 11:28:38;  author: john;  state: Exp;
49085 New version 2.0, which has no anonymous unions, builds with
49086 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
49087 ----------------------------
49088 revision 1.2
49089 date: 1995/02/09 22:01:01;  author: john;  state: Exp;
49090 Added i-glasses tracking.
49091 ----------------------------
49092 revision 1.1
49093 date: 1995/02/09 15:54:01;  author: john;  state: Exp;
49094 Initial revision
49095 head: 2.36
49096 branch:
49097 description: main() for Inferno  
49098 ----------------------------
49099 revision 2.36
49100 date: 1996/01/05 16:52:16;  author: john;  state: Exp;
49101 Improved 3d stuff.
49102 ----------------------------
49103 revision 2.35
49104 date: 1995/10/07 13:20:06;  author: john;  state: Exp;
49105 Added new modes for LCDBIOS, also added support for -JoyNice,
49106 and added Shift+F1-F4 to controls various stereoscopic params.
49107 ----------------------------
49108 revision 2.34
49109 date: 1995/06/26 11:30:57;  author: john;  state: Exp;
49110 Made registration/copyright screen go away after 5 minutes.
49111 ----------------------------
49112 revision 2.33
49113 date: 1995/05/31 14:26:55;  author: unknown;  state: Exp;
49114 Fixed ugly spacing.
49115 ----------------------------
49116 revision 2.32
49117 date: 1995/05/26 16:15:28;  author: john;  state: Exp;
49118 Split SATURN into define's for requiring cd, using cd, etc.
49119 Also started adding all the Rockwell stuff.
49120 ----------------------------
49121 revision 2.31
49122 date: 1995/05/11 13:30:01;  author: john;  state: Exp;
49123 Changed 3dbios detection to work like Didde Kim wanted it to.
49124 ----------------------------
49125 revision 2.30
49126 date: 1995/05/08 13:53:50;  author: john;  state: Exp;
49127 Added code to read vipport environemnt variable.
49128 ----------------------------
49129 revision 2.29
49130 date: 1995/05/08 11:26:18;  author: john;  state: Exp;
49131 Reversed eyes in 3dmax mode.
49132 ----------------------------
49133 revision 2.28
49134 date: 1995/05/08 11:24:06;  author: john;  state: Exp;
49135 Made 3dmax work like Kasan wants it to.
49136 ----------------------------
49137 revision 2.27
49138 date: 1995/04/23 16:06:25;  author: john;  state: Exp;
49139 Moved rinvul into modem/null modem menu.
49140 ----------------------------
49141 revision 2.26
49142 date: 1995/04/12 13:39:26;  author: john;  state: Exp;
49143 Fixed bug with -lowmem not working.
49144 ----------------------------
49145 revision 2.25
49146 date: 1995/04/09 14:43:00;  author: john;  state: Exp;
49147 Made Dynamic sockets not print Msockets for help.
49148 ----------------------------
49149 revision 2.24
49150 date: 1995/04/07 16:11:33;  author: john;  state: Exp;
49151 Fixed problem with VFX display when using setup.
49152 ----------------------------
49153 revision 2.23
49154 date: 1995/04/06 15:40:51;  author: john;  state: Exp;
49155 Synced VFX with setup #'s.
49156 ----------------------------
49157 revision 2.22
49158 date: 1995/04/06 12:12:53;  author: john;  state: Exp;
49159 Fixed some bugs with 3dmax.
49160 ----------------------------
49161 revision 2.21
49162 date: 1995/03/30 16:36:51;  author: mike;  state: Exp;
49163 text localization.
49164 ----------------------------
49165 revision 2.20
49166 date: 1995/03/29 15:33:52;  author: john;  state: Exp;
49167 Added code to parse descent.net file.
49168 ----------------------------
49169 revision 2.19
49170 date: 1995/03/28 20:08:21;  author: john;  state: Exp;
49171 Took away alternate server thing.
49172 ----------------------------
49173 revision 2.18
49174 date: 1995/03/27 09:43:08;  author: john;  state: Exp;
49175 Added VR Settings in config file.
49176 ----------------------------
49177 revision 2.17
49178 date: 1995/03/23 19:02:21;  author: john;  state: Exp;
49179 Added descent.net file use.
49180 ----------------------------
49181 revision 2.16
49182 date: 1995/03/23 12:25:11;  author: john;  state: Exp;
49183 Moved IPX stuff into BIOS lib.
49184 ----------------------------
49185 revision 2.15
49186 date: 1995/03/21 16:52:34;  author: john;  state: Exp;
49187 Added 320x100.
49188 ----------------------------
49189 revision 2.14
49190 date: 1995/03/21 14:40:33;  author: john;  state: Exp;
49191 Ifdef'd out the NETWORK code.
49192 ----------------------------
49193 revision 2.13
49194 date: 1995/03/16 23:13:35;  author: john;  state: Exp;
49195 Fixed bug with piggy paging in bitmap not checking for disk
49196 error, hence bogifying textures if you pull the CD out.
49197 ----------------------------
49198 revision 2.12
49199 date: 1995/03/16 21:45:22;  author: john;  state: Exp;
49200 Made all paged modes have incompatible menus!
49201 ----------------------------
49202 revision 2.11
49203 date: 1995/03/15 15:19:34;  author: john;  state: Exp;
49204 Took out code that changes to exe dir.
49205 ----------------------------
49206 revision 2.10
49207 date: 1995/03/15 14:33:37;  author: john;  state: Exp;
49208 Added code to force the Descent CD-rom in the drive.
49209 ----------------------------
49210 revision 2.9
49211 date: 1995/03/15 11:41:27;  author: john;  state: Exp;
49212 Better Saturn CD-ROM support.
49213 ----------------------------
49214 revision 2.8
49215 date: 1995/03/14 18:24:46;  author: john;  state: Exp;
49216 Force Destination Saturn to use CD-ROM drive.
49217 ----------------------------
49218 revision 2.7
49219 date: 1995/03/14 16:22:35;  author: john;  state: Exp;
49220 Added cdrom alternate directory stuff.
49221 ----------------------------
49222 revision 2.6
49223 date: 1995/03/13 15:17:19;  author: john;  state: Exp;
49224 Added alternate hogfile directory.
49225 ----------------------------
49226 revision 2.5
49227 date: 1995/03/10 13:05:35;  author: john;  state: Exp;
49228 Added code so that palette is correct for VFX1 helmets.
49229 ----------------------------
49230 revision 2.4
49231 date: 1995/03/07 15:12:43;  author: john;  state: Exp;
49232 Fixed VFX,3dmax support.
49233 ----------------------------
49234 revision 2.3
49235 date: 1995/03/07 14:19:35;  author: mike;  state: Exp;
49236 More destination saturn stuff.
49237 ----------------------------
49238 revision 2.2
49239 date: 1995/03/06 16:47:34;  author: mike;  state: Exp;
49240 destination saturn
49241 ----------------------------
49242 revision 2.1
49243 date: 1995/03/06 15:24:06;  author: john;  state: Exp;
49244 New screen techniques.
49245 ----------------------------
49246 revision 2.0
49247 date: 1995/02/27 11:31:29;  author: john;  state: Exp;
49248 New version 2.0, which has no anonymous unions, builds with
49249 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
49250 ----------------------------
49251 revision 1.295
49252 date: 1995/02/23 12:02:14;  author: john;  state: Exp;
49253 Made mono  windows smaller.
49254 ----------------------------
49255 revision 1.294
49256 date: 1995/02/16 17:35:00;  author: john;  state: Exp;
49257 Added code to allow dynamic socket changing.
49258 ----------------------------
49259 revision 1.293
49260 date: 1995/02/14 19:29:29;  author: john;  state: Exp;
49261 Locked down critical error handler.
49262 ----------------------------
49263 revision 1.292
49264 date: 1995/02/14 15:29:20;  author: john;  state: Exp;
49265 Added CR-LF to last line of menu help text.
49266 ----------------------------
49267 revision 1.291
49268 date: 1995/02/14 11:39:01;  author: john;  state: Exp;
49269 Added polled/bios joystick readers.
49270 ----------------------------
49271 revision 1.290
49272 date: 1995/02/13 20:35:03;  author: john;  state: Exp;
49273 Lintized
49274 ----------------------------
49275 revision 1.289
49276 date: 1995/02/11 16:20:02;  author: john;  state: Exp;
49277 Added code to make the default mission be the one last played.
49278 ----------------------------
49279 revision 1.288
49280 date: 1995/02/11 15:54:13;  author: rob;  state: Exp;
49281 changed cinvul to rinvul.
49282 ----------------------------
49283 revision 1.287
49284 date: 1995/02/11 14:48:43;  author: rob;  state: Exp;
49285 Added max of 314 seconds to control invul. times
49286 ----------------------------
49287 revision 1.286
49288 date: 1995/02/11 12:42:01;  author: john;  state: Exp;
49289 Added new song method, with FM bank switching..
49290 ----------------------------
49291 revision 1.285
49292 date: 1995/02/11 11:36:11;  author: rob;  state: Exp;
49293 Added cinvul option.
49294 ----------------------------
49295 revision 1.284
49296 date: 1995/02/10 16:07:45;  author: matt;  state: Exp;
49297 Took 'registered' out of printed info at startup
49298 ----------------------------
49299 revision 1.283
49300 date: 1995/02/09 22:00:59;  author: john;  state: Exp;
49301 Added i-glasses tracking.
49302 ----------------------------
49303 revision 1.282
49304 date: 1995/02/02 11:11:27;  author: john;  state: Exp;
49305 Added -nocyberman switch.
49306 ----------------------------
49307 revision 1.281
49308 date: 1995/02/01 16:35:14;  author: john;  state: Exp;
49309 Linted.
49310 ----------------------------
49311 revision 1.280
49312 date: 1995/01/31 02:04:25;  author: matt;  state: Exp;
49313 Fixed up cmdline help
49314 ----------------------------
49315 revision 1.279
49316 date: 1995/01/30 16:25:55;  author: john;  state: Exp;
49317 Put back in graphical screen at program end.
49318 ----------------------------
49319 revision 1.278
49320 date: 1995/01/28 17:05:50;  author: matt;  state: Exp;
49321 Changed imbedded copyright to use comma instead of hyphen
49322 ----------------------------
49323 revision 1.277
49324 date: 1995/01/28 15:57:26;  author: john;  state: Exp;
49325 Made joystick calibration be only when wrong detected in
49326 menu or joystick axis changed.
49327 ----------------------------
49328 revision 1.276
49329 date: 1995/01/25 14:37:49;  author: john;  state: Exp;
49330 Made joystick only prompt for calibration once...
49331 ----------------------------
49332 revision 1.275
49333 date: 1995/01/24 18:21:00;  author: john;  state: Exp;
49334 Added Adam's text warning.
49335 ----------------------------
49336 revision 1.274
49337 date: 1995/01/22 15:57:20;  author: john;  state: Exp;
49338 Took out code that printed warning out as game exited.
49339 ----------------------------
49340 revision 1.273
49341 date: 1995/01/22 13:31:35;  author: matt;  state: Exp;
49342 Added load of mission 0, so there's always a default mission
49343 ----------------------------
49344 revision 1.272
49345 date: 1995/01/19 17:00:41;  author: john;  state: Exp;
49346 Made save game work between levels.
49347 ----------------------------
49348 revision 1.271
49349 date: 1995/01/18 11:47:57;  author: adam;  state: Exp;
49350 changed copyright notice
49351 ----------------------------
49352 revision 1.270
49353 date: 1995/01/15 13:42:42;  author: john;  state: Exp;
49354 Moved low_mem cutoff higher.
49355 ----------------------------
49356 revision 1.269
49357 date: 1995/01/12 18:53:50;  author: john;  state: Exp;
49358 Put ifdef EDITOR around the code that checked for 
49359 a 800x600 mode, because this trashed some people's
49360 computers (maybe) causing the mem allocation error in
49361 mouse.c that many users reported.
49362 ----------------------------
49363 revision 1.268
49364 date: 1995/01/12 11:41:42;  author: john;  state: Exp;
49365 Added external control reading.
49366 ----------------------------
49367 revision 1.267
49368 date: 1995/01/06 10:26:55;  author: john;  state: Exp;
49369 Added -nodoscheck command line switch.
49370 ----------------------------
49371 revision 1.266
49372 date: 1995/01/05 16:59:30;  author: yuan;  state: Exp;
49373 Don't show orderform in editor version.
49374 ----------------------------
49375 revision 1.265
49376 date: 1994/12/28 15:33:51;  author: john;  state: Exp;
49377 Added -slowjoy option.
49378 ----------------------------
49379 revision 1.264
49380 date: 1994/12/15 16:44:15;  author: matt;  state: Exp;
49381 Added trademark notice
49382 ----------------------------
49383 revision 1.263
49384 date: 1994/12/14 20:13:59;  author: john;  state: Exp;
49385 Reduced physical mem requments to 2 MB.
49386 ----------------------------
49387 revision 1.262
49388 date: 1994/12/14 19:06:17;  author: john;  state: Exp;
49389 Lowered physical memory requments to 2 MB.
49390 ----------------------------
49391 revision 1.261
49392 date: 1994/12/14 09:41:29;  author: allender;  state: Exp;
49393 change to drive and directory (if needed) of command line invocation
49394 so descent can be started from anywhere
49395 ----------------------------
49396 revision 1.260
49397 date: 1994/12/13 19:08:59;  author: john;  state: Exp;
49398 Updated memory requirements.
49399 ----------------------------
49400 revision 1.259
49401 date: 1994/12/13 17:30:33;  author: john;  state: Exp;
49402 Made the timer rate be changed right after initializing it.
49403 ----------------------------
49404 revision 1.258
49405 date: 1994/12/13 02:46:25;  author: matt;  state: Exp;
49406 Added imbedded copyright
49407 ----------------------------
49408 revision 1.257
49409 date: 1994/12/13 02:06:46;  author: john;  state: Exp;
49410 Added code to check stack used by descent... initial
49411 check showed stack used 35k/50k, so we decided it wasn't
49412 worth pursuing any more.
49413 ----------------------------
49414 revision 1.256
49415 date: 1994/12/11 23:17:54;  author: john;  state: Exp;
49416 Added -nomusic.
49417 Added RealFrameTime.
49418 Put in a pause when sound initialization error.
49419 Made controlcen countdown and framerate use RealFrameTime.
49420 ----------------------------
49421 revision 1.255
49422 date: 1994/12/10 00:56:51;  author: matt;  state: Exp;
49423 Added -nomusic to command-line help
49424 ----------------------------
49425 revision 1.254
49426 date: 1994/12/08 11:55:11;  author: john;  state: Exp;
49427 Took out low memory print.
49428 ----------------------------
49429 revision 1.253
49430 date: 1994/12/08 11:51:00;  author: john;  state: Exp;
49431 Made strcpy only copy corect number of chars,.
49432 ----------------------------
49433 revision 1.252
49434 date: 1994/12/08 00:38:29;  author: matt;  state: Exp;
49435 Cleaned up banner messages
49436 ----------------------------
49437 revision 1.251
49438 date: 1994/12/07 19:14:52;  author: matt;  state: Exp;
49439 Cleaned up command-line options and command-line help message
49440 ----------------------------
49441 revision 1.250
49442 date: 1994/12/06 19:33:28;  author: john;  state: Exp;
49443 Fixed text of message to make more sense.
49444 ----------------------------
49445 revision 1.249
49446 date: 1994/12/06 16:30:55;  author: john;  state: Exp;
49447 Neatend mem message,..
49448 ----------------------------
49449 revision 1.248
49450 date: 1994/12/06 16:17:35;  author: john;  state: Exp;
49451 Added better mem checking/printing.
49452 ----------------------------
49453 revision 1.247
49454 date: 1994/12/06 14:14:37;  author: john;  state: Exp;
49455 Added code to set low mem based on memory.
49456 ----------------------------
49457 revision 1.246
49458 date: 1994/12/05 12:29:09;  author: allender;  state: Exp;
49459 removed ifdefs around -norun option
49460 ----------------------------
49461 revision 1.245
49462 date: 1994/12/05 00:03:30;  author: matt;  state: Exp;
49463 Added -norun option to exit after writing pig
49464 ----------------------------
49465 revision 1.244
49466 date: 1994/12/04 14:47:01;  author: john;  state: Exp;
49467 MAde the intro and menu be the same song.
49468 ----------------------------
49469 revision 1.243
49470 date: 1994/12/04 14:36:42;  author: john;  state: Exp;
49471 Added menu music.
49472 ----------------------------
49473 revision 1.242
49474 date: 1994/12/02 13:50:17;  author: yuan;  state: Exp;
49475 Localization.
49476 ----------------------------
49477 revision 1.241
49478 date: 1994/12/01 17:28:30;  author: adam;  state: Exp;
49479 added end-shareware stuff
49480 ----------------------------
49481 revision 1.240
49482 date: 1994/11/30 12:10:57;  author: adam;  state: Exp;
49483 added support for PCX titles/brief screens
49484 ----------------------------
49485 revision 1.239
49486 date: 1994/11/29 15:47:33;  author: matt;  state: Exp;
49487 Moved error_init to start of game, so error message prints last
49488 ----------------------------
49489 revision 1.238
49490 date: 1994/11/29 14:19:22;  author: jasen;  state: Exp;
49491 reduced dos mem requirments.
49492 ----------------------------
49493 revision 1.237
49494 date: 1994/11/29 03:46:35;  author: john;  state: Exp;
49495 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
49496 command line arg.
49497 ----------------------------
49498 revision 1.236
49499 date: 1994/11/29 02:50:18;  author: john;  state: Exp;
49500 Increased the amount a joystick has to be off before
49501 asking if they want to recalibrate their joystick.
49502 ----------------------------
49503 revision 1.235
49504 date: 1994/11/29 02:01:29;  author: john;  state: Exp;
49505 Corrected some of the Descent command line help items.
49506 ----------------------------
49507 revision 1.234
49508 date: 1994/11/29 01:39:56;  author: john;  state: Exp;
49509 Fixed minor bug with vfx_light help not wrapping correctly.
49510 ----------------------------
49511 revision 1.233
49512 date: 1994/11/28 21:34:17;  author: john;  state: Exp;
49513 Reduced dos mem rqment to 70k.
49514 ----------------------------
49515 revision 1.232
49516 date: 1994/11/28 21:20:38;  author: john;  state: Exp;
49517 First version with memory checking.
49518 ----------------------------
49519 revision 1.231
49520 date: 1994/11/28 20:06:21;  author: rob;  state: Exp;
49521 Removed old serial param command line options.
49522 Added -noserial and -nonetwork to help listing.
49523 ----------------------------
49524 revision 1.230
49525 date: 1994/11/27 23:15:24;  author: matt;  state: Exp;
49526 Made changes for new mprintf calling convention
49527 ----------------------------
49528 revision 1.229
49529 date: 1994/11/27 20:50:51;  author: matt;  state: Exp;
49530 Don't set mem stuff if no debug
49531 ----------------------------
49532 revision 1.228
49533 date: 1994/11/27 18:46:21;  author: matt;  state: Exp;
49534 Cleaned up command-line switches a little
49535 ----------------------------
49536 revision 1.227
49537 date: 1994/11/21 17:48:00;  author: matt;  state: Exp;
49538 Added text to specifiy whether shareware or registered version
49539 ----------------------------
49540 revision 1.226
49541 date: 1994/11/21 14:44:20;  author: john;  state: Exp;
49542 Fixed some bugs with setting volumes even when -nosound was used. Duh!
49543 ----------------------------
49544 revision 1.225
49545 date: 1994/11/21 13:53:42;  author: matt;  state: Exp;
49546 Took out dos extender copyright
49547 ----------------------------
49548 revision 1.224
49549 date: 1994/11/21 09:46:54;  author: john;  state: Exp;
49550 Added -showmeminfo parameter.
49551 ----------------------------
49552 revision 1.223
49553 date: 1994/11/20 22:12:05;  author: mike;  state: Exp;
49554 Make some stuff dependent on SHAREWARE.
49555 ----------------------------
49556 revision 1.222
49557 date: 1994/11/20 21:14:09;  author: john;  state: Exp;
49558 Changed -serial to -noserial.  MAde a 1 sec delay 
49559 before leaving title screen.  Clear keyboard buffer
49560 before asking for player name.
49561 ----------------------------
49562 revision 1.221
49563 date: 1994/11/19 15:20:20;  author: mike;  state: Exp;
49564 rip out unused code and data
49565 ----------------------------
49566 revision 1.220
49567 date: 1994/11/17 19:14:29;  author: adam;  state: Exp;
49568 prevented order screen from coming up when -notitles is used
49569 ----------------------------
49570 revision 1.219
49571 date: 1994/11/16 11:34:39;  author: john;  state: Exp;
49572 Added -nottitle switch.
49573 ----------------------------
49574 revision 1.218
49575 date: 1994/11/16 10:05:53;  author: john;  state: Exp;
49576 Added verbose messages.
49577 ----------------------------
49578 revision 1.217
49579 date: 1994/11/15 20:12:34;  author: john;  state: Exp;
49580 Added back in inferno and parallax screens.
49581 ----------------------------
49582 revision 1.216
49583 date: 1994/11/15 18:35:30;  author: john;  state: Exp;
49584 Added verbose setting.
49585 ----------------------------
49586 revision 1.215
49587 date: 1994/11/15 17:47:44;  author: john;  state: Exp;
49588 Added ordering info screen.
49589 ----------------------------
49590 revision 1.214
49591 date: 1994/11/15 08:57:44;  author: john;  state: Exp;
49592 Added MS-DOS version checking and -nonetwork option.
49593 ----------------------------
49594 revision 1.213
49595 date: 1994/11/15 08:34:32;  author: john;  state: Exp;
49596 Added better error messages for IPX init.
49597 ----------------------------
49598 revision 1.212
49599 date: 1994/11/14 20:14:18;  author: john;  state: Exp;
49600 Fixed some warnings.
49601 ----------------------------
49602 revision 1.211
49603 date: 1994/11/14 19:50:49;  author: john;  state: Exp;
49604 Added joystick cal values to descent.cfg.
49605 ----------------------------
49606 revision 1.210
49607 date: 1994/11/14 17:56:44;  author: allender;  state: Exp;
49608 make call to ReadConfigFile at startup
49609 ----------------------------
49610 revision 1.209
49611 date: 1994/11/14 11:41:55;  author: john;  state: Exp;
49612 Fixed bug with editor/game sequencing.
49613 ----------------------------
49614 revision 1.208
49615 date: 1994/11/13 17:05:11;  author: john;  state: Exp;
49616 Made the callsign entry be a list box and gave the ability
49617 to delete players.
49618 ----------------------------
49619 revision 1.207
49620 date: 1994/11/13 15:39:22;  author: john;  state: Exp;
49621 Added critical error handler to game.  Took out -editor command line
49622 option because it didn't work anymore and wasn't worth fixing.  Made scores
49623 not use MINER enviroment variable on release version, and made scores
49624 not print an error if there is no descent.hi.
49625 ----------------------------
49626 revision 1.206
49627 date: 1994/11/10 20:53:29;  author: john;  state: Exp;
49628 Used new sound install parameters.
49629 ----------------------------
49630 revision 1.205
49631 date: 1994/11/10 11:07:52;  author: mike;  state: Exp;
49632 Set default detail level.
49633 ----------------------------
49634 revision 1.204
49635 date: 1994/11/09 13:45:43;  author: matt;  state: Exp;
49636 Made -? work again for help
49637 ----------------------------
49638 revision 1.203
49639 date: 1994/11/09 10:55:58;  author: matt;  state: Exp;
49640 Cleaned up initialization for editor -> game transitions
49641 ----------------------------
49642 revision 1.202
49643 date: 1994/11/07 21:35:47;  author: matt;  state: Exp;
49644 Use new function iff_read_into_bitmap()
49645 ----------------------------
49646 revision 1.201
49647 date: 1994/11/05 17:22:16;  author: john;  state: Exp;
49648 Fixed lots of sequencing problems with newdemo stuff.
49649 ----------------------------
49650 revision 1.200
49651 date: 1994/11/05 14:05:44;  author: john;  state: Exp;
49652 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
49653 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
49654 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
49655 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
49656 ----------------------------
49657 revision 1.199
49658 date: 1994/11/04 14:36:30;  author: allender;  state: Exp;
49659 change Auto_demo meaning to mean autostart from menu only.  Use
49660 FindArgs when searching for AutoDemo from command line.  also,
49661 set N_Players to 1 when starting in editor mode.
49662 ----------------------------
49663 revision 1.198
49664 date: 1994/11/02 11:59:49;  author: john;  state: Exp;
49665 Moved menu out of game into inferno main loop.
49666 ----------------------------
49667 revision 1.197
49668 date: 1994/11/01 17:57:39;  author: mike;  state: Exp;
49669 -noscreens option to bypass all screens.
49670 ----------------------------
49671 revision 1.196
49672 date: 1994/10/28 15:42:34;  author: allender;  state: Exp;
49673 don't register player if Autodemo is on
49674 ----------------------------
49675 revision 1.195
49676 date: 1994/10/28 10:58:01;  author: matt;  state: Exp;
49677 Added copyright notice for DOS4GW
49678 ----------------------------
49679 revision 1.194
49680 date: 1994/10/20 21:26:48;  author: matt;  state: Exp;
49681 Took out old serial name/number code, and put up message if this
49682 is a marked version.
49683 ----------------------------
49684 revision 1.193
49685 date: 1994/10/19 09:52:14;  author: allender;  state: Exp;
49686 Print out who descent.exe belongs to if descent.exe is stamped.
49687 ----------------------------
49688 revision 1.192
49689 date: 1994/10/18 16:43:05;  author: allender;  state: Exp;
49690 Added check for identifier stamp and time after which descent will
49691 no longer run.
49692 ----------------------------
49693 revision 1.191
49694 date: 1994/10/17 13:07:17;  author: john;  state: Exp;
49695 Moved the descent.cfg info into the player config file.
49696 ----------------------------
49697 revision 1.190
49698 date: 1994/10/04 10:26:31;  author: matt;  state: Exp;
49699 Support new menu fade in
49700 ----------------------------
49701 revision 1.189
49702 date: 1994/10/03 22:58:46;  author: matt;  state: Exp;
49703 Changed some values of game_mode
49704 ----------------------------
49705 revision 1.188
49706 date: 1994/10/03 18:55:39;  author: rob;  state: Exp;
49707 Changed defaults for com port settings.
49708 ----------------------------
49709 revision 1.187
49710 date: 1994/10/03 13:34:47;  author: matt;  state: Exp;
49711 Added new (and hopefully better) game sequencing functions
49712 ----------------------------
49713 revision 1.186
49714 date: 1994/09/30 12:37:28;  author: john;  state: Exp;
49715 Added midi,digi volume to configuration.
49716 ----------------------------
49717 revision 1.185
49718 date: 1994/09/30 10:08:48;  author: john;  state: Exp;
49719 Changed sound stuff... made it so the reseting card doesn't hang, 
49720 made volume change only if sound is installed.
49721 ----------------------------
49722 revision 1.184
49723 date: 1994/09/28 17:25:00;  author: matt;  state: Exp;
49724 Added first draft of game save/load system
49725 ----------------------------
49726 revision 1.183
49727 date: 1994/09/28 16:18:23;  author: john;  state: Exp;
49728 Added capability to play midi song.
49729 ----------------------------
49730 revision 1.182
49731 date: 1994/09/28 11:31:18;  author: john;  state: Exp;
49732 Made text output unbuffered.
49733 ----------------------------
49734 revision 1.181
49735 date: 1994/09/27 19:23:44;  author: john;  state: Exp;
49736 Added -nojoystick and -nomouse
49737 ----------------------------
49738 revision 1.180
49739 date: 1994/09/24 16:55:29;  author: rob;  state: Exp;
49740 No longer open COM port immediately upon program start.
49741 No longer set Network_active is serial_active is set.
49742 ----------------------------
49743 revision 1.179
49744 date: 1994/09/24 14:16:30;  author: mike;  state: Exp;
49745 Support new game mode constants.
49746 ----------------------------
49747 revision 1.178
49748 date: 1994/09/22 17:52:31;  author: rob;  state: Exp;
49749 Added Findargs hooks for -serial, -speed, and -com.
49750 ----------------------------
49751 revision 1.177
49752 date: 1994/09/22 16:14:11;  author: john;  state: Exp;
49753 Redid intro sequecing.
49754 ----------------------------
49755 revision 1.176
49756 date: 1994/09/21 16:32:58;  author: john;  state: Exp;
49757 Made mouse and keyboard init after bm_init. Why?
49758 Because it seems to work better under virtual 
49759 memory.
49760 ----------------------------
49761 revision 1.175
49762 date: 1994/09/21 16:27:52;  author: john;  state: Exp;
49763 Added mouse_init
49764 ----------------------------
49765 revision 1.174
49766 date: 1994/09/20 15:14:10;  author: matt;  state: Exp;
49767 New message for new VFX switches
49768 ----------------------------
49769 revision 1.173
49770 date: 1994/09/16 16:14:27;  author: john;  state: Exp;
49771 Added acrade sequencing.
49772 ----------------------------
49773 revision 1.172
49774 date: 1994/09/16 11:49:52;  author: john;  state: Exp;
49775 Added first version of arcade joystick support;
49776 Also fixed some bugs in kconfig.c, such as reading non-present
49777 joysticks, which killed frame rate, and not reading key_down_time
49778 when in slide mode or bank mode.
49779 ----------------------------
49780 revision 1.171
49781 date: 1994/09/15 16:11:35;  author: john;  state: Exp;
49782 Added support for VFX1 head tracking. Fixed bug with memory over-
49783 write when using stereo mode.
49784 ----------------------------
49785 revision 1.170
49786 date: 1994/09/12 19:38:23;  author: john;  state: Exp;
49787 Made some stuff that prints to the DOS screen go to the
49788 mono instead, since it really is debugging info.
49789 ----------------------------
49790 revision 1.169
49791 date: 1994/08/29 21:18:28;  author: john;  state: Exp;
49792 First version of new keyboard/oystick remapping stuff.
49793 ----------------------------
49794 revision 1.168
49795 date: 1994/08/26 13:02:00;  author: john;  state: Exp;
49796 Put high score system in.
49797 ----------------------------
49798 revision 1.167
49799 date: 1994/08/24 19:00:23;  author: john;  state: Exp;
49800 Changed key_down_time to return fixed seconds instead of
49801 milliseconds.
49802 ----------------------------
49803 revision 1.166
49804 date: 1994/08/18 16:24:20;  author: john;  state: Exp;
49805 changed socket to channel in text.
49806 ----------------------------
49807 revision 1.165
49808 date: 1994/08/18 16:16:51;  author: john;  state: Exp;
49809 Added support for different sockets.
49810 ----------------------------
49811 revision 1.164
49812 date: 1994/08/18 10:47:53;  author: john;  state: Exp;
49813 *** empty log message ***
49814 ----------------------------
49815 revision 1.163
49816 date: 1994/08/12 09:15:54;  author: john;  state: Exp;
49817 *** empty log message ***
49818 ----------------------------
49819 revision 1.162
49820 date: 1994/08/12 03:11:19;  author: john;  state: Exp;
49821 Made network be default off; Moved network options into
49822 main menu.  Made starting net game check that mines are the
49823 same.
49824 ----------------------------
49825 revision 1.161
49826 date: 1994/08/10 19:57:05;  author: john;  state: Exp;
49827 Changed font stuff; Took out old menu; messed up lots of
49828 other stuff like game sequencing messages, etc.
49829 ----------------------------
49830 revision 1.160
49831 date: 1994/08/05 16:30:23;  author: john;  state: Exp;
49832 Added capability to turn off network.
49833 ----------------------------
49834 revision 1.159
49835 date: 1994/08/04 19:42:51;  author: matt;  state: Exp;
49836 Moved serial number & name (and version name) from inferno.c to inferno.ini
49837 ----------------------------
49838 revision 1.158
49839 date: 1994/08/03 10:30:23;  author: matt;  state: Exp;
49840 Change cybermaxx switches, updated command-line help, and added serial number system
49841 ----------------------------
49842 revision 1.157
49843 date: 1994/07/29 18:30:10;  author: matt;  state: Exp;
49844 New parms (lack of parms, actually) for g3_init()
49845 ----------------------------
49846 revision 1.156
49847 date: 1994/07/24 00:39:25;  author: matt;  state: Exp;
49848 Added more text to TEX file; make NewGame() take a start level; made game
49849 load/save menus use open/close window funcs.
49850 ----------------------------
49851 revision 1.155
49852 date: 1994/07/21 21:31:27;  author: john;  state: Exp;
49853 First cheapo version of VictorMaxx tracking.
49854 ----------------------------
49855 revision 1.154
49856 date: 1994/07/21 18:15:34;  author: matt;  state: Exp;
49857 Ripped out a bunch of unused stuff
49858 ----------------------------
49859 revision 1.153
49860 date: 1994/07/21 17:59:10;  author: matt;  state: Exp;
49861 Cleaned up initial mode game/editor code
49862 ----------------------------
49863 revision 1.152
49864 date: 1994/07/21 13:11:19;  author: matt;  state: Exp;
49865 Ripped out remants of old demo system, and added demo only system that
49866 disables object movement and game options from menu.
49867 ----------------------------
49868 revision 1.151
49869 date: 1994/07/20 15:58:27;  author: john;  state: Exp;
49870 First installment of ipx stuff.
49871 ----------------------------
49872 revision 1.150
49873 date: 1994/07/15 16:04:24;  author: matt;  state: Exp;
49874 Changed comment for milestone 3 version
49875 ----------------------------
49876 revision 1.149
49877 date: 1994/07/15 13:59:24;  author: matt;  state: Exp;
49878 Fixed stupid mistake I make in the last revision
49879 ----------------------------
49880 revision 1.148
49881 date: 1994/07/15 13:20:15;  author: matt;  state: Exp;
49882 Updated comand-line help
49883 ----------------------------
49884 revision 1.147
49885 date: 1994/07/14 23:29:43;  author: matt;  state: Exp;
49886 Open two mono debug messages, one for errors & one for spew
49887 ----------------------------
49888 revision 1.146
49889 date: 1994/07/09 22:48:05;  author: matt;  state: Exp;
49890 Added localizable text
49891 ----------------------------
49892 revision 1.145
49893 date: 1994/07/02 13:49:47;  author: matt;  state: Exp;
49894 Cleaned up includes
49895 ----------------------------
49896 revision 1.144
49897 date: 1994/06/30 20:04:43;  author: john;  state: Exp;
49898 Added -joydef support.
49899 ----------------------------
49900 revision 1.143
49901 date: 1994/06/24 17:01:44;  author: john;  state: Exp;
49902 Add VFX support; Took Game Sequencing, like EndGame and stuff and
49903 took it out of game.c and into gameseq.c
49904 =============================================================================
49905 RCS file: f:/miner/source/main/inferno.h,v
49906 Working file: main/inferno.h
49907 head: 2.4
49908 branch:
49909 description: Header file for Inferno.  Should be included in all source files. 
49910 =============================================================================
49911 RCS file: f:/miner/source/main/editor/info.c,v
49912 Working file: main/editor/info.c
49913 head: 2.0
49914 branch:
49915 description: Print debugging info in ui.
49916 ----------------------------
49917 revision 2.0
49918 date: 1995/02/27 11:35:34;  author: john;  state: Exp;
49919 Version 2.0! No anonymous unions, Watcom 10.0, with no need
49920 for bitmaps.tbl.
49921 ----------------------------
49922 revision 1.42
49923 date: 1995/02/22 15:12:50;  author: allender;  state: Exp;
49924 remove anonymous unions from object structure
49925 ----------------------------
49926 revision 1.41
49927 date: 1994/12/08 13:59:39;  author: matt;  state: Exp;
49928 *** empty log message ***
49929 ----------------------------
49930 revision 1.40
49931 date: 1994/09/30 00:38:30;  author: mike;  state: Exp;
49932 Fix some diagnostic messages
49933 ----------------------------
49934 revision 1.39
49935 date: 1994/09/29 20:13:12;  author: mike;  state: Exp;
49936 Clean up some text, prevent it from writing outside canvas.
49937 ----------------------------
49938 revision 1.38
49939 date: 1994/09/29 09:32:17;  author: mike;  state: Exp;
49940 Fix text clipping problem in UI keypad info text.
49941 ----------------------------
49942 revision 1.37
49943 date: 1994/09/25 23:42:20;  author: matt;  state: Exp;
49944 Took out references to obsolete constants
49945 ----------------------------
49946 revision 1.36
49947 date: 1994/08/25 21:57:05;  author: mike;  state: Exp;
49948 IS_CHILD stuff.
49949 ----------------------------
49950 revision 1.35
49951 date: 1994/08/23 16:39:50;  author: mike;  state: Exp;
49952 mode replaced by behavior in ai_info.
49953 ----------------------------
49954 revision 1.34
49955 date: 1994/07/18 10:45:23;  author: mike;  state: Exp;
49956 Fix erase window in texture pads after adding more click-boxes.
49957 ----------------------------
49958 revision 1.33
49959 date: 1994/07/15 12:34:10;  author: mike;  state: Exp;
49960 Remove use of AIM_FOLLOW_PATH_CIRCULAR.
49961 ----------------------------
49962 revision 1.32
49963 date: 1994/06/17 17:13:46;  author: yuan;  state: Exp;
49964 Fixed text so it doesn't overflow screen
49965 ----------------------------
49966 revision 1.31
49967 date: 1994/06/01 17:22:31;  author: matt;  state: Exp;
49968 Set font color before drawing info; got rid of superfluous %d
49969 ----------------------------
49970 revision 1.30
49971 date: 1994/05/29 23:40:29;  author: matt;  state: Exp;
49972 Killed reference to now-unused movement type
49973 ----------------------------
49974 revision 1.29
49975 date: 1994/05/29 22:52:32;  author: matt;  state: Exp;
49976 Deleted unused stuff
49977 ----------------------------
49978 revision 1.28
49979 date: 1994/05/27 10:34:16;  author: yuan;  state: Exp;
49980 Added new Dialog boxes for Walls and Triggers.
49981 ----------------------------
49982 revision 1.27
49983 date: 1994/05/17 10:34:35;  author: matt;  state: Exp;
49984 Changed Num_objects to num_objects, since it's not really global anymore
49985 ----------------------------
49986 revision 1.26
49987 date: 1994/05/14 17:17:59;  author: matt;  state: Exp;
49988 Got rid of externs in source (non-header) files
49989 ----------------------------
49990 revision 1.25
49991 date: 1994/05/12 14:47:07;  author: mike;  state: Exp;
49992 Adjust for Ai_states killed, replaced by field in object structure.
49993 ----------------------------
49994 revision 1.24
49995 date: 1994/05/06 12:52:11;  author: yuan;  state: Exp;
49996 Adding some gamesave checks...
49997 ----------------------------
49998 revision 1.23
49999 date: 1994/05/03 19:21:28;  author: matt;  state: Exp;
50000 Removed reference to robot flythrough mode, which doesn't exist anymore
50001 ----------------------------
50002 revision 1.22
50003 date: 1994/05/03 11:03:06;  author: mike;  state: Exp;
50004 Customize text for segment sizing keypad.
50005 ----------------------------
50006 revision 1.21
50007 date: 1994/04/29 15:05:40;  author: yuan;  state: Exp;
50008 More info added...
50009 ----------------------------
50010 revision 1.20
50011 date: 1994/04/22 17:45:58;  author: john;  state: Exp;
50012 MAde top 2 bits of paste-ons pick the 
50013 orientation of the bitmap.
50014 ----------------------------
50015 revision 1.19
50016 date: 1994/04/20 17:29:30;  author: yuan;  state: Exp;
50017 Added tmap_num info.
50018 ----------------------------
50019 revision 1.18
50020 date: 1994/04/13 19:12:55;  author: mike;  state: Exp;
50021 Fix font color problems in keypads.
50022 ----------------------------
50023 revision 1.17
50024 date: 1994/04/13 13:26:37;  author: mike;  state: Exp;
50025 Kill a mprintf.
50026 ----------------------------
50027 revision 1.16
50028 date: 1994/04/13 13:24:44;  author: mike;  state: Exp;
50029 Separate info display, customize for each keypad.
50030 ----------------------------
50031 revision 1.15
50032 date: 1994/03/19 17:21:31;  author: yuan;  state: Exp;
50033 Wall system implemented until specific features need to be added...
50034 (Needs to be hammered on though.)
50035 ----------------------------
50036 revision 1.14
50037 date: 1994/02/22 18:13:13;  author: yuan;  state: Exp;
50038 Added tmap number field.
50039 ----------------------------
50040 revision 1.13
50041 date: 1994/02/17 09:46:27;  author: matt;  state: Exp;
50042 Removed include of slew.h
50043 ----------------------------
50044 revision 1.12
50045 date: 1994/02/16 19:58:56;  author: yuan;  state: Exp;
50046 Added type to info
50047 ----------------------------
50048 revision 1.11
50049 date: 1994/02/16 16:48:08;  author: yuan;  state: Exp;
50050 Added Curside.
50051 ----------------------------
50052 revision 1.10
50053 date: 1994/02/03 17:26:43;  author: yuan;  state: Exp;
50054 Fixed formatting of vertex numbering.
50055 ----------------------------
50056 revision 1.9
50057 date: 1994/01/31 12:17:06;  author: yuan;  state: Exp;
50058 Make sure Num_segments, etc. are drawn.
50059 ----------------------------
50060 revision 1.8
50061 date: 1994/01/22 13:43:12;  author: yuan;  state: Exp;
50062 Cosmetic fixes.
50063 ----------------------------
50064 revision 1.7
50065 date: 1994/01/21 12:14:59;  author: yuan;  state: Exp;
50066 Fixed cosmetic problem
50067 ----------------------------
50068 revision 1.6
50069 date: 1994/01/21 12:01:03;  author: yuan;  state: Exp;
50070 Added segment and vertex info
50071 ----------------------------
50072 revision 1.5
50073 date: 1994/01/20 11:28:11;  author: john;  state: Exp;
50074 *** empty log message ***
50075 ----------------------------
50076 revision 1.4
50077 date: 1994/01/19 10:44:42;  author: john;  state: Exp;
50078 *** empty log message ***
50079 ----------------------------
50080 revision 1.3
50081 date: 1994/01/19 10:32:36;  author: john;  state: Exp;
50082 *** empty log message ***
50083 ----------------------------
50084 revision 1.2
50085 date: 1994/01/19 09:34:31;  author: john;  state: Exp;
50086 First version.
50087 ----------------------------
50088 revision 1.1
50089 date: 1994/01/19 09:30:43;  author: john;  state: Exp;
50090 Initial revision
50091 =============================================================================
50092 RCS file: f:/miner/source/main/editor/info.h,v
50093 Working file: main/editor/info.h
50094 head: 2.0
50095 branch:
50096 description: Header for info.c
50097 ----------------------------
50098 revision 2.0
50099 date: 1995/02/27 11:34:32;  author: john;  state: Exp;
50100 Version 2.0! No anonymous unions, Watcom 10.0, with no need
50101 for bitmaps.tbl.
50102 ----------------------------
50103 revision 1.2
50104 date: 1994/05/14 17:18:17;  author: matt;  state: Exp;
50105 Got rid of externs in source (non-header) files
50106 ----------------------------
50107 revision 1.1
50108 date: 1994/05/14 16:30:39;  author: matt;  state: Exp;
50109 Initial revision
50110 =============================================================================
50111 RCS file: f:/miner/source/main/joycal.c,v
50112 Working file: main/joycal.c
50113 head: 2.0
50114 branch:
50115 description: Routines to calibrate the joystick.
50116 ----------------------------
50117 revision 2.0
50118 date: 1995/02/27 11:27:48;  author: john;  state: Exp;
50119 New version 2.0, which has no anonymous unions, builds with
50120 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
50121 ----------------------------
50122 revision 1.1
50123 date: 1994/11/21 11:55:47;  author: john;  state: Exp;
50124 Initial revision
50125 ----------------------------
50126 revision 1.1
50127 date: 1994/08/17 09:58:04;  author: john;  state: Exp;
50128 Initial revision
50129 =============================================================================
50130 RCS file: f:/miner/source/main/joycal.h,v
50131 Working file: main/joycal.h
50132 head: 1.1
50133 branch:
50134 description: Routines to calibrate the joystick
50135 ----------------------------
50136 revision 1.1
50137 date: 1994/08/17 09:58:17;  author: john;  state: Exp;
50138 Initial revision
50139 =============================================================================
50140 RCS file: f:/miner/source/main/joydefs.c,v
50141 Working file: main/joydefs.c
50142 head: 2.2
50143 branch:
50144 description: .
50145 ----------------------------
50146 revision 2.2
50147 date: 1995/06/30 12:30:22;  author: john;  state: Exp;
50148 Added -Xname command line.
50149 ----------------------------
50150 revision 2.1
50151 date: 1995/04/06 12:13:20;  author: john;  state: Exp;
50152 Made so you can calibrate Gravis Gamepad.
50153 ----------------------------
50154 revision 2.0
50155 date: 1995/02/27 11:30:27;  author: john;  state: Exp;
50156 New version 2.0, which has no anonymous unions, builds with
50157 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
50158 ----------------------------
50159 revision 1.71
50160 date: 1995/02/12 02:06:10;  author: john;  state: Exp;
50161 Fixed bug with joystick incorrectly asking for
50162 calibration.
50163 ----------------------------
50164 revision 1.70
50165 date: 1995/01/28 15:58:07;  author: john;  state: Exp;
50166 Made joystick calibration be only when wrong detected in
50167 menu or joystick axis changed.
50168 ----------------------------
50169 revision 1.69
50170 date: 1995/01/25 14:37:55;  author: john;  state: Exp;
50171 Made joystick only prompt for calibration once...
50172 ----------------------------
50173 revision 1.68
50174 date: 1995/01/24 16:34:29;  author: john;  state: Exp;
50175 Made so that if you reconfigure joystick and
50176 add or subtract an axis, it asks for a recalibration
50177 upon leaving.
50178 ----------------------------
50179 revision 1.67
50180 date: 1994/12/29 11:08:51;  author: john;  state: Exp;
50181 Fixed Thrustmaster and Logitech Wingman extreme
50182 Hat by reading the y2 axis during the center stage
50183 of the calibration, and using 75, 50, 27, and 3 %
50184 as values for the 4 positions.
50185 ----------------------------
50186 revision 1.66
50187 date: 1994/12/15 18:17:39;  author: john;  state: Exp;
50188 Fixed warning with previous.
50189 ----------------------------
50190 revision 1.65
50191 date: 1994/12/15 18:15:48;  author: john;  state: Exp;
50192 Made the joy cal only write the .cfg file, not
50193 the player file.
50194 ----------------------------
50195 revision 1.64
50196 date: 1994/12/13 14:43:35;  author: john;  state: Exp;
50197 Took out the code in kconfig to build direction array.
50198 Called kc_set_controls after selecting a new control type.
50199 ----------------------------
50200 revision 1.63
50201 date: 1994/12/10 12:08:47;  author: john;  state: Exp;
50202 Changed some delays to use TICKER instead of timer_get_fixed_seconds.
50203 ----------------------------
50204 revision 1.62
50205 date: 1994/12/09 11:01:07;  author: mike;  state: Exp;
50206 force calibration of joystick on joystick selection from Controls... menu.
50207 ----------------------------
50208 revision 1.61
50209 date: 1994/12/07 21:50:27;  author: john;  state: Exp;
50210 Put stop/start time around joystick delay.
50211 ----------------------------
50212 revision 1.60
50213 date: 1994/12/07 19:34:39;  author: john;  state: Exp;
50214 Added delay.
50215 ----------------------------
50216 revision 1.59
50217 date: 1994/12/07 18:12:14;  author: john;  state: Exp;
50218 NEatened up joy cal.,
50219 ----------------------------
50220 revision 1.58
50221 date: 1994/12/07 17:07:51;  author: john;  state: Exp;
50222 Fixed up joy cal.
50223 ----------------------------
50224 revision 1.57
50225 date: 1994/12/07 16:48:53;  author: yuan;  state: Exp;
50226 localization
50227 ----------------------------
50228 revision 1.56
50229 date: 1994/12/07 16:05:55;  author: john;  state: Exp;
50230 Changed the way joystick calibration works.
50231 ----------------------------
50232 revision 1.55
50233 date: 1994/12/06 20:15:22;  author: john;  state: Exp;
50234 Took out code that unpauses songs that were never paused.
50235 ----------------------------
50236 revision 1.54
50237 date: 1994/12/06 15:14:09;  author: yuan;  state: Exp;
50238 Localization
50239 ----------------------------
50240 revision 1.53
50241 date: 1994/12/05 16:29:16;  author: john;  state: Exp;
50242 Took out music pause around the cheat menu.
50243 ----------------------------
50244 revision 1.52
50245 date: 1994/12/04 12:39:10;  author: john;  state: Exp;
50246 MAde so that FCS calibration doesn't ask for axis #2.
50247 ----------------------------
50248 revision 1.51
50249 date: 1994/12/03 15:14:59;  author: john;  state: Exp;
50250 Took out the delay mentioned previosuly cause it would
50251 cause bigger problems than it helps, especially with netgames.
50252 ----------------------------
50253 revision 1.50
50254 date: 1994/12/03 14:16:14;  author: john;  state: Exp;
50255 Put a delay between screens in joy cal to keep Yuan from
50256 double hitting.
50257 ----------------------------
50258 revision 1.49
50259 date: 1994/12/03 11:04:06;  author: john;  state: Exp;
50260 Changed newmenu code a bit to fix bug with bogus
50261 backgrounds occcasionally.
50262 ----------------------------
50263 revision 1.48
50264 date: 1994/12/02 11:03:44;  author: yuan;  state: Exp;
50265 Localization.
50266 ----------------------------
50267 revision 1.47
50268 date: 1994/12/02 10:50:33;  author: yuan;  state: Exp;
50269 Localization
50270 ----------------------------
50271 revision 1.46
50272 date: 1994/12/01 12:21:59;  author: john;  state: Exp;
50273 Added code to calibrate 2 joysticks separately.
50274 ----------------------------
50275 revision 1.45
50276 date: 1994/12/01 11:52:31;  author: john;  state: Exp;
50277 Added message when you select FCS to say that if
50278 you have WCS, see manuel.
50279 ----------------------------
50280 revision 1.44
50281 date: 1994/11/29 02:26:28;  author: john;  state: Exp;
50282 Made the prompts for upper-left, lower right for joy
50283 calibration more obvious.
50284 ----------------------------
50285 revision 1.43
50286 date: 1994/11/26 13:13:59;  author: matt;  state: Exp;
50287 Changed "none" option to "keyboard only"
50288 ----------------------------
50289 revision 1.42
50290 date: 1994/11/21 19:35:13;  author: john;  state: Exp;
50291 Replaced calls to joy_init with if (joy_present)
50292 ----------------------------
50293 revision 1.41
50294 date: 1994/11/21 19:28:34;  author: john;  state: Exp;
50295 Changed warning for no joystick to use nm_messagebox..
50296 ----------------------------
50297 revision 1.40
50298 date: 1994/11/21 19:06:25;  author: john;  state: Exp;
50299 Made it so that it only stops sound when your in game mode. 
50300 ----------------------------
50301 revision 1.39
50302 date: 1994/11/21 11:47:18;  author: john;  state: Exp;
50303 Made sound pause during joystick calibration.
50304 ----------------------------
50305 revision 1.38
50306 date: 1994/11/10 20:34:18;  author: rob;  state: Exp;
50307 Removed menu-specific network mode support in favor in new stuff
50308 in newmenu.c
50309 ----------------------------
50310 revision 1.37
50311 date: 1994/11/08 21:21:38;  author: john;  state: Exp;
50312 Made Esc exit joystick calibration.
50313 ----------------------------
50314 revision 1.36
50315 date: 1994/11/08 15:14:42;  author: john;  state: Exp;
50316 Added more calls so net doesn't die in net game.
50317 ----------------------------
50318 revision 1.35
50319 date: 1994/11/08 14:59:12;  author: john;  state: Exp;
50320 Added code to respond to network while in menus.
50321 ----------------------------
50322 revision 1.34
50323 date: 1994/10/24 19:56:32;  author: john;  state: Exp;
50324 Made the new user setup prompt for config options.
50325 ----------------------------
50326 revision 1.33
50327 date: 1994/10/22 14:11:52;  author: mike;  state: Exp;
50328 Suppress compiler warning message.
50329 ----------------------------
50330 revision 1.32
50331 date: 1994/10/19 12:44:24;  author: john;  state: Exp;
50332 Added hours field to player structure.
50333 ----------------------------
50334 revision 1.31
50335 date: 1994/10/17 13:07:13;  author: john;  state: Exp;
50336 Moved the descent.cfg info into the player config file.
50337 ----------------------------
50338 revision 1.30
50339 date: 1994/10/13 21:41:12;  author: john;  state: Exp;
50340 MAde Esc exit out of joystick calibration.
50341 ----------------------------
50342 revision 1.29
50343 date: 1994/10/13 19:22:27;  author: john;  state: Exp;
50344 Added separate config saves for different devices.
50345 Made all the devices work together better, such as mice won't
50346 get read when you're playing with the joystick.
50347 ----------------------------
50348 revision 1.28
50349 date: 1994/10/13 11:40:18;  author: john;  state: Exp;
50350 Took out warnings.
50351 ----------------------------
50352 revision 1.27
50353 date: 1994/10/13 11:35:23;  author: john;  state: Exp;
50354 Made Thrustmaster FCS Hat work.  Put a background behind the
50355 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
50356 menu to new menu. Made F6 be calibrate joystick.
50357 ----------------------------
50358 revision 1.26
50359 date: 1994/10/11 21:29:03;  author: matt;  state: Exp;
50360 Made a bunch of menus have good initial selected values
50361 ----------------------------
50362 revision 1.25
50363 date: 1994/10/11 17:08:39;  author: john;  state: Exp;
50364 Added sliders for volume controls.
50365 ----------------------------
50366 revision 1.24
50367 date: 1994/10/10 17:59:21;  author: john;  state: Exp;
50368 Neatend previous.
50369 ----------------------------
50370 revision 1.23
50371 date: 1994/10/10 17:57:59;  author: john;  state: Exp;
50372 Neatend previous.
50373 ----------------------------
50374 revision 1.22
50375 date: 1994/10/10 17:56:11;  author: john;  state: Exp;
50376 Added messagebox that tells that config has been saved.
50377 ----------------------------
50378 revision 1.21
50379 date: 1994/09/30 12:37:26;  author: john;  state: Exp;
50380 Added midi,digi volume to configuration.
50381 ----------------------------
50382 revision 1.20
50383 date: 1994/09/22 16:14:14;  author: john;  state: Exp;
50384 Redid intro sequecing.
50385 ----------------------------
50386 revision 1.19
50387 date: 1994/09/19 18:50:15;  author: john;  state: Exp;
50388 Added switch to disable joystick.
50389 ----------------------------
50390 revision 1.18
50391 date: 1994/09/12 11:47:36;  author: john;  state: Exp;
50392 Made stupid cruise work better.  Make kconfig values get
50393 read/written to disk.
50394 ----------------------------
50395 revision 1.17
50396 date: 1994/09/10 15:46:47;  author: john;  state: Exp;
50397 First version of new keyboard configuration.
50398 ----------------------------
50399 revision 1.16
50400 date: 1994/09/06 19:35:44;  author: john;  state: Exp;
50401 Fixed bug that didn';t load new size .cal file.
50402 ----------------------------
50403 revision 1.15
50404 date: 1994/09/06 14:51:58;  author: john;  state: Exp;
50405 Added sensitivity adjustment, fixed bug with joystick button not
50406 staying down.
50407 ----------------------------
50408 revision 1.14
50409 date: 1994/09/02 16:13:47;  author: john;  state: Exp;
50410 Made keys fill in position.
50411 ----------------------------
50412 revision 1.13
50413 date: 1994/08/31 17:58:50;  author: john;  state: Exp;
50414 Made a bit simpler.
50415 ----------------------------
50416 revision 1.12
50417 date: 1994/08/31 14:17:54;  author: john;  state: Exp;
50418 *** empty log message ***
50419 ----------------------------
50420 revision 1.11
50421 date: 1994/08/31 14:10:56;  author: john;  state: Exp;
50422 Made keys not work when KEY_DELETE pressed.
50423 ----------------------------
50424 revision 1.10
50425 date: 1994/08/31 13:40:47;  author: mike;  state: Exp;
50426 Change constant
50427 ----------------------------
50428 revision 1.9
50429 date: 1994/08/31 12:56:27;  author: john;  state: Exp;
50430 *** empty log message ***
50431 ----------------------------
50432 revision 1.8
50433 date: 1994/08/30 20:38:29;  author: john;  state: Exp;
50434 Add more config stuff..
50435 ----------------------------
50436 revision 1.7
50437 date: 1994/08/30 16:37:25;  author: john;  state: Exp;
50438 Added menu options to set controls.
50439 ----------------------------
50440 revision 1.6
50441 date: 1994/08/30 09:27:18;  author: john;  state: Exp;
50442 *** empty log message ***
50443 ----------------------------
50444 revision 1.5
50445 date: 1994/08/30 09:12:01;  author: john;  state: Exp;
50446 *** empty log message ***
50447 ----------------------------
50448 revision 1.4
50449 date: 1994/08/29 21:18:32;  author: john;  state: Exp;
50450 First version of new keyboard/oystick remapping stuff.
50451 ----------------------------
50452 revision 1.3
50453 date: 1994/08/24 19:00:29;  author: john;  state: Exp;
50454 Changed key_down_time to return fixed seconds instead of
50455 milliseconds.
50456 ----------------------------
50457 revision 1.2
50458 date: 1994/08/17 16:50:37;  author: john;  state: Exp;
50459 Added damaging fireballs, missiles.
50460 ----------------------------
50461 revision 1.1
50462 date: 1994/08/17 10:07:12;  author: john;  state: Exp;
50463 Initial revision
50464 =============================================================================
50465 RCS file: f:/miner/source/main/joydefs.h,v
50466 Working file: main/joydefs.h
50467 head: 2.0
50468 branch:
50469 description: Variables for joystick settings.
50470 ----------------------------
50471 revision 2.0
50472 date: 1995/02/27 11:32:12;  author: john;  state: Exp;
50473 New version 2.0, which has no anonymous unions, builds with
50474 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
50475 ----------------------------
50476 revision 1.12
50477 date: 1995/01/25 14:37:52;  author: john;  state: Exp;
50478 Made joystick only prompt for calibration once...
50479 ----------------------------
50480 revision 1.11
50481 date: 1994/10/13 11:35:43;  author: john;  state: Exp;
50482 Made Thrustmaster FCS Hat work.  Put a background behind the
50483 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
50484 menu to new menu. Made F6 be calibrate joystick.
50485 ----------------------------
50486 revision 1.10
50487 date: 1994/09/10 15:46:49;  author: john;  state: Exp;
50488 First version of new keyboard configuration.
50489 ----------------------------
50490 revision 1.9
50491 date: 1994/09/06 14:51:29;  author: john;  state: Exp;
50492 Added sensitivity adjustment, fixed bug with joystick button not
50493 staying down.
50494 ----------------------------
50495 revision 1.8
50496 date: 1994/08/31 12:56:29;  author: john;  state: Exp;
50497 *** empty log message ***
50498 ----------------------------
50499 revision 1.7
50500 date: 1994/08/30 16:37:07;  author: john;  state: Exp;
50501 Added menu options to set controls.
50502 ----------------------------
50503 revision 1.6
50504 date: 1994/08/29 21:18:33;  author: john;  state: Exp;
50505 First version of new keyboard/oystick remapping stuff.
50506 ----------------------------
50507 revision 1.5
50508 date: 1994/08/24 19:00:30;  author: john;  state: Exp;
50509 Changed key_down_time to return fixed seconds instead of
50510 milliseconds.
50511 ----------------------------
50512 revision 1.4
50513 date: 1994/08/17 16:50:04;  author: john;  state: Exp;
50514 Added damaging fireballs, missiles.
50515 ----------------------------
50516 revision 1.3
50517 date: 1994/07/01 10:55:18;  author: john;  state: Exp;
50518 Added analog joystick throttle
50519 ----------------------------
50520 revision 1.2
50521 date: 1994/06/30 20:04:46;  author: john;  state: Exp;
50522 Added -joydef support.
50523 ----------------------------
50524 revision 1.1
50525 date: 1994/06/30 18:08:12;  author: john;  state: Exp;
50526 Initial revision
50527 =============================================================================
50528 RCS file: f:/miner/source/main/editor/kbuild.c,v
50529 Working file: main/editor/kbuild.c
50530 head: 2.0
50531 branch:
50532 description: Functions for building parts of mines.
50533 ----------------------------
50534 revision 2.0
50535 date: 1995/02/27 11:35:43;  author: john;  state: Exp;
50536 Version 2.0! No anonymous unions, Watcom 10.0, with no need
50537 for bitmaps.tbl.
50538 ----------------------------
50539 revision 1.20
50540 date: 1995/02/22 11:00:47;  author: yuan;  state: Exp;
50541 prototype include.
50542 ----------------------------
50543 revision 1.19
50544 date: 1995/02/22 10:59:01;  author: yuan;  state: Exp;
50545 Save sloppy mine before punching.
50546 ----------------------------
50547 revision 1.18
50548 date: 1994/08/25 21:57:56;  author: mike;  state: Exp;
50549 IS_CHILD stuff.
50550 ----------------------------
50551 revision 1.17
50552 date: 1994/05/16 12:00:52;  author: mike;  state: Exp;
50553 Call med_combine_duplicate_vertices before various build functions.
50554 ----------------------------
50555 revision 1.16
50556 date: 1994/05/09 23:34:31;  author: mike;  state: Exp;
50557 Punch all sloppy sides in a group.
50558 ----------------------------
50559 revision 1.15
50560 date: 1994/02/16 15:23:06;  author: yuan;  state: Exp;
50561 Checking in for editor make.
50562 ----------------------------
50563 revision 1.14
50564 date: 1994/01/21 12:01:31;  author: yuan;  state: Exp;
50565 Added clearer editor_status messages (sloppy joint vs. joint)
50566 ----------------------------
50567 revision 1.13
50568 date: 1994/01/14 11:59:52;  author: yuan;  state: Exp;
50569 New function in build menu. 
50570 "Punch" through walls to force a joint formation with
50571 closest segment:side, if the closest segment:side allows
50572 a connection.
50573 ----------------------------
50574 revision 1.12
50575 date: 1994/01/07 17:45:05;  author: yuan;  state: Exp;
50576 Just changed some tabs and formatting I believe.
50577 ----------------------------
50578 revision 1.11
50579 date: 1993/12/06 19:33:36;  author: yuan;  state: Exp;
50580 Fixed autosave stuff so that undo restores Cursegp and
50581 Markedsegp
50582 ----------------------------
50583 revision 1.10
50584 date: 1993/12/02 12:39:15;  author: matt;  state: Exp;
50585 Removed extra includes
50586 ----------------------------
50587 revision 1.9
50588 date: 1993/11/12 14:31:31;  author: yuan;  state: Exp;
50589 Added warn_if_concave_segments.
50590 ----------------------------
50591 revision 1.8
50592 date: 1993/11/11 17:12:45;  author: yuan;  state: Exp;
50593 Fixed display of messages, so that concave segment
50594 warning doesn't wipe them out immediately.
50595 ----------------------------
50596 revision 1.7
50597 date: 1993/11/09 12:09:28;  author: mike;  state: Exp;
50598 Remove extern for mine_filename, put it in editor.h
50599 ----------------------------
50600 revision 1.6
50601 date: 1993/11/08 19:14:06;  author: yuan;  state: Exp;
50602 Added Undo command (not working yet)
50603 ----------------------------
50604 revision 1.5
50605 date: 1993/11/05 17:32:36;  author: john;  state: Exp;
50606 added funcs
50607 .,
50608 ----------------------------
50609 revision 1.4
50610 date: 1993/11/01 16:53:51;  author: mike;  state: Exp;
50611 Add CreateAdjacentJointsSegment and CreateAdjacentJointsAll
50612 ----------------------------
50613 revision 1.3
50614 date: 1993/11/01 11:24:59;  author: mike;  state: Exp;
50615 Add CreateJointAdjacent
50616 ----------------------------
50617 revision 1.2
50618 date: 1993/10/29 19:13:11;  author: yuan;  state: Exp;
50619 Added diagnostic messages
50620 ----------------------------
50621 revision 1.1
50622 date: 1993/10/13 18:53:27;  author: john;  state: Exp;
50623 Initial revision
50624 =============================================================================
50625 RCS file: f:/miner/source/main/kconfig.c,v
50626 Working file: main/kconfig.c
50627 head: 2.11
50628 branch:
50629 description: Routines to configure keyboard, joystick, etc..
50630 ----------------------------
50631 revision 2.11
50632 date: 1995/08/23 16:08:04;  author: john;  state: Exp;
50633 Added version 2 of external controls that passes the ship
50634 position and orientation the drivers.
50635 ----------------------------
50636 revision 2.10
50637 date: 1995/07/07 16:48:01;  author: john;  state: Exp;
50638 Fixed bug with new interface.
50639 ----------------------------
50640 revision 2.9
50641 date: 1995/07/03 15:02:32;  author: john;  state: Exp;
50642 Added new version of external controls for Cybermouse absolute position.
50643 ----------------------------
50644 revision 2.8
50645 date: 1995/06/30 12:30:28;  author: john;  state: Exp;
50646 Added -Xname command line.
50647 ----------------------------
50648 revision 2.7
50649 date: 1995/03/30 16:36:56;  author: mike;  state: Exp;
50650 text localization.
50651 ----------------------------
50652 revision 2.6
50653 date: 1995/03/21 14:39:31;  author: john;  state: Exp;
50654 Ifdef'd out the NETWORK code.
50655 ----------------------------
50656 revision 2.5
50657 date: 1995/03/16 10:53:07;  author: john;  state: Exp;
50658 Move VFX center to Shift+Z instead of Enter because
50659 it conflicted with toggling HUD on/off.
50660 ----------------------------
50661 revision 2.4
50662 date: 1995/03/10 13:47:24;  author: john;  state: Exp;
50663 Added head tracking sensitivity.
50664 ----------------------------
50665 revision 2.3
50666 date: 1995/03/09 18:07:06;  author: john;  state: Exp;
50667 Fixed bug with iglasses tracking not "centering" right.
50668 Made VFX have bright headlight lighting.
50669 ----------------------------
50670 revision 2.2
50671 date: 1995/03/08 15:32:39;  author: john;  state: Exp;
50672 Made VictorMaxx head tracking use Greenleaf code.
50673 ----------------------------
50674 revision 2.1
50675 date: 1995/03/06 15:23:31;  author: john;  state: Exp;
50676 New screen techniques.
50677 ----------------------------
50678 revision 2.0
50679 date: 1995/02/27 11:29:26;  author: john;  state: Exp;
50680 New version 2.0, which has no anonymous unions, builds with
50681 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
50682 ----------------------------
50683 revision 1.105
50684 date: 1995/02/22 14:11:58;  author: allender;  state: Exp;
50685 remove anonymous unions from object structure
50686 ----------------------------
50687 revision 1.104
50688 date: 1995/02/13 12:01:56;  author: john;  state: Exp;
50689 Fixed bug with buggin not mmaking player faster.
50690 ----------------------------
50691 revision 1.103
50692 date: 1995/02/09 22:00:46;  author: john;  state: Exp;
50693 Added i-glasses tracking.
50694 ----------------------------
50695 revision 1.102
50696 date: 1995/01/24 21:25:47;  author: john;  state: Exp;
50697 Fixed bug with slide/bank on not working with
50698 Cyberman heading.,
50699 ----------------------------
50700 revision 1.101
50701 date: 1995/01/24 16:09:56;  author: john;  state: Exp;
50702 Fixed bug with Wingman extreme customize text overwriting title.
50703 ----------------------------
50704 revision 1.100
50705 date: 1995/01/24 12:37:46;  author: john;  state: Exp;
50706 Made Esc exit key define menu.
50707 ----------------------------
50708 revision 1.99
50709 date: 1995/01/23 23:54:43;  author: matt;  state: Exp;
50710 Made keypad enter work
50711 ----------------------------
50712 revision 1.98
50713 date: 1995/01/23 16:42:00;  author: john;  state: Exp;
50714 Made the external controls always turn banking off, leveling off
50715 and passed automap state thru to the tsr.
50716 ----------------------------
50717 revision 1.97
50718 date: 1995/01/12 11:41:33;  author: john;  state: Exp;
50719 Added external control reading.
50720 ----------------------------
50721 revision 1.96
50722 date: 1995/01/05 10:43:58;  author: mike;  state: Exp;
50723 Handle case when timer_get_fixed_seconds() goes negative.  Happens at 9.1
50724 hours.  Previously, joystick would stop functioning.  Now will work.
50725 ----------------------------
50726 revision 1.95
50727 date: 1994/12/29 11:17:38;  author: john;  state: Exp;
50728 Took out some warnings and mprintf.
50729 ----------------------------
50730 revision 1.94
50731 date: 1994/12/29 11:07:41;  author: john;  state: Exp;
50732 Fixed Thrustmaster and Logitech Wingman extreme
50733 Hat by reading the y2 axis during the center stage
50734 of the calibration, and using 75, 50, 27, and 3 %
50735 as values for the 4 positions.
50736 ----------------------------
50737 revision 1.93
50738 date: 1994/12/27 12:16:20;  author: john;  state: Exp;
50739 Fixed bug with slide on not working with joystick or mouse buttons.
50740 ----------------------------
50741 revision 1.92
50742 date: 1994/12/20 10:34:15;  author: john;  state: Exp;
50743 Made sensitivity work for mouse & joystick and made
50744 it only affect, pitch, heading, and roll.
50745 ----------------------------
50746 revision 1.91
50747 date: 1994/12/16 00:11:23;  author: matt;  state: Exp;
50748 Made delete key act normally when debug out
50749 ----------------------------
50750 revision 1.90
50751 date: 1994/12/14 17:41:15;  author: john;  state: Exp;
50752 Added more buttons so that  Yoke would work.
50753 ----------------------------
50754 revision 1.89
50755 date: 1994/12/13 17:25:35;  author: allender;  state: Exp;
50756 Added Assert for bogus time for joystick reading.
50757 ----------------------------
50758 revision 1.88
50759 date: 1994/12/13 14:48:01;  author: john;  state: Exp;
50760 Took out some debugging mprintf's
50761 ----------------------------
50762 revision 1.87
50763 date: 1994/12/13 14:43:02;  author: john;  state: Exp;
50764 Took out the code in kconfig to build direction array.
50765 Called kc_set_controls after selecting a new control type.
50766 ----------------------------
50767 revision 1.86
50768 date: 1994/12/13 01:11:32;  author: john;  state: Exp;
50769 Fixed bug with message clearing overwriting 
50770 right border.
50771 ----------------------------
50772 revision 1.85
50773 date: 1994/12/12 00:35:58;  author: john;  state: Exp;
50774 Added or thing for keys.
50775 ----------------------------
50776 revision 1.84
50777 date: 1994/12/09 17:08:06;  author: john;  state: Exp;
50778 Made mouse a bit less sensitive.
50779 ----------------------------
50780 revision 1.83
50781 date: 1994/12/09 16:04:00;  author: john;  state: Exp;
50782 Increased mouse sensitivity.
50783 ----------------------------
50784 revision 1.82
50785 date: 1994/12/09 00:41:26;  author: mike;  state: Exp;
50786 fix hang in automap print screen
50787 ----------------------------
50788 revision 1.81
50789 date: 1994/12/08 11:50:37;  author: john;  state: Exp;
50790 Made strcpy only copy corect number of chars,.
50791 ----------------------------
50792 revision 1.80
50793 date: 1994/12/07 16:16:06;  author: john;  state: Exp;
50794 Added command to check to see if a joystick axes has been used.
50795 ----------------------------
50796 revision 1.79
50797 date: 1994/12/07 14:52:28;  author: yuan;  state: Exp;
50798 Localization 492
50799 ----------------------------
50800 revision 1.78
50801 date: 1994/12/07 13:37:40;  author: john;  state: Exp;
50802 Made the joystick thrust work in reverse.
50803 ----------------------------
50804 revision 1.77
50805 date: 1994/12/07 11:28:24;  author: matt;  state: Exp;
50806 Did a little localization support
50807 ----------------------------
50808 revision 1.76
50809 date: 1994/12/04 12:30:03;  author: john;  state: Exp;
50810 Made the Thrustmaster stick read every frame, not every 10 frames,
50811 because it uses analog axis as buttons.
50812 ----------------------------
50813 revision 1.75
50814 date: 1994/12/03 22:35:25;  author: yuan;  state: Exp;
50815 Localization 412
50816 ----------------------------
50817 revision 1.74
50818 date: 1994/12/03 15:39:24;  author: john;  state: Exp;
50819 Made numeric keypad move in conifg.
50820 ----------------------------
50821 revision 1.73
50822 date: 1994/12/01 16:23:39;  author: john;  state: Exp;
50823 Fixed include mistake.
50824 ----------------------------
50825 revision 1.72
50826 date: 1994/12/01 16:07:57;  author: john;  state: Exp;
50827 Fixed bug that disabled joystick in automap because it used gametime, which is
50828 paused during automap. Fixed be used timer_Get_fixed_seconds instead of GameTime.
50829 ----------------------------
50830 revision 1.71
50831 date: 1994/12/01 12:30:49;  author: john;  state: Exp;
50832 Made Ctrl+D delete, not Ctrl+E
50833 ----------------------------
50834 revision 1.70
50835 date: 1994/12/01 11:52:52;  author: john;  state: Exp;
50836 Added default values for GamePad.
50837 ----------------------------
50838 revision 1.69
50839 date: 1994/11/30 00:59:12;  author: mike;  state: Exp;
50840 optimizations.
50841 ----------------------------
50842 revision 1.68
50843 date: 1994/11/29 03:45:50;  author: john;  state: Exp;
50844 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
50845 command line arg.
50846 ----------------------------
50847 revision 1.67
50848 date: 1994/11/27 23:13:44;  author: matt;  state: Exp;
50849 Made changes for new mprintf calling convention
50850 ----------------------------
50851 revision 1.66
50852 date: 1994/11/27 19:52:12;  author: matt;  state: Exp;
50853 Made screen shots work in a few more places
50854 ----------------------------
50855 revision 1.65
50856 date: 1994/11/22 16:54:50;  author: mike;  state: Exp;
50857 autorepeat on missiles.
50858 ----------------------------
50859 revision 1.64
50860 date: 1994/11/21 11:16:17;  author: rob;  state: Exp;
50861 Changed calls to GameLoop to calls to multi_menu_poll and changed
50862 conditions under which they are called.
50863 ----------------------------
50864 revision 1.63
50865 date: 1994/11/19 15:14:48;  author: mike;  state: Exp;
50866 remove unused code and data
50867 ----------------------------
50868 revision 1.62
50869 date: 1994/11/18 23:37:56;  author: john;  state: Exp;
50870 Changed some shorts to ints.
50871 ----------------------------
50872 revision 1.61
50873 date: 1994/11/17 13:36:35;  author: rob;  state: Exp;
50874 Added better network hook in kconfig menu.
50875 ----------------------------
50876 revision 1.60
50877 date: 1994/11/14 20:09:13;  author: john;  state: Exp;
50878 Made Tab be default for automap.
50879 ----------------------------
50880 revision 1.59
50881 date: 1994/11/13 16:34:07;  author: matt;  state: Exp;
50882 Fixed victormaxx angle conversions
50883 ----------------------------
50884 revision 1.58
50885 date: 1994/11/12 14:47:05;  author: john;  state: Exp;
50886 Added support for victor head tracking.
50887 ----------------------------
50888 revision 1.57
50889 date: 1994/11/08 15:14:55;  author: john;  state: Exp;
50890 Added more calls so net doesn't die in net game.
50891 ----------------------------
50892 revision 1.56
50893 date: 1994/11/07 14:01:07;  author: john;  state: Exp;
50894 Changed the gamma correction sequencing.
50895 ----------------------------
50896 revision 1.55
50897 date: 1994/11/01 16:40:08;  author: john;  state: Exp;
50898 Added Gamma correction.
50899 ----------------------------
50900 revision 1.54
50901 date: 1994/10/25 23:09:26;  author: john;  state: Exp;
50902 Made the automap key configurable.
50903 ----------------------------
50904 revision 1.53
50905 date: 1994/10/25 13:11:59;  author: john;  state: Exp;
50906 Made keys the way Adam speced 'em for final game.
50907 ----------------------------
50908 revision 1.52
50909 date: 1994/10/24 17:44:22;  author: john;  state: Exp;
50910 Added stereo channel reversing.
50911 ----------------------------
50912 revision 1.51
50913 date: 1994/10/22 13:23:18;  author: john;  state: Exp;
50914 Made default rear view key be R.
50915 ----------------------------
50916 revision 1.50
50917 date: 1994/10/22 13:20:09;  author: john;  state: Exp;
50918 Took out toggle primary/secondary weapons.  Fixed black
50919 background for 'axes' and 'buttons' text.
50920 ----------------------------
50921 revision 1.49
50922 date: 1994/10/21 15:20:15;  author: john;  state: Exp;
50923 Made PrtScr do screen dump, not F2.
50924 ----------------------------
50925 revision 1.48
50926 date: 1994/10/21 13:41:36;  author: john;  state: Exp;
50927 Allowed F2 to screen dump.
50928 ----------------------------
50929 revision 1.47
50930 date: 1994/10/17 13:07:05;  author: john;  state: Exp;
50931 Moved the descent.cfg info into the player config file.
50932 ----------------------------
50933 revision 1.46
50934 date: 1994/10/14 15:30:22;  author: john;  state: Exp;
50935 Added Cyberman default positions.
50936 ----------------------------
50937 revision 1.45
50938 date: 1994/10/14 15:24:54;  author: john;  state: Exp;
50939 Made Cyberman work with config.
50940 ----------------------------
50941 revision 1.44
50942 date: 1994/10/14 12:46:04;  author: john;  state: Exp;
50943 Added the ability to reset all to default.
50944 ----------------------------
50945 revision 1.43
50946 date: 1994/10/14 12:18:31;  author: john;  state: Exp;
50947 Made mouse invert axis always be 0 or 1.
50948 ----------------------------
50949 revision 1.42
50950 date: 1994/10/14 12:16:03;  author: john;  state: Exp;
50951 Changed code so that by doing DEL+F12 saves the current kconfig
50952 values as default. Added support for drop_bomb key.  Took out
50953 unused slots for keyboard.  Made keyboard use control_type of 0
50954 save slots.
50955 ----------------------------
50956 revision 1.41
50957 date: 1994/10/13 21:27:02;  author: john;  state: Exp;
50958 Made axis invert value always be 0 or 1.----------------------------
50959 revision 1.40
50960 date: 1994/10/13 20:18:15;  author: john;  state: Exp;
50961 Added some more system keys, such as F? and CAPSLOCK.
50962 ----------------------------
50963 revision 1.39
50964 date: 1994/10/13 19:22:29;  author: john;  state: Exp;
50965 Added separate config saves for different devices.
50966 Made all the devices work together better, such as mice won't
50967 get read when you're playing with the joystick.
50968 ----------------------------
50969 revision 1.38
50970 date: 1994/10/13 15:41:57;  author: mike;  state: Exp;
50971 Remove afterburner.
50972 =============================================================================
50973 RCS file: f:/miner/source/main/kconfig.h,v
50974 Working file: main/kconfig.h
50975 head: 2.0
50976 branch:
50977 description: Prototypes for reading controls
50978 ----------------------------
50979 revision 2.0
50980 date: 1995/02/27 11:29:38;  author: john;  state: Exp;
50981 New version 2.0, which has no anonymous unions, builds with
50982 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
50983 ----------------------------
50984 revision 1.23
50985 date: 1995/01/12 11:41:44;  author: john;  state: Exp;
50986 Added external control reading.
50987 ----------------------------
50988 revision 1.22
50989 date: 1994/12/07 16:15:30;  author: john;  state: Exp;
50990 Added command to check to see if a joystick axes has been used.
50991 ----------------------------
50992 revision 1.21
50993 date: 1994/11/29 03:46:29;  author: john;  state: Exp;
50994 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
50995 command line arg.
50996 ----------------------------
50997 revision 1.20
50998 date: 1994/11/22 16:54:45;  author: mike;  state: Exp;
50999 autorepeat on missiles.
51000 ----------------------------
51001 revision 1.19
51002 date: 1994/11/07 14:01:27;  author: john;  state: Exp;
51003 Changed the gamma correction sequencing.
51004 ----------------------------
51005 revision 1.18
51006 date: 1994/11/01 16:40:02;  author: john;  state: Exp;
51007 Added Gamma correction.
51008 ----------------------------
51009 revision 1.17
51010 date: 1994/10/25 23:09:24;  author: john;  state: Exp;
51011 Made the automap key configurable.
51012 ----------------------------
51013 revision 1.16
51014 date: 1994/10/24 19:56:51;  author: john;  state: Exp;
51015 Made the new user setup prompt for config options.
51016 ----------------------------
51017 revision 1.15
51018 date: 1994/10/24 17:44:18;  author: john;  state: Exp;
51019 Added stereo channel reversing.
51020 ----------------------------
51021 revision 1.14
51022 date: 1994/10/22 13:19:33;  author: john;  state: Exp;
51023 Took out toggle primary/secondary weapons.  Fixed black
51024 background for 'axes' and 'buttons' text.
51025 ----------------------------
51026 revision 1.13
51027 date: 1994/10/17 13:06:51;  author: john;  state: Exp;
51028 Moved the descent.cfg info into the player config file.
51029 ----------------------------
51030 revision 1.12
51031 date: 1994/10/14 12:14:47;  author: john;  state: Exp;
51032 Changed code so that by doing DEL+F12 saves the current kconfig
51033 values as default. Added support for drop_bomb key.  Took out
51034 unused slots for keyboard.  Made keyboard use control_type of 0
51035 save slots.
51036 ----------------------------
51037 revision 1.11
51038 date: 1994/10/13 19:21:33;  author: john;  state: Exp;
51039 Added separate config saves for different devices.
51040 Made all the devices work together better, such as mice won't
51041 get read when you're playing with the joystick.
51042 ----------------------------
51043 revision 1.10
51044 date: 1994/10/13 15:18:41;  author: john;  state: Exp;
51045 Started ripping out old afterburner, show message, show automap
51046 keys in the keyboard config stuff.
51047 ----------------------------
51048 revision 1.9
51049 date: 1994/10/13 11:35:27;  author: john;  state: Exp;
51050 Made Thrustmaster FCS Hat work.  Put a background behind the
51051 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
51052 menu to new menu. Made F6 be calibrate joystick.
51053 ----------------------------
51054 revision 1.8
51055 date: 1994/10/06 14:10:50;  author: matt;  state: Exp;
51056 New function reset_cruise()
51057 ----------------------------
51058 revision 1.7
51059 date: 1994/10/03 14:58:25;  author: john;  state: Exp;
51060 Added rear_view_down_state so that the rear view can
51061 work like the automap.
51062 ----------------------------
51063 revision 1.6
51064 date: 1994/09/30 12:37:25;  author: john;  state: Exp;
51065 Added midi,digi volume to configuration.
51066 ----------------------------
51067 revision 1.5
51068 date: 1994/09/19 18:49:59;  author: john;  state: Exp;
51069 Added switch to disable joystick.
51070 ----------------------------
51071 revision 1.4
51072 date: 1994/09/15 16:11:21;  author: john;  state: Exp;
51073 Added support for VFX1 head tracking. Fixed bug with memory over-
51074 write when using stereo mode.
51075 ----------------------------
51076 revision 1.3
51077 date: 1994/09/12 11:47:38;  author: john;  state: Exp;
51078 Made stupid cruise work better.  Make kconfig values get
51079 read/written to disk.
51080 ----------------------------
51081 revision 1.2
51082 date: 1994/09/10 15:46:55;  author: john;  state: Exp;
51083 First version of new keyboard configuration.
51084 ----------------------------
51085 revision 1.1
51086 date: 1994/09/10 13:51:40;  author: john;  state: Exp;
51087 Initial revision
51088 =============================================================================
51089 RCS file: f:/miner/source/main/editor/kcurve.c,v
51090 Working file: main/editor/kcurve.c
51091 head: 2.0
51092 branch:
51093 description: Functions for curve stuff.
51094 ----------------------------
51095 revision 2.0
51096 date: 1995/02/27 11:35:29;  author: john;  state: Exp;
51097 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51098 for bitmaps.tbl.
51099 ----------------------------
51100 revision 1.17
51101 date: 1994/08/25 21:56:43;  author: mike;  state: Exp;
51102 IS_CHILD stuff.
51103 ----------------------------
51104 revision 1.16
51105 date: 1994/05/14 17:17:54;  author: matt;  state: Exp;
51106 Got rid of externs in source (non-header) files
51107 ----------------------------
51108 revision 1.15
51109 date: 1994/01/28 10:52:24;  author: mike;  state: Exp;
51110 Bind set_average_light_on_curside to DeleteCurve
51111 ----------------------------
51112 revision 1.14
51113 date: 1994/01/25 17:34:47;  author: mike;  state: Exp;
51114 Stupidly bound fix_bogus_uvs_all to delete curve.
51115 ----------------------------
51116 revision 1.13
51117 date: 1993/12/06 19:34:15;  author: yuan;  state: Exp;
51118 Fixed autosave so that undo restores Cursegp
51119 and Markedsegp
51120 ----------------------------
51121 revision 1.12
51122 date: 1993/12/02 12:39:28;  author: matt;  state: Exp;
51123 Removed extra includes
51124 ----------------------------
51125 revision 1.11
51126 date: 1993/11/12 13:08:38;  author: yuan;  state: Exp;
51127 Fixed warning for concave segment so it appears after any
51128 "less important" diagnostic messages.
51129 ----------------------------
51130 revision 1.10
51131 date: 1993/11/11 17:03:25;  author: yuan;  state: Exp;
51132 Fixed undo-status display
51133 ----------------------------
51134 revision 1.9
51135 date: 1993/11/11 15:55:11;  author: yuan;  state: Exp;
51136 Added undo messages.
51137 ----------------------------
51138 revision 1.8
51139 date: 1993/11/08 19:13:30;  author: yuan;  state: Exp;
51140 Added Undo command (not working yet)
51141 ----------------------------
51142 revision 1.7
51143 date: 1993/11/05 17:32:51;  author: john;  state: Exp;
51144 added funcs
51145 .,
51146 ----------------------------
51147 revision 1.6
51148 date: 1993/10/29 19:12:41;  author: yuan;  state: Exp;
51149 Added diagnostic messages
51150 ----------------------------
51151 revision 1.5
51152 date: 1993/10/29 16:26:30;  author: yuan;  state: Exp;
51153 Added diagnostic messages for curve generation
51154 ----------------------------
51155 revision 1.4
51156 date: 1993/10/22 19:47:30;  author: yuan;  state: Exp;
51157 Can't build curve if Marked Seg has a segment attached.
51158 ----------------------------
51159 revision 1.3
51160 date: 1993/10/19 20:54:50;  author: matt;  state: Exp;
51161 Changed/cleaned up window updates
51162 ----------------------------
51163 revision 1.2
51164 date: 1993/10/14 13:52:17;  author: mike;  state: Exp;
51165 Add return value to AssignTexture
51166 ----------------------------
51167 revision 1.1
51168 date: 1993/10/13 18:53:11;  author: john;  state: Exp;
51169 Initial revision
51170 =============================================================================
51171 RCS file: f:/miner/source/main/editor/kdefs.h,v
51172 Working file: main/editor/kdefs.h
51173 head: 2.1
51174 branch:
51175 description: Prototypes for functions called from keypresses or buttons.
51176 ----------------------------
51177 revision 2.1
51178 date: 1995/03/08 16:07:10;  author: yuan;  state: Exp;
51179 Added segment sizing default functions.
51180 ----------------------------
51181 revision 2.0
51182 date: 1995/02/27 11:34:34;  author: john;  state: Exp;
51183 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51184 for bitmaps.tbl.
51185 ----------------------------
51186 revision 1.97
51187 date: 1995/01/12 12:10:22;  author: yuan;  state: Exp;
51188 Added coop object capability.
51189 ----------------------------
51190 revision 1.96
51191 date: 1994/10/27 10:06:33;  author: mike;  state: Exp;
51192 kill macro stuff.
51193 ----------------------------
51194 revision 1.95
51195 date: 1994/09/26 23:22:59;  author: matt;  state: Exp;
51196 Added functions to keep player's starting position from getting messed up
51197 ----------------------------
51198 revision 1.94
51199 date: 1994/09/24 14:15:24;  author: mike;  state: Exp;
51200 Custom colored object support.
51201 ----------------------------
51202 revision 1.93
51203 date: 1994/09/23 18:03:52;  author: yuan;  state: Exp;
51204 Finished wall checking code.
51205 ----------------------------
51206 revision 1.92
51207 date: 1994/09/14 16:50:49;  author: yuan;  state: Exp;
51208 Added load mine only function
51209 ----------------------------
51210 revision 1.91
51211 date: 1994/08/16 18:11:03;  author: yuan;  state: Exp;
51212 Maded C place you in the center of a segment.
51213 ----------------------------
51214 revision 1.90
51215 date: 1994/08/15 17:47:55;  author: yuan;  state: Exp;
51216 Added external walls.
51217 ----------------------------
51218 revision 1.89
51219 date: 1994/08/03 10:32:10;  author: mike;  state: Exp;
51220 Texture map propagation without uv assignment.
51221 ----------------------------
51222 revision 1.88
51223 date: 1994/08/02 14:18:01;  author: mike;  state: Exp;
51224 Add Object dialog.
51225 ----------------------------
51226 revision 1.87
51227 date: 1994/07/22 17:19:15;  author: yuan;  state: Exp;
51228 Working on dialog box for refuel/repair/material/control centers.
51229 ----------------------------
51230 revision 1.86
51231 date: 1994/07/21 17:26:49;  author: matt;  state: Exp;
51232 When new mine created, the default save filename is now reset
51233 ----------------------------
51234 revision 1.85
51235 date: 1994/07/21 12:47:26;  author: mike;  state: Exp;
51236 *** empty log message ***
51237 ----------------------------
51238 revision 1.84
51239 date: 1994/07/14 14:49:19;  author: yuan;  state: Exp;
51240 Added prototype
51241 ----------------------------
51242 revision 1.83
51243 date: 1994/07/14 14:43:09;  author: yuan;  state: Exp;
51244 Added new rotation functions
51245 ----------------------------
51246 revision 1.82
51247 date: 1994/07/01 17:57:04;  author: john;  state: Exp;
51248 First version of not-working hostage system
51249 ----------------------------
51250 revision 1.81
51251 date: 1994/06/21 12:57:27;  author: yuan;  state: Exp;
51252 Remove center from segment function added to menu.
51253 ----------------------------
51254 revision 1.80
51255 date: 1994/06/17 16:05:20;  author: mike;  state: Exp;
51256 Prototype set_average_light_on_all_quick.
51257 ----------------------------
51258 revision 1.79
51259 date: 1994/05/31 16:43:24;  author: john;  state: Exp;
51260 Added hooks to create materialization centers.
51261 ----------------------------
51262 revision 1.78
51263 date: 1994/05/27 10:34:40;  author: yuan;  state: Exp;
51264 Added new Dialog boxes for Walls and Triggers.
51265 ----------------------------
51266 revision 1.77
51267 date: 1994/05/25 18:08:44;  author: yuan;  state: Exp;
51268 Revamping walls and triggers interface.
51269 Wall interface complete, but triggers are still in progress.
51270 ----------------------------
51271 revision 1.76
51272 date: 1994/05/09 23:34:04;  author: mike;  state: Exp;
51273 SubtractFromGroup, CreateSloppyAdjacentJointsGroup, ClearFoundList
51274 ----------------------------
51275 revision 1.75
51276 date: 1994/05/03 18:31:17;  author: mike;  state: Exp;
51277 Add PerturbCurside.
51278 ----------------------------
51279 revision 1.74
51280 date: 1994/05/03 11:04:39;  author: mike;  state: Exp;
51281 Add prototypes for new segment sizing functions.
51282 ----------------------------
51283 revision 1.73
51284 date: 1994/04/29 10:32:04;  author: yuan;  state: Exp;
51285 Added door 8... Door typing system should be replaced soon.
51286 =============================================================================
51287 RCS file: f:/miner/source/main/editor/kfuncs.c,v
51288 Working file: main/editor/kfuncs.c
51289 head: 2.1
51290 branch:
51291 description: .
51292 ----------------------------
51293 revision 2.1
51294 date: 1995/03/08 16:07:23;  author: yuan;  state: Exp;
51295 Added segment sizing default functions.
51296 ----------------------------
51297 revision 2.0
51298 date: 1995/02/27 11:34:45;  author: john;  state: Exp;
51299 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51300 for bitmaps.tbl.
51301 ----------------------------
51302 revision 1.112
51303 date: 1995/01/12 12:10:31;  author: yuan;  state: Exp;
51304 Added coop object capability.
51305 ----------------------------
51306 revision 1.111
51307 date: 1994/11/27 23:17:16;  author: matt;  state: Exp;
51308 Made changes for new mprintf calling convention
51309 ----------------------------
51310 revision 1.110
51311 date: 1994/11/23 12:17:22;  author: mike;  state: Exp;
51312 bind retmap functions.
51313 ----------------------------
51314 revision 1.109
51315 date: 1994/11/19 15:20:54;  author: mike;  state: Exp;
51316 rip out unused code and data.
51317 ----------------------------
51318 revision 1.108
51319 date: 1994/11/17 11:39:02;  author: matt;  state: Exp;
51320 Ripped out code to load old mines
51321 ----------------------------
51322 revision 1.107
51323 date: 1994/10/27 10:06:12;  author: mike;  state: Exp;
51324 kill macro stuff.
51325 ----------------------------
51326 revision 1.106
51327 date: 1994/10/18 15:31:43;  author: mike;  state: Exp;
51328 Bind mine correction function to test keypad, key=1.
51329 ----------------------------
51330 revision 1.105
51331 date: 1994/09/26 23:22:06;  author: matt;  state: Exp;
51332 Added functions to keep player's starting position from getting messed up
51333 ----------------------------
51334 revision 1.104
51335 date: 1994/09/24 14:15:41;  author: mike;  state: Exp;
51336 Custom colored object support.
51337 ----------------------------
51338 revision 1.103
51339 date: 1994/09/23 18:03:54;  author: yuan;  state: Exp;
51340 Finished wall checking code.
51341 ----------------------------
51342 revision 1.102
51343 date: 1994/09/22 19:03:52;  author: mike;  state: Exp;
51344 Test function test_shortpos on ctrl-keypad3
51345 ----------------------------
51346 revision 1.101
51347 date: 1994/09/20 14:35:56;  author: mike;  state: Exp;
51348 Bind functions to keypad 2, 3.
51349 ----------------------------
51350 revision 1.100
51351 date: 1994/09/15 22:58:10;  author: matt;  state: Exp;
51352 Made new objects be oriented to their segment
51353 Added keypad function to flip an object upside-down
51354 ----------------------------
51355 revision 1.99
51356 date: 1994/09/14 16:50:50;  author: yuan;  state: Exp;
51357 Added load mine only function
51358 ----------------------------
51359 revision 1.98
51360 date: 1994/08/25 21:57:52;  author: mike;  state: Exp;
51361 IS_CHILD stuff.
51362 ----------------------------
51363 revision 1.97
51364 date: 1994/08/16 18:10:52;  author: yuan;  state: Exp;
51365 Maded C place you in the center of a segment.
51366 ----------------------------
51367 revision 1.96
51368 date: 1994/08/15 17:48:01;  author: yuan;  state: Exp;
51369 Added external walls.
51370 ----------------------------
51371 revision 1.95
51372 date: 1994/08/13 17:32:38;  author: mike;  state: Exp;
51373 test function.
51374 ----------------------------
51375 revision 1.94
51376 date: 1994/08/05 21:17:57;  author: matt;  state: Exp;
51377 Allow two doors to be linked together
51378 ----------------------------
51379 revision 1.93
51380 date: 1994/08/05 18:18:52;  author: matt;  state: Exp;
51381 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
51382 ----------------------------
51383 revision 1.92
51384 date: 1994/08/03 10:31:06;  author: mike;  state: Exp;
51385 Add texture map propagation without uv assignment.
51386 ----------------------------
51387 revision 1.91
51388 date: 1994/08/02 14:17:00;  author: mike;  state: Exp;
51389 Clean up dialog boxes, add one for Matt.
51390 ----------------------------
51391 revision 1.90
51392 date: 1994/07/30 17:04:47;  author: mike;  state: Exp;
51393 Bind key for max_depth on path testing.
51394 =============================================================================
51395 RCS file: f:/miner/source/main/editor/kfuncs.h,v
51396 Working file: main/editor/kfuncs.h
51397 head: 2.0
51398 branch:
51399 description: Header for kfuncs.c
51400 ----------------------------
51401 revision 2.0
51402 date: 1995/02/27 11:34:33;  author: john;  state: Exp;
51403 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51404 for bitmaps.tbl.
51405 ----------------------------
51406 revision 1.2
51407 date: 1994/05/14 17:18:18;  author: matt;  state: Exp;
51408 Got rid of externs in source (non-header) files
51409 ----------------------------
51410 revision 1.1
51411 date: 1994/05/14 16:37:14;  author: matt;  state: Exp;
51412 Initial revision
51413 =============================================================================
51414 RCS file: f:/miner/source/main/editor/kgame.c,v
51415 Working file: main/editor/kgame.c
51416 head: 2.0
51417 branch:
51418 description: Game Loading editor functions
51419 ----------------------------
51420 revision 2.0
51421 date: 1995/02/27 11:34:55;  author: john;  state: Exp;
51422 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51423 for bitmaps.tbl.
51424 ----------------------------
51425 revision 1.25
51426 date: 1995/02/23 10:18:05;  author: allender;  state: Exp;
51427 fixed parameter mismatch with compute_segment_center
51428 ----------------------------
51429 revision 1.24
51430 date: 1994/11/17 11:38:59;  author: matt;  state: Exp;
51431 Ripped out code to load old mines
51432 ----------------------------
51433 revision 1.23
51434 date: 1994/11/09 11:58:56;  author: matt;  state: Exp;
51435 Fixed small bug
51436 ----------------------------
51437 revision 1.22
51438 date: 1994/10/20 12:48:02;  author: matt;  state: Exp;
51439 Replaced old save files (MIN/SAV/HOT) with new LVL files
51440 ----------------------------
51441 revision 1.21
51442 date: 1994/10/15 19:08:47;  author: mike;  state: Exp;
51443 Fix bug if player object out of mine at save.
51444 ----------------------------
51445 revision 1.20
51446 date: 1994/10/13 13:15:43;  author: matt;  state: Exp;
51447 Properly relink player object when bashed for "permanant" position save
51448 ----------------------------
51449 revision 1.19
51450 date: 1994/10/11 17:07:23;  author: matt;  state: Exp;
51451 Fixed problem that sometimes caused bad player segnum after compress
51452 ----------------------------
51453 revision 1.18
51454 date: 1994/10/08 17:10:40;  author: matt;  state: Exp;
51455 Correctly set current_level_num when loading/creating mine in editor
51456 ----------------------------
51457 revision 1.17
51458 date: 1994/09/26 23:46:13;  author: matt;  state: Exp;
51459 Improved player position save code
51460 ----------------------------
51461 revision 1.16
51462 date: 1994/09/26 23:22:50;  author: matt;  state: Exp;
51463 Added functions to keep player's starting position from getting messed up
51464 ----------------------------
51465 revision 1.15
51466 date: 1994/09/14 16:50:51;  author: yuan;  state: Exp;
51467 Added load mine only function
51468 ----------------------------
51469 revision 1.14
51470 date: 1994/07/22 12:36:50;  author: matt;  state: Exp;
51471 Cleaned up editor/game interactions some more.
51472 ----------------------------
51473 revision 1.13
51474 date: 1994/07/21 17:26:26;  author: matt;  state: Exp;
51475 When new mine created, the default save filename is now reset
51476 ----------------------------
51477 revision 1.12
51478 date: 1994/06/03 12:27:05;  author: yuan;  state: Exp;
51479 Fixed restore game state.
51480 ----------------------------
51481 revision 1.11
51482 date: 1994/05/30 11:36:09;  author: yuan;  state: Exp;
51483 Do gamesave if new mine is loaded and game is entered...
51484 ----------------------------
51485 revision 1.10
51486 date: 1994/05/14 18:00:33;  author: matt;  state: Exp;
51487 Got rid of externs in source (non-header) files
51488 ----------------------------
51489 revision 1.9
51490 date: 1994/05/10 12:15:44;  author: yuan;  state: Exp;
51491 Fixed load_game functions to match prototype.
51492 ----------------------------
51493 revision 1.8
51494 date: 1994/05/06 12:52:15;  author: yuan;  state: Exp;
51495 Adding some gamesave checks...
51496 ----------------------------
51497 revision 1.7
51498 date: 1994/05/04 17:32:05;  author: yuan;  state: Exp;
51499 med_load_game changed to load_game
51500 med_save_game changed to save_game
51501 =============================================================================
51502 RCS file: f:/miner/source/main/editor/khelp.c,v
51503 Working file: main/editor/khelp.c
51504 head: 2.0
51505 branch:
51506 description: Functions for showing help.
51507 ----------------------------
51508 revision 2.0
51509 date: 1995/02/27 11:34:27;  author: john;  state: Exp;
51510 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51511 for bitmaps.tbl.
51512 ----------------------------
51513 revision 1.5
51514 date: 1993/12/02 12:39:30;  author: matt;  state: Exp;
51515 Removed extra includes
51516 ----------------------------
51517 revision 1.4
51518 date: 1993/11/05 17:32:57;  author: john;  state: Exp;
51519 added funcs
51520 .,
51521 ----------------------------
51522 revision 1.3
51523 date: 1993/11/03 13:42:41;  author: yuan;  state: Exp;
51524 Updated help commands
51525 ----------------------------
51526 revision 1.2
51527 date: 1993/10/22 19:48:07;  author: yuan;  state: Exp;
51528 added ctrl-shift-keypad comment in help.
51529 ----------------------------
51530 revision 1.1
51531 date: 1993/10/13 18:53:16;  author: john;  state: Exp;
51532 Initial revision
51533 =============================================================================
51534 RCS file: f:/miner/source/main/kmatrix.c,v
51535 Working file: main/kmatrix.c
51536 head: 2.3
51537 branch:
51538 description: Kill matrix displayed at end of level.
51539 ----------------------------
51540 revision 2.3
51541 date: 1995/05/02 17:01:22;  author: john;  state: Exp;
51542 Fixed bug with kill list not showing up in VFX mode.
51543 ----------------------------
51544 revision 2.2
51545 date: 1995/03/21 14:38:20;  author: john;  state: Exp;
51546 Ifdef'd out the NETWORK code.
51547 ----------------------------
51548 revision 2.1
51549 date: 1995/03/06 15:22:54;  author: john;  state: Exp;
51550 New screen techniques.
51551 ----------------------------
51552 revision 2.0
51553 date: 1995/02/27 11:25:56;  author: john;  state: Exp;
51554 New version 2.0, which has no anonymous unions, builds with
51555 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
51556 ----------------------------
51557 revision 1.19
51558 date: 1995/02/15 14:47:23;  author: john;  state: Exp;
51559 Added code to keep track of kills during endlevel.
51560 ----------------------------
51561 revision 1.18
51562 date: 1995/02/08 11:00:06;  author: rob;  state: Exp;
51563 Moved string to localized file
51564 ----------------------------
51565 revision 1.17
51566 date: 1995/02/01 23:45:55;  author: rob;  state: Exp;
51567 Fixed string.
51568 ----------------------------
51569 revision 1.16
51570 date: 1995/01/30 21:47:11;  author: rob;  state: Exp;
51571 Added a line of instructions.
51572 ----------------------------
51573 revision 1.15
51574 date: 1995/01/20 16:58:43;  author: rob;  state: Exp;
51575 careless careless careless... 
51576 ----------------------------
51577 revision 1.14
51578 date: 1995/01/20 13:43:48;  author: rob;  state: Exp;
51579 Longer time to view.
51580 ----------------------------
51581 revision 1.13
51582 date: 1995/01/20 13:42:34;  author: rob;  state: Exp;
51583 Fixed sorting bug.
51584 ----------------------------
51585 revision 1.12
51586 date: 1995/01/19 17:35:21;  author: rob;  state: Exp;
51587 Fixed coloration of player names in team mode.
51588 ----------------------------
51589 revision 1.11
51590 date: 1995/01/16 21:26:15;  author: rob;  state: Exp;
51591 Fixed it!!
51592 ----------------------------
51593 revision 1.10
51594 date: 1995/01/16 18:55:41;  author: rob;  state: Exp;
51595 Added include of network.h
51596 ----------------------------
51597 revision 1.9
51598 date: 1995/01/16 18:22:35;  author: rob;  state: Exp;
51599 Fixed problem with signs.
51600 ----------------------------
51601 revision 1.8
51602 date: 1995/01/12 16:07:51;  author: rob;  state: Exp;
51603 ADded sorting before display.
51604 ----------------------------
51605 revision 1.7
51606 date: 1995/01/04 08:46:53;  author: rob;  state: Exp;
51607 JOHN CHECKED IN FOR ROB !!!
51608 ----------------------------
51609 revision 1.6
51610 date: 1994/12/09 20:17:20;  author: yuan;  state: Exp;
51611 Touched up
51612 ----------------------------
51613 revision 1.5
51614 date: 1994/12/09 19:46:35;  author: yuan;  state: Exp;
51615 Localized the sucker.
51616 ----------------------------
51617 revision 1.4
51618 date: 1994/12/09 19:24:58;  author: rob;  state: Exp;
51619 Yuan's fix to the centering.
51620 ----------------------------
51621 revision 1.3
51622 date: 1994/12/09 19:02:37;  author: yuan;  state: Exp;
51623 Cleaned up a bit.
51624 ----------------------------
51625 revision 1.2
51626 date: 1994/12/09 16:19:46;  author: yuan;  state: Exp;
51627 kill matrix stuff.
51628 ----------------------------
51629 revision 1.1
51630 date: 1994/12/09 15:08:58;  author: yuan;  state: Exp;
51631 Initial revision
51632 =============================================================================
51633 RCS file: f:/miner/source/main/kmatrix.h,v
51634 Working file: main/kmatrix.h
51635 head: 2.0
51636 branch:
51637 description: Kill matrix.
51638 ----------------------------
51639 revision 2.0
51640 date: 1995/02/27 11:28:51;  author: john;  state: Exp;
51641 New version 2.0, which has no anonymous unions, builds with
51642 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
51643 ----------------------------
51644 revision 1.3
51645 date: 1995/02/15 14:47:39;  author: john;  state: Exp;
51646 Added code to keep track of kills during endlevel.
51647 ----------------------------
51648 revision 1.2
51649 date: 1994/12/09 16:19:46;  author: yuan;  state: Exp;
51650 kill matrix stuff.
51651 ----------------------------
51652 revision 1.1
51653 date: 1994/12/09 15:58:33;  author: yuan;  state: Exp;
51654 Initial revision
51655 =============================================================================
51656 RCS file: f:/miner/source/main/editor/kmine.c,v
51657 Working file: main/editor/kmine.c
51658 head: 2.0
51659 branch:
51660 description: Functions to change entire mines.
51661 ----------------------------
51662 revision 2.0
51663 date: 1995/02/27 11:34:22;  author: john;  state: Exp;
51664 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51665 for bitmaps.tbl.
51666 ----------------------------
51667 revision 1.53
51668 date: 1995/02/22 15:04:52;  author: allender;  state: Exp;
51669 remove anonymous unions from vecmat stuff
51670 ----------------------------
51671 revision 1.52
51672 date: 1994/11/27 23:17:13;  author: matt;  state: Exp;
51673 Made changes for new mprintf calling convention
51674 ----------------------------
51675 revision 1.51
51676 date: 1994/11/17 14:48:05;  author: mike;  state: Exp;
51677 validation functions moved from editor to game.
51678 ----------------------------
51679 revision 1.50
51680 date: 1994/11/17 11:38:49;  author: matt;  state: Exp;
51681 Ripped out code to load old mines
51682 ----------------------------
51683 revision 1.49
51684 date: 1994/10/08 17:10:22;  author: matt;  state: Exp;
51685 Correctly set current_level_num when loading/creating mine in editor
51686 ----------------------------
51687 revision 1.48
51688 date: 1994/10/03 11:30:45;  author: matt;  state: Exp;
51689 Fixed problem with permanant player position when creating a new mine
51690 ----------------------------
51691 revision 1.47
51692 date: 1994/09/29 17:42:19;  author: matt;  state: Exp;
51693 Cleaned up game_mode a little
51694 ----------------------------
51695 revision 1.46
51696 date: 1994/08/18 10:48:21;  author: john;  state: Exp;
51697 Cleaned up game sequencing.
51698 ----------------------------
51699 revision 1.45
51700 date: 1994/08/09 16:05:36;  author: john;  state: Exp;
51701 Added the ability to place players.  Made old
51702 Player variable be ConsoleObject.
51703 ----------------------------
51704 revision 1.44
51705 date: 1994/07/22 12:37:06;  author: matt;  state: Exp;
51706 Cleaned up editor/game interactions some more.
51707 ----------------------------
51708 revision 1.43
51709 date: 1994/07/21 17:26:50;  author: matt;  state: Exp;
51710 When new mine created, the default save filename is now reset
51711 ----------------------------
51712 revision 1.42
51713 date: 1994/06/08 14:29:25;  author: matt;  state: Exp;
51714 Took out support for old mine versions
51715 ----------------------------
51716 revision 1.41
51717 date: 1994/06/03 12:28:04;  author: yuan;  state: Exp;
51718 Fixed game restore state.
51719 ----------------------------
51720 revision 1.40
51721 date: 1994/05/19 12:10:29;  author: matt;  state: Exp;
51722 Use new vecmat macros and globals
51723 ----------------------------
51724 revision 1.39
51725 date: 1994/05/14 17:17:56;  author: matt;  state: Exp;
51726 Got rid of externs in source (non-header) files
51727 ----------------------------
51728 revision 1.38
51729 date: 1994/05/12 14:47:47;  author: mike;  state: Exp;
51730 New previous mine structure and object structure.
51731 ----------------------------
51732 revision 1.37
51733 date: 1994/05/06 12:52:12;  author: yuan;  state: Exp;
51734 Adding some gamesave checks...
51735 ----------------------------
51736 revision 1.36
51737 date: 1994/05/05 20:37:02;  author: yuan;  state: Exp;
51738 Added gamesave checks when entering and leaving the game.
51739 Removed Load Game Save Game functions...
51740 Now there is only Load/Save Mine... (equivalent to old Load/Save Game)
51741 ----------------------------
51742 revision 1.35
51743 date: 1994/04/27 22:57:54;  author: matt;  state: Exp;
51744 Made sit mine load from path of sit file
51745 ----------------------------
51746 revision 1.34
51747 date: 1994/04/21 18:29:55;  author: matt;  state: Exp;
51748 Don't use same variable for mine filename & sit filename
51749 ----------------------------
51750 revision 1.33
51751 date: 1994/04/21 18:21:43;  author: matt;  state: Exp;
51752 Strip path from mine filename in sit file
51753 ----------------------------
51754 revision 1.32
51755 date: 1994/04/18 10:54:35;  author: mike;  state: Exp;
51756 Add situation save/load
51757 ----------------------------
51758 revision 1.31
51759 date: 1994/02/16 16:47:54;  author: yuan;  state: Exp;
51760 Removed temp.min.
51761 ----------------------------
51762 revision 1.30
51763 date: 1994/02/16 15:22:51;  author: yuan;  state: Exp;
51764 Checking in for editor make.
51765 ----------------------------
51766 revision 1.29
51767 date: 1994/02/09 15:04:23;  author: yuan;  state: Exp;
51768 brought back save ability
51769 ----------------------------
51770 revision 1.28
51771 date: 1994/02/08 12:42:45;  author: yuan;  state: Exp;
51772 fixed log.
51773 ----------------------------
51774 revision 1.27
51775 date: 1994/02/08 12:41:47;  author: yuan;  state: Exp;
51776 ----------------------------
51777 revision 1.26
51778 date: 1994/01/13 13:26:05;  author: yuan;  state: Exp;
51779 Added med_compress_mine when creating new mine or
51780 when loading mine
51781 ----------------------------
51782 revision 1.25
51783 date: 1994/01/11 12:03:23;  author: yuan;  state: Exp;
51784 Fixed so that when old mine implementation not in,
51785 message is displayed when you try to load an old mine
51786 ----------------------------
51787 revision 1.24
51788 date: 1994/01/11 11:47:57;  author: yuan;  state: Exp;
51789 *** empty log message ***
51790 ----------------------------
51791 revision 1.23
51792 date: 1994/01/05 09:59:56;  author: yuan;  state: Exp;
51793 Added load old mine funciton
51794 ----------------------------
51795 revision 1.22
51796 date: 1993/12/16 15:58:08;  author: john;  state: Exp;
51797 moved texture selection page to texpage.c
51798 ,
51799 ----------------------------
51800 revision 1.21
51801 date: 1993/12/10 14:48:55;  author: mike;  state: Exp;
51802 Kill orthogonal views.
51803 ----------------------------
51804 revision 1.20
51805 date: 1993/12/03 16:44:06;  author: yuan;  state: Exp;
51806 Changed some 0.0 return values to 0
51807 ----------------------------
51808 revision 1.19
51809 date: 1993/12/02 12:39:34;  author: matt;  state: Exp;
51810 Removed extra includes
51811 ----------------------------
51812 revision 1.18
51813 date: 1993/11/17 13:14:48;  author: yuan;  state: Exp;
51814 Moved Save Group to group.c
51815 ----------------------------
51816 revision 1.17
51817 date: 1993/11/16 17:25:48;  author: yuan;  state: Exp;
51818 Unworking group function added... 
51819 ----------------------------
51820 revision 1.16
51821 date: 1993/11/15 14:46:25;  author: john;  state: Exp;
51822 Changed Menu to MenuX
51823 ----------------------------
51824 revision 1.15
51825 date: 1993/11/08 19:13:45;  author: yuan;  state: Exp;
51826 Added Undo command (not working yet)
51827 =============================================================================
51828 RCS file: f:/miner/source/main/editor/ksegmove.c,v
51829 Working file: main/editor/ksegmove.c
51830 head: 2.0
51831 branch:
51832 description: Functions for moving segments.
51833 ----------------------------
51834 revision 2.0
51835 date: 1995/02/27 11:33:37;  author: john;  state: Exp;
51836 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51837 for bitmaps.tbl.
51838 ----------------------------
51839 revision 1.5
51840 date: 1993/12/02 12:39:36;  author: matt;  state: Exp;
51841 Removed extra includes
51842 ----------------------------
51843 revision 1.4
51844 date: 1993/11/12 16:40:23;  author: mike;  state: Exp;
51845 Use rotate_segment_new in place of med_rotate_segment_ang.
51846 ----------------------------
51847 revision 1.3
51848 date: 1993/11/05 17:32:54;  author: john;  state: Exp;
51849 added funcs
51850 .,
51851 ----------------------------
51852 revision 1.2
51853 date: 1993/10/26 11:28:41;  author: mike;  state: Exp;
51854 Write common routine SegOrientCommon so all movement can pass
51855 through the same routine to check for concavity, among other things.
51856 ----------------------------
51857 revision 1.1
51858 date: 1993/10/13 18:53:21;  author: john;  state: Exp;
51859 Initial revision
51860 =============================================================================
51861 RCS file: f:/miner/source/main/editor/ksegsel.c,v
51862 Working file: main/editor/ksegsel.c
51863 head: 2.0
51864 branch:
51865 description: Functions for selecting segments
51866 ----------------------------
51867 revision 2.0
51868 date: 1995/02/27 11:35:33;  author: john;  state: Exp;
51869 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51870 for bitmaps.tbl.
51871 ----------------------------
51872 revision 1.12
51873 date: 1994/08/25 21:57:02;  author: mike;  state: Exp;
51874 IS_CHILD stuff.
51875 ----------------------------
51876 revision 1.11
51877 date: 1994/05/23 14:48:35;  author: mike;  state: Exp;
51878 make current segment be add segment.
51879 ----------------------------
51880 revision 1.10
51881 date: 1993/12/06 19:33:43;  author: yuan;  state: Exp;
51882 Fixed autosave stuff so that undo restores Cursegp and
51883 Markedsegp
51884 ----------------------------
51885 revision 1.9
51886 date: 1993/12/02 12:39:37;  author: matt;  state: Exp;
51887 Removed extra includes
51888 ----------------------------
51889 revision 1.8
51890 date: 1993/11/12 13:08:17;  author: yuan;  state: Exp;
51891 Fixed warning for concave segment so it appears after any
51892 "less important" diagnostic messages.
51893 ----------------------------
51894 revision 1.7
51895 date: 1993/11/05 17:32:49;  author: john;  state: Exp;
51896 added funcs
51897 .,
51898 ----------------------------
51899 revision 1.6
51900 date: 1993/11/01 09:53:18;  author: mike;  state: Exp;
51901 Write functions get_next_segment and get_previous_segment.
51902 ----------------------------
51903 revision 1.5
51904 date: 1993/10/31 18:06:56;  author: mike;  state: Exp;
51905 Only set_view_target_from_segment if in that mode.
51906 ----------------------------
51907 revision 1.4
51908 date: 1993/10/28 15:01:09;  author: matt;  state: Exp;
51909 Mucked with update flags
51910 ----------------------------
51911 revision 1.3
51912 date: 1993/10/14 18:07:47;  author: mike;  state: Exp;
51913 Change use of CONNECTIVITY to MAX_SIDES_PER_SEGMENT
51914 ----------------------------
51915 revision 1.2
51916 date: 1993/10/14 11:47:34;  author: john;  state: Exp;
51917 *** empty log message ***
51918 ----------------------------
51919 revision 1.1
51920 date: 1993/10/13 18:53:39;  author: john;  state: Exp;
51921 Initial revision
51922 =============================================================================
51923 RCS file: f:/miner/source/main/editor/ksegsize.c,v
51924 Working file: main/editor/ksegsize.c
51925 head: 2.1
51926 branch:
51927 description: Functions for sizing segments
51928 ----------------------------
51929 revision 2.1
51930 date: 1995/03/08 16:07:21;  author: yuan;  state: Exp;
51931 Added segment sizing default functions.
51932 ----------------------------
51933 revision 2.0
51934 date: 1995/02/27 11:35:46;  author: john;  state: Exp;
51935 Version 2.0! No anonymous unions, Watcom 10.0, with no need
51936 for bitmaps.tbl.
51937 ----------------------------
51938 revision 1.15
51939 date: 1994/11/17 14:47:42;  author: mike;  state: Exp;
51940 validation functions moved from editor to game.
51941 ----------------------------
51942 revision 1.14
51943 date: 1994/08/25 21:57:45;  author: mike;  state: Exp;
51944 IS_CHILD stuff.
51945 ----------------------------
51946 revision 1.13
51947 date: 1994/07/18 10:44:43;  author: mike;  state: Exp;
51948 Fix uv propagation after segment sizing.
51949 ----------------------------
51950 revision 1.12
51951 date: 1994/05/04 19:16:34;  author: mike;  state: Exp;
51952 *** empty log message ***
51953 ----------------------------
51954 revision 1.11
51955 date: 1994/05/03 18:31:00;  author: mike;  state: Exp;
51956 Add PerturbCurside.
51957 ----------------------------
51958 revision 1.10
51959 date: 1994/05/03 11:05:14;  author: mike;  state: Exp;
51960 Overhaul segment sizing system to allow sizing of non-free vertices,
51961 and also sizing of vertices on a side, edge or a single vertex.
51962 ----------------------------
51963 revision 1.9
51964 date: 1993/12/12 17:16:00;  author: mike;  state: Exp;
51965 Kill some mprintf code.
51966 ----------------------------
51967 revision 1.8
51968 date: 1993/12/10 11:10:53;  author: mike;  state: Exp;
51969 Fix bugs in tmap propagation in segment sizing.
51970 ----------------------------
51971 revision 1.7
51972 date: 1993/12/06 13:25:30;  author: mike;  state: Exp;
51973 Fix bug in setting size of New_segment after segment scale.
51974 ----------------------------
51975 revision 1.6
51976 date: 1993/11/17 18:57:52;  author: mike;  state: Exp;
51977 Change scaling to be additive.
51978 ----------------------------
51979 revision 1.5
51980 date: 1993/11/12 16:52:57;  author: mike;  state: Exp;
51981 *** empty log message ***
51982 ----------------------------
51983 revision 1.4
51984 date: 1993/11/05 17:32:47;  author: john;  state: Exp;
51985 added funcs
51986 .,
51987 ----------------------------
51988 revision 1.3
51989 date: 1993/10/19 11:22:11;  author: matt;  state: Exp;
51990 Removed extra includes
51991 ----------------------------
51992 revision 1.2
51993 date: 1993/10/17 14:17:52;  author: mike;  state: Exp;
51994 Add big scale changes for segment.
51995 ----------------------------
51996 revision 1.1
51997 date: 1993/10/13 18:53:01;  author: john;  state: Exp;
51998 Initial revision
51999 =============================================================================
52000 RCS file: f:/miner/source/main/editor/ktmap.c,v
52001 Working file: main/editor/ktmap.c
52002 head: 2.0
52003 branch:
52004 description: Texture map key bindings.
52005 ----------------------------
52006 revision 2.0
52007 date: 1995/02/27 11:35:37;  author: john;  state: Exp;
52008 Version 2.0! No anonymous unions, Watcom 10.0, with no need
52009 for bitmaps.tbl.
52010 ----------------------------
52011 revision 1.26
52012 date: 1994/08/25 21:57:12;  author: mike;  state: Exp;
52013 IS_CHILD stuff.
52014 ----------------------------
52015 revision 1.25
52016 date: 1994/08/03 10:32:41;  author: mike;  state: Exp;
52017 Texture map stretching.
52018 ----------------------------
52019 revision 1.24
52020 date: 1994/05/14 17:17:35;  author: matt;  state: Exp;
52021 Got rid of externs in source (non-header) files
52022 ----------------------------
52023 revision 1.23
52024 date: 1994/04/28 10:48:38;  author: yuan;  state: Exp;
52025 Fixed undo message for Clear Texture.
52026 ----------------------------
52027 revision 1.22
52028 date: 1994/04/22 17:45:42;  author: john;  state: Exp;
52029 MAde top 2 bits of paste-ons pick the 
52030 orientation of the bitmap.
52031 ----------------------------
52032 revision 1.21
52033 date: 1994/04/01 14:36:08;  author: yuan;  state: Exp;
52034 Fixed propogate function so you can propogate and move.
52035 ----------------------------
52036 revision 1.20
52037 date: 1994/03/19 17:22:08;  author: yuan;  state: Exp;
52038 Wall system implemented until specific features need to be added...
52039 (Needs to be hammered on though.)
52040 ----------------------------
52041 revision 1.19
52042 date: 1994/02/14 12:06:12;  author: mike;  state: Exp;
52043 change segment data structure.
52044 ----------------------------
52045 revision 1.18
52046 date: 1994/01/25 17:58:47;  author: yuan;  state: Exp;
52047 Added ambient lighting, and also added fixing bogus segments
52048 functions to the editor... (they don't work fully... need to
52049 check out seguvs.c
52050 ----------------------------
52051 revision 1.17
52052 date: 1994/01/24 11:54:52;  author: yuan;  state: Exp;
52053 Checking everything in
52054 ----------------------------
52055 revision 1.16
52056 date: 1994/01/18 16:05:57;  author: yuan;  state: Exp;
52057 Added clear texture 2 function (shift 0)
52058 ----------------------------
52059 revision 1.15
52060 date: 1994/01/18 10:15:01;  author: yuan;  state: Exp;
52061 added texture stuff
52062 ----------------------------
52063 revision 1.14
52064 date: 1993/12/06 19:33:57;  author: yuan;  state: Exp;
52065 Fixed autosave stuff so that undo restores Cursegp and
52066 Markedsegp
52067 ----------------------------
52068 revision 1.13
52069 date: 1993/12/02 12:39:39;  author: matt;  state: Exp;
52070 Removed extra includes
52071 ----------------------------
52072 revision 1.12
52073 date: 1993/11/28 17:31:34;  author: mike;  state: Exp;
52074 Use new segment data structure.
52075 ----------------------------
52076 revision 1.11
52077 date: 1993/11/12 16:38:37;  author: mike;  state: Exp;
52078 Change call to med_propagate_tmaps_to_segments to include new uv_only_flag parameter.
52079 ----------------------------
52080 revision 1.10
52081 date: 1993/11/11 15:53:30;  author: yuan;  state: Exp;
52082 Fixed undo display message
52083 ----------------------------
52084 revision 1.9
52085 date: 1993/11/08 19:13:46;  author: yuan;  state: Exp;
52086 Added Undo command (not working yet)
52087 ----------------------------
52088 revision 1.8
52089 date: 1993/11/05 17:32:48;  author: john;  state: Exp;
52090 added funcs
52091 .,
52092 ----------------------------
52093 revision 1.7
52094 date: 1993/11/02 10:31:08;  author: mike;  state: Exp;
52095 Add PropagateTexturesSelected.
52096 ----------------------------
52097 revision 1.6
52098 date: 1993/10/29 11:43:15;  author: mike;  state: Exp;
52099 Write PropagateTextures
52100 ----------------------------
52101 revision 1.5
52102 date: 1993/10/25 13:26:39;  author: mike;  state: Exp;
52103 Force redraw whenever a texture map is assigned.
52104 ----------------------------
52105 revision 1.4
52106 date: 1993/10/15 17:42:53;  author: mike;  state: Exp;
52107 Make AssignTexture also assign texture maps to New_segment.
52108 ----------------------------
52109 revision 1.3
52110 date: 1993/10/15 13:10:24;  author: mike;  state: Exp;
52111 Adapt AssignTexture to new segment structure.
52112 ----------------------------
52113 revision 1.2
52114 date: 1993/10/14 18:09:17;  author: mike;  state: Exp;
52115 Debug code for AssignTexture and comment out code.
52116 ----------------------------
52117 revision 1.1
52118 date: 1993/10/14 14:01:49;  author: mike;  state: Exp;
52119 Initial revision
52120 =============================================================================
52121 RCS file: f:/miner/source/main/editor/kview.c,v
52122 Working file: main/editor/kview.c
52123 head: 2.0
52124 branch:
52125 description: Functions for changing viewer's position
52126 ----------------------------
52127 revision 2.0
52128 date: 1995/02/27 11:34:21;  author: john;  state: Exp;
52129 Version 2.0! No anonymous unions, Watcom 10.0, with no need
52130 for bitmaps.tbl.
52131 ----------------------------
52132 revision 1.11
52133 date: 1993/12/02 12:39:41;  author: matt;  state: Exp;
52134 Removed extra includes
52135 ----------------------------
52136 revision 1.10
52137 date: 1993/11/16 13:47:54;  author: john;  state: Exp;
52138 Xchanged move away/closer
52139 ----------------------------
52140 revision 1.9
52141 date: 1993/11/16 13:45:32;  author: john;  state: Exp;
52142 Exchanged zoom in/out.
52143 ----------------------------
52144 revision 1.8
52145 date: 1993/11/05 17:32:56;  author: john;  state: Exp;
52146 added funcs
52147 .,
52148 ----------------------------
52149 revision 1.7
52150 date: 1993/11/03 12:10:21;  author: yuan;  state: Exp;
52151 No keypress associated with chase mode
52152 ----------------------------
52153 revision 1.6
52154 date: 1993/11/02 17:06:55;  author: yuan;  state: Exp;
52155 Icon stuff added.
52156 ----------------------------
52157 revision 1.5
52158 date: 1993/11/01 12:48:59;  author: yuan;  state: Exp;
52159 Added Chase mode icon to status bar.
52160 ----------------------------
52161 revision 1.4
52162 date: 1993/10/29 19:12:55;  author: yuan;  state: Exp;
52163 Added diagnostic messages
52164 ----------------------------
52165 revision 1.3
52166 date: 1993/10/27 18:26:16;  author: matt;  state: Exp;
52167 Made zoom & related keys not do anything if no current view
52168 ----------------------------
52169 revision 1.2
52170 date: 1993/10/19 20:54:33;  author: matt;  state: Exp;
52171 Changed/cleaned up window updates
52172 ----------------------------
52173 revision 1.1
52174 date: 1993/10/13 18:53:34;  author: john;  state: Exp;
52175 Initial revision
52176 =============================================================================
52177 RCS file: f:/miner/source/main/editor/texpage.c,v
52178 Working file: main/editor/texpage.c
52179 head: 1.13
52180 branch:
52181 description: Routines for displaying texture pages
52182 ----------------------------
52183 revision 1.13
52184 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
52185 Made changes for new mprintf calling convention
52186 ----------------------------
52187 revision 1.12
52188 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
52189 fix bug in tmapnum == 0 always getting reassigned.
52190 ----------------------------
52191 revision 1.11
52192 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
52193 changing texture maps in all mines.
52194 ----------------------------
52195 revision 1.10
52196 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
52197 Changed some shorts to ints.
52198 ----------------------------
52199 revision 1.9
52200 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
52201 Fixed bug with writing to canvas before initing it.
52202 ----------------------------
52203 revision 1.8
52204 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
52205 Fixed grab bug, and cleaned up code
52206 ----------------------------
52207 revision 1.7
52208 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
52209 Fixed overplot problem with texture names
52210 ----------------------------
52211 revision 1.6
52212 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
52213 Fixed resetting to first texture on page annoyance.
52214 ----------------------------
52215 revision 1.5
52216 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
52217 Added objects to objpage. Added buttons for easier tmap scrolling.
52218 Objects are selected fully from objpage and add object menu or pad.
52219 ----------------------------
52220 revision 1.4
52221 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
52222 Fixed bm loader (might have some changes in walls and switches)
52223 ----------------------------
52224 revision 1.3
52225 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
52226 Moved texture and object selection to texpage and objpage
52227 ----------------------------
52228 revision 1.2
52229 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
52230 moved texture selection stuff to texpage.c
52231 ----------------------------
52232 revision 1.1
52233 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
52234 Initial revision
52235 =============================================================================
52236 RCS file: f:/miner/source/main/object.h,v
52237 Working file: main/object.h
52238 head: 1.122
52239 branch:
52240 description: object system definitions
52241 ----------------------------
52242 revision 1.122
52243 date: 1995/02/22 12:35:53;  author: allender;  state: Exp;
52244 remove anonymous unions
52245 ----------------------------
52246 revision 1.121
52247 date: 1995/02/06 20:43:25;  author: rob;  state: Exp;
52248 Extern'ed Dead_player_camera so it can be reset by multi.c
52249 ----------------------------
52250 revision 1.120
52251 date: 1995/02/01 16:34:07;  author: john;  state: Exp;
52252 Linted.
52253 ----------------------------
52254 revision 1.119
52255 date: 1995/01/29 13:46:42;  author: mike;  state: Exp;
52256 adapt to new create_small_fireball_on_object prototype.
52257 ----------------------------
52258 revision 1.118
52259 date: 1995/01/26 22:11:27;  author: mike;  state: Exp;
52260 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
52261 ----------------------------
52262 revision 1.117
52263 date: 1995/01/24 12:09:29;  author: mike;  state: Exp;
52264 Boost MAX_OBJECTS from 250 to 350.
52265 ----------------------------
52266 revision 1.116
52267 date: 1995/01/13 19:39:51;  author: rob;  state: Exp;
52268 Removed outdated remote_info structure.  (looking for cause of bugs
52269 ----------------------------
52270 revision 1.115
52271 date: 1995/01/12 12:09:38;  author: yuan;  state: Exp;
52272 Added coop object capability.
52273 ----------------------------
52274 revision 1.114
52275 date: 1994/12/15 13:04:20;  author: mike;  state: Exp;
52276 Replace Players[Player_num].time_total references with GameTime.
52277 ----------------------------
52278 revision 1.113
52279 date: 1994/12/12 17:18:09;  author: mike;  state: Exp;
52280 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
52281 ----------------------------
52282 revision 1.112
52283 date: 1994/12/09 14:58:42;  author: matt;  state: Exp;
52284 Added system to attach a fireball to another object for rendering purposes,
52285 so the fireball always renders on top of (after) the object.
52286 ----------------------------
52287 revision 1.111
52288 date: 1994/12/08 12:35:35;  author: matt;  state: Exp;
52289 Added new object allocation & deallocation functions so other code
52290 could stop messing around with internal object data structures.
52291 ----------------------------
52292 revision 1.110
52293 date: 1994/11/21 17:30:21;  author: matt;  state: Exp;
52294 Increased max number of objects
52295 ----------------------------
52296 revision 1.109
52297 date: 1994/11/18 23:41:52;  author: john;  state: Exp;
52298 Changed some shorts to ints.
52299 ----------------------------
52300 revision 1.108
52301 date: 1994/11/10 14:02:45;  author: matt;  state: Exp;
52302 Hacked in support for player ships with different textures
52303 ----------------------------
52304 revision 1.107
52305 date: 1994/11/08 12:19:27;  author: mike;  state: Exp;
52306 Small explosions on objects.
52307 ----------------------------
52308 revision 1.106
52309 date: 1994/10/25 10:51:17;  author: matt;  state: Exp;
52310 Vulcan cannon powerups now contain ammo count
52311 ----------------------------
52312 revision 1.105
52313 date: 1994/10/21 12:19:41;  author: matt;  state: Exp;
52314 Clear transient objects when saving (& loading) games
52315 ----------------------------
52316 revision 1.104
52317 date: 1994/10/21 11:25:04;  author: mike;  state: Exp;
52318 Add IMMORTAL_TIME.
52319 ----------------------------
52320 revision 1.103
52321 date: 1994/10/17 21:34:54;  author: matt;  state: Exp;
52322 Added support for new Control Center/Main Reactor
52323 ----------------------------
52324 revision 1.102
52325 date: 1994/10/14 18:12:28;  author: mike;  state: Exp;
52326 Make egg dropping return object number.
52327 ----------------------------
52328 revision 1.101
52329 date: 1994/10/12 21:07:19;  author: matt;  state: Exp;
52330 Killed unused field in object structure
52331 ----------------------------
52332 revision 1.100
52333 date: 1994/10/12 10:38:24;  author: mike;  state: Exp;
52334 Add field OF_SILENT to obj->flags.
52335 ----------------------------
52336 revision 1.99
52337 date: 1994/10/11 20:35:48;  author: matt;  state: Exp;
52338 Clear "transient" objects (weapons,explosions,etc.) when starting a level
52339 ----------------------------
52340 revision 1.98
52341 date: 1994/10/03 20:56:13;  author: rob;  state: Exp;
52342 Added velocity to shortpos strucutre.
52343 ----------------------------
52344 revision 1.97
52345 date: 1994/09/30 18:24:00;  author: rob;  state: Exp;
52346 Added new control type CT_REMOTE for remote controlled objects.
52347 Also added a union struct 'remote_info' for this type.
52348 ----------------------------
52349 revision 1.96
52350 date: 1994/09/28 09:23:05;  author: mike;  state: Exp;
52351 Prototype Object_type_names.
52352 ----------------------------
52353 revision 1.95
52354 date: 1994/09/25 23:32:37;  author: matt;  state: Exp;
52355 Changed the object load & save code to read/write the structure fields one
52356 at a time (rather than the whole structure at once).  This mean that the
52357 object structure can be changed without breaking the load/save functions.
52358 As a result of this change, the local_object data can be and has been 
52359 incorporated into the object array.  Also, timeleft is now a property 
52360 of all objects, and the object structure has been otherwise cleaned up.
52361 ----------------------------
52362 revision 1.94
52363 date: 1994/09/25 15:45:28;  author: matt;  state: Exp;
52364 Added OBJ_LIGHT, a type of object that casts light
52365 Added generalized lifeleft, and moved it to local_object
52366 ----------------------------
52367 revision 1.93
52368 date: 1994/09/24 17:41:19;  author: mike;  state: Exp;
52369 Add stuff to Local_object structure for materialization centers.
52370 ----------------------------
52371 revision 1.92
52372 date: 1994/09/24 13:16:50;  author: matt;  state: Exp;
52373 Added (hacked in, really) support for overriding the bitmaps used on to
52374 texture map a polygon object, and using a new bitmap for all the faces.
52375 ----------------------------
52376 revision 1.91
52377 date: 1994/09/22 19:02:14;  author: mike;  state: Exp;
52378 Prototype functions extract_shortpos and create_shortpos which reside in
52379 gameseg.c, but are prototyped here to prevent circular dependencies.
52380 ----------------------------
52381 revision 1.90
52382 date: 1994/09/15 21:47:14;  author: mike;  state: Exp;
52383 Prototype dead_player_end().
52384 ----------------------------
52385 revision 1.89
52386 date: 1994/09/15 16:34:47;  author: mike;  state: Exp;
52387 Add danger_laser_num and danger_laser_signature to object_local to
52388 enable robots to efficiently (too efficiently!) avoid player fire.
52389 ----------------------------
52390 revision 1.88
52391 date: 1994/09/11 22:46:19;  author: mike;  state: Exp;
52392 Death_sequence_aborted prototyped.
52393 ----------------------------
52394 revision 1.87
52395 date: 1994/09/09 20:04:30;  author: mike;  state: Exp;
52396 Add vclips for weapons.
52397 ----------------------------
52398 revision 1.86
52399 date: 1994/09/09 14:20:54;  author: matt;  state: Exp;
52400 Added flag that says object uses thrust
52401 ----------------------------
52402 revision 1.85
52403 date: 1994/09/08 14:51:32;  author: mike;  state: Exp;
52404 Make a crucial name change to a field of local_object struct.
52405 ----------------------------
52406 revision 1.84
52407 date: 1994/09/07 19:16:45;  author: mike;  state: Exp;
52408 Homing missile.
52409 ----------------------------
52410 revision 1.83
52411 date: 1994/09/06 17:05:43;  author: matt;  state: Exp;
52412 Added new type for dead player
52413 ----------------------------
52414 revision 1.82
52415 date: 1994/09/02 11:56:09;  author: mike;  state: Exp;
52416 Add persistency (PF_PERSISTENT) to physics_info.
52417 ----------------------------
52418 revision 1.81
52419 date: 1994/08/28 19:10:28;  author: mike;  state: Exp;
52420 Add Player_is_dead.
52421 ----------------------------
52422 revision 1.80
52423 date: 1994/08/18 15:11:44;  author: mike;  state: Exp;
52424 powerup stuff.
52425 ----------------------------
52426 revision 1.79
52427 date: 1994/08/15 15:24:54;  author: john;  state: Exp;
52428 Made players know who killed them; Disabled cheat menu
52429 during net player; fixed bug with not being able to turn
52430 of invulnerability; Made going into edit/starting new leve
52431 l drop you out of a net game; made death dialog box.
52432 ----------------------------
52433 revision 1.78
52434 date: 1994/08/14 23:15:12;  author: matt;  state: Exp;
52435 Added animating bitmap hostages, and cleaned up vclips a bit
52436 ----------------------------
52437 revision 1.77
52438 date: 1994/08/13 14:58:27;  author: matt;  state: Exp;
52439 Finished adding support for miscellaneous objects
52440 ----------------------------
52441 revision 1.76
52442 date: 1994/08/09 16:04:13;  author: john;  state: Exp;
52443 Added network players to editor.
52444 ----------------------------
52445 revision 1.75
52446 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
52447 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
52448 ----------------------------
52449 revision 1.74
52450 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
52451 Added support for spinning objects
52452 ----------------------------
52453 revision 1.73
52454 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
52455 Added rotational drag & thrust, so turning now has momemtum like moving
52456 ----------------------------
52457 revision 1.72
52458 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
52459 Objects containing objects.
52460 ----------------------------
52461 revision 1.71
52462 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
52463 Fixed flares, by adding a physics flag that makes them stick to walls.
52464 ----------------------------
52465 revision 1.70
52466 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
52467 Prototype new find_object_seg and update_object_seg.
52468 ----------------------------
52469 revision 1.69
52470 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
52471 New ai_static structure.
52472 ----------------------------
52473 revision 1.68
52474 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
52475 Moved all (or nearly all) of the values that affect player movement to 
52476 bitmaps.tbl
52477 ----------------------------
52478 revision 1.67
52479 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
52480 Revamped physics system
52481 ----------------------------
52482 revision 1.66
52483 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
52484 Added chase mode.
52485 =============================================================================
52486 RCS file: f:/miner/source/main/editor/texpage.c,v
52487 Working file: main/editor/texpage.c
52488 head: 1.13
52489 branch:
52490 description: Routines for displaying texture pages
52491 ----------------------------
52492 revision 1.13
52493 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
52494 Made changes for new mprintf calling convention
52495 ----------------------------
52496 revision 1.12
52497 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
52498 fix bug in tmapnum == 0 always getting reassigned.
52499 ----------------------------
52500 revision 1.11
52501 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
52502 changing texture maps in all mines.
52503 ----------------------------
52504 revision 1.10
52505 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
52506 Changed some shorts to ints.
52507 ----------------------------
52508 revision 1.9
52509 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
52510 Fixed bug with writing to canvas before initing it.
52511 ----------------------------
52512 revision 1.8
52513 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
52514 Fixed grab bug, and cleaned up code
52515 ----------------------------
52516 revision 1.7
52517 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
52518 Fixed overplot problem with texture names
52519 ----------------------------
52520 revision 1.6
52521 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
52522 Fixed resetting to first texture on page annoyance.
52523 ----------------------------
52524 revision 1.5
52525 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
52526 Added objects to objpage. Added buttons for easier tmap scrolling.
52527 Objects are selected fully from objpage and add object menu or pad.
52528 ----------------------------
52529 revision 1.4
52530 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
52531 Fixed bm loader (might have some changes in walls and switches)
52532 ----------------------------
52533 revision 1.3
52534 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
52535 Moved texture and object selection to texpage and objpage
52536 ----------------------------
52537 revision 1.2
52538 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
52539 moved texture selection stuff to texpage.c
52540 ----------------------------
52541 revision 1.1
52542 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
52543 Initial revision
52544 =============================================================================
52545 RCS file: f:/miner/source/main/editor/texpage.c,v
52546 Working file: main/editor/texpage.c
52547 head: 1.14
52548 branch:
52549 description: Routines for displaying texture pages
52550 ----------------------------
52551 revision 1.14
52552 date: 1995/01/14 19:18:02;  author: john;  state: Exp;
52553 First version of object paging.
52554 ----------------------------
52555 revision 1.13
52556 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
52557 Made changes for new mprintf calling convention
52558 ----------------------------
52559 revision 1.12
52560 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
52561 fix bug in tmapnum == 0 always getting reassigned.
52562 ----------------------------
52563 revision 1.11
52564 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
52565 changing texture maps in all mines.
52566 ----------------------------
52567 revision 1.10
52568 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
52569 Changed some shorts to ints.
52570 ----------------------------
52571 revision 1.9
52572 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
52573 Fixed bug with writing to canvas before initing it.
52574 ----------------------------
52575 revision 1.8
52576 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
52577 Fixed grab bug, and cleaned up code
52578 ----------------------------
52579 revision 1.7
52580 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
52581 Fixed overplot problem with texture names
52582 ----------------------------
52583 revision 1.6
52584 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
52585 Fixed resetting to first texture on page annoyance.
52586 ----------------------------
52587 revision 1.5
52588 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
52589 Added objects to objpage. Added buttons for easier tmap scrolling.
52590 Objects are selected fully from objpage and add object menu or pad.
52591 ----------------------------
52592 revision 1.4
52593 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
52594 Fixed bm loader (might have some changes in walls and switches)
52595 ----------------------------
52596 revision 1.3
52597 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
52598 Moved texture and object selection to texpage and objpage
52599 ----------------------------
52600 revision 1.2
52601 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
52602 moved texture selection stuff to texpage.c
52603 ----------------------------
52604 revision 1.1
52605 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
52606 Initial revision
52607 =============================================================================
52608 RCS file: f:/miner/source/main/laser.c,v
52609 Working file: main/laser.c
52610 head: 2.6
52611 branch:
52612 description: This will contain the laser code
52613 ----------------------------
52614 revision 1.1
52615 date: 1993/11/29 17:19:02;  author: john;  state: Exp;
52616 Initial revision
52617 =============================================================================
52618 RCS file: f:/miner/source/main/laser.h,v
52619 Working file: main/laser.h
52620 head: 2.0
52621 branch:
52622 description: Definitions for the laser code.
52623 ----------------------------
52624 revision 2.0
52625 date: 1995/02/27 11:32:27;  author: john;  state: Exp;
52626 New version 2.0, which has no anonymous unions, builds with
52627 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
52628 ----------------------------
52629 revision 1.50
52630 date: 1995/02/01 21:03:44;  author: john;  state: Exp;
52631 Lintified.
52632 ----------------------------
52633 revision 1.49
52634 date: 1995/02/01 16:34:11;  author: john;  state: Exp;
52635 Linted.
52636 ----------------------------
52637 revision 1.48
52638 date: 1995/01/31 16:16:16;  author: mike;  state: Exp;
52639 Separate smart blobs for robot and player.
52640 ----------------------------
52641 revision 1.47
52642 date: 1995/01/27 17:02:55;  author: mike;  state: Exp;
52643 Add LASER_ID -- why wasn't this added in June?
52644 ----------------------------
52645 revision 1.46
52646 date: 1995/01/25 10:53:27;  author: mike;  state: Exp;
52647 make badass damage go through grates.
52648 ----------------------------
52649 revision 1.45
52650 date: 1994/12/12 17:17:32;  author: mike;  state: Exp;
52651 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
52652 ----------------------------
52653 revision 1.44
52654 date: 1994/12/04 16:17:23;  author: mike;  state: Exp;
52655 spruce up homing missile behavior.
52656 ----------------------------
52657 revision 1.43
52658 date: 1994/12/03 12:48:30;  author: mike;  state: Exp;
52659 make homing missile tracking not frame rate dependent (more-or-less)
52660 ----------------------------
52661 revision 1.42
52662 date: 1994/10/12 08:04:54;  author: mike;  state: Exp;
52663 Clean up proximity/homing mess.
52664 ----------------------------
52665 revision 1.41
52666 date: 1994/10/09 20:07:04;  author: rob;  state: Exp;
52667 Change prototype for do_laser_firing
52668 ----------------------------
52669 revision 1.40
52670 date: 1994/10/09 00:15:48;  author: mike;  state: Exp;
52671 Add constants for super mech missile, regular mech missile, silent spreadfire.
52672 ----------------------------
52673 revision 1.39
52674 date: 1994/10/08 19:52:09;  author: rob;  state: Exp;
52675 Added new weapon fire flags.
52676 ----------------------------
52677 revision 1.38
52678 date: 1994/10/07 15:31:12;  author: mike;  state: Exp;
52679 Prototypes for new laser functions which don't necessarily make sound.
52680 ----------------------------
52681 revision 1.37
52682 date: 1994/10/05 17:08:29;  author: matt;  state: Exp;
52683 Fixed a couple of small bugs, and made homing missiles alternate sides
52684 ----------------------------
52685 revision 1.36
52686 date: 1994/09/28 14:28:55;  author: rob;  state: Exp;
52687 Added firing of missiles on networks/serial.
52688 ----------------------------
52689 revision 1.35
52690 date: 1994/09/24 14:17:02;  author: mike;  state: Exp;
52691 Prototype do_laser_firing.
52692 ----------------------------
52693 revision 1.34
52694 date: 1994/09/23 11:36:49;  author: mike;  state: Exp;
52695 Prototype Laser_create_new_easy.
52696 ----------------------------
52697 revision 1.33
52698 date: 1994/09/20 11:55:01;  author: mike;  state: Exp;
52699 Fix bug.
52700 ----------------------------
52701 revision 1.32
52702 date: 1994/09/20 11:48:34;  author: mike;  state: Exp;
52703 Change spreadfire laser to use new bitmap. (Define SPREADFIRE_ID)
52704 ----------------------------
52705 revision 1.31
52706 date: 1994/09/15 16:31:28;  author: mike;  state: Exp;
52707 Prototype object_to_object_visibility.
52708 ----------------------------
52709 revision 1.30
52710 date: 1994/09/10 17:31:40;  author: mike;  state: Exp;
52711 Add thrust to weapons.
52712 ----------------------------
52713 revision 1.29
52714 date: 1994/09/08 14:49:44;  author: mike;  state: Exp;
52715 Bunch of IDs for new weapon types.
52716 ----------------------------
52717 revision 1.28
52718 date: 1994/09/07 19:16:40;  author: mike;  state: Exp;
52719 Homing missile.
52720 ----------------------------
52721 revision 1.27
52722 date: 1994/09/07 15:59:47;  author: mike;  state: Exp;
52723 Kill FLARE_MAX_TIME (now defined in bitmaps.tbl), add PROXIMITY_ID (shame!), prototype do_laser_firing, do_missile_firing.
52724 ----------------------------
52725 revision 1.26
52726 date: 1994/09/03 15:22:41;  author: mike;  state: Exp;
52727 Kill Projectile_player_fire prototype.
52728 ----------------------------
52729 revision 1.25
52730 date: 1994/09/02 16:39:00;  author: mike;  state: Exp;
52731 IDs for primary weapons.
52732 ----------------------------
52733 revision 1.24
52734 date: 1994/09/02 11:55:54;  author: mike;  state: Exp;
52735 Define some illegal constants.
52736 ----------------------------
52737 revision 1.23
52738 date: 1994/08/25 18:12:06;  author: matt;  state: Exp;
52739 Made player's weapons and flares fire from the positions on the 3d model.
52740 Also added support for quad lasers.
52741 ----------------------------
52742 revision 1.22
52743 date: 1994/08/19 15:22:28;  author: mike;  state: Exp;
52744 Define constant for MAX_LASER_LEVEL.
52745 ----------------------------
52746 revision 1.21
52747 date: 1994/08/13 12:20:47;  author: john;  state: Exp;
52748 Made the networking uise the Players array.
52749 ----------------------------
52750 revision 1.20
52751 date: 1994/08/10 10:44:05;  author: john;  state: Exp;
52752 Made net players fire..
52753 ----------------------------
52754 revision 1.19
52755 date: 1994/06/27 18:30:57;  author: mike;  state: Exp;
52756 Add flares.
52757 ----------------------------
52758 revision 1.18
52759 date: 1994/06/09 15:32:37;  author: mike;  state: Exp;
52760 Muzzle flash
52761 ----------------------------
52762 revision 1.17
52763 date: 1994/05/19 09:09:00;  author: mike;  state: Exp;
52764 Move a bunch of laser variables to bm.h, I think.
52765 Also, added Robot_laser_speed, instead of hard-coding Laser_speed/4.
52766 ----------------------------
52767 revision 1.16
52768 date: 1994/05/14 17:16:20;  author: matt;  state: Exp;
52769 Got rid of externs in source (non-header) files
52770 ----------------------------
52771 revision 1.15
52772 date: 1994/05/13 20:27:39;  author: john;  state: Exp;
52773 Version II of John's new object code.
52774 ----------------------------
52775 revision 1.14
52776 date: 1994/04/20 15:06:47;  author: john;  state: Exp;
52777 Neatend laser code and fixed some laser bugs.
52778 ----------------------------
52779 revision 1.13
52780 date: 1994/04/01 13:35:15;  author: matt;  state: Exp;
52781 Cleaned up laser code a bit; moved some code here object.c to laser.c
52782 ----------------------------
52783 revision 1.12
52784 date: 1994/04/01 11:14:24;  author: yuan;  state: Exp;
52785 Added multiple bitmap functionality to all objects...
52786 (hostages, powerups, lasers, etc.)  
52787 Hostages and powerups are implemented in the object system,
52788 just need to finish function call to "affect" player.
52789 ----------------------------
52790 revision 1.11
52791 date: 1994/03/31 09:10:09;  author: matt;  state: Exp;
52792 Added #define to turn crosshair off
52793 ----------------------------
52794 revision 1.10
52795 date: 1994/02/17 11:33:15;  author: matt;  state: Exp;
52796 Changes in object system
52797 ----------------------------
52798 revision 1.9
52799 date: 1994/01/06 11:56:01;  author: john;  state: Exp;
52800 Made lasers be lines, not purple blobs
52801 ----------------------------
52802 revision 1.8
52803 date: 1994/01/05 10:53:35;  author: john;  state: Exp;
52804 New object code by John.  
52805 ----------------------------
52806 revision 1.7
52807 date: 1993/12/08 14:21:36;  author: john;  state: Exp;
52808 Added ExplodeObject
52809 ----------------------------
52810 revision 1.6
52811 date: 1993/12/08 11:28:54;  author: john;  state: Exp;
52812 Made lasers look like bolts.
52813 ----------------------------
52814 revision 1.5
52815 date: 1993/12/01 13:12:40;  author: john;  state: Exp;
52816 made lasers frame-rate independant
52817 ----------------------------
52818 revision 1.4
52819 date: 1993/11/30 19:00:42;  author: john;  state: Exp;
52820 lasers working kinda
52821 ----------------------------
52822 revision 1.3
52823 date: 1993/11/29 19:44:53;  author: john;  state: Exp;
52824 *** empty log message ***
52825 ----------------------------
52826 revision 1.2
52827 date: 1993/11/29 17:44:55;  author: john;  state: Exp;
52828 *** empty log message ***
52829 ----------------------------
52830 revision 1.1
52831 date: 1993/11/29 17:19:19;  author: john;  state: Exp;
52832 Initial revision
52833 =============================================================================
52834 RCS file: f:/miner/source/main/lighting.c,v
52835 Working file: main/lighting.c
52836 head: 2.1
52837 branch:
52838 description: Lighting functions.
52839 ----------------------------
52840 revision 2.1
52841 date: 1995/07/24 13:21:56;  author: john;  state: Exp;
52842 Added new lighting calculation code to speed things up.
52843 ----------------------------
52844 revision 2.0
52845 date: 1995/02/27 11:27:33;  author: john;  state: Exp;
52846 New version 2.0, which has no anonymous unions, builds with
52847 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
52848 ----------------------------
52849 revision 1.43
52850 date: 1995/02/22 13:57:10;  author: allender;  state: Exp;
52851 remove anonymous union from object structure
52852 ----------------------------
52853 revision 1.42
52854 date: 1995/02/13 20:35:07;  author: john;  state: Exp;
52855 Lintized
52856 ----------------------------
52857 revision 1.41
52858 date: 1995/02/04 21:43:40;  author: matt;  state: Exp;
52859 Changed an assert() to an int3() and deal with the bad case
52860 ----------------------------
52861 revision 1.40
52862 date: 1995/01/15 20:48:27;  author: mike;  state: Exp;
52863 support light field for powerups.
52864 ----------------------------
52865 revision 1.39
52866 date: 1994/12/15 13:04:19;  author: mike;  state: Exp;
52867 Replace Players[Player_num].time_total references with GameTime.
52868 ----------------------------
52869 revision 1.38
52870 date: 1994/11/28 21:50:41;  author: mike;  state: Exp;
52871 optimizations.
52872 ----------------------------
52873 revision 1.37
52874 date: 1994/11/28 01:32:33;  author: mike;  state: Exp;
52875 lighting optimization.
52876 ----------------------------
52877 revision 1.36
52878 date: 1994/11/15 12:01:00;  author: john;  state: Exp;
52879 Changed a bunch of code that uses timer_get_milliseconds to 
52880 timer_get_fixed_Seconds.  
52881 ----------------------------
52882 revision 1.35
52883 date: 1994/10/31 21:56:07;  author: matt;  state: Exp;
52884 Fixed bug & added error checking
52885 ----------------------------
52886 revision 1.34
52887 date: 1994/10/21 11:24:57;  author: mike;  state: Exp;
52888 Trap divide overflows in lighting.
52889 ----------------------------
52890 revision 1.33
52891 date: 1994/10/08 14:49:11;  author: matt;  state: Exp;
52892 If viewer changed, don't do smooth lighting hack
52893 ----------------------------
52894 revision 1.32
52895 date: 1994/09/25 23:41:07;  author: matt;  state: Exp;
52896 Changed the object load & save code to read/write the structure fields one
52897 at a time (rather than the whole structure at once).  This mean that the
52898 object structure can be changed without breaking the load/save functions.
52899 As a result of this change, the local_object data can be and has been 
52900 incorporated into the object array.  Also, timeleft is now a property 
52901 of all objects, and the object structure has been otherwise cleaned up.
52902 ----------------------------
52903 revision 1.31
52904 date: 1994/09/25 15:45:15;  author: matt;  state: Exp;
52905 Added OBJ_LIGHT, a type of object that casts light
52906 Added generalized lifeleft, and moved it to local_object
52907 ----------------------------
52908 revision 1.30
52909 date: 1994/09/11 15:48:27;  author: mike;  state: Exp;
52910 Use vm_vec_mag_quick in place of vm_vec_mag in point_dist computation.
52911 ----------------------------
52912 revision 1.29
52913 date: 1994/09/08 21:44:49;  author: matt;  state: Exp;
52914 Made lighting ramp 4x as fast; made only static (ambient) light ramp
52915 up, but not headlight & dynamic light
52916 ----------------------------
52917 revision 1.28
52918 date: 1994/09/02 14:00:07;  author: matt;  state: Exp;
52919 Simplified explode_object() & mutliple-stage explosions
52920 ----------------------------
52921 revision 1.27
52922 date: 1994/08/29 19:06:44;  author: mike;  state: Exp;
52923 Make lighting proportional to square of distance, not linear.
52924 ----------------------------
52925 revision 1.26
52926 date: 1994/08/25 18:08:38;  author: matt;  state: Exp;
52927 Made muzzle flash cast 3x as much light
52928 ----------------------------
52929 revision 1.25
52930 date: 1994/08/23 16:38:31;  author: mike;  state: Exp;
52931 Key weapon light off bitmaps.tbl.
52932 ----------------------------
52933 revision 1.24
52934 date: 1994/08/13 12:20:44;  author: john;  state: Exp;
52935 Made the networking uise the Players array.
52936 ----------------------------
52937 revision 1.23
52938 date: 1994/08/12 22:42:18;  author: john;  state: Exp;
52939 Took away Player_stats; added Players array.
52940 ----------------------------
52941 revision 1.22
52942 date: 1994/07/06 10:19:22;  author: matt;  state: Exp;
52943 Changed include
52944 ----------------------------
52945 revision 1.21
52946 date: 1994/06/28 13:20:22;  author: mike;  state: Exp;
52947 Oops, fixed a dumb typo.
52948 ----------------------------
52949 revision 1.20
52950 date: 1994/06/28 12:53:25;  author: mike;  state: Exp;
52951 Change lighting function for flares, make brighter and asynchronously flicker.
52952 ----------------------------
52953 revision 1.19
52954 date: 1994/06/27 18:31:15;  author: mike;  state: Exp;
52955 Add flares.
52956 ----------------------------
52957 revision 1.18
52958 date: 1994/06/20 13:41:17;  author: matt;  state: Exp;
52959 Added time-based gradual lighting hack for objects
52960 Took out strobing robots
52961 ----------------------------
52962 revision 1.17
52963 date: 1994/06/19 16:25:54;  author: mike;  state: Exp;
52964 Optimize lighting.
52965 ----------------------------
52966 revision 1.16
52967 date: 1994/06/17 18:08:08;  author: mike;  state: Exp;
52968 Make robots cast more and variable light.
52969 ----------------------------
52970 revision 1.15
52971 date: 1994/06/13 15:15:55;  author: mike;  state: Exp;
52972 Fix phantom light, every 64K milliseconds, muzzle flash would flash again.
52973 =============================================================================
52974 RCS file: f:/miner/source/main/lighting.h,v
52975 Working file: main/lighting.h
52976 head: 2.0
52977 branch:
52978 description: Lighting system prototypes, structures, etc.
52979 ----------------------------
52980 revision 2.0
52981 date: 1995/02/27 11:27:52;  author: john;  state: Exp;
52982 New version 2.0, which has no anonymous unions, builds with
52983 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
52984 ----------------------------
52985 revision 1.6
52986 date: 1994/11/28 21:50:56;  author: mike;  state: Exp;
52987 optimizations.
52988 ----------------------------
52989 revision 1.5
52990 date: 1994/06/07 16:51:58;  author: matt;  state: Exp;
52991 Made object lighting work correctly; changed name of Ambient_light to
52992 Dynamic_light; cleaned up polygobj object rendering a little.
52993 ----------------------------
52994 revision 1.4
52995 date: 1994/05/31 18:41:35;  author: matt;  state: Exp;
52996 Added comments
52997 ----------------------------
52998 revision 1.3
52999 date: 1994/05/23 15:00:08;  author: mike;  state: Exp;
53000 Change MIN_LIGHT_DIST.
53001 ----------------------------
53002 revision 1.2
53003 date: 1994/05/22 15:30:09;  author: mike;  state: Exp;
53004 First version.
53005 ----------------------------
53006 revision 1.1
53007 date: 1994/05/22 15:16:44;  author: mike;  state: Exp;
53008 Initial revision
53009 =============================================================================
53010 RCS file: f:/miner/source/main/editor/macro.c,v
53011 Working file: main/editor/macro.c
53012 head: 2.0
53013 branch:
53014 description: Routines for recording/playing/saving macros
53015 ----------------------------
53016 revision 2.0
53017 date: 1995/02/27 11:35:09;  author: john;  state: Exp;
53018 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53019 for bitmaps.tbl.
53020 ----------------------------
53021 revision 1.12
53022 date: 1993/11/15 14:46:37;  author: john;  state: Exp;
53023 Changed Menu to MenuX
53024 ----------------------------
53025 revision 1.11
53026 date: 1993/11/05 17:32:44;  author: john;  state: Exp;
53027 added funcs
53028 .,
53029 ----------------------------
53030 revision 1.10
53031 date: 1993/10/28 16:23:20;  author: john;  state: Exp;
53032 *** empty log message ***
53033 ----------------------------
53034 revision 1.9
53035 date: 1993/10/28 13:03:12;  author: john;  state: Exp;
53036 ..
53037 ----------------------------
53038 revision 1.8
53039 date: 1993/10/25 16:02:35;  author: john;  state: Exp;
53040 *** empty log message ***
53041 ----------------------------
53042 revision 1.7
53043 date: 1993/10/22 13:35:29;  author: john;  state: Exp;
53044 *** empty log message ***
53045 ----------------------------
53046 revision 1.6
53047 date: 1993/10/21 17:10:09;  author: john;  state: Exp;
53048 Fixed bug w/ load macro.
53049 ----------------------------
53050 revision 1.5
53051 date: 1993/10/19 12:58:47;  author: john;  state: Exp;
53052 *** empty log message ***
53053 ----------------------------
53054 revision 1.4
53055 date: 1993/10/19 12:55:02;  author: john;  state: Exp;
53056 *** empty log message ***
53057 ----------------------------
53058 revision 1.3
53059 date: 1993/10/19 12:49:49;  author: john;  state: Exp;
53060 made EventBuffer dynamic, use ReadFile, WriteFile
53061 ----------------------------
53062 revision 1.2
53063 date: 1993/10/15 17:42:20;  author: john;  state: Exp;
53064 *** empty log message ***
53065 ----------------------------
53066 revision 1.1
53067 date: 1993/10/15 17:28:06;  author: john;  state: Exp;
53068 Initial revision
53069 =============================================================================
53070 RCS file: f:/miner/source/main/editor/macro.h,v
53071 Working file: main/editor/macro.h
53072 head: 2.0
53073 branch:
53074 description: Header for macro.c
53075 ----------------------------
53076 revision 2.0
53077 date: 1995/02/27 11:34:32;  author: john;  state: Exp;
53078 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53079 for bitmaps.tbl.
53080 ----------------------------
53081 revision 1.2
53082 date: 1994/05/14 17:18:19;  author: matt;  state: Exp;
53083 Got rid of externs in source (non-header) files
53084 ----------------------------
53085 revision 1.1
53086 date: 1994/05/14 16:38:50;  author: matt;  state: Exp;
53087 Initial revision
53088 =============================================================================
53089 RCS file: f:/miner/source/main/mcockpit.c,v
53090 Working file: main/mcockpit.c
53091 head: 2.0
53092 branch:
53093 description: File to make the cockpit.inc source code file.
53094 ----------------------------
53095 revision 2.0
53096 date: 1995/02/27 11:30:20;  author: john;  state: Exp;
53097 New version 2.0, which has no anonymous unions, builds with
53098 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
53099 ----------------------------
53100 revision 1.8
53101 date: 1994/05/30 19:27:57;  author: john;  state: Exp;
53102 Moved functionality of mcockpit into 2d, ibitblt.
53103 ----------------------------
53104 revision 1.7
53105 date: 1994/05/11 11:36:08;  author: john;  state: Exp;
53106 Neatend up; took out debugging lines.
53107 ----------------------------
53108 revision 1.6
53109 date: 1994/05/11 11:19:19;  author: john;  state: Exp;
53110 Made cockpit code be created at runtime.
53111 ----------------------------
53112 revision 1.5
53113 date: 1994/01/28 17:40:22;  author: john;  state: Exp;
53114 *** empty log message ***
53115 ----------------------------
53116 revision 1.4
53117 date: 1994/01/26 18:14:10;  author: john;  state: Exp;
53118 Printed out x,y,w,h;
53119 ----------------------------
53120 revision 1.3
53121 date: 1994/01/25 11:45:00;  author: john;  state: Exp;
53122 Took out graphics.
53123 ----------------------------
53124 revision 1.2
53125 date: 1994/01/24 18:55:40;  author: john;  state: Exp;
53126 initial version.
53127 ----------------------------
53128 revision 1.1
53129 date: 1994/01/24 18:31:21;  author: john;  state: Exp;
53130 Initial revision
53131 =============================================================================
53132 RCS file: f:/miner/source/main/mcockpit.h,v
53133 Working file: main/mcockpit.h
53134 head: 2.0
53135 branch:
53136 description: .
53137 ----------------------------
53138 revision 2.0
53139 date: 1995/02/27 11:30:24;  author: john;  state: Exp;
53140 New version 2.0, which has no anonymous unions, builds with
53141 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
53142 ----------------------------
53143 revision 1.3
53144 date: 1994/05/30 19:28:16;  author: john;  state: Exp;
53145 Moved functionality of mcockpit into 2d, ibitblt.
53146 ----------------------------
53147 revision 1.2
53148 date: 1994/05/11 11:19:21;  author: john;  state: Exp;
53149 Made cockpit code be created at runtime.
53150 ----------------------------
53151 revision 1.1
53152 date: 1994/05/11 10:38:56;  author: john;  state: Exp;
53153 Initial revision
53154 =============================================================================
53155 RCS file: f:/miner/source/main/editor/med.c,v
53156 Working file: main/editor/med.c
53157 head: 2.3
53158 branch:
53159 description: Editor loop for Inferno
53160 ----------------------------
53161 revision 2.3
53162 date: 1995/03/06 18:23:52;  author: john;  state: Exp;
53163 Fixed bug with font screwing up.
53164 ----------------------------
53165 revision 2.2
53166 date: 1995/03/06 16:34:55;  author: john;  state: Exp;
53167 Fixed bug with previous.
53168 ----------------------------
53169 revision 2.1
53170 date: 1995/03/06 15:20:57;  author: john;  state: Exp;
53171 New screen mode method.
53172 ----------------------------
53173 revision 2.0
53174 date: 1995/02/27 11:35:54;  author: john;  state: Exp;
53175 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53176 for bitmaps.tbl.
53177 ----------------------------
53178 revision 1.192
53179 date: 1994/11/30 12:33:55;  author: mike;  state: Exp;
53180 set window clearing mode for editor.
53181 ----------------------------
53182 revision 1.191
53183 date: 1994/11/27 23:17:02;  author: matt;  state: Exp;
53184 Made changes for new mprintf calling convention
53185 ----------------------------
53186 revision 1.190
53187 date: 1994/11/19 00:04:33;  author: john;  state: Exp;
53188 Changed some shorts to ints.
53189 ----------------------------
53190 revision 1.189
53191 date: 1994/11/17 14:47:57;  author: mike;  state: Exp;
53192 validation functions moved from editor to game.
53193 ----------------------------
53194 revision 1.188
53195 date: 1994/11/14 11:41:38;  author: john;  state: Exp;
53196 Fixed bug with editor/game sequencing.
53197 ----------------------------
53198 revision 1.187
53199 date: 1994/11/13 15:36:44;  author: john;  state: Exp;
53200 Changed game sequencing with editor.
53201 ----------------------------
53202 revision 1.186
53203 date: 1994/11/10 16:49:12;  author: matt;  state: Exp;
53204 Don't sort seg list if no segs in list
53205 ----------------------------
53206 revision 1.185
53207 date: 1994/11/08 09:28:39;  author: mike;  state: Exp;
53208 reset ai paths on going to game.
53209 ----------------------------
53210 revision 1.184
53211 date: 1994/10/30 14:13:05;  author: mike;  state: Exp;
53212 rip out repair center stuff.
53213 ----------------------------
53214 revision 1.183
53215 date: 1994/10/27 10:07:06;  author: mike;  state: Exp;
53216 adapt to no inverse table.
53217 ----------------------------
53218 revision 1.182
53219 date: 1994/10/20 12:48:03;  author: matt;  state: Exp;
53220 Replaced old save files (MIN/SAV/HOT) with new LVL files
53221 ----------------------------
53222 revision 1.181
53223 date: 1994/10/13 11:39:22;  author: john;  state: Exp;
53224 Took out network stuff/.
53225 ----------------------------
53226 revision 1.180
53227 date: 1994/10/07 22:21:38;  author: mike;  state: Exp;
53228 Stop Delete-{whatever} from hanging you!
53229 ----------------------------
53230 revision 1.179
53231 date: 1994/10/03 23:39:37;  author: mike;  state: Exp;
53232 Adapt to newer, better, fuelcen_activate function.
53233 ----------------------------
53234 revision 1.178
53235 date: 1994/09/30 00:38:05;  author: mike;  state: Exp;
53236 Shorten diagnostic message erase -- was erasing outside canvas.
53237 ----------------------------
53238 revision 1.177
53239 date: 1994/09/28 17:31:37;  author: mike;  state: Exp;
53240 Add call to check_wall_validity();
53241 ----------------------------
53242 revision 1.176
53243 date: 1994/08/19 10:57:42;  author: mike;  state: Exp;
53244 Fix status message erase bug.
53245 ----------------------------
53246 revision 1.175
53247 date: 1994/08/18 10:48:12;  author: john;  state: Exp;
53248 Cleaned up game sequencing.
53249 ----------------------------
53250 revision 1.174
53251 date: 1994/08/16 18:11:04;  author: yuan;  state: Exp;
53252 Maded C place you in the center of a segment.
53253 ----------------------------
53254 revision 1.173
53255 date: 1994/08/10 19:55:05;  author: john;  state: Exp;
53256 Changed font stuff.
53257 ----------------------------
53258 revision 1.172
53259 date: 1994/08/09 16:06:06;  author: john;  state: Exp;
53260 Added the ability to place players.  Made old
53261 Player variable be ConsoleObject.
53262 ----------------------------
53263 revision 1.171
53264 date: 1994/08/04 09:14:11;  author: matt;  state: Exp;
53265 Fixed problem I said I fixed last time
53266 ----------------------------
53267 revision 1.170
53268 date: 1994/08/04 00:27:57;  author: matt;  state: Exp;
53269 When viewing a wall, update the objects segnum if moved out of the segment
53270 ----------------------------
53271 revision 1.169
53272 date: 1994/08/02 14:18:12;  author: mike;  state: Exp;
53273 Clean up dialog boxes.
53274 ----------------------------
53275 revision 1.168
53276 date: 1994/07/29 15:34:35;  author: mike;  state: Exp;
53277 Kill some mprintfs.
53278 ----------------------------
53279 revision 1.167
53280 date: 1994/07/29 14:56:46;  author: yuan;  state: Exp;
53281 Close centers window, when you go into game.
53282 ----------------------------
53283 revision 1.166
53284 date: 1994/07/28 17:16:20;  author: john;  state: Exp;
53285 MAde editor use Network stuff.
53286 ----------------------------
53287 revision 1.165
53288 date: 1994/07/28 16:59:10;  author: mike;  state: Exp;
53289 objects containing objects.
53290 ----------------------------
53291 revision 1.164
53292 date: 1994/07/22 12:37:07;  author: matt;  state: Exp;
53293 Cleaned up editor/game interactions some more.
53294 ----------------------------
53295 revision 1.163
53296 date: 1994/07/21 19:35:11;  author: yuan;  state: Exp;
53297 Fixed #include problem
53298 ----------------------------
53299 revision 1.162
53300 date: 1994/07/21 18:02:09;  author: matt;  state: Exp;
53301 Don't re-init player stats when going from editor -> game
53302 ----------------------------
53303 revision 1.161
53304 date: 1994/07/21 12:47:53;  author: mike;  state: Exp;
53305 Add tilde key functionality for object movement.
53306 ----------------------------
53307 revision 1.160
53308 date: 1994/07/18 10:44:55;  author: mike;  state: Exp;
53309 One-click access to keypads.
53310 ----------------------------
53311 revision 1.159
53312 date: 1994/07/01 18:05:54;  author: john;  state: Exp;
53313 *** empty log message ***
53314 ----------------------------
53315 revision 1.158
53316 date: 1994/07/01 17:57:06;  author: john;  state: Exp;
53317 First version of not-working hostage system
53318 ----------------------------
53319 revision 1.157
53320 date: 1994/07/01 11:32:29;  author: john;  state: Exp;
53321 *** empty log message ***
53322 ----------------------------
53323 revision 1.156
53324 date: 1994/06/24 17:04:36;  author: john;  state: Exp;
53325 *** empty log message ***
53326 ----------------------------
53327 revision 1.155
53328 date: 1994/06/23 15:53:47;  author: matt;  state: Exp;
53329 Finished hacking in 3d rendering in big window
53330 ----------------------------
53331 revision 1.154
53332 date: 1994/06/21 16:17:54;  author: yuan;  state: Exp;
53333 Init stats when you go to game from editor
53334 ----------------------------
53335 revision 1.153
53336 date: 1994/06/21 12:57:14;  author: yuan;  state: Exp;
53337 Remove center from segment function added to menu.
53338 =============================================================================
53339 RCS file: f:/miner/source/main/editor/meddraw.c,v
53340 Working file: main/editor/meddraw.c
53341 head: 2.0
53342 branch:
53343 description: Med drawing functions.
53344 ----------------------------
53345 revision 2.0
53346 date: 1995/02/27 11:34:42;  author: john;  state: Exp;
53347 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53348 for bitmaps.tbl.
53349 ----------------------------
53350 revision 1.34
53351 date: 1994/11/09 11:46:30;  author: matt;  state: Exp;
53352 Don't draw non-existant special segments
53353 ----------------------------
53354 revision 1.33
53355 date: 1994/10/27 10:06:38;  author: mike;  state: Exp;
53356 adapt to no inverse table.
53357 ----------------------------
53358 revision 1.32
53359 date: 1994/10/17 18:06:23;  author: john;  state: Exp;
53360 Made net player objects draw in dark green.
53361 ----------------------------
53362 revision 1.31
53363 date: 1994/09/26 16:44:33;  author: yuan;  state: Exp;
53364 Colored special segments.
53365 ----------------------------
53366 revision 1.30
53367 date: 1994/09/01 17:02:41;  author: matt;  state: Exp;
53368 Redraw pointer after world draw
53369 ----------------------------
53370 revision 1.29
53371 date: 1994/08/25 21:56:21;  author: mike;  state: Exp;
53372 IS_CHILD stuff.
53373 ----------------------------
53374 revision 1.28
53375 date: 1994/08/11 18:59:46;  author: mike;  state: Exp;
53376 Adapt to new int (vs short) version of gameseg functions.
53377 ----------------------------
53378 revision 1.27
53379 date: 1994/08/09 16:06:03;  author: john;  state: Exp;
53380 Added the ability to place players.  Made old
53381 Player variable be ConsoleObject.
53382 ----------------------------
53383 revision 1.26
53384 date: 1994/07/25 00:03:05;  author: matt;  state: Exp;
53385 Various changes to accomodate new 3d, which no longer takes point numbers
53386 as parms, and now only takes pointers to points.
53387 ----------------------------
53388 revision 1.25
53389 date: 1994/07/09 17:38:13;  author: mike;  state: Exp;
53390 comment out mprintf(0, "\n");
53391 ----------------------------
53392 revision 1.24
53393 date: 1994/07/07 19:34:47;  author: matt;  state: Exp;
53394 These changes are mostly Mike's, but I fixed a little bug that caused
53395 some edges to think they were never used.
53396 ----------------------------
53397 revision 1.23
53398 date: 1994/07/06 16:36:18;  author: mike;  state: Exp;
53399 Optionally only draw segment lines which are in only one segment.
53400 ----------------------------
53401 revision 1.22
53402 date: 1994/05/27 10:34:28;  author: yuan;  state: Exp;
53403 Added new Dialog boxes for Walls and Triggers.
53404 ----------------------------
53405 revision 1.21
53406 date: 1994/05/14 18:00:56;  author: matt;  state: Exp;
53407 Got rid of externs in source (non-header) files
53408 ----------------------------
53409 revision 1.20
53410 date: 1994/05/09 23:35:21;  author: mike;  state: Exp;
53411 Change order of drawing found and selected segments.
53412 ----------------------------
53413 revision 1.19
53414 date: 1994/05/05 12:55:38;  author: yuan;  state: Exp;
53415 Fixed a bunch of group bugs.
53416 ----------------------------
53417 revision 1.18
53418 date: 1994/05/04 13:07:52;  author: matt;  state: Exp;
53419 Made current edge draw in green in wire-frame window
53420 Also, moved a bunch of color constants here from editor.h
53421 =============================================================================
53422 RCS file: f:/miner/source/main/editor/meddraw.h,v
53423 Working file: main/editor/meddraw.h
53424 head: 2.0
53425 branch:
53426 description: Defnts for med drawing stuff
53427 ----------------------------
53428 revision 2.0
53429 date: 1995/02/27 11:35:12;  author: john;  state: Exp;
53430 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53431 for bitmaps.tbl.
53432 ----------------------------
53433 revision 1.3
53434 date: 1994/07/06 16:36:54;  author: mike;  state: Exp;
53435 Prototype for draw_mine_all.
53436 ----------------------------
53437 revision 1.2
53438 date: 1993/12/17 12:05:09;  author: john;  state: Exp;
53439 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
53440 ----------------------------
53441 revision 1.1
53442 date: 1993/12/17 08:55:14;  author: john;  state: Exp;
53443 Initial revision
53444 =============================================================================
53445 RCS file: f:/miner/source/main/editor/medmisc.c,v
53446 Working file: main/editor/medmisc.c
53447 head: 2.1
53448 branch:
53449 description: Miscellaneous functions stripped out of med.c
53450 ----------------------------
53451 revision 2.1
53452 date: 1995/03/06 15:20:50;  author: john;  state: Exp;
53453 New screen mode method.
53454 ----------------------------
53455 revision 2.0
53456 date: 1995/02/27 11:36:40;  author: john;  state: Exp;
53457 Version 2.0. Ansi-fied.
53458 ----------------------------
53459 revision 1.31
53460 date: 1994/11/27 23:17:20;  author: matt;  state: Exp;
53461 Made changes for new mprintf calling convention
53462 ----------------------------
53463 revision 1.30
53464 date: 1994/11/17 14:48:11;  author: mike;  state: Exp;
53465 validation functions moved from editor to game.
53466 ----------------------------
53467 revision 1.29
53468 date: 1994/08/25 21:56:15;  author: mike;  state: Exp;
53469 IS_CHILD stuff.
53470 ----------------------------
53471 revision 1.28
53472 date: 1994/08/09 16:06:00;  author: john;  state: Exp;
53473 Added the ability to place players.  Made old
53474 Player variable be ConsoleObject.
53475 ----------------------------
53476 revision 1.27
53477 date: 1994/07/21 17:25:43;  author: matt;  state: Exp;
53478 Took out unused func medlisp_create_new_mine() and its prototype
53479 ----------------------------
53480 revision 1.26
53481 date: 1994/07/21 13:27:01;  author: matt;  state: Exp;
53482 Cleaned up render code and added error checking
53483 ----------------------------
53484 revision 1.25
53485 date: 1994/07/20 15:32:52;  author: matt;  state: Exp;
53486 Added func to call g3_point_2_vec() for texture-mapped window
53487 ----------------------------
53488 revision 1.24
53489 date: 1994/07/15 15:26:53;  author: yuan;  state: Exp;
53490 Fixed warning
53491 ----------------------------
53492 revision 1.23
53493 date: 1994/07/14 14:45:16;  author: yuan;  state: Exp;
53494 Added function to set default segment and attach.
53495 ----------------------------
53496 revision 1.22
53497 date: 1994/07/14 09:46:34;  author: yuan;  state: Exp;
53498 Make E attach segment as well as make default.
53499 ----------------------------
53500 revision 1.21
53501 date: 1994/07/11 18:39:17;  author: john;  state: Exp;
53502 Reversed y axis roll.
53503 ----------------------------
53504 revision 1.20
53505 date: 1994/07/06 16:36:32;  author: mike;  state: Exp;
53506 Add hook for game to render wireframe view: draw_world_from_game.
53507 ----------------------------
53508 revision 1.19
53509 date: 1994/06/24 14:08:31;  author: john;  state: Exp;
53510 Changed calling params for render_frame.
53511 ----------------------------
53512 revision 1.18
53513 date: 1994/06/23 15:54:02;  author: matt;  state: Exp;
53514 Finished hacking in 3d rendering in big window
53515 ----------------------------
53516 revision 1.17
53517 date: 1994/06/22 00:32:56;  author: matt;  state: Exp;
53518 New version, without all the errors of the last version. Sorry.
53519 ----------------------------
53520 revision 1.15
53521 date: 1994/05/23 14:48:54;  author: mike;  state: Exp;
53522 make current segment be add segment.
53523 ----------------------------
53524 revision 1.14
53525 date: 1994/05/19 12:09:35;  author: matt;  state: Exp;
53526 Use new vecmat macros and globals
53527 ----------------------------
53528 revision 1.13
53529 date: 1994/05/14 17:17:55;  author: matt;  state: Exp;
53530 Got rid of externs in source (non-header) files
53531 ----------------------------
53532 revision 1.12
53533 date: 1994/05/09 23:35:06;  author: mike;  state: Exp;
53534 Add ClearFoundList, which is probably no longer being called.
53535 ----------------------------
53536 revision 1.11
53537 date: 1994/05/04 14:11:40;  author: mike;  state: Exp;
53538 Increase render depth from 4 to 6 by default.
53539 ----------------------------
53540 revision 1.10
53541 date: 1994/04/27 21:00:25;  author: matt;  state: Exp;
53542 Made texture-mapped window redraw when editor state variables (such as
53543 current object) have changed.
53544 ----------------------------
53545 revision 1.9
53546 date: 1994/03/31 12:03:38;  author: matt;  state: Exp;
53547 Cleaned up includes
53548 ----------------------------
53549 revision 1.8
53550 date: 1994/02/17 11:31:21;  author: matt;  state: Exp;
53551 Changes in object system
53552 ----------------------------
53553 revision 1.7
53554 date: 1994/02/11 11:05:14;  author: yuan;  state: Exp;
53555 Make chase mode unsettable... Gives a warning on the mono.
53556 ----------------------------
53557 revision 1.6
53558 date: 1994/01/21 17:37:24;  author: matt;  state: Exp;
53559 Moved code from render_frame() to caller, making code cleaner
53560 ----------------------------
53561 revision 1.5
53562 date: 1994/01/11 18:12:43;  author: yuan;  state: Exp;
53563 compress_mines removed.  Now it is called within
53564 the gamesave.min save whenever we go into the game.
53565 ----------------------------
53566 revision 1.4
53567 date: 1994/01/05 10:54:15;  author: john;  state: Exp;
53568 New object code by John
53569 ----------------------------
53570 revision 1.3
53571 date: 1993/12/29 16:15:27;  author: mike;  state: Exp;
53572 Kill scale field from segment struct.
53573 ----------------------------
53574 revision 1.2
53575 date: 1993/12/17 12:05:00;  author: john;  state: Exp;
53576 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
53577 ----------------------------
53578 revision 1.1
53579 date: 1993/12/17 08:35:47;  author: john;  state: Exp;
53580 Initial revision
53581 =============================================================================
53582 RCS file: f:/miner/source/main/editor/medmisc.h,v
53583 Working file: main/editor/medmisc.h
53584 head: 2.0
53585 branch:
53586 description: Defn'tns for medmisc.c
53587 ----------------------------
53588 revision 2.0
53589 date: 1995/02/27 11:34:40;  author: john;  state: Exp;
53590 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53591 for bitmaps.tbl.
53592 ----------------------------
53593 revision 1.3
53594 date: 1994/07/21 17:25:28;  author: matt;  state: Exp;
53595 Took out unused func medlisp_create_new_mine() and its prototype
53596 ----------------------------
53597 revision 1.2
53598 date: 1993/12/17 12:05:04;  author: john;  state: Exp;
53599 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
53600 ----------------------------
53601 revision 1.1
53602 date: 1993/12/17 08:45:23;  author: john;  state: Exp;
53603 Initial revision
53604 =============================================================================
53605 RCS file: f:/miner/source/main/editor/medrobot.c,v
53606 Working file: main/editor/medrobot.c
53607 head: 2.0
53608 branch:
53609 description: Dialog box to edit robot properties.
53610 ----------------------------
53611 revision 2.0
53612 date: 1995/02/27 11:35:59;  author: john;  state: Exp;
53613 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53614 for bitmaps.tbl.
53615 ----------------------------
53616 revision 1.46
53617 date: 1995/02/22 15:22:03;  author: allender;  state: Exp;
53618 remove anonyous unions from object structure
53619 ----------------------------
53620 revision 1.45
53621 date: 1994/11/27 23:17:32;  author: matt;  state: Exp;
53622 Made changes for new mprintf calling convention
53623 ----------------------------
53624 revision 1.44
53625 date: 1994/11/14 11:39:57;  author: mike;  state: Exp;
53626 fix default robot behavior
53627 ----------------------------
53628 revision 1.43
53629 date: 1994/11/02 16:18:47;  author: matt;  state: Exp;
53630 Moved draw_model_picture() out of editor, and cleaned up code
53631 ----------------------------
53632 revision 1.42
53633 date: 1994/10/10 17:23:23;  author: mike;  state: Exp;
53634 Verify that not placing too many player objects.
53635 ----------------------------
53636 revision 1.41
53637 date: 1994/10/09 22:04:38;  author: mike;  state: Exp;
53638 Maybe improve, maybe not, robot selection in shift-R menu.
53639 ----------------------------
53640 revision 1.40
53641 date: 1994/09/30 21:49:01;  author: mike;  state: Exp;
53642 Fix stupid shift-R dialog bug which caused lots of mprintf and selecting of object and frustration.
53643 ----------------------------
53644 revision 1.39
53645 date: 1994/09/30 11:51:33;  author: mike;  state: Exp;
53646 Fix boolean logic on an error trap.
53647 ----------------------------
53648 revision 1.38
53649 date: 1994/09/20 14:36:32;  author: mike;  state: Exp;
53650 Clean up Robot dialog.
53651 ----------------------------
53652 revision 1.37
53653 date: 1994/09/12 19:11:56;  author: mike;  state: Exp;
53654 Fix stupid bugs in selecting objects.
53655 ----------------------------
53656 revision 1.36
53657 date: 1994/09/01 17:05:51;  author: matt;  state: Exp;
53658 Don't force redraw if object select fails
53659 ----------------------------
53660 revision 1.35
53661 date: 1994/08/31 19:24:40;  author: mike;  state: Exp;
53662 Fix hang bug when only objects in mine are not robots.
53663 ----------------------------
53664 revision 1.34
53665 date: 1994/08/25 21:56:38;  author: mike;  state: Exp;
53666 IS_CHILD stuff.
53667 ----------------------------
53668 revision 1.33
53669 date: 1994/08/23 16:39:29;  author: mike;  state: Exp;
53670 mode replaced by behavior in ai_info.
53671 ----------------------------
53672 revision 1.32
53673 date: 1994/08/15 23:47:16;  author: mike;  state: Exp;
53674 fix bugs.
53675 ----------------------------
53676 revision 1.31
53677 date: 1994/08/13 17:32:45;  author: mike;  state: Exp;
53678 set to still function.
53679 ----------------------------
53680 revision 1.30
53681 date: 1994/08/09 16:06:02;  author: john;  state: Exp;
53682 Added the ability to place players.  Made old
53683 Player variable be ConsoleObject.
53684 ----------------------------
53685 revision 1.29
53686 date: 1994/08/02 16:22:48;  author: matt;  state: Exp;
53687 Finished object editor dialog
53688 =============================================================================
53689 RCS file: f:/miner/source/main/editor/medrobot.h,v
53690 Working file: main/editor/medrobot.h
53691 head: 2.0
53692 branch:
53693 description: Header for robot.c
53694 ----------------------------
53695 revision 2.0
53696 date: 1995/02/27 11:35:04;  author: john;  state: Exp;
53697 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53698 for bitmaps.tbl.
53699 ----------------------------
53700 revision 1.4
53701 date: 1994/08/02 14:17:56;  author: mike;  state: Exp;
53702 Clean up dialog boxes.
53703 ----------------------------
53704 revision 1.3
53705 date: 1994/07/21 19:34:58;  author: yuan;  state: Exp;
53706 Fixed #include problem
53707 ----------------------------
53708 revision 1.2
53709 date: 1994/04/27 21:01:16;  author: matt;  state: Exp;
53710 Added prototypes for robot functions
53711 ----------------------------
53712 revision 1.1
53713 date: 1994/04/27 20:28:59;  author: matt;  state: Exp;
53714 Initial revision
53715 =============================================================================
53716 RCS file: f:/miner/source/main/editor/medsel.c,v
53717 Working file: main/editor/medsel.c
53718 head: 2.0
53719 branch:
53720 description: Routines stripped from med.c for segment selection
53721 ----------------------------
53722 revision 2.0
53723 date: 1995/02/27 11:35:20;  author: john;  state: Exp;
53724 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53725 for bitmaps.tbl.
53726 ----------------------------
53727 revision 1.10
53728 date: 1994/08/09 16:05:59;  author: john;  state: Exp;
53729 Added the ability to place players.  Made old
53730 Player variable be ConsoleObject.
53731 ----------------------------
53732 revision 1.9
53733 date: 1994/05/23 14:56:27;  author: mike;  state: Exp;
53734 make current segment be add segment.
53735 ----------------------------
53736 revision 1.8
53737 date: 1994/05/14 18:00:50;  author: matt;  state: Exp;
53738 Got rid of externs in source (non-header) files
53739 ----------------------------
53740 revision 1.7
53741 date: 1994/03/31 12:03:33;  author: matt;  state: Exp;
53742 Cleaned up includes
53743 ----------------------------
53744 revision 1.6
53745 date: 1994/02/17 12:52:13;  author: yuan;  state: Exp;
53746 Unbackdated
53747 y
53748 ----------------------------
53749 revision 1.4
53750 date: 1994/02/17 09:46:53;  author: matt;  state: Exp;
53751 Removed include of slew.h
53752 ----------------------------
53753 revision 1.3
53754 date: 1994/01/05 10:54:23;  author: john;  state: Exp;
53755 New object code by John
53756 ----------------------------
53757 revision 1.2
53758 date: 1993/12/17 12:18:22;  author: john;  state: Exp;
53759 Moved selection stuff out of med.c
53760 ----------------------------
53761 revision 1.1
53762 date: 1993/12/17 09:29:34;  author: john;  state: Exp;
53763 Initial revision
53764 =============================================================================
53765 RCS file: f:/miner/source/main/editor/medsel.h,v
53766 Working file: main/editor/medsel.h
53767 head: 2.0
53768 branch:
53769 description: rountines stipped from med.c for segment selection
53770 ----------------------------
53771 revision 2.0
53772 date: 1995/02/27 11:34:28;  author: john;  state: Exp;
53773 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53774 for bitmaps.tbl.
53775 ----------------------------
53776 revision 1.2
53777 date: 1993/12/17 12:18:35;  author: john;  state: Exp;
53778 Moved selection stuff out of med.c
53779 ----------------------------
53780 revision 1.1
53781 date: 1993/12/17 09:29:51;  author: john;  state: Exp;
53782 Initial revision
53783 =============================================================================
53784 RCS file: f:/miner/source/main/editor/medwall.c,v
53785 Working file: main/editor/medwall.c
53786 head: 2.0
53787 branch:
53788 description: Created from version 1.11 of main\wall.c
53789 ----------------------------
53790 revision 2.0
53791 date: 1995/02/27 11:35:47;  author: john;  state: Exp;
53792 Version 2.0! No anonymous unions, Watcom 10.0, with no need
53793 for bitmaps.tbl.
53794 ----------------------------
53795 revision 1.71
53796 date: 1995/02/01 16:30:03;  author: yuan;  state: Exp;
53797 Stabilizing triggers and matcens.
53798 ----------------------------
53799 revision 1.70
53800 date: 1995/01/28 15:28:08;  author: yuan;  state: Exp;
53801 Return proper bug description.
53802 ----------------------------
53803 revision 1.69
53804 date: 1995/01/14 19:18:07;  author: john;  state: Exp;
53805 First version of object paging.
53806 ----------------------------
53807 revision 1.68
53808 date: 1995/01/12 12:10:44;  author: yuan;  state: Exp;
53809 Added delete trigger function
53810 ----------------------------
53811 revision 1.67
53812 date: 1994/11/29 16:51:53;  author: yuan;  state: Exp;
53813 Fixed false bogus trigger info.
53814 ----------------------------
53815 revision 1.66
53816 date: 1994/11/27 23:17:29;  author: matt;  state: Exp;
53817 Made changes for new mprintf calling convention
53818 ----------------------------
53819 revision 1.65
53820 date: 1994/11/15 11:59:42;  author: john;  state: Exp;
53821 Changed timing for door to use fixed seconds instead of milliseconds.
53822 ----------------------------
53823 revision 1.64
53824 date: 1994/11/03 10:41:17;  author: yuan;  state: Exp;
53825 Made walls add whichever the previous type was.
53826 ----------------------------
53827 revision 1.63
53828 date: 1994/10/13 13:14:59;  author: yuan;  state: Exp;
53829 Fixed trigger removal bug.
53830 ----------------------------
53831 revision 1.62
53832 date: 1994/10/07 17:43:39;  author: yuan;  state: Exp;
53833 Make validate walls default to 1.
53834 ----------------------------
53835 revision 1.61
53836 date: 1994/10/03 23:40:20;  author: mike;  state: Exp;
53837 Fix hosedness in walls in group copying.
53838 ----------------------------
53839 revision 1.60
53840 date: 1994/09/29 00:20:36;  author: matt;  state: Exp;
53841 Took out reference to unused external wall type
53842 ----------------------------
53843 revision 1.59
53844 date: 1994/09/28 17:32:24;  author: mike;  state: Exp;
53845 Functions to copy walls withing groups.
53846 ----------------------------
53847 revision 1.58
53848 date: 1994/09/28 13:40:46;  author: yuan;  state: Exp;
53849 Fixed control center trigger bug.
53850 ----------------------------
53851 revision 1.57
53852 date: 1994/09/24 12:41:52;  author: matt;  state: Exp;
53853 Took out references to obsolete constants
53854 ----------------------------
53855 revision 1.56
53856 date: 1994/09/23 18:03:55;  author: yuan;  state: Exp;
53857 Finished wall checking code.
53858 ----------------------------
53859 revision 1.55
53860 date: 1994/09/22 14:35:25;  author: matt;  state: Exp;
53861 Made blastable walls work again
53862 ----------------------------
53863 revision 1.54
53864 date: 1994/09/21 16:46:07;  author: yuan;  state: Exp;
53865 Fixed bug that reset wall slot which was just deleted.
53866 ----------------------------
53867 revision 1.53
53868 date: 1994/09/20 18:31:21;  author: yuan;  state: Exp;
53869 Output right Wallnum
53870 ----------------------------
53871 revision 1.52
53872 date: 1994/09/20 18:23:24;  author: yuan;  state: Exp;
53873 Killed the BOGIFYING WALL DRAGON...
53874 There was a problem with triggers being created that had bogus
53875 pointers back to their segments.
53876 ----------------------------
53877 revision 1.51
53878 date: 1994/09/20 11:13:11;  author: yuan;  state: Exp;
53879 Delete all bogus walls when checking walls.
53880 ----------------------------
53881 revision 1.50
53882 date: 1994/09/19 23:31:14;  author: yuan;  state: Exp;
53883 Adding wall checking stuff.
53884 ----------------------------
53885 revision 1.49
53886 date: 1994/09/13 21:11:20;  author: matt;  state: Exp;
53887 Added wclips that use tmap1 instead of tmap2, saving lots of merging
53888 ----------------------------
53889 revision 1.48
53890 date: 1994/09/10 13:32:08;  author: matt;  state: Exp;
53891 Made exploding walls a type of blastable walls.
53892 Cleaned up blastable walls, making them tmap2 bitmaps.
53893 ----------------------------
53894 revision 1.47
53895 date: 1994/09/10 09:47:47;  author: yuan;  state: Exp;
53896 Added wall checking function.
53897 ----------------------------
53898 revision 1.46
53899 date: 1994/08/26 14:14:56;  author: yuan;  state: Exp;
53900 Fixed wall clip being set to -2 bug.
53901 ----------------------------
53902 revision 1.45
53903 date: 1994/08/25 21:56:26;  author: mike;  state: Exp;
53904 IS_CHILD stuff.
53905 ----------------------------
53906 revision 1.44
53907 date: 1994/08/19 19:30:27;  author: matt;  state: Exp;
53908 Added informative message if wall is already external when making it so.
53909 ----------------------------
53910 revision 1.43
53911 date: 1994/08/17 11:13:46;  author: matt;  state: Exp;
53912 Changed way external walls work
53913 ----------------------------
53914 revision 1.42
53915 date: 1994/08/15 17:47:29;  author: yuan;  state: Exp;
53916 Added external walls
53917 ----------------------------
53918 revision 1.41
53919 date: 1994/08/05 21:18:09;  author: matt;  state: Exp;
53920 Allow two doors to be linked together
53921 ----------------------------
53922 revision 1.40
53923 date: 1994/08/02 14:18:06;  author: mike;  state: Exp;
53924 Clean up dialog boxes.
53925 ----------------------------
53926 revision 1.39
53927 date: 1994/08/01 11:04:33;  author: yuan;  state: Exp;
53928 New materialization centers.
53929 ----------------------------
53930 revision 1.38
53931 date: 1994/07/22 17:19:11;  author: yuan;  state: Exp;
53932 Working on dialog box for refuel/repair/material/control centers.
53933 ----------------------------
53934 revision 1.37
53935 date: 1994/07/20 17:35:33;  author: yuan;  state: Exp;
53936 Added new gold key.
53937 ----------------------------
53938 revision 1.36
53939 date: 1994/07/19 14:31:44;  author: yuan;  state: Exp;
53940 Fixed keys bug.
53941 ----------------------------
53942 revision 1.35
53943 date: 1994/07/18 15:58:31;  author: yuan;  state: Exp;
53944 Hopefully prevent any "Adam door bombouts"
53945 ----------------------------
53946 revision 1.34
53947 date: 1994/07/18 15:48:40;  author: yuan;  state: Exp;
53948 Made minor cosmetic change.
53949 ----------------------------
53950 revision 1.33
53951 date: 1994/07/15 16:09:22;  author: yuan;  state: Exp;
53952 Error checking
53953 ----------------------------
53954 revision 1.32
53955 date: 1994/07/14 16:47:05;  author: yuan;  state: Exp;
53956 Fixed wall dialog for selected dooranims.
53957 ----------------------------
53958 revision 1.31
53959 date: 1994/07/11 15:09:16;  author: yuan;  state: Exp;
53960 Wall anim filenames stored in wclip structure.
53961 ----------------------------
53962 revision 1.30
53963 date: 1994/07/06 10:56:01;  author: john;  state: Exp;
53964 New structures for hostages.
53965 ----------------------------
53966 revision 1.29
53967 date: 1994/07/01 16:35:54;  author: yuan;  state: Exp;
53968 Added key system
53969 ----------------------------
53970 revision 1.28
53971 date: 1994/06/21 18:50:12;  author: john;  state: Exp;
53972 Made ESC key exit dialog.
53973 ----------------------------
53974 revision 1.27
53975 date: 1994/06/20 22:29:59;  author: yuan;  state: Exp;
53976 Fixed crazy runaway trigger bug that Adam found
53977 ----------------------------
53978 revision 1.26
53979 date: 1994/06/01 15:50:25;  author: yuan;  state: Exp;
53980 Added one more door... Needs to be set by bm.c in the future.
53981 ----------------------------
53982 revision 1.25
53983 date: 1994/05/30 20:22:34;  author: yuan;  state: Exp;
53984 New triggers.
53985 ----------------------------
53986 revision 1.24
53987 date: 1994/05/27 10:34:31;  author: yuan;  state: Exp;
53988 Added new Dialog boxes for Walls and Triggers.
53989 ----------------------------
53990 revision 1.23
53991 date: 1994/05/25 18:08:45;  author: yuan;  state: Exp;
53992 Revamping walls and triggers interface.
53993 Wall interface complete, but triggers are still in progress.
53994 ----------------------------
53995 revision 1.22
53996 date: 1994/05/18 18:21:56;  author: yuan;  state: Exp;
53997 Fixed delete segment and walls bug.
53998 ----------------------------
53999 revision 1.21
54000 date: 1994/05/11 18:24:29;  author: yuan;  state: Exp;
54001 Oops.. trigger not triggers..
54002 ----------------------------
54003 revision 1.20
54004 date: 1994/05/11 18:23:53;  author: yuan;  state: Exp;
54005 Fixed trigger not set to -1 bug.
54006 =============================================================================
54007 RCS file: f:/miner/source/main/editor/medwall.h,v
54008 Working file: main/editor/medwall.h
54009 head: 2.0
54010 branch:
54011 description: Created from version 1.6 of main\wall.h
54012 ----------------------------
54013 revision 2.0
54014 date: 1995/02/27 11:35:10;  author: john;  state: Exp;
54015 Version 2.0! No anonymous unions, Watcom 10.0, with no need
54016 for bitmaps.tbl.
54017 ----------------------------
54018 revision 1.9
54019 date: 1994/09/28 17:31:51;  author: mike;  state: Exp;
54020 Prototype copy_group_walls().
54021 ----------------------------
54022 revision 1.8
54023 date: 1994/08/05 21:18:16;  author: matt;  state: Exp;
54024 Allow two doors to be linked together
54025 ----------------------------
54026 revision 1.7
54027 date: 1994/06/20 22:30:10;  author: yuan;  state: Exp;
54028 Fixed crazy runaway trigger bug that Adam found
54029 ----------------------------
54030 revision 1.6
54031 date: 1994/05/30 20:22:58;  author: yuan;  state: Exp;
54032 New triggers.
54033 ----------------------------
54034 revision 1.5
54035 date: 1994/05/25 18:08:37;  author: yuan;  state: Exp;
54036 Revamping walls and triggers interface.
54037 Wall interface complete, but triggers are still in progress.
54038 ----------------------------
54039 revision 1.4
54040 date: 1994/05/18 18:22:04;  author: yuan;  state: Exp;
54041 Fixed delete segment and walls bug.
54042 ----------------------------
54043 revision 1.3
54044 date: 1994/03/17 18:08:41;  author: yuan;  state: Exp;
54045 New wall stuff... Cut out switches....
54046 ----------------------------
54047 revision 1.2
54048 date: 1994/03/15 16:34:10;  author: yuan;  state: Exp;
54049 Fixed bm loader (might have some changes in walls and switches)
54050 ----------------------------
54051 revision 1.1
54052 date: 1994/02/10 17:52:01;  author: matt;  state: Exp;
54053 Initial revision
54054 =============================================================================
54055 RCS file: f:/miner/source/main/menu.c,v
54056 Working file: main/menu.c
54057 head: 2.5
54058 branch:
54059 description: Inferno main menu.
54060 =============================================================================
54061 RCS file: f:/miner/source/main/menu.h,v
54062 Working file: main/menu.h
54063 head: 2.1
54064 branch:
54065 description: Menu prototypes and variables
54066 ----------------------------
54067 revision 2.1
54068 date: 1995/03/06 16:47:41;  author: mike;  state: Exp;
54069 destination saturn
54070 ----------------------------
54071 revision 2.0
54072 date: 1995/02/27 11:29:47;  author: john;  state: Exp;
54073 New version 2.0, which has no anonymous unions, builds with
54074 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
54075 ----------------------------
54076 revision 1.34
54077 date: 1994/12/12 00:16:16;  author: john;  state: Exp;
54078 Added auto-leveling flag.
54079 ----------------------------
54080 revision 1.33
54081 date: 1994/12/07 20:04:26;  author: mike;  state: Exp;
54082 set Max_debris_objects.
54083 ----------------------------
54084 revision 1.32
54085 date: 1994/11/14 17:23:19;  author: rob;  state: Exp;
54086 ADded extern for default difficulty settings.
54087 ----------------------------
54088 revision 1.31
54089 date: 1994/11/10 11:08:29;  author: mike;  state: Exp;
54090 detail level stuff.
54091 ----------------------------
54092 revision 1.30
54093 date: 1994/11/05 14:05:53;  author: john;  state: Exp;
54094 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
54095 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
54096 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
54097 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
54098 ----------------------------
54099 revision 1.29
54100 date: 1994/11/02 11:59:44;  author: john;  state: Exp;
54101 Moved menu out of game into inferno main loop.
54102 ----------------------------
54103 revision 1.28
54104 date: 1994/10/17 20:30:59;  author: john;  state: Exp;
54105 Made the text for the difficulty labels global so that
54106 the high score screen can print "rookie" or whatever.
54107 ----------------------------
54108 revision 1.27
54109 date: 1994/10/04 10:47:09;  author: matt;  state: Exp;
54110 Made main menu remember selected item
54111 ----------------------------
54112 revision 1.26
54113 date: 1994/08/10 19:55:19;  author: john;  state: Exp;
54114 Changed font stuff; Took out old menu; messed up lots of
54115 other stuff like game sequencing messages, etc.
54116 ----------------------------
54117 revision 1.25
54118 date: 1994/06/23 18:54:09;  author: matt;  state: Exp;
54119 Cleaned up game start/menu interaction, and improved main menu a little
54120 ----------------------------
54121 revision 1.24
54122 date: 1994/06/21 12:11:50;  author: yuan;  state: Exp;
54123 Fixed up menus and added HUDisplay messages.
54124 ----------------------------
54125 revision 1.23
54126 date: 1994/06/20 23:15:16;  author: yuan;  state: Exp;
54127 Color switching capability for the menus.
54128 ----------------------------
54129 revision 1.22
54130 date: 1994/06/20 22:02:25;  author: yuan;  state: Exp;
54131 Made menu GREEN by POPULAR DEMAND!!
54132 ----------------------------
54133 revision 1.21
54134 date: 1994/06/20 21:05:48;  author: yuan;  state: Exp;
54135 Fixed up menus.
54136 ----------------------------
54137 revision 1.20
54138 date: 1994/06/20 19:19:29;  author: yuan;  state: Exp;
54139 Tidied up the menu and the "message blocks" between levels, etc.
54140 ----------------------------
54141 revision 1.19
54142 date: 1994/06/17 18:01:10;  author: john;  state: Exp;
54143 A bunch of new stuff by John
54144 ----------------------------
54145 revision 1.18
54146 date: 1994/05/16 09:37:22;  author: matt;  state: Exp;
54147 Got rid of global continue_flag
54148 ----------------------------
54149 revision 1.17
54150 date: 1994/05/14 17:14:51;  author: matt;  state: Exp;
54151 Got rid of externs in source (non-header) files
54152 ----------------------------
54153 revision 1.16
54154 date: 1994/05/10 12:14:26;  author: yuan;  state: Exp;
54155 Game save/load... Demo levels 1-5 added...
54156 High scores fixed...
54157 ----------------------------
54158 revision 1.15
54159 date: 1994/05/05 09:21:21;  author: yuan;  state: Exp;
54160 *** empty log message ***
54161 ----------------------------
54162 revision 1.14
54163 date: 1994/04/29 14:55:40;  author: mike;  state: Exp;
54164 Change some menu colors.
54165 ----------------------------
54166 revision 1.13
54167 date: 1994/04/28 18:04:36;  author: yuan;  state: Exp;
54168 Gamesave added.
54169 Trigger problem fixed (seg pointer is replaced by index now.)
54170 ----------------------------
54171 revision 1.12
54172 date: 1994/02/18 11:55:01;  author: yuan;  state: Exp;
54173 Fixed menu to be called from game.
54174 ----------------------------
54175 revision 1.11
54176 date: 1994/02/10 17:45:39;  author: yuan;  state: Exp;
54177 Integrated some hacks which still need to be fixed.
54178 ----------------------------
54179 revision 1.10
54180 date: 1994/02/01 22:50:23;  author: yuan;  state: Exp;
54181 Final menu version for demo
54182 ----------------------------
54183 revision 1.9
54184 date: 1994/02/01 11:50:17;  author: yuan;  state: Exp;
54185 Moved quit message down just a tiny bit
54186 ----------------------------
54187 revision 1.8
54188 date: 1994/01/31 17:30:16;  author: yuan;  state: Exp;
54189 Fixed quit not disappearing problem
54190 ----------------------------
54191 revision 1.7
54192 date: 1994/01/31 12:25:20;  author: yuan;  state: Exp;
54193 New menu stuff
54194 ----------------------------
54195 revision 1.6
54196 date: 1994/01/26 13:14:04;  author: john;  state: Exp;
54197 *** empty log message ***
54198 ----------------------------
54199 revision 1.5
54200 date: 1993/12/29 16:44:44;  author: yuan;  state: Exp;
54201 Added some function definitions
54202 ----------------------------
54203 revision 1.4
54204 date: 1993/12/13 18:53:12;  author: yuan;  state: Exp;
54205 Fixed dependency problem
54206 ----------------------------
54207 revision 1.3
54208 date: 1993/12/12 13:53:51;  author: yuan;  state: Exp;
54209 Added menu and -g flag
54210 ----------------------------
54211 revision 1.2
54212 date: 1993/12/10 16:07:17;  author: yuan;  state: Exp;
54213 Working on menu system.  Updated the title screen.
54214 ----------------------------
54215 revision 1.1
54216 date: 1993/12/10 12:45:27;  author: yuan;  state: Exp;
54217 Initial revision
54218 =============================================================================
54219 RCS file: f:/miner/source/main/mglobal.c,v
54220 Working file: main/mglobal.c
54221 head: 2.2
54222 branch:
54223 description: Global variables for main directory
54224 ----------------------------
54225 revision 2.2
54226 date: 1995/03/14 18:24:37;  author: john;  state: Exp;
54227 Force Destination Saturn to use CD-ROM drive.
54228 ----------------------------
54229 revision 2.1
54230 date: 1995/03/06 16:47:23;  author: mike;  state: Exp;
54231 destination saturn
54232 ----------------------------
54233 revision 2.0
54234 date: 1995/02/27 11:30:00;  author: john;  state: Exp;
54235 New version 2.0, which has no anonymous unions, builds with
54236 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
54237 ----------------------------
54238 revision 1.43
54239 date: 1995/01/19 17:00:53;  author: john;  state: Exp;
54240 Made save game work between levels.
54241 ----------------------------
54242 revision 1.42
54243 date: 1994/12/05 14:23:53;  author: adam;  state: Exp;
54244 changed default detail to max, not custom
54245 ----------------------------
54246 revision 1.41
54247 date: 1994/11/19 15:15:07;  author: mike;  state: Exp;
54248 remove unused code and data
54249 ----------------------------
54250 revision 1.40
54251 date: 1994/11/03 10:13:19;  author: yuan;  state: Exp;
54252 Added #include "game.h"
54253 ----------------------------
54254 revision 1.39
54255 date: 1994/11/03 10:09:59;  author: matt;  state: Exp;
54256 Properly initialize detail & difficulty levels
54257 ----------------------------
54258 revision 1.38
54259 date: 1994/10/30 14:11:21;  author: mike;  state: Exp;
54260 rip out local segments stuff.
54261 ----------------------------
54262 revision 1.37
54263 date: 1994/10/26 15:21:30;  author: mike;  state: Exp;
54264 detail level.
54265 ----------------------------
54266 revision 1.36
54267 date: 1994/09/22 10:46:12;  author: mike;  state: Exp;
54268 Add difficulty levels.
54269 ----------------------------
54270 revision 1.35
54271 date: 1994/09/13 11:19:11;  author: mike;  state: Exp;
54272 Add Next_missile_fire_time.
54273 ----------------------------
54274 revision 1.34
54275 date: 1994/08/31 19:25:34;  author: mike;  state: Exp;
54276 GameTime and laser-firing limiting stuff added.
54277 ----------------------------
54278 revision 1.33
54279 date: 1994/08/11 18:58:53;  author: mike;  state: Exp;
54280 Add Side_to_verts_int.
54281 ----------------------------
54282 revision 1.32
54283 date: 1994/07/21 19:01:38;  author: mike;  state: Exp;
54284 Add Lsegment.
54285 ----------------------------
54286 revision 1.31
54287 date: 1994/07/21 13:11:24;  author: matt;  state: Exp;
54288 Ripped out remants of old demo system, and added demo only system that
54289 disables object movement and game options from menu.
54290 ----------------------------
54291 revision 1.30
54292 date: 1994/06/17 18:06:48;  author: matt;  state: Exp;
54293 Made password be treated as lowercase, since cmdline parsing converts
54294 everything to lowercase.
54295 ----------------------------
54296 revision 1.29
54297 date: 1994/03/15 16:33:04;  author: yuan;  state: Exp;
54298 Cleaned up bm-loading code.
54299 (Fixed structures too)
54300 ----------------------------
54301 revision 1.28
54302 date: 1994/02/17 11:32:45;  author: matt;  state: Exp;
54303 Changes in object system
54304 ----------------------------
54305 revision 1.27
54306 date: 1994/02/16 17:08:43;  author: matt;  state: Exp;
54307 Added needed include of 3d.h
54308 ----------------------------
54309 revision 1.26
54310 date: 1994/02/16 13:47:58;  author: mike;  state: Exp;
54311 fix bugs so editor can compile out.
54312 ----------------------------
54313 revision 1.25
54314 date: 1994/02/11 21:52:13;  author: matt;  state: Exp;
54315 Made password protection selectable by #define (and thus INFERNO.INI)
54316 ----------------------------
54317 revision 1.24
54318 date: 1994/02/10 15:35:56;  author: matt;  state: Exp;
54319 Various changes to make editor compile out.
54320 ----------------------------
54321 revision 1.23
54322 date: 1994/02/02 12:34:29;  author: mike;  state: Exp;
54323 take out BATS encryption.
54324 ----------------------------
54325 revision 1.22
54326 date: 1994/01/21 16:08:11;  author: matt;  state: Exp;
54327 Added FrameCount variable
54328 ----------------------------
54329 revision 1.21
54330 date: 1994/01/06 17:13:10;  author: john;  state: Exp;
54331 Added Video clip functionality
54332 ----------------------------
54333 revision 1.20
54334 date: 1993/12/08 17:45:08;  author: matt;  state: Exp;
54335 Changed password again
54336 ----------------------------
54337 revision 1.19
54338 date: 1993/12/08 17:41:05;  author: matt;  state: Exp;
54339 Changed password
54340 ----------------------------
54341 revision 1.18
54342 date: 1993/12/08 10:55:10;  author: mike;  state: Exp;
54343 Add free_obj_list
54344 ----------------------------
54345 revision 1.17
54346 date: 1993/12/07 13:46:38;  author: john;  state: Exp;
54347 Added Explosion bitmap array
54348 ----------------------------
54349 revision 1.16
54350 date: 1993/12/06 18:40:35;  author: matt;  state: Exp;
54351 Changed object loading & handling
54352 ----------------------------
54353 revision 1.15
54354 date: 1993/12/05 22:47:48;  author: matt;  state: Exp;
54355 Reworked include files in an attempt to cut down on build times
54356 ----------------------------
54357 revision 1.14
54358 date: 1993/12/01 11:44:11;  author: matt;  state: Exp;
54359 Chagned Frfract to FrameTime
54360 ----------------------------
54361 revision 1.13
54362 date: 1993/12/01 00:27:11;  author: yuan;  state: Exp;
54363 Implemented new bitmap structure system...
54364 overall bitmap scheme still needs some work.
54365 ----------------------------
54366 revision 1.12
54367 date: 1993/11/19 17:21:59;  author: matt;  state: Exp;
54368 Changed the bitmap number of object class UNICLASS
54369 Removed static initialization for objects
54370 ----------------------------
54371 revision 1.11
54372 date: 1993/11/18 13:51:47;  author: mike;  state: Exp;
54373 Add Classes, Class_views, Objects
54374 ----------------------------
54375 revision 1.10
54376 date: 1993/11/04 18:52:36;  author: matt;  state: Exp;
54377 Made Vertices[] and Segment_points[] use same constant for size, since
54378 they must be the same size anyway
54379 ----------------------------
54380 revision 1.9
54381 date: 1993/11/04 14:01:06;  author: matt;  state: Exp;
54382 Mucked with include files
54383 ----------------------------
54384 revision 1.8
54385 date: 1993/10/26 13:58:42;  author: mike;  state: Exp;
54386 Add password protection.
54387 ----------------------------
54388 revision 1.7
54389 date: 1993/10/14 18:05:50;  author: mike;  state: Exp;
54390 Change Side_to_verts to use MAX_SIDES_PER_SEGMENT in place of CONNECTIVITY
54391 ----------------------------
54392 revision 1.6
54393 date: 1993/10/12 13:57:19;  author: john;  state: Exp;
54394 added texture[]
54395 ----------------------------
54396 revision 1.5
54397 date: 1993/10/12 09:58:15;  author: mike;  state: Exp;
54398 Move Side_to_verts here from eglobal.c, since it is needed in the game.
54399 ----------------------------
54400 revision 1.4
54401 date: 1993/10/09 15:52:30;  author: mike;  state: Exp;
54402 Move test_pos, test_orient here from render.c.
54403 ----------------------------
54404 revision 1.3
54405 date: 1993/10/02 18:15:45;  author: mike;  state: Exp;
54406 Killed include of segment.h, which gets included by inferno.h.
54407 ----------------------------
54408 revision 1.2
54409 date: 1993/09/23 17:54:24;  author: mike;  state: Exp;
54410 Add Segment_points
54411 ----------------------------
54412 revision 1.1
54413 date: 1993/09/23 15:01:50;  author: mike;  state: Exp;
54414 Initial revision
54415 =============================================================================
54416 RCS file: f:/miner/source/main/editor/mine.c,v
54417 Working file: main/editor/mine.c
54418 head: 2.0
54419 branch:
54420 description: Mine specific editing functions, such as load_mine, save_mine
54421 ----------------------------
54422 revision 2.0
54423 date: 1995/02/27 11:34:38;  author: john;  state: Exp;
54424 Version 2.0! No anonymous unions, Watcom 10.0, with no need
54425 for bitmaps.tbl.
54426 ----------------------------
54427 revision 1.82
54428 date: 1995/01/19 15:19:42;  author: mike;  state: Exp;
54429 New super-compressed registered file format.
54430 ----------------------------
54431 revision 1.81
54432 date: 1994/12/15 16:51:39;  author: mike;  state: Exp;
54433 fix error message.
54434 ----------------------------
54435 revision 1.80
54436 date: 1994/12/09 22:52:27;  author: yuan;  state: Exp;
54437 *** empty log message ***
54438 ----------------------------
54439 revision 1.79
54440 date: 1994/11/27 23:17:14;  author: matt;  state: Exp;
54441 Made changes for new mprintf calling convention
54442 ----------------------------
54443 revision 1.78
54444 date: 1994/11/26 21:48:24;  author: matt;  state: Exp;
54445 Fixed saturation in short light value
54446 ----------------------------
54447 revision 1.77
54448 date: 1994/11/18 09:43:22;  author: mike;  state: Exp;
54449 mprintf and clean up instead of Assert on values which don't fit in a short.
54450 ----------------------------
54451 revision 1.76
54452 date: 1994/11/17 20:37:37;  author: john;  state: Exp;
54453 Added comment to get mike or john.
54454 ----------------------------
54455 revision 1.75
54456 date: 1994/11/17 20:08:51;  author: john;  state: Exp;
54457 Added new compiled level format.
54458 ----------------------------
54459 revision 1.74
54460 date: 1994/11/17 11:39:00;  author: matt;  state: Exp;
54461 Ripped out code to load old mines
54462 ----------------------------
54463 revision 1.73
54464 date: 1994/10/20 12:47:47;  author: matt;  state: Exp;
54465 Replaced old save files (MIN/SAV/HOT) with new LVL files
54466 ----------------------------
54467 revision 1.72
54468 date: 1994/09/23 22:13:58;  author: matt;  state: Exp;
54469 Tooks out references to obsolete structure fields
54470 ----------------------------
54471 revision 1.71
54472 date: 1994/09/22 18:39:40;  author: john;  state: Exp;
54473 *** empty log message ***
54474 ----------------------------
54475 revision 1.70
54476 date: 1994/09/22 18:38:09;  author: john;  state: Exp;
54477 Added better help for locked files.
54478 ----------------------------
54479 revision 1.69
54480 date: 1994/08/01 11:04:44;  author: yuan;  state: Exp;
54481 New materialization centers.
54482 ----------------------------
54483 revision 1.68
54484 date: 1994/06/08 14:29:35;  author: matt;  state: Exp;
54485 Took out support for old mine versions
54486 ----------------------------
54487 revision 1.67
54488 date: 1994/05/27 10:34:37;  author: yuan;  state: Exp;
54489 Added new Dialog boxes for Walls and Triggers.
54490 ----------------------------
54491 revision 1.66
54492 date: 1994/05/23 14:48:08;  author: mike;  state: Exp;
54493 make current segment be add segment.
54494 ----------------------------
54495 revision 1.65
54496 date: 1994/05/17 10:34:52;  author: matt;  state: Exp;
54497 New parm to reset_objects; Num_objects no longer global
54498 ----------------------------
54499 revision 1.64
54500 date: 1994/05/12 14:46:46;  author: mike;  state: Exp;
54501 Load previous mine type.
54502 ----------------------------
54503 revision 1.63
54504 date: 1994/05/06 12:52:13;  author: yuan;  state: Exp;
54505 Adding some gamesave checks...
54506 ----------------------------
54507 revision 1.62
54508 date: 1994/05/05 12:56:32;  author: yuan;  state: Exp;
54509 Fixed a bunch of group bugs.
54510 ----------------------------
54511 revision 1.61
54512 date: 1994/05/03 11:36:55;  author: yuan;  state: Exp;
54513 Fixing mine save.
54514 ----------------------------
54515 revision 1.60
54516 date: 1994/03/19 17:22:14;  author: yuan;  state: Exp;
54517 Wall system implemented until specific features need to be added...
54518 (Needs to be hammered on though.)
54519 ----------------------------
54520 revision 1.59
54521 date: 1994/03/17 18:08:32;  author: yuan;  state: Exp;
54522 New wall stuff... Cut out switches....
54523 ----------------------------
54524 revision 1.58
54525 date: 1994/03/15 16:34:15;  author: yuan;  state: Exp;
54526 Fixed bm loader (might have some changes in walls and switches)
54527 ----------------------------
54528 revision 1.57
54529 date: 1994/03/01 18:14:09;  author: yuan;  state: Exp;
54530 Added new walls, switches, and triggers.
54531 =============================================================================
54532 RCS file: f:/miner/source/main/mission.c,v
54533 Working file: main/mission.c
54534 head: 2.9
54535 branch:
54536 description: Code to handle multiple missions
54537 ----------------------------
54538 revision 2.9
54539 date: 1995/05/26 16:16:32;  author: john;  state: Exp;
54540 Split SATURN into define's for requiring cd, using cd, etc.
54541 Also started adding all the Rockwell stuff.
54542 ----------------------------
54543 revision 2.8
54544 date: 1995/03/20 15:49:31;  author: mike;  state: Exp;
54545 Remove eof char from comment which confused make depend, causing
54546 no mission.obj: line in makefile.  Pretty stupid tool, huh?
54547 ----------------------------
54548 revision 2.7
54549 date: 1995/03/20 12:12:11;  author: john;  state: Exp;
54550 Added ifdef SATURN.
54551 ----------------------------
54552 revision 2.6
54553 date: 1995/03/15 14:32:49;  author: john;  state: Exp;
54554 Added code to force the Descent CD-rom in the drive.
54555 ----------------------------
54556 revision 2.5
54557 date: 1995/03/15 11:41:15;  author: john;  state: Exp;
54558 Better Saturn CD-ROM support.
54559 ----------------------------
54560 revision 2.4
54561 date: 1995/03/14 18:24:14;  author: john;  state: Exp;
54562 Force Destination Saturn to use CD-ROM drive.
54563 ----------------------------
54564 revision 2.3
54565 date: 1995/03/07 14:19:41;  author: mike;  state: Exp;
54566 More destination saturn stuff.
54567 ----------------------------
54568 revision 2.2
54569 date: 1995/03/06 23:09:03;  author: mike;  state: Exp;
54570 more saturn stuff: make briefings work for saturn mission.
54571 ----------------------------
54572 revision 2.1
54573 date: 1995/03/06 16:47:48;  author: mike;  state: Exp;
54574 destination saturn
54575 ----------------------------
54576 revision 2.0
54577 date: 1995/02/27 11:27:49;  author: john;  state: Exp;
54578 New version 2.0, which has no anonymous unions, builds with
54579 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
54580 ----------------------------
54581 revision 1.14
54582 date: 1995/02/15 11:30:37;  author: john;  state: Exp;
54583 Fixed bug with potential mem overwrite on line 160.
54584 ----------------------------
54585 revision 1.13
54586 date: 1995/02/10 17:53:20;  author: matt;  state: Exp;
54587 Changed mission name again
54588 ----------------------------
54589 revision 1.12
54590 date: 1995/02/10 17:35:38;  author: matt;  state: Exp;
54591 Changed name of built-in mission
54592 ----------------------------
54593 revision 1.11
54594 date: 1995/02/07 17:13:51;  author: allender;  state: Exp;
54595 removed return statement in load_mission so that built in mission will
54596 actually set the Current_mission_name and _filename
54597 ----------------------------
54598 revision 1.10
54599 date: 1995/01/31 01:19:45;  author: matt;  state: Exp;
54600 Made build_mission_list() sort missions by name
54601 ----------------------------
54602 revision 1.9
54603 date: 1995/01/30 13:49:58;  author: allender;  state: Exp;
54604 changed build_mission_list in load_mission_by_name to include
54605 anarchy levels.
54606 ----------------------------
54607 revision 1.8
54608 date: 1995/01/30 13:03:51;  author: matt;  state: Exp;
54609 Fixed dumb mistake
54610 ----------------------------
54611 revision 1.7
54612 date: 1995/01/30 12:55:22;  author: matt;  state: Exp;
54613 Added vars to point to mission names
54614 ----------------------------
54615 revision 1.6
54616 date: 1995/01/22 18:57:28;  author: matt;  state: Exp;
54617 Made player highest level work with missions
54618 ----------------------------
54619 revision 1.5
54620 date: 1995/01/22 14:13:08;  author: matt;  state: Exp;
54621 Added flag in mission list for anarchy-only missions
54622 ----------------------------
54623 revision 1.4
54624 date: 1995/01/21 23:13:12;  author: matt;  state: Exp;
54625 Made high scores with (not work, really) with loaded missions
54626 Don't give player high score when quit game
54627 ----------------------------
54628 revision 1.3
54629 date: 1995/01/21 16:27:12;  author: matt;  state: Exp;
54630 Made endlevel briefing work with missions
54631 ----------------------------
54632 revision 1.2
54633 date: 1995/01/20 22:47:50;  author: matt;  state: Exp;
54634 Mission system implemented, though imcompletely
54635 ----------------------------
54636 revision 1.1
54637 date: 1995/01/20 13:42:19;  author: matt;  state: Exp;
54638 Initial revision
54639 =============================================================================
54640 RCS file: f:/miner/source/main/mission.h,v
54641 Working file: main/mission.h
54642 head: 2.0
54643 branch:
54644 description: Header for mission.h
54645 ----------------------------
54646 revision 2.0
54647 date: 1995/02/27 11:31:35;  author: john;  state: Exp;
54648 New version 2.0, which has no anonymous unions, builds with
54649 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
54650 ----------------------------
54651 revision 1.6
54652 date: 1995/01/30 12:55:41;  author: matt;  state: Exp;
54653 Added vars to point to mission names
54654 ----------------------------
54655 revision 1.5
54656 date: 1995/01/22 18:57:21;  author: matt;  state: Exp;
54657 Made player highest level work with missions
54658 ----------------------------
54659 revision 1.4
54660 date: 1995/01/22 14:13:21;  author: matt;  state: Exp;
54661 Added flag in mission list for anarchy-only missions
54662 ----------------------------
54663 revision 1.3
54664 date: 1995/01/21 23:13:12;  author: matt;  state: Exp;
54665 Made high scores with (not work, really) with loaded missions
54666 Don't give player high score when quit game
54667 ----------------------------
54668 revision 1.2
54669 date: 1995/01/20 22:47:53;  author: matt;  state: Exp;
54670 Mission system implemented, though imcompletely
54671 ----------------------------
54672 revision 1.1
54673 date: 1995/01/20 13:42:26;  author: matt;  state: Exp;
54674 Initial revision
54675 =============================================================================
54676 RCS file: f:/miner/source/main/modem.c,v
54677 Working file: main/modem.c
54678 head: 2.13
54679 branch:
54680 description: Modem support code
54681 ----------------------------
54682 revision 2.13
54683 date: 1995/11/28 16:25:05;  author: john;  state: Exp;
54684 Added fixed for Rockwell voice modems thats waits for OK after sending
54685 initial AT to modem to detect if there is a modem on the port.
54686 ----------------------------
54687 revision 2.12
54688 date: 1995/06/14 16:32:09;  author: john;  state: Exp;
54689 Fixed bug where all modem games were anarchy.
54690 ----------------------------
54691 revision 2.11
54692 date: 1995/05/29 16:17:59;  author: john;  state: Exp;
54693 Added support for Rockwell that takes out all net modes except for anarchy.
54694 ----------------------------
54695 revision 2.10
54696 date: 1995/04/23 16:06:38;  author: john;  state: Exp;
54697 Moved rinvul into modem/null modem menu.
54698 ----------------------------
54699 revision 2.9
54700 date: 1995/04/09 14:43:20;  author: john;  state: Exp;
54701 Took out mem-overwrite error when > 25 char phone numbers.
54702 ----------------------------
54703 revision 2.8
54704 date: 1995/04/06 12:13:36;  author: john;  state: Exp;
54705 Made phone numbers be 32 characters max.
54706 ----------------------------
54707 revision 2.7
54708 date: 1995/03/31 14:16:33;  author: john;  state: Exp;
54709 Mode phone numbers 30 chars long.
54710 ----------------------------
54711 revision 2.6
54712 date: 1995/03/30 16:39:44;  author: john;  state: Exp;
54713 Incread phone numbers to 25 characters.
54714 ----------------------------
54715 revision 2.5
54716 date: 1995/03/30 16:04:49;  author: john;  state: Exp;
54717 Increased modem number length.
54718  
54719 ----------------------------
54720 revision 2.4
54721 date: 1995/03/29 15:33:23;  author: john;  state: Exp;
54722 Took out RTS/CTS handshaking. Made it enabled with -RTSCTS.
54723 ----------------------------
54724 revision 2.3
54725 date: 1995/03/21 14:41:10;  author: john;  state: Exp;
54726 Ifdef'd out the NETWORK code.
54727 ----------------------------
54728 revision 2.2
54729 date: 1995/03/06 16:47:50;  author: mike;  state: Exp;
54730 destination saturn
54731 ----------------------------
54732 revision 2.1
54733 date: 1995/03/02 15:58:31;  author: john;  state: Exp;
54734 Made menu support modex.
54735 ----------------------------
54736 revision 2.0
54737 date: 1995/02/27 11:32:34;  author: john;  state: Exp;
54738 New version 2.0, which has no anonymous unions, builds with
54739 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
54740 ----------------------------
54741 revision 1.157
54742 date: 1995/02/15 15:35:12;  author: john;  state: Exp;
54743 Added code to support modem tracking of kills during endlevel..
54744 ----------------------------
54745 revision 1.156
54746 date: 1995/02/15 15:27:16;  author: john;  state: Exp;
54747 Mode modem code work with kills after you leave mine.
54748 ----------------------------
54749 revision 1.155
54750 date: 1995/02/12 19:53:04;  author: rob;  state: Exp;
54751 Fixed up com flush.
54752 ----------------------------
54753 revision 1.154
54754 date: 1995/02/11 17:13:25;  author: rob;  state: Exp;
54755 Took out code fill stuff.
54756 ----------------------------
54757 revision 1.153
54758 date: 1995/02/11 14:26:25;  author: rob;  state: Exp;
54759 Added support for invul. controlcen.
54760 ----------------------------
54761 revision 1.152
54762 date: 1995/02/09 02:59:44;  author: mike;  state: Exp;
54763 check code for 00066xxx bugs.
54764 ----------------------------
54765 revision 1.151
54766 date: 1995/02/08 19:18:56;  author: rob;  state: Exp;
54767 Took out show IDs on HUD option.
54768 ----------------------------
54769 revision 1.150
54770 date: 1995/02/08 11:30:29;  author: rob;  state: Exp;
54771 Fixed some pretty minor bugs.
54772 ----------------------------
54773 revision 1.149
54774 date: 1995/02/07 20:39:54;  author: rob;  state: Exp;
54775 Added new modem game options for hud id's and automap show.
54776 ----------------------------
54777 revision 1.148
54778 date: 1995/02/06 18:42:09;  author: rob;  state: Exp;
54779 Removed debugging crap.
54780 ----------------------------
54781 revision 1.147
54782 date: 1995/02/06 18:17:17;  author: rob;  state: Exp;
54783 Fixed bug in killed tallys in modem game.
54784 ----------------------------
54785 revision 1.146
54786 date: 1995/02/05 17:04:29;  author: rob;  state: Exp;
54787 Removed performance monitoring debug message.
54788 ----------------------------
54789 revision 1.145
54790 date: 1995/02/05 17:02:48;  author: rob;  state: Exp;
54791 Speeding up cooperative/robo-anarchy modes.
54792 ----------------------------
54793 revision 1.142
54794 date: 1995/02/03 18:09:40;  author: rob;  state: Exp;
54795 Small fixes to modem setup menu..
54796 ----------------------------
54797 revision 1.141
54798 date: 1995/02/03 11:12:15;  author: rob;  state: Exp;
54799 Fixed a bug (again).  Somehow last checkin got lost.
54800 ----------------------------
54801 revision 1.140
54802 date: 1995/02/02 22:06:20;  author: rob;  state: Exp;
54803 Removed a function frm shareware.
54804 ----------------------------
54805 revision 1.139
54806 date: 1995/02/01 23:20:32;  author: rob;  state: Exp;
54807 Put baud rate in connect subtitle.
54808 ----------------------------
54809 revision 1.138
54810 date: 1995/01/30 21:22:11;  author: rob;  state: Exp;
54811 Fixed bug in sync pack memcpy len.
54812 ----------------------------
54813 revision 1.137
54814 date: 1995/01/30 21:18:31;  author: rob;  state: Exp;
54815 Simplified mission loading support.
54816 ----------------------------
54817 revision 1.136
54818 date: 1995/01/30 18:32:08;  author: rob;  state: Exp;
54819 Added include of multibot.h
54820 ----------------------------
54821 revision 1.135
54822 date: 1995/01/30 17:16:04;  author: rob;  state: Exp;
54823 Added new system for sending robots positions in modem games.
54824 ----------------------------
54825 revision 1.134
54826 date: 1995/01/30 15:29:44;  author: rob;  state: Exp;
54827 Localizing.
54828 ----------------------------
54829 revision 1.133
54830 date: 1995/01/29 15:20:21;  author: rob;  state: Exp;
54831 Fixed a bug in secret level sequencing for modem games.
54832 ----------------------------
54833 revision 1.132
54834 date: 1995/01/24 15:48:51;  author: rob;  state: Exp;
54835 fixed error dialog.
54836 ----------------------------
54837 revision 1.131
54838 date: 1995/01/23 18:51:59;  author: rob;  state: Exp;
54839 Added RTS/CTS to null-modem games to help IHHD folks.
54840 Fixed a bad assert.
54841 Added support for user-written mission files.
54842 ----------------------------
54843 revision 1.130
54844 date: 1995/01/23 16:01:36;  author: rob;  state: Exp;
54845 More reliable syncing.
54846 Added mission selection.
54847 ----------------------------
54848 revision 1.129
54849 date: 1995/01/20 22:47:35;  author: matt;  state: Exp;
54850 Mission system implemented, though imcompletely
54851 ----------------------------
54852 revision 1.128
54853 date: 1995/01/19 18:18:05;  author: rob;  state: Exp;
54854 Fixed kill list display.
54855 ----------------------------
54856 revision 1.127
54857 date: 1995/01/19 16:33:48;  author: rob;  state: Exp;
54858 removed ambigous variable name in check_message.
54859 ----------------------------
54860 revision 1.126
54861 date: 1995/01/19 11:56:38;  author: rob;  state: Exp;
54862 Take out Int3 that could never get hit.
54863 ----------------------------
54864 revision 1.125
54865 date: 1995/01/18 19:01:46;  author: rob;  state: Exp;
54866 Added new asserts to check for proper game staus.
54867 ----------------------------
54868 revision 1.124
54869 date: 1995/01/18 15:39:25;  author: rob;  state: Exp;
54870 Fixed title of serial menu.
54871 ----------------------------
54872 revision 1.123
54873 date: 1995/01/18 11:54:23;  author: rob;  state: Exp;
54874 Fixing a bug with connect status.
54875 ----------------------------
54876 revision 1.122
54877 date: 1995/01/17 22:16:07;  author: rob;  state: Exp;
54878 Changed timer calls.
54879 ----------------------------
54880 revision 1.121
54881 date: 1995/01/17 13:58:31;  author: rob;  state: Exp;
54882 Fixed problem with not allowing non-anarchy modes in registered.
54883 ----------------------------
54884 revision 1.120
54885 date: 1995/01/15 15:46:18;  author: rob;  state: Exp;
54886 Fixed lost character on serial menu messages.
54887 ----------------------------
54888 revision 1.119
54889 date: 1995/01/12 22:03:15;  author: rob;  state: Exp;
54890 Added sound cue when connection is established.
54891 ----------------------------
54892 revision 1.118
54893 date: 1995/01/12 11:42:05;  author: john;  state: Exp;
54894 added better UART detection.
54895 /.
54896 Works under OS/2 and DOS.
54897 =============================================================================
54898 RCS file: f:/miner/source/main/modem.h,v
54899 Working file: main/modem.h
54900 head: 2.1
54901 branch:
54902 description: Header file for modem support
54903 ----------------------------
54904 revision 2.1
54905 date: 1995/03/21 14:40:38;  author: john;  state: Exp;
54906 Ifdef'd out the NETWORK code.
54907 ----------------------------
54908 revision 2.0
54909 date: 1995/02/27 11:31:34;  author: john;  state: Exp;
54910 New version 2.0, which has no anonymous unions, builds with
54911 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
54912 ----------------------------
54913 revision 1.18
54914 date: 1994/11/22 17:12:05;  author: rob;  state: Exp;
54915 Starting working on secret level fix for modem games.
54916 ----------------------------
54917 revision 1.17
54918 date: 1994/11/17 16:43:17;  author: rob;  state: Exp;
54919 Added prototype for com_level_sync function.
54920 ----------------------------
54921 revision 1.16
54922 date: 1994/11/15 21:30:32;  author: rob;  state: Exp;
54923 Added prototype for new menu hook.
54924 ----------------------------
54925 revision 1.15
54926 date: 1994/10/07 16:15:33;  author: rob;  state: Exp;
54927 Changed calls to multi_send_position.
54928 ----------------------------
54929 revision 1.14
54930 date: 1994/10/07 12:52:24;  author: rob;  state: Exp;
54931 Fixed some problems.
54932 ----------------------------
54933 revision 1.13
54934 date: 1994/10/07 11:25:47;  author: rob;  state: Exp;
54935 Tried to fix modem to work with new multi stuff.  Still a bit jacked up, tho.
54936 ----------------------------
54937 revision 1.12
54938 date: 1994/10/05 19:14:50;  author: rob;  state: Exp;
54939 Exported macros and arrays to support network object mapping.
54940 ----------------------------
54941 revision 1.11
54942 date: 1994/10/05 17:48:59;  author: rob;  state: Exp;
54943 Several changes, most to end_of_level sequencing.
54944 ----------------------------
54945 revision 1.10
54946 date: 1994/10/05 14:22:54;  author: rob;  state: Exp;
54947 Added com_end_level.
54948 ----------------------------
54949 revision 1.9
54950 date: 1994/09/30 18:37:22;  author: rob;  state: Exp;
54951 Another day's worth of work.  Mostly menus, error checking.  Added
54952 level checksums during sync, carrier detect during all com calls,
54953 generic com_abort() procedure for bailing out, and nm_messagebox
54954 handling of QUIT instead of HUD message (which never gets seen).
54955 ----------------------------
54956 revision 1.8
54957 date: 1994/09/29 20:55:16;  author: rob;  state: Exp;
54958 Lots of changes.
54959 ----------------------------
54960 revision 1.7
54961 date: 1994/09/29 16:09:20;  author: rob;  state: Exp;
54962 Added explode stuff.
54963 ----------------------------
54964 revision 1.6
54965 date: 1994/09/28 14:31:08;  author: rob;  state: Exp;
54966 Added serial setup menu.
54967 ----------------------------
54968 revision 1.5
54969 date: 1994/09/27 15:02:49;  author: rob;  state: Exp;
54970 Null modem basic routines working.  Sending DEAD messages and
54971 missiles still need to be done.
54972 ----------------------------
54973 revision 1.4
54974 date: 1994/09/24 16:52:33;  author: rob;  state: Exp;
54975 Added stubbed funcs for startup and stop of serial games.
54976 ----------------------------
54977 revision 1.3
54978 date: 1994/09/24 14:47:31;  author: rob;  state: Exp;
54979 New function protos.
54980 ----------------------------
54981 revision 1.2
54982 date: 1994/09/22 17:53:29;  author: rob;  state: Exp;
54983 First revision, not yet functional.
54984 ----------------------------
54985 revision 1.1
54986 date: 1994/09/22 12:39:25;  author: rob;  state: Exp;
54987 Initial revision
54988 =============================================================================
54989 RCS file: f:/miner/source/main/morph.c,v
54990 Working file: main/morph.c
54991 head: 2.1
54992 branch:
54993 description: Morphing code
54994 ----------------------------
54995 revision 2.1
54996 date: 1995/02/27 18:26:33;  author: john;  state: Exp;
54997 Fixed bug that was caused by externing Polygon_models, and I had
54998 changed the type of it in polyobj.c, thus causing page faults.
54999 ----------------------------
55000 revision 2.0
55001 date: 1995/02/27 11:27:44;  author: john;  state: Exp;
55002 New version 2.0, which has no anonymous unions, builds with
55003 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55004 ----------------------------
55005 revision 1.35
55006 date: 1995/02/22 14:45:37;  author: allender;  state: Exp;
55007 remove anonymous unions from object structure
55008 ----------------------------
55009 revision 1.34
55010 date: 1995/01/14 19:16:52;  author: john;  state: Exp;
55011 First version of new bitmap paging code.
55012 ----------------------------
55013 revision 1.33
55014 date: 1995/01/03 20:38:36;  author: john;  state: Exp;
55015 Externed MAX_MORPH_OBJECTS
55016 ----------------------------
55017 revision 1.32
55018 date: 1994/11/17 15:34:04;  author: matt;  state: Exp;
55019 Attempt #4 to fix morph bug
55020 ----------------------------
55021 revision 1.31
55022 date: 1994/11/15 10:57:14;  author: matt;  state: Exp;
55023 Tried again to fix morph
55024 ----------------------------
55025 revision 1.30
55026 date: 1994/11/14 14:06:45;  author: matt;  state: Exp;
55027 Fixed stupid bug
55028 ----------------------------
55029 revision 1.29
55030 date: 1994/11/14 11:55:13;  author: matt;  state: Exp;
55031 Added divide overflow check
55032 ----------------------------
55033 revision 1.28
55034 date: 1994/09/26 17:28:14;  author: matt;  state: Exp;
55035 Made new multiple-object morph code work with the demo system
55036 ----------------------------
55037 revision 1.27
55038 date: 1994/09/26 15:39:56;  author: matt;  state: Exp;
55039 Allow multiple simultaneous morphing objects
55040 ----------------------------
55041 revision 1.26
55042 date: 1994/09/11 22:44:59;  author: mike;  state: Exp;
55043 quick on vecmat function.
55044 ----------------------------
55045 revision 1.25
55046 date: 1994/08/26 15:36:00;  author: matt;  state: Exp;
55047 Made eclips usable on more than one object at a time
55048 ----------------------------
55049 revision 1.24
55050 date: 1994/07/25 00:02:46;  author: matt;  state: Exp;
55051 Various changes to accomodate new 3d, which no longer takes point numbers
55052 as parms, and now only takes pointers to points.
55053 ----------------------------
55054 revision 1.23
55055 date: 1994/07/12 12:39:58;  author: matt;  state: Exp;
55056 Revamped physics system
55057 ----------------------------
55058 revision 1.22
55059 date: 1994/06/28 11:54:51;  author: john;  state: Exp;
55060 Made newdemo system record/play directly to/from disk, so
55061 we don't need the 4 MB buffer anymore.
55062 ----------------------------
55063 revision 1.21
55064 date: 1994/06/27 15:53:01;  author: john;  state: Exp;
55065 #define'd out the newdemo stuff
55066 ----------------------------
55067 revision 1.20
55068 date: 1994/06/16 14:30:19;  author: matt;  state: Exp;
55069 Moved morph record data call to reder routine
55070 ----------------------------
55071 revision 1.19
55072 date: 1994/06/16 13:57:23;  author: matt;  state: Exp;
55073 Added support for morphing objects in demos
55074 ----------------------------
55075 revision 1.18
55076 date: 1994/06/16 12:24:23;  author: matt;  state: Exp;
55077 Made robot lighting not mess with Lighting_on so robots now night
55078 according to this variable.
55079 ----------------------------
55080 revision 1.17
55081 date: 1994/06/14 16:55:01;  author: matt;  state: Exp;
55082 Got rid of physics_object speed field
55083 ----------------------------
55084 revision 1.16
55085 date: 1994/06/08 21:16:29;  author: matt;  state: Exp;
55086 Made objects spin while morphing
55087 ----------------------------
55088 revision 1.15
55089 date: 1994/06/08 18:21:53;  author: matt;  state: Exp;
55090 Made morphing objects light correctly
55091 ----------------------------
55092 revision 1.14
55093 date: 1994/06/07 16:50:49;  author: matt;  state: Exp;
55094 Made object lighting work correctly; changed name of Ambient_light to
55095 Dynamic_light; cleaned up polygobj object rendering a little.
55096 ----------------------------
55097 revision 1.13
55098 date: 1994/06/01 16:33:59;  author: yuan;  state: Exp;
55099 Fixed bug.
55100 ----------------------------
55101 revision 1.12
55102 date: 1994/06/01 16:29:08;  author: matt;  state: Exp;
55103 If morph_frame called on object this isn't the morph object, kill it.
55104 ----------------------------
55105 revision 1.11
55106 date: 1994/06/01 12:46:34;  author: matt;  state: Exp;
55107 Added needed include
55108 ----------------------------
55109 revision 1.10
55110 date: 1994/05/31 22:12:41;  author: matt;  state: Exp;
55111 Set lighting for morph objects
55112 Don't let another object start morph while one is morphing, unless
55113 that one dies.
55114 ----------------------------
55115 revision 1.9
55116 date: 1994/05/31 18:49:53;  author: john;  state: Exp;
55117 Took out debugging printf's that Matt left in.
55118 ----------------------------
55119 revision 1.8
55120 date: 1994/05/30 22:50:22;  author: matt;  state: Exp;
55121 Added morph effect for robots
55122 =============================================================================
55123 RCS file: f:/miner/source/main/morph.h,v
55124 Working file: main/morph.h
55125 head: 2.0
55126 branch:
55127 description: Header for morph.c
55128 ----------------------------
55129 revision 2.0
55130 date: 1995/02/27 11:32:19;  author: john;  state: Exp;
55131 New version 2.0, which has no anonymous unions, builds with
55132 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55133 ----------------------------
55134 revision 1.9
55135 date: 1995/01/04 12:20:46;  author: john;  state: Exp;
55136 Declearations to work better with game state save.
55137 ----------------------------
55138 revision 1.8
55139 date: 1995/01/03 20:38:44;  author: john;  state: Exp;
55140 Externed MAX_MORPH_OBJECTS
55141 ----------------------------
55142 revision 1.7
55143 date: 1994/09/26 17:28:33;  author: matt;  state: Exp;
55144 Made new multiple-object morph code work with the demo system
55145 ----------------------------
55146 revision 1.6
55147 date: 1994/09/26 15:40:17;  author: matt;  state: Exp;
55148 Allow multiple simultaneous morphing objects
55149 ----------------------------
55150 revision 1.5
55151 date: 1994/06/28 11:55:19;  author: john;  state: Exp;
55152 Made newdemo system record/play directly to/from disk, so
55153 we don't need the 4 MB buffer anymore.
55154 ----------------------------
55155 revision 1.4
55156 date: 1994/06/16 13:57:40;  author: matt;  state: Exp;
55157 Added support for morphing objects in demos
55158 ----------------------------
55159 revision 1.3
55160 date: 1994/06/08 18:22:03;  author: matt;  state: Exp;
55161 Made morphing objects light correctly
55162 ----------------------------
55163 revision 1.2
55164 date: 1994/05/30 22:50:25;  author: matt;  state: Exp;
55165 Added morph effect for robots
55166 ----------------------------
55167 revision 1.1
55168 date: 1994/05/30 12:04:19;  author: matt;  state: Exp;
55169 Initial revision
55170 =============================================================================
55171 RCS file: f:/miner/source/main/multi.c,v
55172 Working file: main/multi.c
55173 head: 2.10
55174 branch:
55175 description: Multiplayer code shared by serial and network play.
55176 =============================================================================
55177 RCS file: f:/miner/source/main/multi.h,v
55178 Working file: main/multi.h
55179 head: 2.3
55180 branch:
55181 description: Defines and exported variables for multi.c
55182 ----------------------------
55183 revision 2.3
55184 date: 1995/04/03 08:49:50;  author: john;  state: Exp;
55185 Added code to get someone's player struct.
55186 ----------------------------
55187 revision 2.2
55188 date: 1995/03/27 12:59:17;  author: john;  state: Exp;
55189 Initial version of multiplayer save games.
55190 ----------------------------
55191 revision 2.1
55192 date: 1995/03/21 14:39:06;  author: john;  state: Exp;
55193 Ifdef'd out the NETWORK code.
55194 ----------------------------
55195 revision 2.0
55196 date: 1995/02/27 11:28:34;  author: john;  state: Exp;
55197 New version 2.0, which has no anonymous unions, builds with
55198 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55199 ----------------------------
55200 revision 1.74
55201 date: 1995/02/11 11:36:42;  author: rob;  state: Exp;
55202 Added new var.
55203 ----------------------------
55204 revision 1.73
55205 date: 1995/02/08 18:17:41;  author: rob;  state: Exp;
55206 Added prototype for reset function.
55207 ----------------------------
55208 revision 1.72
55209 date: 1995/02/05 14:37:42;  author: rob;  state: Exp;
55210 Made object mapping more efficient.
55211 ----------------------------
55212 revision 1.71
55213 date: 1995/02/01 18:07:36;  author: rob;  state: Exp;
55214 Change object mapping to int functions.
55215 ----------------------------
55216 revision 1.70
55217 date: 1995/02/01 12:55:00;  author: rob;  state: Exp;
55218 Changed message type.
55219 ----------------------------
55220 revision 1.69
55221 date: 1995/01/31 12:46:12;  author: rob;  state: Exp;
55222 Fixed a bug with object overflow handling.
55223 ----------------------------
55224 revision 1.68
55225 date: 1995/01/27 11:15:13;  author: rob;  state: Exp;
55226 removed extern of variable no longer in multi.c
55227 ----------------------------
55228 revision 1.67
55229 date: 1995/01/24 11:53:13;  author: john;  state: Exp;
55230 Added better macro defining code.
55231 ----------------------------
55232 revision 1.66
55233 date: 1995/01/24 11:32:03;  author: john;  state: Exp;
55234 Added new defining macro method.
55235 ----------------------------
55236 revision 1.65
55237 date: 1995/01/23 17:17:06;  author: john;  state: Exp;
55238 Added multi_sending_message.
55239 ----------------------------
55240 revision 1.64
55241 date: 1995/01/23 16:02:42;  author: rob;  state: Exp;
55242 Added prototype for mission select function.
55243 ----------------------------
55244 revision 1.63
55245 date: 1995/01/18 19:01:21;  author: rob;  state: Exp;
55246 Added new message for hostage door sync.
55247 ----------------------------
55248 revision 1.62
55249 date: 1995/01/14 18:39:57;  author: rob;  state: Exp;
55250 Added new message type for dropping robot powerups.
55251 ----------------------------
55252 revision 1.61
55253 date: 1995/01/12 21:41:13;  author: rob;  state: Exp;
55254 Fixed incompat. with 1.0 and 1.1.
55255 ----------------------------
55256 revision 1.60
55257 date: 1995/01/04 21:40:55;  author: rob;  state: Exp;
55258 Added new type for boss actions in coop.
55259 ----------------------------
55260 revision 1.59
55261 date: 1995/01/04 11:38:09;  author: rob;  state: Exp;
55262 Fixed problem with lost character in messages.
55263 ----------------------------
55264 revision 1.58
55265 date: 1995/01/03 20:12:44;  author: rob;  state: Exp;
55266 Made max message length in shareware = 40.
55267 ----------------------------
55268 revision 1.57
55269 date: 1995/01/03 14:27:25;  author: rob;  state: Exp;
55270 ADded trigger messages.
55271 ----------------------------
55272 revision 1.56
55273 date: 1995/01/02 20:08:21;  author: rob;  state: Exp;
55274 Added robot creation.
55275 ----------------------------
55276 revision 1.55
55277 date: 1995/01/02 14:41:30;  author: rob;  state: Exp;
55278 Added score syncing.
55279 ----------------------------
55280 revision 1.54
55281 date: 1994/12/21 21:02:01;  author: rob;  state: Exp;
55282 Added new message type for ROBOT_FIRE
55283 ----------------------------
55284 revision 1.53
55285 date: 1994/12/21 17:27:25;  author: rob;  state: Exp;
55286 Changed the format for send_create_powerup messages.
55287 ----------------------------
55288 revision 1.52
55289 date: 1994/12/20 20:41:39;  author: rob;  state: Exp;
55290 ADded robot release message type.
55291 ----------------------------
55292 revision 1.51
55293 date: 1994/12/19 19:00:12;  author: rob;  state: Exp;
55294 Changed buf to multibuf so it can be safely externed.
55295 ----------------------------
55296 revision 1.50
55297 date: 1994/12/19 16:41:14;  author: rob;  state: Exp;
55298 Added new message types for robot support.
55299 Added prototype for external use of multi_send_data (from multibot.c)
55300 ----------------------------
55301 revision 1.49
55302 date: 1994/12/11 13:30:13;  author: rob;  state: Exp;
55303 Added new variables to get players out of nested menus.
55304 ----------------------------
55305 revision 1.48
55306 date: 1994/12/11 01:58:57;  author: rob;  state: Exp;
55307 Added variable to track menu deth..
55308 ----------------------------
55309 revision 1.47
55310 date: 1994/12/08 12:41:17;  author: rob;  state: Exp;
55311 Added audio taunts.
55312 ----------------------------
55313 revision 1.46
55314 date: 1994/12/07 21:53:12;  author: rob;  state: Exp;
55315 Fixing sequencing bugginess in modem/serial.
55316 ----------------------------
55317 revision 1.45
55318 date: 1994/12/07 16:46:58;  author: rob;  state: Exp;
55319 Added prototype.
55320 ----------------------------
55321 revision 1.44
55322 date: 1994/12/01 12:22:31;  author: rob;  state: Exp;
55323 Added de-cloak message for demo.
55324 ----------------------------
55325 revision 1.43
55326 date: 1994/12/01 00:54:14;  author: rob;  state: Exp;
55327 Added variable for tracking homing missiles.
55328 ----------------------------
55329 revision 1.42
55330 date: 1994/11/30 16:04:39;  author: rob;  state: Exp;
55331 Added show reticle name variable for team games.
55332 ----------------------------
55333 revision 1.41
55334 date: 1994/11/29 19:33:38;  author: rob;  state: Exp;
55335 Team support.
55336 ----------------------------
55337 revision 1.40
55338 date: 1994/11/29 12:49:37;  author: rob;  state: Exp;
55339 Added more team support stuff.
55340 ----------------------------
55341 revision 1.39
55342 date: 1994/11/28 21:20:49;  author: rob;  state: Exp;
55343 Cleaned up the .h file, removed an unused function.
55344 ----------------------------
55345 revision 1.38
55346 date: 1994/11/28 21:04:50;  author: rob;  state: Exp;
55347 Added support for network sound-casting.
55348 ----------------------------
55349 revision 1.37
55350 date: 1994/11/28 14:02:08;  author: rob;  state: Exp;
55351 Added protocol versioning for registered versus shareware.
55352 ----------------------------
55353 revision 1.36
55354 date: 1994/11/28 13:30:04;  author: rob;  state: Exp;
55355 Added a define for protocol version.
55356 ----------------------------
55357 revision 1.35
55358 date: 1994/11/22 19:19:48;  author: rob;  state: Exp;
55359 remove unused function.
55360 ----------------------------
55361 revision 1.34
55362 date: 1994/11/22 18:47:34;  author: rob;  state: Exp;
55363 Added hooks for modem support for secret levels.
55364 ----------------------------
55365 revision 1.33
55366 date: 1994/11/22 17:10:50;  author: rob;  state: Exp;
55367 Fix for secret levels in network play mode.
55368 ----------------------------
55369 revision 1.32
55370 date: 1994/11/21 16:00:28;  author: rob;  state: Exp;
55371 Added secret-level hooks.
55372 ----------------------------
55373 revision 1.31
55374 date: 1994/11/18 18:28:50;  author: rob;  state: Exp;
55375 Added new function for multiplayer score screen.
55376 ----------------------------
55377 revision 1.30
55378 date: 1994/11/18 16:31:05;  author: rob;  state: Exp;
55379 Added kill list timer variable.
55380 ----------------------------
55381 revision 1.29
55382 date: 1994/11/17 16:38:15;  author: rob;  state: Exp;
55383 Added creation of net powerups.
55384 ----------------------------
55385 revision 1.28
55386 date: 1994/11/17 13:37:33;  author: rob;  state: Exp;
55387 Added prototype for multi_new_game.
55388 ----------------------------
55389 revision 1.27
55390 date: 1994/11/17 12:58:45;  author: rob;  state: Exp;
55391 Added kill matrix.
55392 ----------------------------
55393 revision 1.26
55394 date: 1994/11/16 20:35:24;  author: rob;  state: Exp;
55395 Changed explosion hook.
55396 ----------------------------
55397 revision 1.25
55398 date: 1994/11/15 21:31:13;  author: rob;  state: Exp;
55399 Bumped max message size, was giving modem.c fits.
55400 ----------------------------
55401 revision 1.24
55402 date: 1994/11/15 19:28:37;  author: matt;  state: Exp;
55403 Added prototypes
55404 ----------------------------
55405 revision 1.23
55406 date: 1994/11/14 17:22:19;  author: rob;  state: Exp;
55407 Added extern for message macros.
55408 ----------------------------
55409 revision 1.22
55410 date: 1994/11/11 18:16:44;  author: rob;  state: Exp;
55411 Made multi_menu_poll return a value to exit menus.
55412 ----------------------------
55413 revision 1.21
55414 date: 1994/11/11 11:06:19;  author: rob;  state: Exp;
55415 Added prototype for multi_menu_poll.
55416 ----------------------------
55417 revision 1.20
55418 date: 1994/11/10 21:48:41;  author: rob;  state: Exp;
55419 Changed multi_endlevel to return an int.
55420 ----------------------------
55421 revision 1.19
55422 date: 1994/11/08 17:48:14;  author: rob;  state: Exp;
55423 Fixing endlevel stuff.
55424 ----------------------------
55425 revision 1.18
55426 date: 1994/11/07 17:49:07;  author: rob;  state: Exp;
55427 Changed prototype for object mapping funcs.
55428 ----------------------------
55429 revision 1.17
55430 date: 1994/11/07 15:46:32;  author: rob;  state: Exp;
55431 Changed the way remote object number mapping works, and it was a real
55432 pain in the ass..  I think it will work more reliably now.
55433 ----------------------------
55434 revision 1.16
55435 date: 1994/11/04 19:53:01;  author: rob;  state: Exp;
55436 Added a new message type for Player_leave 'explosions'.
55437 Added a prototype for function moved over from network.c
55438 ----------------------------
55439 revision 1.15
55440 date: 1994/11/02 18:02:33;  author: rob;  state: Exp;
55441 Added message type for control center firing.
55442 ----------------------------
55443 revision 1.14
55444 date: 1994/11/02 11:38:00;  author: rob;  state: Exp;
55445 Added player-in-process-of-dying explosions to network game.
55446 ----------------------------
55447 revision 1.13
55448 date: 1994/11/01 19:31:44;  author: rob;  state: Exp;
55449 Bumped max_net_create_objects to 20 to accomodate a fully equipped
55450 character blowing up.
55451 ----------------------------
55452 revision 1.12
55453 date: 1994/10/31 13:48:02;  author: rob;  state: Exp;
55454 Fixed bug in opening doors over network/modem.  Added a new message
55455 type to multi.c that communicates door openings across the net. 
55456 Changed includes in multi.c and wall.c to accomplish this.
55457 ----------------------------
55458 revision 1.11
55459 date: 1994/10/09 20:08:20;  author: rob;  state: Exp;
55460 Added some exported func prototypes.
55461 Changed max net message length to 25 (from 30).
55462 Removed some message types no longer used.
55463 ----------------------------
55464 revision 1.10
55465 date: 1994/10/08 20:06:10;  author: rob;  state: Exp;
55466 fixed a typo.
55467 ----------------------------
55468 revision 1.9
55469 date: 1994/10/08 19:59:43;  author: rob;  state: Exp;
55470 Moved MAX_MESSAGE_LEN to here.
55471 ----------------------------
55472 revision 1.8
55473 date: 1994/10/07 23:09:54;  author: rob;  state: Exp;
55474 Fixed some prototypes.
55475 ----------------------------
55476 revision 1.7
55477 date: 1994/10/07 18:11:19;  author: rob;  state: Exp;
55478 Added multi_do_death to multi.c.
55479 ----------------------------
55480 revision 1.6
55481 date: 1994/10/07 16:14:32;  author: rob;  state: Exp;
55482 Added new message type for player reappear
55483 ----------------------------
55484 revision 1.5
55485 date: 1994/10/07 12:58:17;  author: rob;  state: Exp;
55486 Added multi_leave_game.
55487 ----------------------------
55488 revision 1.4
55489 date: 1994/10/07 12:17:17;  author: rob;  state: Exp;
55490 Fixed some stuff in multi_do_frame and exported the message_length
55491 array.
55492 ----------------------------
55493 revision 1.3
55494 date: 1994/10/07 11:10:17;  author: john;  state: Exp;
55495 Added function to parse multiple messages into individual
55496 messages.
55497 ----------------------------
55498 revision 1.2
55499 date: 1994/10/07 10:28:06;  author: rob;  state: Exp;
55500 Headers and stuff for multi.c (obviously)
55501 ----------------------------
55502 revision 1.1
55503 date: 1994/10/06 16:07:39;  author: rob;  state: Exp;
55504 Initial revision
55505 =============================================================================
55506 RCS file: f:/miner/source/main/multibot.c,v
55507 Working file: main/multibot.c
55508 head: 2.2
55509 branch:
55510 description: Multiplayer robot code
55511 =============================================================================
55512 RCS file: f:/miner/source/main/multibot.h,v
55513 Working file: main/multibot.h
55514 head: 2.1
55515 branch:
55516 description: Header file for multiplayer robot support.
55517 ----------------------------
55518 revision 2.1
55519 date: 1995/03/21 14:40:18;  author: john;  state: Exp;
55520 Ifdef'd out the NETWORK code.
55521 ----------------------------
55522 revision 2.0
55523 date: 1995/02/27 11:30:57;  author: john;  state: Exp;
55524 New version 2.0, which has no anonymous unions, builds with
55525 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55526 ----------------------------
55527 revision 1.20
55528 date: 1995/02/06 18:18:05;  author: rob;  state: Exp;
55529 Tweaking cooperative stuff.
55530 ----------------------------
55531 revision 1.19
55532 date: 1995/02/04 16:49:50;  author: rob;  state: Exp;
55533 Changed multi_send_robot_frame to return the number of robot positions that were sent.
55534 ----------------------------
55535 revision 1.18
55536 date: 1995/02/04 12:29:32;  author: rob;  state: Exp;
55537 Added buffered fire sends.
55538 ----------------------------
55539 revision 1.17
55540 date: 1995/01/30 17:22:02;  author: rob;  state: Exp;
55541 Added prototype for modem robot send function.
55542 ----------------------------
55543 revision 1.16
55544 date: 1995/01/26 18:24:56;  author: rob;  state: Exp;
55545 Reduced # of controlled bots.
55546 ----------------------------
55547 revision 1.15
55548 date: 1995/01/25 19:26:35;  author: rob;  state: Exp;
55549 Added define for robot laser agitation.
55550 ----------------------------
55551 revision 1.14
55552 date: 1995/01/25 13:45:26;  author: rob;  state: Exp;
55553 Added prototype of robot transfer fucm.
55554 ----------------------------
55555 revision 1.13
55556 date: 1995/01/14 19:01:08;  author: rob;  state: Exp;
55557 Added prototypes for new functionality.
55558 ----------------------------
55559 revision 1.12
55560 date: 1995/01/12 16:41:53;  author: rob;  state: Exp;
55561 Added new prototypes.
55562 ----------------------------
55563 revision 1.11
55564 date: 1995/01/12 15:42:55;  author: rob;  state: Exp;
55565 Fixing score awards for coop.
55566 ----------------------------
55567 revision 1.10
55568 date: 1995/01/02 21:00:40;  author: rob;  state: Exp;
55569 added robot matcen support.
55570 ----------------------------
55571 revision 1.9
55572 date: 1994/12/31 21:03:53;  author: rob;  state: Exp;
55573 More tweaking for robot behavior.
55574 ----------------------------
55575 revision 1.8
55576 date: 1994/12/29 13:54:25;  author: rob;  state: Exp;
55577 Ooops.. fixed a bug..
55578 ----------------------------
55579 revision 1.7
55580 date: 1994/12/29 12:51:38;  author: rob;  state: Exp;
55581 ADded proto for multi_robot_explode_sub
55582 ----------------------------
55583 revision 1.6
55584 date: 1994/12/21 21:08:32;  author: rob;  state: Exp;
55585 Added new functions for robot firing.
55586 ----------------------------
55587 revision 1.5
55588 date: 1994/12/21 19:04:02;  author: rob;  state: Exp;
55589 Fixing score accounting for multi robot games.
55590 ----------------------------
55591 revision 1.4
55592 date: 1994/12/21 17:36:09;  author: rob;  state: Exp;
55593 Added a new func.
55594 ----------------------------
55595 revision 1.3
55596 date: 1994/12/21 11:12:02;  author: rob;  state: Exp;
55597 Added new function and new vars.
55598 ----------------------------
55599 revision 1.2
55600 date: 1994/12/19 16:41:42;  author: rob;  state: Exp;
55601 first revision.
55602 ----------------------------
55603 revision 1.1
55604 date: 1994/12/16 15:48:20;  author: rob;  state: Exp;
55605 Initial revision
55606 =============================================================================
55607 RCS file: f:/miner/source/main/netmisc.c,v
55608 Working file: main/netmisc.c
55609 head: 2.0
55610 branch:
55611 description: Misc routines for network.
55612 ----------------------------
55613 revision 2.0
55614 date: 1995/02/27 11:27:24;  author: john;  state: Exp;
55615 New version 2.0, which has no anonymous unions, builds with
55616 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55617 ----------------------------
55618 revision 1.3
55619 date: 1994/11/19 15:19:34;  author: mike;  state: Exp;
55620 rip out unused code and data.
55621 ----------------------------
55622 revision 1.2
55623 date: 1994/08/09 19:31:53;  author: john;  state: Exp;
55624 Networking changes.
55625 ----------------------------
55626 revision 1.1
55627 date: 1994/08/08 11:06:07;  author: john;  state: Exp;
55628 Initial revision
55629 =============================================================================
55630 RCS file: f:/miner/source/main/netmisc.h,v
55631 Working file: main/netmisc.h
55632 head: 2.0
55633 branch:
55634 description: .
55635 ----------------------------
55636 revision 2.0
55637 date: 1995/02/27 11:30:18;  author: john;  state: Exp;
55638 New version 2.0, which has no anonymous unions, builds with
55639 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55640 ----------------------------
55641 revision 1.2
55642 date: 1994/08/09 19:31:54;  author: john;  state: Exp;
55643 Networking changes.
55644 ----------------------------
55645 revision 1.1
55646 date: 1994/08/08 11:18:40;  author: john;  state: Exp;
55647 Initial revision
55648 =============================================================================
55649 RCS file: f:/miner/source/main/netseq.c,v
55650 Working file: main/netseq.c
55651 head: 2.0
55652 branch:
55653 description: Routines for getting a network game started.
55654 ----------------------------
55655 revision 2.0
55656 date: 1995/02/27 11:32:54;  author: john;  state: Exp;
55657 New version 2.0, which has no anonymous unions, builds with
55658 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55659 ----------------------------
55660 revision 1.1
55661 date: 1994/10/06 16:07:45;  author: john;  state: Exp;
55662 Initial revision
55663 =============================================================================
55664 RCS file: f:/miner/source/main/netseq.h,v
55665 Working file: main/netseq.h
55666 head: 2.0
55667 branch:
55668 description: Prototypes for functions that get a net game started.
55669 ----------------------------
55670 revision 2.0
55671 date: 1995/02/27 11:30:31;  author: john;  state: Exp;
55672 New version 2.0, which has no anonymous unions, builds with
55673 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55674 ----------------------------
55675 revision 1.1
55676 date: 1994/10/06 16:08:05;  author: john;  state: Exp;
55677 Initial revision
55678 =============================================================================
55679 RCS file: f:/miner/source/main/netware.c,v
55680 Working file: main/netware.c
55681 head: 2.0
55682 branch:
55683 description: Code to get the user's login name from netware
55684 ----------------------------
55685 revision 2.0
55686 date: 1995/02/27 11:32:29;  author: john;  state: Exp;
55687 New version 2.0, which has no anonymous unions, builds with
55688 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55689 ----------------------------
55690 revision 1.2
55691 date: 1994/07/23 23:53:56;  author: matt;  state: Exp;
55692 Code to get the user's name, not usable until we find a way to check
55693 that the user is attached and logged into a Novell network.
55694 ----------------------------
55695 revision 1.1
55696 date: 1994/07/23 19:35:16;  author: matt;  state: Exp;
55697 Initial revision
55698 =============================================================================
55699 RCS file: f:/miner/source/main/network.c,v
55700 Working file: main/network.c
55701 head: 2.11
55702 branch:
55703 description: Routines for managing network play.
55704 =============================================================================
55705 RCS file: f:/miner/source/main/network.h,v
55706 Working file: main/network.h
55707 head: 2.2
55708 branch:
55709 description: Prototypes for network management functions.
55710 ----------------------------
55711 revision 2.2
55712 date: 1995/03/21 14:58:09;  author: john;  state: Exp;
55713 *** empty log message ***
55714 ----------------------------
55715 revision 2.1
55716 date: 1995/03/21 14:39:43;  author: john;  state: Exp;
55717 Ifdef'd out the NETWORK code.
55718 ----------------------------
55719 revision 2.0
55720 date: 1995/02/27 11:29:48;  author: john;  state: Exp;
55721 New version 2.0, which has no anonymous unions, builds with
55722 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
55723 ----------------------------
55724 revision 1.72
55725 date: 1995/02/11 14:24:39;  author: rob;  state: Exp;
55726 Added suppor for invul. cntrlcen.
55727 ----------------------------
55728 revision 1.71
55729 date: 1995/02/08 19:18:43;  author: rob;  state: Exp;
55730 Added extern for segments checksum.
55731 ----------------------------
55732 revision 1.70
55733 date: 1995/02/08 11:01:16;  author: rob;  state: Exp;
55734 Fixed a bug.
55735 ----------------------------
55736 revision 1.69
55737 date: 1995/02/07 21:16:49;  author: rob;  state: Exp;
55738 Added flag for automap.
55739 ----------------------------
55740 revision 1.68
55741 date: 1995/02/06 18:18:33;  author: rob;  state: Exp;
55742 Extern'ed Packet Urgent.
55743 ----------------------------
55744 revision 1.67
55745 date: 1995/02/05 14:36:29;  author: rob;  state: Exp;
55746 Moved defines to network.h.
55747 ----------------------------
55748 revision 1.66
55749 date: 1995/02/01 16:34:09;  author: john;  state: Exp;
55750 Linted.
55751 ----------------------------
55752 revision 1.65
55753 date: 1995/01/30 21:14:35;  author: rob;  state: Exp;
55754 Fixed a bug in join menu.
55755 Simplified mission load support.
55756 ----------------------------
55757 revision 1.64
55758 date: 1995/01/30 18:19:40;  author: rob;  state: Exp;
55759 Added mission title to gameinfo packet.
55760 ----------------------------
55761 revision 1.63
55762 date: 1995/01/28 17:02:39;  author: rob;  state: Exp;
55763 Fixed monitor syncing bug (minor 19).
55764 ----------------------------
55765 revision 1.62
55766 date: 1995/01/27 11:15:25;  author: rob;  state: Exp;
55767 removed extern of variable no longer in network.c
55768 ----------------------------
55769 revision 1.61
55770 date: 1995/01/26 12:17:34;  author: rob;  state: Exp;
55771 Added new param to network_do_frame.
55772 ----------------------------
55773 revision 1.60
55774 date: 1995/01/22 17:32:11;  author: rob;  state: Exp;
55775 Added mission support for network games.
55776 ----------------------------
55777 revision 1.59
55778 date: 1995/01/17 17:10:33;  author: rob;  state: Exp;
55779 Added some flags to netgame struct.
55780 ----------------------------
55781 revision 1.58
55782 date: 1995/01/12 18:57:15;  author: rob;  state: Exp;
55783 Added score resync stuff.
55784 ----------------------------
55785 revision 1.57
55786 date: 1995/01/12 16:42:18;  author: rob;  state: Exp;
55787 Added new prototypes.
55788 ----------------------------
55789 revision 1.56
55790 date: 1995/01/05 12:12:10;  author: rob;  state: Exp;
55791 Fixed a problem with packet size.
55792 ----------------------------
55793 revision 1.55
55794 date: 1995/01/05 11:12:36;  author: rob;  state: Exp;
55795 Reduced packet size by 1 byte just to be safe.
55796 ----------------------------
55797 revision 1.54
55798 date: 1995/01/04 21:39:32;  author: rob;  state: Exp;
55799 New framedata packet for registered.
55800 ----------------------------
55801 revision 1.53
55802 date: 1995/01/04 08:47:04;  author: rob;  state: Exp;
55803 JOHN CHECKED IN FOR ROB !!!
55804 ----------------------------
55805 revision 1.52
55806 date: 1994/12/30 20:09:07;  author: rob;  state: Exp;
55807 ADded a toggle for showing player names on HUD.
55808 ----------------------------
55809 revision 1.51
55810 date: 1994/12/29 15:59:52;  author: rob;  state: Exp;
55811 Centralized network disconnects.
55812 ----------------------------
55813 revision 1.50
55814 date: 1994/12/09 21:21:57;  author: rob;  state: Exp;
55815 rolled back changes.
55816 ----------------------------
55817 revision 1.48
55818 date: 1994/12/05 22:59:27;  author: rob;  state: Exp;
55819 added prototype for send_endlevel_packet.
55820 ----------------------------
55821 revision 1.47
55822 date: 1994/12/05 21:47:34;  author: rob;  state: Exp;
55823 Added a new field to netgame struct.
55824 ----------------------------
55825 revision 1.46
55826 date: 1994/12/05 14:39:16;  author: rob;  state: Exp;
55827 Added new variable to indicate new net game starting.
55828 ----------------------------
55829 revision 1.45
55830 date: 1994/12/04 15:37:18;  author: rob;  state: Exp;
55831 Fixed a typo.
55832 ----------------------------
55833 revision 1.44
55834 date: 1994/12/04 15:30:42;  author: rob;  state: Exp;
55835 Added new fields to netgame struct.
55836 ----------------------------
55837 revision 1.43
55838 date: 1994/12/03 18:03:19;  author: rob;  state: Exp;
55839 ADded team kill syncing.
55840 ----------------------------
55841 revision 1.42
55842 date: 1994/12/01 21:21:27;  author: rob;  state: Exp;
55843 Added new system for object sync on rejoin.
55844 ----------------------------
55845 revision 1.41
55846 date: 1994/11/29 13:07:33;  author: rob;  state: Exp;
55847 Changed structure defs to .h files.
55848 ----------------------------
55849 revision 1.40
55850 date: 1994/11/22 17:10:48;  author: rob;  state: Exp;
55851 Fix for secret levels in network play mode.
55852 ----------------------------
55853 revision 1.39
55854 date: 1994/11/18 16:36:31;  author: rob;  state: Exp;
55855 Added variable network_rejoined to enable random placement
55856 of rejoining palyers.
55857 ----------------------------
55858 revision 1.38
55859 date: 1994/11/12 19:51:13;  author: rob;  state: Exp;
55860 Changed prototype for network_send_data to pass
55861 urgent flag.
55862 ----------------------------
55863 revision 1.37
55864 date: 1994/11/10 21:48:26;  author: rob;  state: Exp;
55865 Changed net_endlevel to return an int.
55866 ----------------------------
55867 revision 1.36
55868 date: 1994/11/10 20:32:49;  author: rob;  state: Exp;
55869 Added extern for LastPacketTime.
55870 ----------------------------
55871 revision 1.35
55872 date: 1994/11/09 11:36:34;  author: rob;  state: Exp;
55873 ADded return value to network_level_sync for success/fail.
55874 ----------------------------
55875 revision 1.34
55876 date: 1994/11/08 21:22:31;  author: rob;  state: Exp;
55877 Added proto for network_endlevel_snyc
55878 ----------------------------
55879 revision 1.33
55880 date: 1994/11/08 15:20:00;  author: rob;  state: Exp;
55881 added proto for change_playernum_to
55882 ----------------------------
55883 revision 1.32
55884 date: 1994/11/07 17:45:40;  author: rob;  state: Exp;
55885 Added prototype for network_endlevel (called from multi.c)
55886 ----------------------------
55887 revision 1.31
55888 date: 1994/11/04 19:52:37;  author: rob;  state: Exp;
55889 Removed a function from network.h (network_show_player_list)
55890 ----------------------------
55891 revision 1.30
55892 date: 1994/11/01 19:39:26;  author: rob;  state: Exp;
55893 Removed a couple of variables that should be externed from multi.c
55894 (remnants of the changover)
55895 ----------------------------
55896 revision 1.29
55897 date: 1994/10/31 19:18:24;  author: rob;  state: Exp;
55898 Changed prototype for network_do_frame to add a parameter if you wish
55899 to force the frame to be sent.  Important if this is a leave_game frame.
55900 ----------------------------
55901 revision 1.28
55902 date: 1994/10/08 19:59:20;  author: rob;  state: Exp;
55903 Removed network message variables.
55904 ----------------------------
55905 revision 1.27
55906 date: 1994/10/08 11:08:38;  author: john;  state: Exp;
55907 Moved network_delete_unused objects into multi.c,
55908 took out network callsign stuff and used Matt's net
55909 players[.].callsign stuff.
55910 ----------------------------
55911 revision 1.26
55912 date: 1994/10/07 11:26:20;  author: rob;  state: Exp;
55913 Changed network_start_frame to network_do_frame,.
55914 ----------------------------
55915 revision 1.25
55916 date: 1994/10/05 13:58:10;  author: rob;  state: Exp;
55917 Added a new function net_endlevel that is called after each level is 
55918 completed.  Currently it only does anything if SERIAL game is in effect.
55919 ----------------------------
55920 revision 1.24
55921 date: 1994/10/04 19:34:57;  author: rob;  state: Exp;
55922 export network_find_max_net_players.
55923 ----------------------------
55924 revision 1.23
55925 date: 1994/10/04 17:31:10;  author: rob;  state: Exp;
55926 Exported MaxNumNetPlayers.
55927 ----------------------------
55928 revision 1.22
55929 date: 1994/10/03 22:57:30;  author: matt;  state: Exp;
55930 Took out redundant definition of callsign_len
55931 ----------------------------
55932 revision 1.21
55933 date: 1994/10/03 15:12:48;  author: rob;  state: Exp;
55934 Boosted MAX_CREATE_OBJECTS to 15.
55935 ----------------------------
55936 revision 1.20
55937 date: 1994/09/30 18:19:51;  author: rob;  state: Exp;
55938 Added two new variables for tracking object creation.
55939 ----------------------------
55940 revision 1.19
55941 date: 1994/09/27 15:03:18;  author: rob;  state: Exp;
55942 Added prototype for network_delete_extra_objects used by modem.c
55943 ----------------------------
55944 revision 1.18
55945 date: 1994/09/27 14:36:45;  author: rob;  state: Exp;
55946 Added two new varaibles for network/serial weapon firing.
55947 ----------------------------
55948 revision 1.17
55949 date: 1994/09/07 17:10:57;  author: john;  state: Exp;
55950 Started adding code to sync powerups.
55951 ----------------------------
55952 revision 1.16
55953 date: 1994/09/06 19:29:05;  author: john;  state: Exp;
55954 Added trial version of rejoin function.
55955 ----------------------------
55956 revision 1.15
55957 date: 1994/08/26 13:01:54;  author: john;  state: Exp;
55958 Put high score system in.
55959 ----------------------------
55960 revision 1.14
55961 date: 1994/08/25 18:12:04;  author: matt;  state: Exp;
55962 Made player's weapons and flares fire from the positions on the 3d model.
55963 Also added support for quad lasers.
55964 ----------------------------
55965 revision 1.13
55966 date: 1994/08/17 16:50:00;  author: john;  state: Exp;
55967 Added damaging fireballs, missiles.
55968 ----------------------------
55969 revision 1.12
55970 date: 1994/08/16 12:25:22;  author: john;  state: Exp;
55971 Added hooks for sending messages.
55972 ----------------------------
55973 revision 1.11
55974 date: 1994/08/13 12:20:18;  author: john;  state: Exp;
55975 Made the networking uise the Players array.
55976 ----------------------------
55977 revision 1.10
55978 date: 1994/08/12 22:41:27;  author: john;  state: Exp;
55979 Took away Player_stats; add Players array.
55980 ----------------------------
55981 revision 1.9
55982 date: 1994/08/12 03:10:22;  author: john;  state: Exp;
55983 Made network be default off; Moved network options into
55984 main menu.  Made starting net game check that mines are the
55985 same.
55986 ----------------------------
55987 revision 1.8
55988 date: 1994/08/11 21:57:08;  author: john;  state: Exp;
55989 Moved network options to main menu.
55990 ----------------------------
55991 revision 1.7
55992 date: 1994/08/10 11:29:20;  author: john;  state: Exp;
55993 *** empty log message ***
55994 ----------------------------
55995 revision 1.6
55996 date: 1994/08/10 10:44:12;  author: john;  state: Exp;
55997 Made net players fire..
55998 ----------------------------
55999 revision 1.5
56000 date: 1994/08/09 19:31:46;  author: john;  state: Exp;
56001 Networking changes.
56002 ----------------------------
56003 revision 1.4
56004 date: 1994/08/05 16:30:26;  author: john;  state: Exp;
56005 Added capability to turn off network.
56006 ----------------------------
56007 revision 1.3
56008 date: 1994/08/05 16:11:43;  author: john;  state: Exp;
56009 Psuedo working version of networking.
56010 ----------------------------
56011 revision 1.2
56012 date: 1994/07/25 12:33:34;  author: john;  state: Exp;
56013 Network "pinging" in.
56014 ----------------------------
56015 revision 1.1
56016 date: 1994/07/20 16:09:05;  author: john;  state: Exp;
56017 Initial revision
56018 =============================================================================
56019 RCS file: f:/miner/source/main/newdemo.c,v
56020 Working file: main/newdemo.c
56021 head: 2.7
56022 branch:
56023 description: Code to make a complete demo playback system.
56024 ----------------------------
56025 revision 2.7
56026 date: 1995/05/26 16:16:06;  author: john;  state: Exp;
56027 Split SATURN into define's for requiring cd, using cd, etc.
56028 Also started adding all the Rockwell stuff.
56029 ----------------------------
56030 revision 2.6
56031 date: 1995/03/21 14:39:38;  author: john;  state: Exp;
56032 Ifdef'd out the NETWORK code.
56033 ----------------------------
56034 revision 2.5
56035 date: 1995/03/14 18:24:31;  author: john;  state: Exp;
56036 Force Destination Saturn to use CD-ROM drive.
56037 ----------------------------
56038 revision 2.4
56039 date: 1995/03/14 16:22:29;  author: john;  state: Exp;
56040 Added cdrom alternate directory stuff.
56041 ----------------------------
56042 revision 2.3
56043 date: 1995/03/10 12:58:33;  author: allender;  state: Exp;
56044 only display rear view cockpit when cockpit mode was CM_FULL_COCKPIT.
56045 ----------------------------
56046 revision 2.2
56047 date: 1995/03/08 16:12:15;  author: allender;  state: Exp;
56048 changes for Destination Saturn
56049 ----------------------------
56050 revision 2.1
56051 date: 1995/03/08 12:11:26;  author: allender;  state: Exp;
56052 fix shortpos reading
56053 ----------------------------
56054 revision 2.0
56055 date: 1995/02/27 11:29:40;  author: john;  state: Exp;
56056 New version 2.0, which has no anonymous unions, builds with
56057 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
56058 ----------------------------
56059 revision 1.189
56060 date: 1995/02/22 14:53:42;  author: allender;  state: Exp;
56061 missed some anonymous stuff
56062 ----------------------------
56063 revision 1.188
56064 date: 1995/02/22 13:24:53;  author: john;  state: Exp;
56065 Removed the vecmat anonymous unions.
56066 ----------------------------
56067 revision 1.187
56068 date: 1995/02/22 13:13:54;  author: allender;  state: Exp;
56069 remove anonymous unions from object structure
56070 ----------------------------
56071 revision 1.186
56072 date: 1995/02/14 15:36:41;  author: allender;  state: Exp;
56073 fix fix for morph effect
56074 ----------------------------
56075 revision 1.185
56076 date: 1995/02/14 11:25:48;  author: allender;  state: Exp;
56077 save cockpit mode and restore after playback.  get orientation for morph
56078 effect when object is morph vclip
56079 ----------------------------
56080 revision 1.184
56081 date: 1995/02/13 12:18:14;  author: allender;  state: Exp;
56082 change to decide about interpolating or not
56083 ----------------------------
56084 revision 1.183
56085 date: 1995/02/12 00:46:23;  author: adam;  state: Exp;
56086 don't decide to skip frames until after at least 10 frames have
56087 passed -- allender
56088 ----------------------------
56089 revision 1.182
56090 date: 1995/02/11 22:34:01;  author: john;  state: Exp;
56091 Made textures page in for newdemos before playback time.
56092 ----------------------------
56093 revision 1.181
56094 date: 1995/02/11 17:28:32;  author: allender;  state: Exp;
56095 strip frames from end of demo
56096 ----------------------------
56097 revision 1.180
56098 date: 1995/02/11 16:40:35;  author: allender;  state: Exp;
56099 start of frame stripping debug code
56100 ----------------------------
56101 revision 1.179
56102 date: 1995/02/10 17:40:06;  author: allender;  state: Exp;
56103 put back in wall_hit_process code to fix door problem
56104 ----------------------------
56105 revision 1.178
56106 date: 1995/02/10 17:17:24;  author: adam;  state: Exp;
56107 allender } fix
56108 ----------------------------
56109 revision 1.177
56110 date: 1995/02/10 17:16:24;  author: allender;  state: Exp;
56111 fix possible tmap problems
56112 ----------------------------
56113 revision 1.176
56114 date: 1995/02/10 15:54:37;  author: allender;  state: Exp;
56115 changes for out of space on device.
56116 ----------------------------
56117 revision 1.175
56118 date: 1995/02/09 19:55:00;  author: allender;  state: Exp;
56119 fix bug with morph recording -- force rendertype to RT_POLYOBJ when
56120 playing back since it won't render until fully morphed otherwise
56121 ----------------------------
56122 revision 1.174
56123 date: 1995/02/07 17:15:35;  author: allender;  state: Exp;
56124 DOH!!!!!
56125 ----------------------------
56126 revision 1.173
56127 date: 1995/02/07 17:14:21;  author: allender;  state: Exp;
56128 immediately return when loading bogus level stuff when reading a frame
56129 ----------------------------
56130 revision 1.172
56131 date: 1995/02/02 11:15:03;  author: allender;  state: Exp;
56132 after loading new level, read next frame (forward or back) always because
56133 of co-op ships showing up when level is loaded
56134 ----------------------------
56135 revision 1.171
56136 date: 1995/02/02 10:24:16;  author: allender;  state: Exp;
56137 removed cfile stuff.  Use standard FILE functions for demo playback
56138 ----------------------------
56139 revision 1.170
56140 date: 1995/01/30 13:54:32;  author: allender;  state: Exp;
56141 support for missions
56142 ----------------------------
56143 revision 1.169
56144 date: 1995/01/27 16:27:35;  author: allender;  state: Exp;
56145 put game mode to demo_game_mode when sorting multiplayer kill (and score)
56146 list
56147 ----------------------------
56148 revision 1.168
56149 date: 1995/01/27 09:52:25;  author: allender;  state: Exp;
56150 minor changes because of object/segment linking problems
56151 ----------------------------
56152 revision 1.167
56153 date: 1995/01/27 09:22:28;  author: allender;  state: Exp;
56154 changed way multi-player score is recorded.  Record difference, not
56155 actual
56156 ----------------------------
56157 revision 1.166
56158 date: 1995/01/25 14:32:44;  author: allender;  state: Exp;
56159 changed with recorded player flags.  More checks for paused state
56160 during interpolation reading of objects
56161 ----------------------------
56162 revision 1.165
56163 date: 1995/01/25 11:23:32;  author: allender;  state: Exp;
56164 found bug with out of disk space problem
56165 ----------------------------
56166 revision 1.164
56167 date: 1995/01/25 11:11:33;  author: allender;  state: Exp;
56168 coupla' things.  Fix problem with objects apparently being linked in
56169 the wrong segment.  Put an Int3 in to check why demos will write to
56170 end of space on drive. close demo file if demo doens't start playing
56171 back.  Put obj->type == OBJ_ROBOT around checking for boss cloaking
56172 ----------------------------
56173 revision 1.163
56174 date: 1995/01/24 19:44:30;  author: allender;  state: Exp;
56175 fix obscure problem with rewinding and having the wrong object linked
56176 to the wrong segments.  will investigate further.
56177 ----------------------------
56178 revision 1.162
56179 date: 1995/01/23 09:31:28;  author: allender;  state: Exp;
56180 add team score in team mode playback
56181 ----------------------------
56182 revision 1.161
56183 date: 1995/01/20 22:47:39;  author: matt;  state: Exp;
56184 Mission system implemented, though imcompletely
56185 ----------------------------
56186 revision 1.160
56187 date: 1995/01/20 09:30:37;  author: allender;  state: Exp;
56188 don't call LoadLevel with bogus data
56189 ----------------------------
56190 revision 1.159
56191 date: 1995/01/20 09:13:23;  author: allender;  state: Exp;
56192 *&^%&*%$ typo
56193 ----------------------------
56194 revision 1.158
56195 date: 1995/01/20 09:12:04;  author: allender;  state: Exp;
56196 record team names during demo recoring in GM_TEAM
56197 ----------------------------
56198 revision 1.157
56199 date: 1995/01/19 16:31:09;  author: allender;  state: Exp;
56200 forgot to bump demo version for new weapon change stuff
56201 ----------------------------
56202 revision 1.156
56203 date: 1995/01/19 16:29:33;  author: allender;  state: Exp;
56204 added new byte for weapon change (old weapon) so rewinding works
56205 correctly for weapon changes in registered
56206 ----------------------------
56207 revision 1.155
56208 date: 1995/01/19 15:00:05;  author: allender;  state: Exp;
56209 remove code to take away blastable walls in multiplayer demo playbacks
56210 ----------------------------
56211 revision 1.154
56212 date: 1995/01/19 11:07:05;  author: allender;  state: Exp;
56213 put in psuedo cloaking for boss robots.  Problem is that cloaking is
56214 time based, and that don't get done in demos, so bosses just disappear.
56215 oh well
56216 ----------------------------
56217 revision 1.153
56218 date: 1995/01/19 09:42:29;  author: allender;  state: Exp;
56219 record laser levels in demos
56220 ----------------------------
56221 revision 1.152
56222 date: 1995/01/18 20:43:12;  author: allender;  state: Exp;
56223 fix laser level stuff on goto-beginning and goto-end
56224 ----------------------------
56225 revision 1.151
56226 date: 1995/01/18 20:28:18;  author: allender;  state: Exp;
56227 cloak robots now cloak (except maybe for boss........)  Put in function
56228 to deal with control center triggers
56229 ----------------------------
56230 revision 1.150
56231 date: 1995/01/18 18:55:07;  author: allender;  state: Exp;
56232 bug fix
56233 ----------------------------
56234 revision 1.149
56235 date: 1995/01/18 18:49:03;  author: allender;  state: Exp;
56236 lots 'o stuff....record laser level.  Record beginning of door opening
56237 sequence.  Fix some problems with control center stuff.  Control center
56238 triggers now work in reverse
56239 ----------------------------
56240 revision 1.148
56241 date: 1995/01/18 08:51:40;  author: allender;  state: Exp;
56242 forgot to record ammo counts at beginning of demo
56243 ----------------------------
56244 revision 1.147
56245 date: 1995/01/17 17:42:07;  author: allender;  state: Exp;
56246 added primary and secondary ammo counts.  Changed goto_end routine
56247 to be more efficient
56248 ----------------------------
56249 revision 1.146
56250 date: 1995/01/17 13:46:35;  author: allender;  state: Exp;
56251 fix problem with destroyed control center and rewinding a demo.
56252 Save callsign and restore after demo playback
56253 ----------------------------
56254 revision 1.145
56255 date: 1995/01/12 10:21:53;  author: allender;  state: Exp;
56256 fixes for 1.0 to 1.1 demo incompatibility
56257 ----------------------------
56258 revision 1.144
56259 date: 1995/01/05 13:51:43;  author: allender;  state: Exp;
56260 fixed type of player num variable
56261 ----------------------------
56262 revision 1.143
56263 date: 1995/01/04 16:58:28;  author: allender;  state: Exp;
56264 bumped up demo version number
56265 ----------------------------
56266 revision 1.142
56267 date: 1995/01/04 14:59:02;  author: allender;  state: Exp;
56268 added more information to end of demo for registered.  Forced game mode
56269 to be GM_NORMAL on demo playback
56270 ----------------------------
56271 revision 1.141
56272 date: 1995/01/03 17:30:47;  author: allender;  state: Exp;
56273 fixed logic problem with cloak stuf
56274 ----------------------------
56275 revision 1.140
56276 date: 1995/01/03 17:12:23;  author: allender;  state: Exp;
56277 fix for getting cloak stuff at end of demo for shareware
56278 ----------------------------
56279 revision 1.139
56280 date: 1995/01/03 15:20:24;  author: allender;  state: Exp;
56281 fix goto_end for shareware -- changes to goto_end for registered
56282 ----------------------------
56283 revision 1.138
56284 date: 1995/01/03 13:13:26;  author: allender;  state: Exp;
56285 add } I forgot
56286 ----------------------------
56287 revision 1.137
56288 date: 1995/01/03 13:10:29;  author: allender;  state: Exp;
56289 make score work forwards and backwards
56290 ----------------------------
56291 revision 1.136
56292 date: 1995/01/03 11:45:20;  author: allender;  state: Exp;
56293 added code to record players scores
56294 ----------------------------
56295 revision 1.135
56296 date: 1994/12/30 10:03:57;  author: allender;  state: Exp;
56297 put cloak stuff at end of demo for fast forward to the end
56298 ----------------------------
56299 revision 1.134
56300 date: 1994/12/29 17:02:55;  author: allender;  state: Exp;
56301 spelling fix on SHAREWARE
56302 ----------------------------
56303 revision 1.133
56304 date: 1994/12/29 16:43:41;  author: allender;  state: Exp;
56305 lots of new multiplayer stuff.  wrapped much code with SHAREWARE defines
56306 ----------------------------
56307 revision 1.132
56308 date: 1994/12/28 14:15:01;  author: allender;  state: Exp;
56309 added routines to deal with connecting and reconnecting players when
56310 recording multiplayer demos
56311 ----------------------------
56312 revision 1.131
56313 date: 1994/12/21 12:57:59;  author: allender;  state: Exp;
56314 bug fix
56315 ----------------------------
56316 revision 1.130
56317 date: 1994/12/21 12:46:53;  author: allender;  state: Exp;
56318 record multi player deaths and kills
56319 ----------------------------
56320 revision 1.129
56321 date: 1994/12/19 16:37:27;  author: allender;  state: Exp;
56322 pick good filename when trying to save in network play and player
56323 gets bumped out of menu by multi-player code
56324 ----------------------------
56325 revision 1.128
56326 date: 1994/12/14 10:49:01;  author: allender;  state: Exp;
56327 reset bad_read variable when starting demo playback
56328 ----------------------------
56329 revision 1.127
56330 date: 1994/12/14 08:53:06;  author: allender;  state: Exp;
56331 lowered watermark for out of space
56332 ----------------------------
56333 revision 1.126
56334 date: 1994/12/14 08:49:52;  author: allender;  state: Exp;
56335 put up warning when starting demo recording if not enough space and
56336 not let them record
56337 ----------------------------
56338 revision 1.125
56339 date: 1994/12/13 00:01:37;  author: allender;  state: Exp;
56340 CLOAK FIX -- (I'm tempted to take cloak out of game because I can't
56341 seem to get it right in demo playback)
56342 ----------------------------
56343 revision 1.124
56344 date: 1994/12/12 14:51:21;  author: allender;  state: Exp;
56345 more fixed to multiplayer cloak stuff
56346 ----------------------------
56347 revision 1.123
56348 date: 1994/12/12 11:33:11;  author: allender;  state: Exp;
56349 fixed rearview mode to work again
56350 ----------------------------
56351 revision 1.122
56352 date: 1994/12/12 11:00:16;  author: matt;  state: Exp;
56353 Added code to handle confusion with attached objects
56354 ----------------------------
56355 revision 1.121
56356 date: 1994/12/12 00:31:29;  author: allender;  state: Exp;
56357 give better warning when out of space when recording.  Don't record
56358 until no space left.  We have 500K watermark when we now stop recording
56359 ----------------------------
56360 revision 1.120
56361 date: 1994/12/10 16:44:54;  author: matt;  state: Exp;
56362 Added debugging code to track down door that turns into rock
56363 ----------------------------
56364 revision 1.119
56365 date: 1994/12/09 18:46:15;  author: matt;  state: Exp;
56366 Added code to handle odd error condition
56367 ----------------------------
56368 revision 1.118
56369 date: 1994/12/09 17:27:37;  author: allender;  state: Exp;
56370 force playernum to 0 when demo is done playing
56371 ----------------------------
56372 revision 1.117
56373 date: 1994/12/09 16:40:39;  author: allender;  state: Exp;
56374 yet more cloak stuff.  Assign cloak/invuln time when starting demo
56375 if flags are set.  Check cloak and invuln time when demo
56376 even when paused
56377 ----------------------------
56378 revision 1.116
56379 date: 1994/12/09 14:59:22;  author: matt;  state: Exp;
56380 Added system to attach a fireball to another object for rendering purposes,
56381 so the fireball always renders on top of (after) the object.
56382 ----------------------------
56383 revision 1.115
56384 date: 1994/12/09 12:21:45;  author: allender;  state: Exp;
56385 only allow valid chars when typing in demo filename
56386 ----------------------------
56387 revision 1.114
56388 date: 1994/12/08 23:19:02;  author: allender;  state: Exp;
56389 final(?) fix for getting cloak gauge to work on demo playback
56390 with forward and reverse
56391 ----------------------------
56392 revision 1.113
56393 date: 1994/12/08 21:34:38;  author: allender;  state: Exp;
56394 record old and new player flags to accuratedly record cloaking and
56395 decloaking
56396 ./
56397 ----------------------------
56398 revision 1.112
56399 date: 1994/12/08 18:04:47;  author: allender;  state: Exp;
56400 bashed playernum right after reading it in demo header so shields
56401 and energy are put in right place
56402 ----------------------------
56403 revision 1.111
56404 date: 1994/12/08 17:10:07;  author: allender;  state: Exp;
56405 encode playernum in demo header.  Bash viewer segment to 0 if in
56406 bogus segnum.  Don't link render objs for same reason
56407 ----------------------------
56408 revision 1.110
56409 date: 1994/12/08 15:36:12;  author: allender;  state: Exp;
56410 cloak stuff works forwards and backwards
56411 ----------------------------
56412 revision 1.109
56413 date: 1994/12/08 13:46:03;  author: allender;  state: Exp;
56414 don't record rearview anymore, but leave in case statement for playback
56415 purposes.  change the way letterbox <--> cockpit transitions happen
56416 ----------------------------
56417 revision 1.108
56418 date: 1994/12/08 12:36:06;  author: matt;  state: Exp;
56419 Added new object allocation & deallocation functions so other code
56420 could stop messing around with internal object data structures.
56421 ----------------------------
56422 revision 1.107
56423 date: 1994/12/08 11:19:04;  author: allender;  state: Exp;
56424 handle out of space (more) gracefully then before
56425 ----------------------------
56426 revision 1.106
56427 date: 1994/12/08 00:29:49;  author: allender;  state: Exp;
56428 fixed bug that didn't load level on goto_beginning
56429 ----------------------------
56430 revision 1.105
56431 date: 1994/12/08 00:11:51;  author: mike;  state: Exp;
56432 change matrix interpolation.
56433 ----------------------------
56434 revision 1.104
56435 date: 1994/12/07 23:46:37;  author: allender;  state: Exp;
56436 changed invulnerability and cloak to work (almost) correctly both
56437 in single and multi player
56438 ----------------------------
56439 revision 1.103
56440 date: 1994/12/07 11:48:49;  author: adam;  state: Exp;
56441 BY ALLENDER -- added dampening of interpolation factor to 1 if greater
56442 than 1 (although I have not seen this happen).  this is attempt to
56443 get wobbling problem solved
56444 ----------------------------
56445 revision 1.102
56446 date: 1994/12/07 11:23:56;  author: allender;  state: Exp;
56447 attempt at getting rid of wobbling on demo playback
56448 ----------------------------
56449 revision 1.101
56450 date: 1994/12/06 19:31:17;  author: allender;  state: Exp;
56451 moved blastable wall stuff code to where we load level during demo
56452 playback
56453 ----------------------------
56454 revision 1.100
56455 date: 1994/12/06 19:21:51;  author: allender;  state: Exp;
56456 multi games, destroy blastable walls.  Do wall toggle when control center
56457 destroyed
56458 ----------------------------
56459 revision 1.99
56460 date: 1994/12/06 16:54:48;  author: allender;  state: Exp;
56461 fixed code so if demo automatically started from menu, don't bring up
56462 message if demo is too old
56463 ----------------------------
56464 revision 1.98
56465 date: 1994/12/06 13:55:15;  author: matt;  state: Exp;
56466 Use new rounding func, f2ir()
56467 ----------------------------
56468 revision 1.97
56469 date: 1994/12/06 13:44:45;  author: allender;  state: Exp;
56470 suppressed compiler warnings
56471 ----------------------------
56472 revision 1.96
56473 date: 1994/12/06 13:38:03;  author: allender;  state: Exp;
56474 removed recording of wall hit process.  I think that all bases are covered
56475 elsewhere
56476 ----------------------------
56477 revision 1.95
56478 date: 1994/12/06 12:57:35;  author: allender;  state: Exp;
56479 added recording of multi_decloaking.  Fixed some other cloaking code so
56480 that cloak should last as long as player was cloaked.  We will lose the
56481 guage effect, but the time is probably more important on playback
56482 ----------------------------
56483 revision 1.94
56484 date: 1994/12/05 23:37:17;  author: matt;  state: Exp;
56485 Took out calls to warning() function
56486 ----------------------------
56487 revision 1.93
56488 date: 1994/12/03 17:52:04;  author: yuan;  state: Exp;
56489 Localization 380ish
56490 ----------------------------
56491 revision 1.92
56492 date: 1994/12/02 12:53:39;  author: allender;  state: Exp;
56493 fixed goto_beginning and goto_end on demo playback
56494 ----------------------------
56495 revision 1.91
56496 date: 1994/12/01 12:01:49;  author: allender;  state: Exp;
56497 added multi player cloak stuff
56498 ----------------------------
56499 revision 1.90
56500 date: 1994/11/30 09:33:58;  author: allender;  state: Exp;
56501 added field in header to tell what version (shareware or registered)
56502 demo was recorded with.  Don't allow demo recorded on one to playback
56503 on the other
56504 ----------------------------
56505 revision 1.89
56506 date: 1994/11/29 00:31:01;  author: allender;  state: Exp;
56507 major changes -- added level recording feature which records level
56508 advancement.  Changes to internal code to handle this.
56509 ----------------------------
56510 revision 1.88
56511 date: 1994/11/27 23:13:54;  author: matt;  state: Exp;
56512 Made changes for new mprintf calling convention
56513 ----------------------------
56514 revision 1.87
56515 date: 1994/11/27 23:07:35;  author: allender;  state: Exp;
56516 starting on code to get all level transitions recorded. not done yet
56517 ----------------------------
56518 revision 1.86
56519 date: 1994/11/27 17:39:47;  author: matt;  state: Exp;
56520 Don't xlate tmap numbers when editor compiled out
56521 ----------------------------
56522 revision 1.85
56523 date: 1994/11/23 09:27:21;  author: allender;  state: Exp;
56524 put up info box with message if demo version is too old or level
56525 cannot be loaded
56526 ----------------------------
56527 revision 1.84
56528 date: 1994/11/22 19:37:39;  author: allender;  state: Exp;
56529 fix array mistake
56530 ----------------------------
56531 revision 1.83
56532 date: 1994/11/22 19:35:09;  author: allender;  state: Exp;
56533 record player ship colors in multiplayer demo recordings
56534 ----------------------------
56535 revision 1.82
56536 date: 1994/11/19 15:36:42;  author: mike;  state: Exp;
56537 fix fix.
56538 ----------------------------
56539 revision 1.81
56540 date: 1994/11/19 15:23:21;  author: mike;  state: Exp;
56541 rip out unused code
56542 ----------------------------
56543 revision 1.80
56544 date: 1994/11/16 14:51:49;  author: rob;  state: Exp;
56545 Fixed network/demo incompatibility.
56546 ----------------------------
56547 revision 1.79
56548 date: 1994/11/15 10:55:48;  author: allender;  state: Exp;
56549 made start of demo playback read initial demo information so
56550 level will get loaded.  Made demo record to single file which
56551 will get renamed.  Added numerics after old filename so
56552 sequential filenames would be defaulted to
56553 ----------------------------
56554 revision 1.78
56555 date: 1994/11/15 09:46:06;  author: allender;  state: Exp;
56556 added versioning.  Fixed problems with trying to interpolating a completely
56557 0 orientation matrix
56558 ----------------------------
56559 revision 1.77
56560 date: 1994/11/14 14:34:31;  author: matt;  state: Exp;
56561 Fixed up handling when textures can't be found during remap
56562 ----------------------------
56563 revision 1.76
56564 date: 1994/11/14 09:15:29;  author: allender;  state: Exp;
56565 make ESC from file save menu exit w/o saving.  Fix letterbox, rear view,
56566 to normal cockpit mode transition to work correctly when skipping and
56567 interpolating frames
56568 ----------------------------
56569 revision 1.75
56570 date: 1994/11/11 16:22:07;  author: allender;  state: Exp;
56571 made morphing objects record only the object being morphed.
56572 ----------------------------
56573 revision 1.74
56574 date: 1994/11/08 14:59:19;  author: john;  state: Exp;
56575 Added code to respond to network while in menus.
56576 ----------------------------
56577 revision 1.73
56578 date: 1994/11/08 14:52:20;  author: adam;  state: Exp;
56579 *** empty log message ***
56580 ----------------------------
56581 revision 1.72
56582 date: 1994/11/07 15:47:04;  author: allender;  state: Exp;
56583 prompt for filename when done recording demo
56584 ----------------------------
56585 revision 1.71
56586 date: 1994/11/07 11:47:19;  author: allender;  state: Exp;
56587 when interpolating frames, delete weapon, fireball, and debris objects
56588 from an inpolated frame if they don't appear in the next recorded
56589 frame
56590 ----------------------------
56591 revision 1.70
56592 date: 1994/11/07 11:02:41;  author: allender;  state: Exp;
56593 more with interpolation. I believe that I have it right now
56594 ----------------------------
56595 revision 1.69
56596 date: 1994/11/07 08:47:40;  author: john;  state: Exp;
56597 Made wall state record.
56598 ----------------------------
56599 revision 1.68
56600 date: 1994/11/05 17:22:51;  author: john;  state: Exp;
56601 Fixed lots of sequencing problems with newdemo stuff.
56602 ----------------------------
56603 revision 1.67
56604 date: 1994/11/04 20:11:52;  author: john;  state: Exp;
56605 Neatening up palette stuff with demos.
56606 ----------------------------
56607 revision 1.66
56608 date: 1994/11/04 16:49:44;  author: allender;  state: Exp;
56609 changed newdemo_do_interpolate to default to on
56610 ----------------------------
56611 revision 1.65
56612 date: 1994/11/04 16:44:51;  author: allender;  state: Exp;
56613 added filename support for demo recording.  more auto demo stuff
56614 ----------------------------
56615 revision 1.64
56616 date: 1994/11/04 13:05:31;  author: allender;  state: Exp;
56617 fixing the lifeleft variable again.  (I think I got it right this time)
56618 ----------------------------
56619 revision 1.63
56620 date: 1994/11/04 11:37:37;  author: allender;  state: Exp;
56621 commented out fprintfs and fixed compiler warning
56622 ----------------------------
56623 revision 1.62
56624 date: 1994/11/04 11:33:50;  author: allender;  state: Exp;
56625 added OBJ_FLARE and OBJ_LIGHT to obj->lifeleft recording
56626 ----------------------------
56627 revision 1.61
56628 date: 1994/11/04 11:29:21;  author: allender;  state: Exp;
56629 more interpolation stuff -- not done yet.  Fixed so hostage vclips
56630 render correctly.  Changed lifeleft to full precision, but only
56631 write it when object is fireball or weapon type of object
56632 ----------------------------
56633 revision 1.60
56634 date: 1994/11/03 10:00:11;  author: allender;  state: Exp;
56635 fixed divide by zero in calculating render time.  more interpolation
56636 stuff which isn't quite done
56637 ----------------------------
56638 revision 1.59
56639 date: 1994/11/02 17:10:59;  author: allender;  state: Exp;
56640 never play recorded frames when interpolation is occuring
56641 ----------------------------
56642 revision 1.58
56643 date: 1994/11/02 14:28:58;  author: allender;  state: Exp;
56644 profile total playback time and average frame render time
56645 ----------------------------
56646 revision 1.57
56647 date: 1994/11/02 14:09:03;  author: allender;  state: Exp;
56648 record rear view.  start of playback interpolation code -- this
56649 is not yet done
56650 ----------------------------
56651 revision 1.56
56652 date: 1994/11/01 13:25:30;  author: allender;  state: Exp;
56653 drop frames if playing back demo on slower machine
56654 ----------------------------
56655 revision 1.55
56656 date: 1994/10/31 16:10:40;  author: allender;  state: Exp;
56657 record letterbox mode on death seq, and then restore
56658 ----------------------------
56659 revision 1.54
56660 date: 1994/10/29 16:01:38;  author: allender;  state: Exp;
56661 added ND_STATE_NODEMOS to indicate that there are no demos currently
56662 available for playback
56663 ----------------------------
56664 revision 1.53
56665 date: 1994/10/29 15:38:42;  author: allender;  state: Exp;
56666 in newdemo_start_playback, make Newdemo_at_eof = 0
56667 ----------------------------
56668 revision 1.52
56669 date: 1994/10/28 14:45:28;  author: john;  state: Exp;
56670 fixed typo from last checkin.
56671 ----------------------------
56672 revision 1.51
56673 date: 1994/10/28 14:42:55;  author: john;  state: Exp;
56674 Added sound volumes to all sound calls.
56675 ----------------------------
56676 revision 1.50
56677 date: 1994/10/28 14:31:57;  author: allender;  state: Exp;
56678 homing missle and autodemo stuff
56679 ----------------------------
56680 revision 1.49
56681 date: 1994/10/28 12:42:14;  author: allender;  state: Exp;
56682 record homing distance
56683 ----------------------------
56684 revision 1.48
56685 date: 1994/10/27 16:57:54;  author: allender;  state: Exp;
56686 changed demo vcr to be able to play any number of frames by storing
56687 frame length (in bytes) in the demo file.  Added blowing up monitors
56688 ----------------------------
56689 revision 1.47
56690 date: 1994/10/26 16:50:50;  author: allender;  state: Exp;
56691 put two functions inside of VCR_MODE ifdef
56692 ----------------------------
56693 revision 1.46
56694 date: 1994/10/26 15:20:32;  author: allender;  state: Exp;
56695 added CT_REMOTE as valid control type for recording
56696 ----------------------------
56697 revision 1.45
56698 date: 1994/10/26 14:45:35;  author: allender;  state: Exp;
56699 completed hacked in vcr demo playback stuff
56700 ----------------------------
56701 revision 1.44
56702 date: 1994/10/26 13:40:52;  author: allender;  state: Exp;
56703 vcr playback of demo stuff
56704 ----------------------------
56705 revision 1.43
56706 date: 1994/10/26 08:51:57;  author: allender;  state: Exp;
56707 record player weapon change
56708 ----------------------------
56709 revision 1.42
56710 date: 1994/10/25 15:48:01;  author: allender;  state: Exp;
56711 add shields, energy, and player flags to demo recording.
56712 ,
56713 ----------------------------
56714 revision 1.41
56715 date: 1994/10/24 08:19:35;  author: allender;  state: Exp;
56716 fixed compilation errors
56717 ----------------------------
56718 revision 1.40
56719 date: 1994/10/23 19:17:08;  author: matt;  state: Exp;
56720 Fixed bug with "no key" messages
56721 ----------------------------
56722 revision 1.39
56723 date: 1994/10/22 14:15:08;  author: mike;  state: Exp;
56724 Suppress compiler warnings.
56725 ----------------------------
56726 revision 1.38
56727 date: 1994/10/21 15:24:55;  author: allender;  state: Exp;
56728 compressed writing of object structures with specialized code
56729 to write out only pertinent object structures.
56730 ----------------------------
56731 revision 1.37
56732 date: 1994/10/20 13:03:17;  author: matt;  state: Exp;
56733 Replaced old save files (MIN/SAV/HOT) with new LVL files
56734 ----------------------------
56735 revision 1.36
56736 date: 1994/09/28 23:13:10;  author: matt;  state: Exp;
56737 Macroized palette flash system
56738 ----------------------------
56739 revision 1.35
56740 date: 1994/09/26 17:28:32;  author: matt;  state: Exp;
56741 Made new multiple-object morph code work with the demo system
56742 ----------------------------
56743 revision 1.34
56744 date: 1994/09/10 13:31:54;  author: matt;  state: Exp;
56745 Made exploding walls a type of blastable walls.
56746 Cleaned up blastable walls, making them tmap2 bitmaps.
56747 ----------------------------
56748 revision 1.33
56749 date: 1994/08/15 18:05:28;  author: john;  state: Exp;
56750 *** empty log message ***
56751 ----------------------------
56752 revision 1.32
56753 date: 1994/08/15 17:56:38;  author: john;  state: Exp;
56754 ,
56755 ----------------------------
56756 revision 1.31
56757 date: 1994/08/10 09:44:54;  author: john;  state: Exp;
56758 *** empty log message ***
56759 ----------------------------
56760 revision 1.30
56761 date: 1994/07/22 12:35:48;  author: matt;  state: Exp;
56762 Cleaned up editor/game interactions some more.
56763 ----------------------------
56764 revision 1.29
56765 date: 1994/07/21 13:06:45;  author: matt;  state: Exp;
56766 Ripped out remants of old demo system, and added demo only system that
56767 disables object movement and game options from menu.
56768 ----------------------------
56769 revision 1.28
56770 date: 1994/07/18 16:22:44;  author: john;  state: Exp;
56771 Made all file read/writes call the same routine.
56772 ----------------------------
56773 revision 1.27
56774 date: 1994/07/14 22:38:27;  author: matt;  state: Exp;
56775 Added exploding doors
56776 ----------------------------
56777 revision 1.26
56778 date: 1994/07/05 12:49:04;  author: john;  state: Exp;
56779 Put functionality of New Hostage spec into code.
56780 ----------------------------
56781 revision 1.25
56782 date: 1994/06/29 11:05:38;  author: john;  state: Exp;
56783 Made demos read in compressed.
56784 ----------------------------
56785 revision 1.24
56786 date: 1994/06/29 09:14:06;  author: john;  state: Exp;
56787 Made files write out uncompressed and read in compressed.
56788 ----------------------------
56789 revision 1.23
56790 date: 1994/06/28 11:55:28;  author: john;  state: Exp;
56791 Made newdemo system record/play directly to/from disk, so
56792 we don't need the 4 MB buffer anymore.
56793 ----------------------------
56794 revision 1.22
56795 date: 1994/06/27 15:52:38;  author: john;  state: Exp;
56796 #define'd out the newdemo stuff
56797 ----------------------------
56798 revision 1.21
56799 date: 1994/06/22 00:29:04;  author: john;  state: Exp;
56800 Fixed bug with playing demo then playing game without
56801 loading new mine.
56802 ----------------------------
56803 revision 1.20
56804 date: 1994/06/22 00:14:23;  author: john;  state: Exp;
56805 Attempted to fix sign.
56806 ----------------------------
56807 revision 1.19
56808 date: 1994/06/21 23:57:54;  author: john;  state: Exp;
56809 Hopefully fixed bug with negative countdowns.
56810 ----------------------------
56811 revision 1.18
56812 date: 1994/06/21 23:47:44;  author: john;  state: Exp;
56813 MAde Malloc always 4*1024*1024.
56814 ----------------------------
56815 revision 1.17
56816 date: 1994/06/21 22:58:47;  author: john;  state: Exp;
56817 Added error if out of memory.
56818 ----------------------------
56819 revision 1.16
56820 date: 1994/06/21 22:15:48;  author: john;  state: Exp;
56821 Added  % done to demo recording.
56822 ----------------------------
56823 revision 1.15
56824 date: 1994/06/21 19:45:55;  author: john;  state: Exp;
56825 Added palette effects to demo recording.
56826 ----------------------------
56827 revision 1.14
56828 date: 1994/06/21 15:08:54;  author: john;  state: Exp;
56829 Made demo record HUD message and cleaned up the HUD code.
56830 ----------------------------
56831 revision 1.13
56832 date: 1994/06/21 14:20:08;  author: john;  state: Exp;
56833 Put in hooks to record HUD messages.
56834 ----------------------------
56835 revision 1.12
56836 date: 1994/06/20 11:50:15;  author: john;  state: Exp;
56837 Made demo record flash effect, and control center triggers.
56838 ----------------------------
56839 revision 1.11
56840 date: 1994/06/17 18:01:33;  author: john;  state: Exp;
56841 A bunch of new stuff by John
56842 ----------------------------
56843 revision 1.10
56844 date: 1994/06/17 12:13:31;  author: john;  state: Exp;
56845 More newdemo stuff; made editor->game transition start in slew mode.
56846 ----------------------------
56847 revision 1.9
56848 date: 1994/06/16 13:14:36;  author: matt;  state: Exp;
56849 Fixed typo
56850 ----------------------------
56851 revision 1.8
56852 date: 1994/06/16 13:02:07;  author: john;  state: Exp;
56853 Added morph hooks.
56854 ----------------------------
56855 revision 1.7
56856 date: 1994/06/15 19:01:33;  author: john;  state: Exp;
56857 Added the capability to make 3d sounds play just once for the
56858 laser hit wall effects.
56859 ----------------------------
56860 revision 1.6
56861 date: 1994/06/15 14:56:59;  author: john;  state: Exp;
56862 Added triggers to demo recording.
56863 ----------------------------
56864 revision 1.5
56865 date: 1994/06/14 20:42:15;  author: john;  state: Exp;
56866 Made robot matztn cntr not work until no robots or player are
56867 in the segment.
56868 ----------------------------
56869 revision 1.4
56870 date: 1994/06/14 14:43:27;  author: john;  state: Exp;
56871 Made doors work with newdemo system.
56872 ----------------------------
56873 revision 1.3
56874 date: 1994/06/14 11:32:29;  author: john;  state: Exp;
56875 Made Newdemo record & restore the current mine.
56876 ----------------------------
56877 revision 1.2
56878 date: 1994/06/13 21:02:43;  author: john;  state: Exp;
56879 Initial version of new demo recording system.
56880 ----------------------------
56881 revision 1.1
56882 date: 1994/06/13 11:09:00;  author: john;  state: Exp;
56883 Initial revision
56884 =============================================================================
56885 RCS file: f:/miner/source/main/nfile.h,v
56886 Working file: main/nfile.h
56887 head: 2.0
56888 branch:
56889 description: Prototypes for nfile.c
56890 ----------------------------
56891 revision 2.0
56892 date: 1995/02/27 11:29:13;  author: john;  state: Exp;
56893 New version 2.0, which has no anonymous unions, builds with
56894 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
56895 ----------------------------
56896 revision 1.2
56897 date: 1994/12/09 19:20:51;  author: john;  state: Exp;
56898 *** empty log message ***
56899 ----------------------------
56900 revision 1.1
56901 date: 1994/12/07 20:54:43;  author: john;  state: Exp;
56902 Initial revision
56903 =============================================================================
56904 RCS file: f:/miner/source/main/object.h,v
56905 Working file: main/object.h
56906 head: 1.75
56907 branch:
56908 description: object system definitions
56909 ----------------------------
56910 revision 1.75
56911 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
56912 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
56913 ----------------------------
56914 revision 1.74
56915 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
56916 Added support for spinning objects
56917 ----------------------------
56918 revision 1.73
56919 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
56920 Added rotational drag & thrust, so turning now has momemtum like moving
56921 ----------------------------
56922 revision 1.72
56923 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
56924 Objects containing objects.
56925 ----------------------------
56926 revision 1.71
56927 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
56928 Fixed flares, by adding a physics flag that makes them stick to walls.
56929 ----------------------------
56930 revision 1.70
56931 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
56932 Prototype new find_object_seg and update_object_seg.
56933 ----------------------------
56934 revision 1.69
56935 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
56936 New ai_static structure.
56937 ----------------------------
56938 revision 1.68
56939 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
56940 Moved all (or nearly all) of the values that affect player movement to 
56941 bitmaps.tbl
56942 ----------------------------
56943 revision 1.67
56944 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
56945 Revamped physics system
56946 ----------------------------
56947 revision 1.66
56948 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
56949 Added chase mode.
56950 ----------------------------
56951 revision 1.65
56952 date: 1994/06/29 19:43:31;  author: matt;  state: Exp;
56953 Made powerup animation not happen in render routine
56954 ----------------------------
56955 revision 1.64
56956 date: 1994/06/27 18:31:09;  author: mike;  state: Exp;
56957 Add flares.
56958 ----------------------------
56959 revision 1.63
56960 date: 1994/06/14 21:15:21;  author: matt;  state: Exp;
56961 Made rod objects draw lighted or not depending on a parameter, so the
56962 materialization effect no longer darkens.
56963 ----------------------------
56964 revision 1.62
56965 date: 1994/06/14 16:55:00;  author: matt;  state: Exp;
56966 Got rid of physics_object speed field
56967 ----------------------------
56968 revision 1.61
56969 date: 1994/06/09 16:24:58;  author: matt;  state: Exp;
56970 Fixed confusion with two constants, MAX_SUBOBJS & MAX_SUBMODELS, which
56971 were used for the same things, but had different values.
56972 ----------------------------
56973 revision 1.60
56974 date: 1994/06/08 10:56:44;  author: matt;  state: Exp;
56975 Improved debris: now get submodel size from new POF files; debris now has
56976 limited life; debris can now be blown up.
56977 ----------------------------
56978 revision 1.59
56979 date: 1994/06/02 19:30:49;  author: matt;  state: Exp;
56980 Moved texture-mapped rod drawing stuff (used for hostage & now for the
56981 materialization center) to object.c
56982 ----------------------------
56983 revision 1.58
56984 date: 1994/05/30 22:50:20;  author: matt;  state: Exp;
56985 Added morph effect for robots
56986 ----------------------------
56987 revision 1.57
56988 date: 1994/05/30 19:46:47;  author: mike;  state: Exp;
56989 Move MAX_SUBOBJS from here to inferno.h
56990 ----------------------------
56991 revision 1.56
56992 date: 1994/05/30 00:03:19;  author: matt;  state: Exp;
56993 Got rid of robot render type, and generally cleaned up polygon model
56994 render objects.
56995 ----------------------------
56996 revision 1.55
56997 date: 1994/05/26 21:08:44;  author: matt;  state: Exp;
56998 Moved robot stuff out of polygon model and into robot_info struct
56999 Made new file, robot.c, to deal with robots
57000 ----------------------------
57001 revision 1.54
57002 date: 1994/05/20 11:56:59;  author: matt;  state: Exp;
57003 Cleaned up find_vector_intersection() interface
57004 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
57005 ----------------------------
57006 revision 1.53
57007 date: 1994/05/19 18:53:18;  author: yuan;  state: Exp;
57008 Changing player structure...
57009 ----------------------------
57010 revision 1.52
57011 date: 1994/05/17 12:36:16;  author: matt;  state: Exp;
57012 Changed parms to obj_create() and cleaned up object creation code
57013 ----------------------------
57014 revision 1.51
57015 date: 1994/05/17 11:53:45;  author: yuan;  state: Exp;
57016 Adding Player_init, which saves position of player at beginning of level.
57017 ----------------------------
57018 revision 1.50
57019 date: 1994/05/17 10:37:08;  author: matt;  state: Exp;
57020 Added new parm to reset_objects(), made Num_objects not public, added
57021 Highest_object_index().
57022 ----------------------------
57023 revision 1.49
57024 date: 1994/05/16 16:48:14;  author: yuan;  state: Exp;
57025 Added symbolic constant OBJECT_INITIAL_SHIELDS
57026 ----------------------------
57027 revision 1.48
57028 date: 1994/05/16 16:17:47;  author: john;  state: Exp;
57029 Bunch of stuff on my Inferno Task list May16-23
57030 ----------------------------
57031 revision 1.47
57032 date: 1994/05/16 10:12:12;  author: matt;  state: Exp;
57033 Added prototype for init_player_object()
57034 ----------------------------
57035 revision 1.46
57036 date: 1994/05/14 17:15:06;  author: matt;  state: Exp;
57037 Got rid of externs in source (non-header) files
57038 ----------------------------
57039 revision 1.45
57040 date: 1994/05/13 20:27:37;  author: john;  state: Exp;
57041 Version II of John's new object code.
57042 ----------------------------
57043 revision 1.44
57044 date: 1994/05/12 14:44:39;  author: mike;  state: Exp;
57045 Add ai_info to object structure.
57046 ----------------------------
57047 revision 1.43
57048 date: 1994/05/11 23:33:08;  author: mike;  state: Exp;
57049 Make RESULT_KILLS directional with RESULT_KILLS_1_2 and RESULT_KILLS_2_1.
57050 ----------------------------
57051 revision 1.42
57052 date: 1994/05/10 18:02:16;  author: mike;  state: Exp;
57053 Increase MAX_OBJECTS from 100 to 200
57054 ----------------------------
57055 revision 1.41
57056 date: 1994/05/07 16:42:07;  author: matt;  state: Exp;
57057 Changed name of turnbank to turnroll
57058 ----------------------------
57059 revision 1.40
57060 date: 1994/05/06 10:12:39;  author: matt;  state: Exp;
57061 Added new function, obj_create_copy()
57062 ----------------------------
57063 revision 1.39
57064 date: 1994/05/05 20:39:33;  author: matt;  state: Exp;
57065 Made physics code more general-purpose; moved code from object.c to
57066 physics.c; renamed routines; made behavior such as levelling and turn
57067 banking controllable by flags.
57068 ----------------------------
57069 revision 1.38
57070 date: 1994/05/05 16:41:12;  author: matt;  state: Exp;
57071 Cleaned up repair center code, and moved some from object.c to fuelcen.c
57072 ----------------------------
57073 revision 1.37
57074 date: 1994/05/03 19:33:40;  author: matt;  state: Exp;
57075 Cleaned up usage of rotvel field from physics_info structure
57076 ----------------------------
57077 revision 1.36
57078 date: 1994/05/02 18:34:14;  author: matt;  state: Exp;
57079 Changed parms to obj_link(), added a little more error checking, changed
57080 a few fields in object physics_info, and probably a few other little things.
57081 ----------------------------
57082 revision 1.35
57083 date: 1994/05/02 16:30:31;  author: john;  state: Exp;
57084 Added object flag OF_SHOULD_BE_DEAD which fixed the bug
57085 that caused very close robots to die 10 seconds after they
57086 actually got shot.
57087 ----------------------------
57088 revision 1.34
57089 date: 1994/04/29 09:18:08;  author: matt;  state: Exp;
57090 Added support for multiple-piece explosions
57091 ----------------------------
57092 revision 1.33
57093 date: 1994/04/07 16:28:07;  author: yuan;  state: Exp;
57094 Added SUPERPIG the robot with 200 hit points.
57095 Now robots can take multiple hits before blowing up.
57096 ----------------------------
57097 revision 1.32
57098 date: 1994/04/07 13:44:13;  author: yuan;  state: Exp;
57099 Added powerup_info to object structure.
57100 ----------------------------
57101 revision 1.31
57102 date: 1994/04/01 13:34:15;  author: matt;  state: Exp;
57103 Cleaned up explosion and laser code; added mutliple-stage explosions.
57104 ----------------------------
57105 revision 1.30
57106 date: 1994/04/01 11:15:07;  author: yuan;  state: Exp;
57107 Added multiple bitmap functionality to all objects...
57108 (hostages, powerups, lasers, etc.)  
57109 Hostages and powerups are implemented in the object system,
57110 just need to finish function call to "affect" player.
57111 ----------------------------
57112 revision 1.29
57113 date: 1994/03/31 09:07:43;  author: matt;  state: Exp;
57114 Made last_pos a field of all objects, not just lasers
57115 ----------------------------
57116 revision 1.28
57117 date: 1994/03/30 21:14:33;  author: yuan;  state: Exp;
57118 Minor name change for object->damage...
57119 object->lifeleft now.
57120 ----------------------------
57121 revision 1.27
57122 date: 1994/03/28 20:57:36;  author: yuan;  state: Exp;
57123 *** empty log message ***
57124 ----------------------------
57125 revision 1.26
57126 date: 1994/03/25 17:30:13;  author: yuan;  state: Exp;
57127 Checking in hostage stuff... (start of it)
57128 ----------------------------
57129 revision 1.25
57130 date: 1994/03/25 16:54:55;  author: matt;  state: Exp;
57131 polyobj_info field of object structure now has data for object animation
57132 ----------------------------
57133 revision 1.24
57134 date: 1994/02/17 11:32:50;  author: matt;  state: Exp;
57135 Changes in object system
57136 =============================================================================
57137 RCS file: f:/miner/source/main/newdemo.h,v
57138 Working file: main/newdemo.h
57139 head: 2.0
57140 branch:
57141 description: .
57142 ----------------------------
57143 revision 2.0
57144 date: 1995/02/27 11:27:18;  author: john;  state: Exp;
57145 New version 2.0, which has no anonymous unions, builds with
57146 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
57147 ----------------------------
57148 revision 1.43
57149 date: 1995/01/19 09:41:43;  author: allender;  state: Exp;
57150 prototype for laser level recording
57151 ----------------------------
57152 revision 1.42
57153 date: 1995/01/18 18:48:49;  author: allender;  state: Exp;
57154 added function prototype for door_open
57155 ----------------------------
57156 revision 1.41
57157 date: 1995/01/17 17:42:31;  author: allender;  state: Exp;
57158 new prototypes for ammo counts
57159 ----------------------------
57160 revision 1.40
57161 date: 1995/01/04 15:04:27;  author: allender;  state: Exp;
57162 added some different prototypes for registered
57163 ----------------------------
57164 revision 1.39
57165 date: 1995/01/03 11:45:11;  author: allender;  state: Exp;
57166 extern function definition
57167 ----------------------------
57168 revision 1.38
57169 date: 1994/12/29 16:43:31;  author: allender;  state: Exp;
57170 new function prototype
57171 ----------------------------
57172 revision 1.37
57173 date: 1994/12/28 14:15:27;  author: allender;  state: Exp;
57174 new function prototypes
57175 ----------------------------
57176 revision 1.36
57177 date: 1994/12/21 12:46:41;  author: allender;  state: Exp;
57178 new functions for multiplayer deaths and kills
57179 ----------------------------
57180 revision 1.35
57181 date: 1994/12/12 11:32:55;  author: allender;  state: Exp;
57182 added new record function to restore after in rearview mode
57183 ----------------------------
57184 revision 1.34
57185 date: 1994/12/08 21:03:15;  author: allender;  state: Exp;
57186 added new param to record_player_flags
57187 ----------------------------
57188 revision 1.33
57189 date: 1994/12/08 13:47:01;  author: allender;  state: Exp;
57190 removed function call to record_rearview
57191 ----------------------------
57192 revision 1.32
57193 date: 1994/12/06 12:57:10;  author: allender;  state: Exp;
57194 added new prototype for multi decloaking
57195 ----------------------------
57196 revision 1.31
57197 date: 1994/12/01 11:46:34;  author: allender;  state: Exp;
57198 added recording prototype for multi player cloak
57199 ----------------------------
57200 revision 1.30
57201 date: 1994/11/27 23:04:22;  author: allender;  state: Exp;
57202 function prototype for recording new levels
57203 ----------------------------
57204 revision 1.29
57205 date: 1994/11/07 08:47:43;  author: john;  state: Exp;
57206 Made wall state record.
57207 ----------------------------
57208 revision 1.28
57209 date: 1994/11/05 17:22:53;  author: john;  state: Exp;
57210 Fixed lots of sequencing problems with newdemo stuff.
57211 ----------------------------
57212 revision 1.27
57213 date: 1994/11/04 16:48:49;  author: allender;  state: Exp;
57214 extern Newdemo_do_interpolate variable
57215 ----------------------------
57216 revision 1.26
57217 date: 1994/11/02 14:08:53;  author: allender;  state: Exp;
57218 record rearview
57219 ----------------------------
57220 revision 1.25
57221 date: 1994/10/31 13:35:04;  author: allender;  state: Exp;
57222 added two record functions to save and restore cockpit state on
57223 death sequence
57224 ----------------------------
57225 revision 1.24
57226 date: 1994/10/29 16:01:11;  author: allender;  state: Exp;
57227 added ND_STATE_NODEMOS to indicate that there are no demos currently
57228 available for playback
57229 ----------------------------
57230 revision 1.23
57231 date: 1994/10/28 12:41:58;  author: allender;  state: Exp;
57232 add homing distance recording event
57233 ----------------------------
57234 revision 1.22
57235 date: 1994/10/27 16:57:32;  author: allender;  state: Exp;
57236 removed VCR_MODE stuff, and added monitor blowup effects
57237 ----------------------------
57238 revision 1.21
57239 date: 1994/10/26 14:44:48;  author: allender;  state: Exp;
57240 completed hacked in vcr type demo playback states
57241 ----------------------------
57242 revision 1.20
57243 date: 1994/10/26 13:40:38;  author: allender;  state: Exp;
57244 more vcr demo playback defines
57245 ----------------------------
57246 revision 1.19
57247 date: 1994/10/26 08:51:26;  author: allender;  state: Exp;
57248 record player weapon change
57249 ----------------------------
57250 revision 1.18
57251 date: 1994/10/25 16:25:31;  author: allender;  state: Exp;
57252 prototypes for shield, energy and flags
57253 ----------------------------
57254 revision 1.17
57255 date: 1994/08/15 18:05:30;  author: john;  state: Exp;
57256 *** empty log message ***
57257 ----------------------------
57258 revision 1.16
57259 date: 1994/07/21 13:11:26;  author: matt;  state: Exp;
57260 Ripped out remants of old demo system, and added demo only system that
57261 disables object movement and game options from menu.
57262 ----------------------------
57263 revision 1.15
57264 date: 1994/07/05 12:49:02;  author: john;  state: Exp;
57265 Put functionality of New Hostage spec into code.
57266 ----------------------------
57267 revision 1.14
57268 date: 1994/06/27 15:53:12;  author: john;  state: Exp;
57269 #define'd out the newdemo stuff
57270 ----------------------------
57271 revision 1.13
57272 date: 1994/06/24 17:01:25;  author: john;  state: Exp;
57273 Add VFX support; Took Game Sequencing, like EndGame and stuff and
57274 took it out of game.c and into gameseq.c
57275 ----------------------------
57276 revision 1.12
57277 date: 1994/06/21 19:46:05;  author: john;  state: Exp;
57278 Added palette effects to demo recording.
57279 ----------------------------
57280 revision 1.11
57281 date: 1994/06/21 14:19:58;  author: john;  state: Exp;
57282 Put in hooks to record HUD messages.
57283 ----------------------------
57284 revision 1.10
57285 date: 1994/06/20 11:50:42;  author: john;  state: Exp;
57286 Made demo record flash effect, and control center triggers.
57287 ----------------------------
57288 revision 1.9
57289 date: 1994/06/17 18:01:29;  author: john;  state: Exp;
57290 A bunch of new stuff by John
57291 ----------------------------
57292 revision 1.8
57293 date: 1994/06/17 12:13:34;  author: john;  state: Exp;
57294 More newdemo stuff; made editor->game transition start in slew mode.
57295 ----------------------------
57296 revision 1.7
57297 date: 1994/06/16 13:02:02;  author: john;  state: Exp;
57298 Added morph hooks.
57299 ----------------------------
57300 revision 1.6
57301 date: 1994/06/15 19:01:42;  author: john;  state: Exp;
57302 Added the capability to make 3d sounds play just once for the
57303 laser hit wall effects.
57304 ----------------------------
57305 revision 1.5
57306 date: 1994/06/15 14:57:11;  author: john;  state: Exp;
57307 Added triggers to demo recording.
57308 ----------------------------
57309 revision 1.4
57310 date: 1994/06/14 20:42:19;  author: john;  state: Exp;
57311 Made robot matztn cntr not work until no robots or player are
57312 in the segment.
57313 ----------------------------
57314 revision 1.3
57315 date: 1994/06/14 14:43:52;  author: john;  state: Exp;
57316 Made doors work with newdemo system.
57317 ----------------------------
57318 revision 1.2
57319 date: 1994/06/13 21:02:44;  author: john;  state: Exp;
57320 Initial version of new demo recording system.
57321 ----------------------------
57322 revision 1.1
57323 date: 1994/06/13 15:51:09;  author: john;  state: Exp;
57324 Initial revision
57325 =============================================================================
57326 RCS file: f:/miner/source/main/newmenu.c,v
57327 Working file: main/newmenu.c
57328 head: 2.8
57329 branch:
57330 description: Routines for menus.
57331 ----------------------------
57332 revision 2.8
57333 date: 1995/05/26 16:16:28;  author: john;  state: Exp;
57334 Split SATURN into define's for requiring cd, using cd, etc.
57335 Also started adding all the Rockwell stuff.
57336 ----------------------------
57337 revision 2.7
57338 date: 1995/04/23 14:54:17;  author: john;  state: Exp;
57339 Fixed bug with background breaking in first menu.
57340 ----------------------------
57341 revision 2.6
57342 date: 1995/03/21 14:38:46;  author: john;  state: Exp;
57343 Ifdef'd out the NETWORK code.
57344 ----------------------------
57345 revision 2.5
57346 date: 1995/03/15 14:33:29;  author: john;  state: Exp;
57347 Added code to force the Descent CD-rom in the drive.
57348 ----------------------------
57349 revision 2.4
57350 date: 1995/03/14 18:24:28;  author: john;  state: Exp;
57351 Force Destination Saturn to use CD-ROM drive.
57352 ----------------------------
57353 revision 2.3
57354 date: 1995/03/14 16:22:23;  author: john;  state: Exp;
57355 Added cdrom alternate directory stuff.
57356 ----------------------------
57357 revision 2.2
57358 date: 1995/03/06 18:30:51;  author: john;  state: Exp;
57359 Fixed bug with newmenu trashing editor font.
57360 ----------------------------
57361 revision 2.1
57362 date: 1995/03/06 15:23:17;  author: john;  state: Exp;
57363 New screen techniques.
57364 ----------------------------
57365 revision 2.0
57366 date: 1995/02/27 11:27:55;  author: john;  state: Exp;
57367 New version 2.0, which has no anonymous unions, builds with
57368 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
57369 ----------------------------
57370 revision 1.129
57371 date: 1995/02/11 16:19:56;  author: john;  state: Exp;
57372 Added code to make the default mission be the one last played.
57373 ----------------------------
57374 revision 1.128
57375 date: 1995/02/02 19:41:33;  author: john;  state: Exp;
57376 Added 10 save game slots.
57377 ----------------------------
57378 revision 1.127
57379 date: 1995/02/01 18:13:52;  author: john;  state: Exp;
57380 Fixed some constants.
57381 ----------------------------
57382 revision 1.126
57383 date: 1995/02/01 18:04:01;  author: yuan;  state: Exp;
57384 Added 50 characters to list.
57385 ----------------------------
57386 revision 1.125
57387 date: 1995/02/01 13:39:35;  author: john;  state: Exp;
57388 Made menu text that changes not overwrite.
57389 ----------------------------
57390 revision 1.124
57391 date: 1995/01/31 10:47:57;  author: john;  state: Exp;
57392 Added menu that you can specify the width of the menu.
57393 ----------------------------
57394 revision 1.123
57395 date: 1995/01/28 17:18:12;  author: john;  state: Exp;
57396 Added file list box.
57397 ----------------------------
57398 revision 1.122
57399 date: 1995/01/27 17:15:55;  author: john;  state: Exp;
57400 Made prev comment actually work.
57401 ----------------------------
57402 revision 1.121
57403 date: 1995/01/27 16:49:03;  author: john;  state: Exp;
57404 *** empty log message ***
57405 ----------------------------
57406 revision 1.120
57407 date: 1995/01/27 16:46:40;  author: john;  state: Exp;
57408 Made so that input_menu only clears text if -empty-.
57409 ----------------------------
57410 revision 1.119
57411 date: 1995/01/27 15:25:04;  author: john;  state: Exp;
57412 Delete saved game when deleteing a pilot file.
57413 ----------------------------
57414 revision 1.118
57415 date: 1995/01/25 16:36:09;  author: john;  state: Exp;
57416 Made so that when you hit enter during
57417 game save, -empty- goes away.
57418 ----------------------------
57419 revision 1.117
57420 date: 1995/01/24 16:59:30;  author: john;  state: Exp;
57421 took out mono debugging text.
57422 ----------------------------
57423 revision 1.116
57424 date: 1995/01/24 16:23:16;  author: john;  state: Exp;
57425 Fixed some bugs with listboxes.
57426 ----------------------------
57427 revision 1.115
57428 date: 1995/01/23 23:47:36;  author: matt;  state: Exp;
57429 Made keypad enter work in menus
57430 ----------------------------
57431 revision 1.114
57432 date: 1995/01/23 19:29:59;  author: john;  state: Exp;
57433 Added scrolling listbox menus.
57434 ----------------------------
57435 revision 1.113
57436 date: 1995/01/19 12:33:34;  author: john;  state: Exp;
57437 Made keys jump to sliders, etc in menus.
57438 ----------------------------
57439 revision 1.112
57440 date: 1995/01/15 14:33:08;  author: rob;  state: Exp;
57441 Fixed problem with nested nm_messageboxes.
57442 ----------------------------
57443 revision 1.111
57444 date: 1995/01/03 17:33:40;  author: john;  state: Exp;
57445 Made scrolling textbox. Used it for scores cool saying.
57446 ----------------------------
57447 revision 1.110
57448 date: 1994/12/28 10:42:58;  author: john;  state: Exp;
57449 More VFX tweaking.
57450 ----------------------------
57451 revision 1.109
57452 date: 1994/12/28 10:26:39;  author: john;  state: Exp;
57453 Fixed some VFX problems.
57454 ----------------------------
57455 revision 1.108
57456 date: 1994/12/15 23:18:10;  author: john;  state: Exp;
57457 Added fix so that VFX mode doesn't hang.
57458 ----------------------------
57459 revision 1.107
57460 date: 1994/12/15 12:19:55;  author: john;  state: Exp;
57461 Made menu use clipped bitblt functions.
57462 ----------------------------
57463 revision 1.106
57464 date: 1994/12/09 00:41:30;  author: mike;  state: Exp;
57465 fix hang in automap print screen
57466 ----------------------------
57467 revision 1.105
57468 date: 1994/12/08 10:01:34;  author: john;  state: Exp;
57469 Changed the way the player callsign stuff works.
57470 ----------------------------
57471 revision 1.104
57472 date: 1994/12/04 15:34:30;  author: john;  state: Exp;
57473 Fixed bug with newmenu not restoring font properly.
57474 ----------------------------
57475 revision 1.103
57476 date: 1994/12/03 17:47:09;  author: john;  state: Exp;
57477 Fixed bug that didn't free filename mem when not .plr files found.
57478 ----------------------------
57479 revision 1.102
57480 date: 1994/12/03 15:06:15;  author: john;  state: Exp;
57481 If no pilot exists, bring up box asking for name.
57482 ----------------------------
57483 revision 1.101
57484 date: 1994/12/03 11:04:02;  author: john;  state: Exp;
57485 Changed newmenu code a bit to fix bug with bogus
57486 backgrounds occcasionally.
57487 ----------------------------
57488 revision 1.100
57489 date: 1994/12/01 20:15:48;  author: yuan;  state: Exp;
57490 Localization.
57491 ----------------------------
57492 revision 1.99
57493 date: 1994/12/01 10:33:28;  author: john;  state: Exp;
57494 Fixed bug with large menu backgrounds not drawing correctly.
57495 ----------------------------
57496 revision 1.98
57497 date: 1994/12/01 02:41:56;  author: john;  state: Exp;
57498 Fixed warnining.
57499 ----------------------------
57500 revision 1.97
57501 date: 1994/11/30 22:52:43;  author: john;  state: Exp;
57502 Fixed bug in code that made the backgrounds behind menus.
57503 ----------------------------
57504 revision 1.96
57505 date: 1994/11/30 19:47:42;  author: john;  state: Exp;
57506 Added a check for out o' memory when mallocing background.
57507 ----------------------------
57508 revision 1.95
57509 date: 1994/11/30 19:39:10;  author: john;  state: Exp;
57510 ..
57511 ----------------------------
57512 revision 1.94
57513 date: 1994/11/30 19:38:27;  author: john;  state: Exp;
57514 fixed bug with previous.
57515 ----------------------------
57516 revision 1.93
57517 date: 1994/11/30 19:36:47;  author: john;  state: Exp;
57518 Made Gravis Ultrasound work again.  Made the scores blink
57519 at a constant rate.  Revamped the newmenu background storage,
57520 which hopefully fixed some bugs.  Made menus in ame not pause
57521 sound, except for the pause key.               ^== Game!
57522 ----------------------------
57523 revision 1.92
57524 date: 1994/11/30 18:06:05;  author: matt;  state: Exp;
57525 When player types space in callsign, comes up as underscore
57526 ----------------------------
57527 revision 1.91
57528 date: 1994/11/30 12:28:22;  author: adam;  state: Exp;
57529 added PCX support
57530 ----------------------------
57531 revision 1.90
57532 date: 1994/11/30 12:10:59;  author: adam;  state: Exp;
57533 added support for PCX titles/brief screens
57534 ----------------------------
57535 revision 1.89
57536 date: 1994/11/29 00:59:12;  author: allender;  state: Exp;
57537 change newmenu_get_filename so demo files can be deleted too
57538 ----------------------------
57539 revision 1.88
57540 date: 1994/11/27 21:16:18;  author: allender;  state: Exp;
57541 made some return values in newmenu_get_filename 0 instead of -1
57542 ----------------------------
57543 revision 1.87
57544 date: 1994/11/27 16:58:17;  author: matt;  state: Exp;
57545 Made printscreen work all the time (not just when no ndebug) and made it
57546 work when getting a filename.
57547 ----------------------------
57548 revision 1.86
57549 date: 1994/11/27 16:47:51;  author: john;  state: Exp;
57550 Made the call to fade in palette only happen if it needs to be, just
57551 because I thought it might reduce code paging with vm in menus.
57552 ----------------------------
57553 revision 1.85
57554 date: 1994/11/26 15:30:16;  author: matt;  state: Exp;
57555 Allow escape out of change pilot menu
57556 ----------------------------
57557 revision 1.84
57558 date: 1994/11/26 14:17:26;  author: matt;  state: Exp;
57559 Player can now only enter valid chars for his name
57560 ----------------------------
57561 revision 1.83
57562 date: 1994/11/23 14:13:17;  author: allender;  state: Exp;
57563 if no demo files, displays less "techy" message
57564 ----------------------------
57565 revision 1.82
57566 date: 1994/11/21 11:55:52;  author: john;  state: Exp;
57567 Fixed some sound pausing in menus bugs.
57568 ----------------------------
57569 revision 1.81
57570 date: 1994/11/19 15:14:58;  author: mike;  state: Exp;
57571 remove unused code and data
57572 ----------------------------
57573 revision 1.80
57574 date: 1994/11/18 23:37:54;  author: john;  state: Exp;
57575 Changed some shorts to ints.
57576 ----------------------------
57577 revision 1.79
57578 date: 1994/11/15 09:29:21;  author: john;  state: Exp;
57579 Made it so that pressing a letter when selecting players moves to 
57580 a matching choice.
57581 ----------------------------
57582 revision 1.78
57583 date: 1994/11/14 17:12:28;  author: adam;  state: Exp;
57584 *** empty log message ***
57585 ----------------------------
57586 revision 1.77
57587 date: 1994/11/14 16:58:31;  author: rob;  state: Exp;
57588 Tried to fix a problem with save demo dialog.
57589 ----------------------------
57590 revision 1.76
57591 date: 1994/11/14 16:13:46;  author: matt;  state: Exp;
57592 Fixed handling of players with DOS device names
57593 ----------------------------
57594 revision 1.75
57595 date: 1994/11/13 18:12:53;  author: matt;  state: Exp;
57596 Fixed handling of filenames that are the same as DOS devices
57597 ----------------------------
57598 revision 1.74
57599 date: 1994/11/13 17:20:44;  author: john;  state: Exp;
57600 Fixed text a bit.
57601 ----------------------------
57602 revision 1.73
57603 date: 1994/11/13 17:18:22;  author: john;  state: Exp;
57604 Changed wording of new pilot.
57605 ----------------------------
57606 revision 1.72
57607 date: 1994/11/13 17:14:21;  author: john;  state: Exp;
57608 Fixed bug with player list box.
57609 ----------------------------
57610 revision 1.71
57611 date: 1994/11/13 17:12:48;  author: john;  state: Exp;
57612 Fixed broken demo file list.
57613 ----------------------------
57614 revision 1.70
57615 date: 1994/11/13 17:04:49;  author: john;  state: Exp;
57616 Made the callsign entry be a list box and gave the ability
57617 to delete players.
57618 ----------------------------
57619 revision 1.69
57620 date: 1994/11/13 15:38:03;  author: john;  state: Exp;
57621 Added critical error handler to game.  Took out -editor command line
57622 option because it didn't work anymore and wasn't worth fixing.  Made scores
57623 not use MINER enviroment variable on release version, and made scores
57624 not print an error if there is no descent.hi.
57625 ----------------------------
57626 revision 1.68
57627 date: 1994/11/11 18:17:03;  author: rob;  state: Exp;
57628 Made multi_menu_poll return a value to exit menus.
57629 ----------------------------
57630 revision 1.67
57631 date: 1994/11/11 11:07:06;  author: rob;  state: Exp;
57632 Added include of multi.h
57633 ----------------------------
57634 revision 1.66
57635 date: 1994/11/10 20:25:16;  author: rob;  state: Exp;
57636 John's stuff to make network menus work.
57637 ----------------------------
57638 revision 1.65
57639 date: 1994/11/08 14:51:39;  author: john;  state: Exp;
57640 Added nm_messagebox1, (like the original, only you can pass a function).
57641 ----------------------------
57642 revision 1.64
57643 date: 1994/11/08 08:30:39;  author: john;  state: Exp;
57644 Fixed bug with centering titles.
57645 ----------------------------
57646 revision 1.63
57647 date: 1994/11/08 08:27:00;  author: john;  state: Exp;
57648 Made titles and subtitles center.
57649 ----------------------------
57650 revision 1.62
57651 date: 1994/11/07 09:40:48;  author: john;  state: Exp;
57652 Neatend file list box some.
57653 ----------------------------
57654 revision 1.61
57655 date: 1994/11/05 17:22:41;  author: john;  state: Exp;
57656 Fixed lots of sequencing problems with newdemo stuff.
57657 ----------------------------
57658 revision 1.60
57659 date: 1994/11/05 15:04:08;  author: john;  state: Exp;
57660 Added non-popup menu for the main menu, so that scores and credits don't have to save
57661 the background.
57662 ----------------------------
57663 revision 1.59
57664 date: 1994/11/05 14:03:52;  author: john;  state: Exp;
57665 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
57666 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
57667 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
57668 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
57669 ----------------------------
57670 revision 1.58
57671 date: 1994/11/04 20:11:50;  author: john;  state: Exp;
57672 Neatening up palette stuff with demos.
57673 ----------------------------
57674 revision 1.57
57675 date: 1994/11/04 13:49:24;  author: allender;  state: Exp;
57676 fixed newmenu_get_filename to work with less than 10 files
57677 ----------------------------
57678 revision 1.56
57679 date: 1994/11/03 19:37:44;  author: john;  state: Exp;
57680 Added scrolling file list box
57681 ----------------------------
57682 revision 1.55
57683 date: 1994/10/31 18:16:42;  author: john;  state: Exp;
57684 Made Pad arrows work with menus.
57685 ----------------------------
57686 revision 1.54
57687 date: 1994/10/28 14:54:25;  author: john;  state: Exp;
57688 Added forward dec. for newmenu_close.
57689 .\
57690 ----------------------------
57691 revision 1.53
57692 date: 1994/10/28 14:53:00;  author: john;  state: Exp;
57693 Fixed hideous bug that would bomb if you called newmenu_draw_background
57694 before any menus were ever displayed.
57695 ----------------------------
57696 revision 1.52
57697 date: 1994/10/24 19:56:53;  author: john;  state: Exp;
57698 Made the new user setup prompt for config options.
57699 ----------------------------
57700 revision 1.51
57701 date: 1994/10/24 15:15:49;  author: john;  state: Exp;
57702 Made Esc exit nm_messagebox's,
57703 ,
57704 ----------------------------
57705 revision 1.50
57706 date: 1994/10/21 15:20:20;  author: john;  state: Exp;
57707 Made PrtScr do screen dump, not F2.
57708 ----------------------------
57709 revision 1.49
57710 date: 1994/10/18 12:33:38;  author: john;  state: Exp;
57711 Only used copy the item text into the saved_text field
57712 if it is an inputbox or inputbox_menu.
57713 ----------------------------
57714 revision 1.48
57715 date: 1994/10/17 11:04:01;  author: john;  state: Exp;
57716 Made backtab work also.
57717 ----------------------------
57718 revision 1.47
57719 date: 1994/10/17 10:47:49;  author: john;  state: Exp;
57720 MAde Tab work like down arrow.
57721 ----------------------------
57722 revision 1.46
57723 date: 1994/10/17 10:45:10;  author: john;  state: Exp;
57724 Made the player able to abort death by pressing any button or key.
57725 ----------------------------
57726 revision 1.45
57727 date: 1994/10/13 21:52:02;  author: john;  state: Exp;
57728 Made it so that if a messagebox has 1 choice, then
57729 Esc will return -1.
57730 ----------------------------
57731 revision 1.44
57732 date: 1994/10/13 11:35:38;  author: john;  state: Exp;
57733 Made Thrustmaster FCS Hat work.  Put a background behind the
57734 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
57735 menu to new menu. Made F6 be calibrate joystick.
57736 ----------------------------
57737 revision 1.43
57738 date: 1994/10/11 17:18:52;  author: john;  state: Exp;
57739 Fixed bug with sliders always starting at -1.
57740 ----------------------------
57741 revision 1.42
57742 date: 1994/10/11 17:08:29;  author: john;  state: Exp;
57743 Added sliders for volume controls.
57744 ----------------------------
57745 revision 1.41
57746 date: 1994/10/06 16:04:40;  author: john;  state: Exp;
57747 Made text items color differently than others. Adam
57748 is gonna make a diff colored font for these.
57749 ----------------------------
57750 revision 1.40
57751 date: 1994/10/06 15:08:23;  author: rob;  state: Exp;
57752 Allowed any negative key value to abort the menu and return.
57753 ----------------------------
57754 revision 1.39
57755 date: 1994/10/04 10:26:06;  author: matt;  state: Exp;
57756 Changed fade in to happen every time a global var is set
57757 ----------------------------
57758 revision 1.38
57759 date: 1994/10/04 09:16:08;  author: john;  state: Exp;
57760 If you pass -1 as choice in newmenu_do1, then
57761 no item is highlighted until you press up or
57762 down arrows.
57763 ----------------------------
57764 revision 1.37
57765 date: 1994/10/03 23:44:37;  author: matt;  state: Exp;
57766 Save & restore palette effect around menus & pause message
57767 ----------------------------
57768 revision 1.36
57769 date: 1994/10/03 22:59:40;  author: matt;  state: Exp;
57770 Re-enabled backspace to generate Int3()
57771 ----------------------------
57772 revision 1.35
57773 date: 1994/10/03 19:11:21;  author: matt;  state: Exp;
57774 Changed string input cursor to blinking underscore
57775 ----------------------------
57776 revision 1.34
57777 date: 1994/10/03 14:44:15;  author: john;  state: Exp;
57778 Added newmenu_do1, which allows you to pass the starting
57779 item to the menu system
57780 ----------------------------
57781 revision 1.33
57782 date: 1994/09/30 11:51:21;  author: john;  state: Exp;
57783 Added Matt's NM_TYPE_INPUT_MENU
57784 ----------------------------
57785 revision 1.32
57786 date: 1994/09/28 17:22:56;  author: matt;  state: Exp;
57787 Added extra space between subtitle and menu items
57788 Made shortcut key check ignore leading spaces in text
57789 ----------------------------
57790 revision 1.31
57791 date: 1994/09/15 16:11:22;  author: john;  state: Exp;
57792 Added support for VFX1 head tracking. Fixed bug with memory over-
57793 write when using stereo mode.
57794 ----------------------------
57795 revision 1.30
57796 date: 1994/09/12 09:52:59;  author: john;  state: Exp;
57797 Made global flush function that flushes keyboard,mouse, and joystick.
57798 ----------------------------
57799 revision 1.29
57800 date: 1994/09/10 19:10:54;  author: matt;  state: Exp;
57801 Fixed a few things (like arrow key handling) for menus with all
57802 text items, such as the key help message.
57803 ----------------------------
57804 revision 1.28
57805 date: 1994/09/01 18:55:38;  author: john;  state: Exp;
57806 freed scores.lbm
57807 ----------------------------
57808 revision 1.27
57809 date: 1994/09/01 18:03:50;  author: john;  state: Exp;
57810 Neatened up scores a bit.
57811 ----------------------------
57812 revision 1.26
57813 date: 1994/08/30 20:38:13;  author: john;  state: Exp;
57814 Passed citem in newmenu sub.
57815 ----------------------------
57816 revision 1.25
57817 date: 1994/08/30 11:13:01;  author: john;  state: Exp;
57818 Added beveled edges to menus.
57819 ----------------------------
57820 revision 1.24
57821 date: 1994/08/26 13:01:58;  author: john;  state: Exp;
57822 Put high score system in.
57823 ----------------------------
57824 revision 1.23
57825 date: 1994/08/16 00:18:44;  author: john;  state: Exp;
57826 Made pressing the first letter of a menu
57827 item move to it.
57828 ----------------------------
57829 revision 1.22
57830 date: 1994/08/15 23:17:43;  author: john;  state: Exp;
57831 *** empty log message ***
57832 ----------------------------
57833 revision 1.21
57834 date: 1994/08/15 23:15:28;  author: john;  state: Exp;
57835 Made 1 menu/checkbox return with any keypress.
57836 ----------------------------
57837 revision 1.20
57838 date: 1994/08/12 10:18:23;  author: john;  state: Exp;
57839 *** empty log message ***
57840 ----------------------------
57841 revision 1.19
57842 date: 1994/08/12 10:09:11;  author: john;  state: Exp;
57843 Made borders better.
57844 ----------------------------
57845 revision 1.18
57846 date: 1994/08/12 03:11:16;  author: john;  state: Exp;
57847 Made network be default off; Moved network options into
57848 main menu.  Made starting net game check that mines are the
57849 same.
57850 ----------------------------
57851 revision 1.17
57852 date: 1994/08/11 22:14:43;  author: john;  state: Exp;
57853 Free'd up some memory that I forgot to free.
57854 ----------------------------
57855 revision 1.16
57856 date: 1994/08/11 19:27:35;  author: john;  state: Exp;
57857 Made the Backspace drop into the debugger only
57858 if you're not in an inputbox.
57859 ----------------------------
57860 revision 1.15
57861 date: 1994/08/11 18:01:49;  author: matt;  state: Exp;
57862 Added F2 and BACKSPACE keys to new menu system
57863 ----------------------------
57864 revision 1.14
57865 date: 1994/08/11 14:25:58;  author: john;  state: Exp;
57866 *** empty log message ***
57867 ----------------------------
57868 revision 1.13
57869 date: 1994/08/11 14:25:40;  author: john;  state: Exp;
57870 *** empty log message ***
57871 ----------------------------
57872 revision 1.12
57873 date: 1994/08/11 13:47:02;  author: john;  state: Exp;
57874 Made newmenu have subtitles, passed key through to
57875 the newmenu subfunctions.
57876 ----------------------------
57877 revision 1.11
57878 date: 1994/08/11 12:45:08;  author: john;  state: Exp;
57879 *** empty log message ***
57880 ----------------------------
57881 revision 1.10
57882 date: 1994/08/11 12:25:45;  author: john;  state: Exp;
57883 Made right_offset spacing different
57884 ----------------------------
57885 revision 1.9
57886 date: 1994/08/11 12:09:49;  author: john;  state: Exp;
57887 Made work with bitmapped fonts.
57888 ----------------------------
57889 revision 1.8
57890 date: 1994/08/10 19:56:16;  author: john;  state: Exp;
57891 Changed font stuff; Took out old menu; messed up lots of
57892 other stuff like game sequencing messages, etc.
57893 ----------------------------
57894 revision 1.7
57895 date: 1994/07/27 16:12:23;  author: john;  state: Exp;
57896 Changed newmenu system to have a callback function.
57897 /.
57898 ----------------------------
57899 revision 1.6
57900 date: 1994/07/25 15:10:23;  author: john;  state: Exp;
57901 *** empty log message ***
57902 ----------------------------
57903 revision 1.5
57904 date: 1994/07/25 12:33:35;  author: john;  state: Exp;
57905 Network "pinging" in.
57906 ----------------------------
57907 revision 1.4
57908 date: 1994/07/24 18:21:27;  author: john;  state: Exp;
57909 Took out first time stuff.
57910 ----------------------------
57911 revision 1.3
57912 date: 1994/07/24 17:32:47;  author: john;  state: Exp;
57913 Added percent item.  Also neatend up a bit.
57914 ----------------------------
57915 revision 1.2
57916 date: 1994/07/22 17:48:13;  author: john;  state: Exp;
57917 Added new menuing system.
57918 ----------------------------
57919 revision 1.1
57920 date: 1994/07/22 13:55:38;  author: john;  state: Exp;
57921 Initial revision
57922 =============================================================================
57923 RCS file: f:/miner/source/main/newmenu.h,v
57924 Working file: main/newmenu.h
57925 head: 2.0
57926 branch:
57927 description: Routines for menus.
57928 ----------------------------
57929 revision 2.0
57930 date: 1995/02/27 11:32:28;  author: john;  state: Exp;
57931 New version 2.0, which has no anonymous unions, builds with
57932 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
57933 ----------------------------
57934 revision 1.24
57935 date: 1995/02/11 16:20:05;  author: john;  state: Exp;
57936 Added code to make the default mission be the one last played.
57937 ----------------------------
57938 revision 1.23
57939 date: 1995/01/31 10:21:41;  author: john;  state: Exp;
57940 Added code to specify width, height.
57941 ----------------------------
57942 revision 1.22
57943 date: 1995/01/28 17:09:21;  author: john;  state: Exp;
57944 *** empty log message ***
57945 ----------------------------
57946 revision 1.21
57947 date: 1995/01/23 18:38:43;  author: john;  state: Exp;
57948 Added listbox function.
57949 ----------------------------
57950 revision 1.20
57951 date: 1994/11/26 15:29:55;  author: matt;  state: Exp;
57952 Allow escape out of change pilot menu
57953 ----------------------------
57954 revision 1.19
57955 date: 1994/11/26 14:17:05;  author: matt;  state: Exp;
57956 Player can now only enter valid chars for his name
57957 ----------------------------
57958 revision 1.18
57959 date: 1994/11/18 16:17:13;  author: mike;  state: Exp;
57960 prototype Max_linear_depth_objects.
57961 ----------------------------
57962 revision 1.17
57963 date: 1994/11/08 14:51:17;  author: john;  state: Exp;
57964 Added nm_messagebox1, (like the original, only you can pass a function).
57965 ----------------------------
57966 revision 1.16
57967 date: 1994/11/05 14:31:45;  author: john;  state: Exp;
57968 Added a new menu function for the background.
57969 ----------------------------
57970 revision 1.15
57971 date: 1994/11/05 14:05:46;  author: john;  state: Exp;
57972 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
57973 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
57974 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
57975 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
57976 ----------------------------
57977 revision 1.14
57978 date: 1994/11/03 19:37:35;  author: john;  state: Exp;
57979 Added scrolling file list box
57980 ----------------------------
57981 revision 1.13
57982 date: 1994/10/13 11:34:03;  author: john;  state: Exp;
57983 Made Thrustmaster FCS Hat work.  Put a background behind the
57984 keyboard configure.  Took out turn_sensitivity.  Changed sound/config
57985 menu to new menu. Made F6 be calibrate joystick.
57986 ----------------------------
57987 revision 1.12
57988 date: 1994/10/11 17:08:32;  author: john;  state: Exp;
57989 Added sliders for volume controls.
57990 ----------------------------
57991 revision 1.11
57992 date: 1994/10/04 10:26:23;  author: matt;  state: Exp;
57993 Changed fade in to happen every time a global var is set
57994 ----------------------------
57995 revision 1.10
57996 date: 1994/10/03 14:43:56;  author: john;  state: Exp;
57997 Added newmenu_do1, which allows you to pass the starting
57998 item to the menu system
57999 ----------------------------
58000 revision 1.9
58001 date: 1994/09/30 11:51:33;  author: john;  state: Exp;
58002 Added Matt's NM_TYPE_INPUT_MENU
58003 ----------------------------
58004 revision 1.8
58005 date: 1994/08/30 20:38:28;  author: john;  state: Exp;
58006 Passed citem in newmenu sub.
58007 ----------------------------
58008 revision 1.7
58009 date: 1994/08/12 03:11:00;  author: john;  state: Exp;
58010 Made network be default off; Moved network options into
58011 main menu.  Made starting net game check that mines are the
58012 same.
58013 ----------------------------
58014 revision 1.6
58015 date: 1994/08/11 13:47:05;  author: john;  state: Exp;
58016 Made newmenu have subtitles, passed key through to
58017 the newmenu subfunctions.
58018 ----------------------------
58019 revision 1.5
58020 date: 1994/07/27 16:12:24;  author: john;  state: Exp;
58021 Changed newmenu system to have a callback function.
58022 /.
58023 ----------------------------
58024 revision 1.4
58025 date: 1994/07/24 17:41:38;  author: john;  state: Exp;
58026 *** empty log message ***
58027 ----------------------------
58028 revision 1.3
58029 date: 1994/07/24 17:33:01;  author: john;  state: Exp;
58030 Added percent item.  Also neatend up a bit.
58031 ----------------------------
58032 revision 1.2
58033 date: 1994/07/22 17:48:12;  author: john;  state: Exp;
58034 Added new menuing system.
58035 ----------------------------
58036 revision 1.1
58037 date: 1994/07/22 13:55:51;  author: john;  state: Exp;
58038 Initial revision
58039 =============================================================================
58040 RCS file: f:/miner/source/main/nfile.c,v
58041 Working file: main/nfile.c
58042 head: 2.0
58043 branch:
58044 description: Routines to read from a big file.
58045 ----------------------------
58046 revision 2.0
58047 date: 1995/02/27 11:31:27;  author: john;  state: Exp;
58048 New version 2.0, which has no anonymous unions, builds with
58049 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
58050 ----------------------------
58051 revision 1.2
58052 date: 1994/12/09 19:20:49;  author: john;  state: Exp;
58053 *** empty log message ***
58054 ----------------------------
58055 revision 1.1
58056 date: 1994/12/07 20:54:27;  author: john;  state: Exp;
58057 Initial revision
58058 =============================================================================
58059 RCS file: f:/miner/source/main/object.c,v
58060 Working file: main/object.c
58061 head: 2.3
58062 branch:
58063 description: object rendering
58064 ----------------------------
58065 revision 2.3
58066 date: 1995/06/15 12:30:51;  author: john;  state: Exp;
58067 Fixed bug with multiplayer ships cloaking out wrongly.
58068 ----------------------------
58069 revision 2.2
58070 date: 1995/05/15 11:34:53;  author: john;  state: Exp;
58071 Fixed bug as Matt directed that fixed problems with the exit
58072 triggers being missed on slow frame rate computer.
58073 ----------------------------
58074 revision 2.1
58075 date: 1995/03/21 14:38:51;  author: john;  state: Exp;
58076 Ifdef'd out the NETWORK code.
58077 ----------------------------
58078 revision 2.0
58079 date: 1995/02/27 11:28:14;  author: john;  state: Exp;
58080 New version 2.0, which has no anonymous unions, builds with
58081 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
58082 ----------------------------
58083 revision 1.335
58084 date: 1995/02/22 12:57:30;  author: allender;  state: Exp;
58085 remove anonymous unions from object structure
58086 ----------------------------
58087 revision 1.334
58088 date: 1995/02/09 22:04:40;  author: mike;  state: Exp;
58089 fix lifeleft on badass weapons.
58090 ----------------------------
58091 revision 1.333
58092 date: 1995/02/08 12:54:00;  author: matt;  state: Exp;
58093 Fixed object freeing code which was deleting some explosions it shouldn't
58094 ----------------------------
58095 revision 1.332
58096 date: 1995/02/08 11:37:26;  author: mike;  state: Exp;
58097 Check for failures in call to obj_create.
58098 ----------------------------
58099 revision 1.331
58100 date: 1995/02/05 17:48:52;  author: rob;  state: Exp;
58101 Changed assert in obj_relink, more robust.
58102 ----------------------------
58103 revision 1.330
58104 date: 1995/02/05 13:39:48;  author: mike;  state: Exp;
58105 remove invulnerability effect code (actually, comment out).
58106 ----------------------------
58107 revision 1.329
58108 date: 1995/02/04 12:29:52;  author: rob;  state: Exp;
58109 Get rid of potential assert error for explosion detachment.
58110 ----------------------------
58111 revision 1.328
58112 date: 1995/02/01 18:15:57;  author: rob;  state: Exp;
58113 Removed debugging output from engine glow change.
58114 ----------------------------
58115 revision 1.327
58116 date: 1995/02/01 16:20:12;  author: matt;  state: Exp;
58117 Made engine glow vary over a wider range, and made the glow be based
58118 on thrust/speed, without regard to direction.
58119 ----------------------------
58120 revision 1.326
58121 date: 1995/01/29 14:46:24;  author: rob;  state: Exp;
58122 Fixed invul. vclip to only appear on player who is invul.
58123 ----------------------------
58124 revision 1.325
58125 date: 1995/01/29 13:48:16;  author: mike;  state: Exp;
58126 Add invulnerability graphical effect viewable by other players.
58127 ----------------------------
58128 revision 1.324
58129 date: 1995/01/29 11:39:25;  author: mike;  state: Exp;
58130 Add invulnerability effect.
58131 ----------------------------
58132 revision 1.323
58133 date: 1995/01/27 17:02:41;  author: mike;  state: Exp;
58134 add more information to an Error call.
58135 ----------------------------
58136 revision 1.322
58137 date: 1995/01/26 22:11:30;  author: mike;  state: Exp;
58138 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
58139 ----------------------------
58140 revision 1.321
58141 date: 1995/01/25 20:04:10;  author: matt;  state: Exp;
58142 Moved matrix check to avoid orthogonalizing an uninitialize matrix
58143 ----------------------------
58144 revision 1.320
58145 date: 1995/01/25 12:11:35;  author: matt;  state: Exp;
58146 Make sure orient matrix is orthogonal when resetting player object
58147 ----------------------------
58148 revision 1.319
58149 date: 1995/01/21 21:46:22;  author: mike;  state: Exp;
58150 Optimize code in Assert (and prevent warning message).
58151 ----------------------------
58152 revision 1.318
58153 date: 1995/01/21 21:22:16;  author: rob;  state: Exp;
58154 Removed HUD clear messages.
58155 Added more Asserts to try and find illegal control type bug.
58156 ----------------------------
58157 revision 1.317
58158 date: 1995/01/15 15:34:30;  author: matt;  state: Exp;
58159 When freeing object slots, don't free fireballs that will be deleting
58160 other objects.
58161 ----------------------------
58162 revision 1.316
58163 date: 1995/01/14 19:16:48;  author: john;  state: Exp;
58164 First version of new bitmap paging code.
58165 ----------------------------
58166 revision 1.315
58167 date: 1995/01/12 18:53:37;  author: john;  state: Exp;
58168 Fixed parameter passing error.
58169 ----------------------------
58170 revision 1.314
58171 date: 1995/01/12 12:09:47;  author: yuan;  state: Exp;
58172 Added coop object capability.
58173 ----------------------------
58174 revision 1.313
58175 date: 1994/12/15 16:45:44;  author: matt;  state: Exp;
58176 Took out slew stuff for release version
58177 ----------------------------
58178 revision 1.312
58179 date: 1994/12/15 13:04:25;  author: mike;  state: Exp;
58180 Replace Players[Player_num].time_total references with GameTime.
58181 ----------------------------
58182 revision 1.311
58183 date: 1994/12/15 11:01:04;  author: mike;  state: Exp;
58184 add Object_minus_one for debugging.
58185 ----------------------------
58186 revision 1.310
58187 date: 1994/12/15 03:03:33;  author: matt;  state: Exp;
58188 Added error checking for NULL return from object_create_explosion()
58189 ----------------------------
58190 revision 1.309
58191 date: 1994/12/14 17:25:31;  author: matt;  state: Exp;
58192 Made next viewer func based on release not ndebug
58193 ----------------------------
58194 revision 1.308
58195 date: 1994/12/13 12:55:42;  author: mike;  state: Exp;
58196 hostages on board messages for when you die.
58197 ----------------------------
58198 revision 1.307
58199 date: 1994/12/12 17:18:11;  author: mike;  state: Exp;
58200 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
58201 ----------------------------
58202 revision 1.306
58203 date: 1994/12/12 00:27:11;  author: matt;  state: Exp;
58204 Added support for no-levelling option
58205 ----------------------------
58206 revision 1.305
58207 date: 1994/12/11 22:41:14;  author: matt;  state: Exp;
58208 Added command-line option, -nolevel, which turns off player ship levelling
58209 ----------------------------
58210 revision 1.304
58211 date: 1994/12/11 22:03:23;  author: mike;  state: Exp;
58212 free up object slots as necessary.
58213 ----------------------------
58214 revision 1.303
58215 date: 1994/12/11 14:09:31;  author: mike;  state: Exp;
58216 make boss explosion sounds softer.
58217 ----------------------------
58218 revision 1.302
58219 date: 1994/12/11 13:25:11;  author: matt;  state: Exp;
58220 Restored calls to fix_object_segs() when debugging is turned off, since
58221 it's not a big routine, and could fix some possibly bad problems.
58222 ----------------------------
58223 revision 1.301
58224 date: 1994/12/11 12:38:25;  author: mike;  state: Exp;
58225 make boss explosion sounds louder in create_small_fireball.
58226 ----------------------------
58227 revision 1.300
58228 date: 1994/12/10 15:28:37;  author: matt;  state: Exp;
58229 Added asserts for debugging
58230 ----------------------------
58231 revision 1.299
58232 date: 1994/12/09 16:18:51;  author: matt;  state: Exp;
58233 Fixed init_player_object, for editor
58234 ----------------------------
58235 revision 1.298
58236 date: 1994/12/09 15:03:10;  author: matt;  state: Exp;
58237 Two changes for Mike:
58238   1.  Do better placement of camera during death sequence (prevents hang)
58239   2.  Only record dodging information if the player fired in a frame
58240 ----------------------------
58241 revision 1.297
58242 date: 1994/12/09 14:59:12;  author: matt;  state: Exp;
58243 Added system to attach a fireball to another object for rendering purposes,
58244 so the fireball always renders on top of (after) the object.
58245 ----------------------------
58246 revision 1.296
58247 date: 1994/12/08 20:05:07;  author: matt;  state: Exp;
58248 Removed unneeded debug message
58249 ----------------------------
58250 revision 1.295
58251 date: 1994/12/08 12:36:02;  author: matt;  state: Exp;
58252 Added new object allocation & deallocation functions so other code
58253 could stop messing around with internal object data structures.
58254 ----------------------------
58255 revision 1.294
58256 date: 1994/12/07 20:13:37;  author: matt;  state: Exp;
58257 Added debris object limiter
58258 ----------------------------
58259 revision 1.293
58260 date: 1994/12/06 16:58:38;  author: matt;  state: Exp;
58261 Killed warnings
58262 ----------------------------
58263 revision 1.292
58264 date: 1994/12/05 22:34:35;  author: matt;  state: Exp;
58265 Make tmap_override objects use override texture as alt texture.  This 
58266 should have the effect of making simpler models use the override texture.
58267 ----------------------------
58268 revision 1.291
58269 date: 1994/12/05 12:23:53;  author: mike;  state: Exp;
58270 make camera start closer, but move away from player in death sequence.
58271 ----------------------------
58272 revision 1.290
58273 date: 1994/12/02 11:11:18;  author: mike;  state: Exp;
58274 hook sound effect to player small explosions (ctrlcen, too).
58275 ----------------------------
58276 revision 1.289
58277 date: 1994/11/28 21:50:52;  author: mike;  state: Exp;
58278 optimizations.
58279 ----------------------------
58280 revision 1.288
58281 date: 1994/11/27 23:12:28;  author: matt;  state: Exp;
58282 Made changes for new mprintf calling convention
58283 ----------------------------
58284 revision 1.287
58285 date: 1994/11/27 20:35:50;  author: matt;  state: Exp;
58286 Fixed dumb mistake
58287 ----------------------------
58288 revision 1.286
58289 date: 1994/11/27 20:30:52;  author: matt;  state: Exp;
58290 Got rid of warning
58291 ----------------------------
58292 revision 1.285
58293 date: 1994/11/21 11:43:21;  author: mike;  state: Exp;
58294 ndebug stuff.
58295 ----------------------------
58296 revision 1.284
58297 date: 1994/11/19 15:19:37;  author: mike;  state: Exp;
58298 rip out unused code and data.
58299 ----------------------------
58300 revision 1.283
58301 date: 1994/11/18 23:41:59;  author: john;  state: Exp;
58302 Changed some shorts to ints.
58303 ----------------------------
58304 revision 1.282
58305 date: 1994/11/18 16:16:17;  author: mike;  state: Exp;
58306 Separate depth on objects vs. walls.
58307 ----------------------------
58308 revision 1.281
58309 date: 1994/11/18 12:05:35;  author: rob;  state: Exp;
58310 Removed unnecessary invulnerability flag set in player death.
58311 (I hope its unnecessary.. its commented out if it proves crucial)
58312 fixes powerup dropping bug for net play.
58313 ----------------------------
58314 revision 1.280
58315 date: 1994/11/16 20:36:34;  author: rob;  state: Exp;
58316 Changed player explosion (small) code.
58317 ----------------------------
58318 revision 1.279
58319 date: 1994/11/16 18:26:04;  author: matt;  state: Exp;
58320 Clear tmap override on player, to fix "rock ship" bug
58321 ----------------------------
58322 revision 1.278
58323 date: 1994/11/16 14:54:12;  author: rob;  state: Exp;
58324 Moved hook for network explosions.
58325 ----------------------------
58326 revision 1.277
58327 date: 1994/11/14 11:40:42;  author: mike;  state: Exp;
58328 plot inner polygon on laser based on detail level.
58329 ----------------------------
58330 revision 1.276
58331 date: 1994/11/10 14:02:59;  author: matt;  state: Exp;
58332 Hacked in support for player ships with different textures
58333 ----------------------------
58334 revision 1.275
58335 date: 1994/11/08 12:19:08;  author: mike;  state: Exp;
58336 Make a generally useful function for putting small explosions on any object.
58337 ----------------------------
58338 revision 1.274
58339 date: 1994/11/04 19:55:54;  author: rob;  state: Exp;
58340 Changed calls to player_explode to accomodate new parameter.
58341 ----------------------------
58342 revision 1.273
58343 date: 1994/11/02 21:54:27;  author: matt;  state: Exp;
58344 Delete the camera when the death sequence is done
58345 ----------------------------
58346 revision 1.272
58347 date: 1994/11/02 11:36:35;  author: rob;  state: Exp;
58348 Added player-in-process-of-dying explosions to network play.
58349 ----------------------------
58350 revision 1.271
58351 date: 1994/10/31 17:25:33;  author: matt;  state: Exp;
58352 Fixed cloaked bug
58353 ----------------------------
58354 revision 1.270
58355 date: 1994/10/31 16:11:19;  author: allender;  state: Exp;
58356 on demo recording, store letterbox mode in demo.
58357 ----------------------------
58358 revision 1.269
58359 date: 1994/10/31 10:36:18;  author: mike;  state: Exp;
58360 Make cloak effect fadein/fadeout different for robots versus player.
58361 ----------------------------
58362 revision 1.268
58363 date: 1994/10/30 14:11:44;  author: mike;  state: Exp;
58364 rip out repair center stuff.
58365 ----------------------------
58366 revision 1.267
58367 date: 1994/10/28 19:43:52;  author: mike;  state: Exp;
58368 Boss cloaking effect.
58369 ----------------------------
58370 revision 1.266
58371 date: 1994/10/27 11:33:42;  author: mike;  state: Exp;
58372 Add Highest_ever_object_index -- high water mark in object creation.
58373 ----------------------------
58374 revision 1.265
58375 date: 1994/10/25 10:51:12;  author: matt;  state: Exp;
58376 Vulcan cannon powerups now contain ammo count
58377 ----------------------------
58378 revision 1.264
58379 date: 1994/10/24 20:49:24;  author: matt;  state: Exp;
58380 Made cloaked objects pulse
58381 ----------------------------
58382 revision 1.263
58383 date: 1994/10/21 12:19:45;  author: matt;  state: Exp;
58384 Clear transient objects when saving (& loading) games
58385 ----------------------------
58386 revision 1.262
58387 date: 1994/10/21 11:25:23;  author: mike;  state: Exp;
58388 Use new constant IMMORTAL_TIME.
58389 ----------------------------
58390 revision 1.261
58391 date: 1994/10/19 16:50:35;  author: matt;  state: Exp;
58392 If out of segment, put player in center of segment when checking objects
58393 ----------------------------
58394 revision 1.260
58395 date: 1994/10/17 23:21:55;  author: mike;  state: Exp;
58396 Clean up robot cloaking, move more to ai.c
58397 ----------------------------
58398 revision 1.259
58399 date: 1994/10/17 21:34:49;  author: matt;  state: Exp;
58400 Added support for new Control Center/Main Reactor
58401 ----------------------------
58402 revision 1.258
58403 date: 1994/10/17 21:18:04;  author: mike;  state: Exp;
58404 robot cloaking.
58405 ----------------------------
58406 revision 1.257
58407 date: 1994/10/17 14:12:23;  author: matt;  state: Exp;
58408 Cleaned up problems with player dying from mine explosion
58409 ----------------------------
58410 revision 1.256
58411 date: 1994/10/15 19:04:31;  author: mike;  state: Exp;
58412 Don't remove proximity bombs after you die.
58413 ----------------------------
58414 revision 1.255
58415 date: 1994/10/14 15:57:00;  author: mike;  state: Exp;
58416 Don't show ids in network mode.
58417 Fix, I hope, but in death sequence.
58418 ----------------------------
58419 revision 1.254
58420 date: 1994/10/12 08:04:29;  author: mike;  state: Exp;
58421 Don't decloak player on death.
58422 ----------------------------
58423 revision 1.253
58424 date: 1994/10/11 20:36:16;  author: matt;  state: Exp;
58425 Clear "transient" objects (weapons,explosions,etc.) when starting a level
58426 ----------------------------
58427 revision 1.252
58428 date: 1994/10/11 12:24:09;  author: matt;  state: Exp;
58429 Cleaned up/change badass explosion calls
58430 ----------------------------
58431 revision 1.251
58432 date: 1994/10/08 19:30:20;  author: matt;  state: Exp;
58433 Fixed (I hope) a bug in cloaking of multiplayer objects
58434 ----------------------------
58435 revision 1.250
58436 date: 1994/10/08 14:03:15;  author: rob;  state: Exp;
58437 Changed cloaking routine.
58438 ----------------------------
58439 revision 1.249
58440 date: 1994/10/07 22:17:27;  author: mike;  state: Exp;
58441 Asserts on valid segnum.
58442 ----------------------------
58443 revision 1.248
58444 date: 1994/10/07 19:11:14;  author: matt;  state: Exp;
58445 Added cool cloak transition effect
58446  Global variables
58447 =============================================================================
58448 RCS file: f:/miner/source/main/object.h,v
58449 Working file: main/object.h
58450 head: 2.1
58451 branch:
58452 description: object system definitions
58453 ----------------------------
58454 revision 2.1
58455 date: 1995/03/31 12:24:10;  author: john;  state: Exp;
58456 I had changed alt_textures from a pointer to a byte. This hosed old
58457 saved games, so I restored it to an int.
58458 ----------------------------
58459 revision 2.0
58460 date: 1995/02/27 11:26:47;  author: john;  state: Exp;
58461 New version 2.0, which has no anonymous unions, builds with
58462 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
58463 ----------------------------
58464 revision 1.122
58465 date: 1995/02/22 12:35:53;  author: allender;  state: Exp;
58466 remove anonymous unions
58467 ----------------------------
58468 revision 1.121
58469 date: 1995/02/06 20:43:25;  author: rob;  state: Exp;
58470 Extern'ed Dead_player_camera so it can be reset by multi.c
58471 ----------------------------
58472 revision 1.120
58473 date: 1995/02/01 16:34:07;  author: john;  state: Exp;
58474 Linted.
58475 ----------------------------
58476 revision 1.119
58477 date: 1995/01/29 13:46:42;  author: mike;  state: Exp;
58478 adapt to new create_small_fireball_on_object prototype.
58479 ----------------------------
58480 revision 1.118
58481 date: 1995/01/26 22:11:27;  author: mike;  state: Exp;
58482 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
58483 ----------------------------
58484 revision 1.117
58485 date: 1995/01/24 12:09:29;  author: mike;  state: Exp;
58486 Boost MAX_OBJECTS from 250 to 350.
58487 ----------------------------
58488 revision 1.116
58489 date: 1995/01/13 19:39:51;  author: rob;  state: Exp;
58490 Removed outdated remote_info structure.  (looking for cause of bugs
58491 ----------------------------
58492 revision 1.115
58493 date: 1995/01/12 12:09:38;  author: yuan;  state: Exp;
58494 Added coop object capability.
58495 ----------------------------
58496 revision 1.114
58497 date: 1994/12/15 13:04:20;  author: mike;  state: Exp;
58498 Replace Players[Player_num].time_total references with GameTime.
58499 ----------------------------
58500 revision 1.113
58501 date: 1994/12/12 17:18:09;  author: mike;  state: Exp;
58502 make boss cloak/teleport when get hit, make quad laser 3/4 as powerful.
58503 ----------------------------
58504 revision 1.112
58505 date: 1994/12/09 14:58:42;  author: matt;  state: Exp;
58506 Added system to attach a fireball to another object for rendering purposes,
58507 so the fireball always renders on top of (after) the object.
58508 ----------------------------
58509 revision 1.111
58510 date: 1994/12/08 12:35:35;  author: matt;  state: Exp;
58511 Added new object allocation & deallocation functions so other code
58512 could stop messing around with internal object data structures.
58513 ----------------------------
58514 revision 1.110
58515 date: 1994/11/21 17:30:21;  author: matt;  state: Exp;
58516 Increased max number of objects
58517 ----------------------------
58518 revision 1.109
58519 date: 1994/11/18 23:41:52;  author: john;  state: Exp;
58520 Changed some shorts to ints.
58521 ----------------------------
58522 revision 1.108
58523 date: 1994/11/10 14:02:45;  author: matt;  state: Exp;
58524 Hacked in support for player ships with different textures
58525 ----------------------------
58526 revision 1.107
58527 date: 1994/11/08 12:19:27;  author: mike;  state: Exp;
58528 Small explosions on objects.
58529 ----------------------------
58530 revision 1.106
58531 date: 1994/10/25 10:51:17;  author: matt;  state: Exp;
58532 Vulcan cannon powerups now contain ammo count
58533 ----------------------------
58534 revision 1.105
58535 date: 1994/10/21 12:19:41;  author: matt;  state: Exp;
58536 Clear transient objects when saving (& loading) games
58537 ----------------------------
58538 revision 1.104
58539 date: 1994/10/21 11:25:04;  author: mike;  state: Exp;
58540 Add IMMORTAL_TIME.
58541 ----------------------------
58542 revision 1.103
58543 date: 1994/10/17 21:34:54;  author: matt;  state: Exp;
58544 Added support for new Control Center/Main Reactor
58545 ----------------------------
58546 revision 1.102
58547 date: 1994/10/14 18:12:28;  author: mike;  state: Exp;
58548 Make egg dropping return object number.
58549 ----------------------------
58550 revision 1.101
58551 date: 1994/10/12 21:07:19;  author: matt;  state: Exp;
58552 Killed unused field in object structure
58553 ----------------------------
58554 revision 1.100
58555 date: 1994/10/12 10:38:24;  author: mike;  state: Exp;
58556 Add field OF_SILENT to obj->flags.
58557 ----------------------------
58558 revision 1.99
58559 date: 1994/10/11 20:35:48;  author: matt;  state: Exp;
58560 Clear "transient" objects (weapons,explosions,etc.) when starting a level
58561 ----------------------------
58562 revision 1.98
58563 date: 1994/10/03 20:56:13;  author: rob;  state: Exp;
58564 Added velocity to shortpos strucutre.
58565 ----------------------------
58566 revision 1.97
58567 date: 1994/09/30 18:24:00;  author: rob;  state: Exp;
58568 Added new control type CT_REMOTE for remote controlled objects.
58569 Also added a union struct 'remote_info' for this type.
58570 ----------------------------
58571 revision 1.96
58572 date: 1994/09/28 09:23:05;  author: mike;  state: Exp;
58573 Prototype Object_type_names.
58574 ----------------------------
58575 revision 1.95
58576 date: 1994/09/25 23:32:37;  author: matt;  state: Exp;
58577 Changed the object load & save code to read/write the structure fields one
58578 at a time (rather than the whole structure at once).  This mean that the
58579 object structure can be changed without breaking the load/save functions.
58580 As a result of this change, the local_object data can be and has been 
58581 incorporated into the object array.  Also, timeleft is now a property 
58582 of all objects, and the object structure has been otherwise cleaned up.
58583 ----------------------------
58584 revision 1.94
58585 date: 1994/09/25 15:45:28;  author: matt;  state: Exp;
58586 Added OBJ_LIGHT, a type of object that casts light
58587 Added generalized lifeleft, and moved it to local_object
58588 ----------------------------
58589 revision 1.93
58590 date: 1994/09/24 17:41:19;  author: mike;  state: Exp;
58591 Add stuff to Local_object structure for materialization centers.
58592 ----------------------------
58593 revision 1.92
58594 date: 1994/09/24 13:16:50;  author: matt;  state: Exp;
58595 Added (hacked in, really) support for overriding the bitmaps used on to
58596 texture map a polygon object, and using a new bitmap for all the faces.
58597 ----------------------------
58598 revision 1.91
58599 date: 1994/09/22 19:02:14;  author: mike;  state: Exp;
58600 Prototype functions extract_shortpos and create_shortpos which reside in
58601 gameseg.c, but are prototyped here to prevent circular dependencies.
58602 ----------------------------
58603 revision 1.90
58604 date: 1994/09/15 21:47:14;  author: mike;  state: Exp;
58605 Prototype dead_player_end().
58606 ----------------------------
58607 revision 1.89
58608 date: 1994/09/15 16:34:47;  author: mike;  state: Exp;
58609 Add danger_laser_num and danger_laser_signature to object_local to
58610 enable robots to efficiently (too efficiently!) avoid player fire.
58611 ----------------------------
58612 revision 1.88
58613 date: 1994/09/11 22:46:19;  author: mike;  state: Exp;
58614 Death_sequence_aborted prototyped.
58615 ----------------------------
58616 revision 1.87
58617 date: 1994/09/09 20:04:30;  author: mike;  state: Exp;
58618 Add vclips for weapons.
58619 ----------------------------
58620 revision 1.86
58621 date: 1994/09/09 14:20:54;  author: matt;  state: Exp;
58622 Added flag that says object uses thrust
58623 ----------------------------
58624 revision 1.85
58625 date: 1994/09/08 14:51:32;  author: mike;  state: Exp;
58626 Make a crucial name change to a field of local_object struct.
58627 ----------------------------
58628 revision 1.84
58629 date: 1994/09/07 19:16:45;  author: mike;  state: Exp;
58630 Homing missile.
58631 ----------------------------
58632 revision 1.83
58633 date: 1994/09/06 17:05:43;  author: matt;  state: Exp;
58634 Added new type for dead player
58635 ----------------------------
58636 revision 1.82
58637 date: 1994/09/02 11:56:09;  author: mike;  state: Exp;
58638 Add persistency (PF_PERSISTENT) to physics_info.
58639 ----------------------------
58640 revision 1.81
58641 date: 1994/08/28 19:10:28;  author: mike;  state: Exp;
58642 Add Player_is_dead.
58643 ----------------------------
58644 revision 1.80
58645 date: 1994/08/18 15:11:44;  author: mike;  state: Exp;
58646 powerup stuff.
58647 ----------------------------
58648 revision 1.79
58649 date: 1994/08/15 15:24:54;  author: john;  state: Exp;
58650 Made players know who killed them; Disabled cheat menu
58651 during net player; fixed bug with not being able to turn
58652 of invulnerability; Made going into edit/starting new leve
58653 l drop you out of a net game; made death dialog box.
58654 ----------------------------
58655 revision 1.78
58656 date: 1994/08/14 23:15:12;  author: matt;  state: Exp;
58657 Added animating bitmap hostages, and cleaned up vclips a bit
58658 ----------------------------
58659 revision 1.77
58660 date: 1994/08/13 14:58:27;  author: matt;  state: Exp;
58661 Finished adding support for miscellaneous objects
58662 ----------------------------
58663 revision 1.76
58664 date: 1994/08/09 16:04:13;  author: john;  state: Exp;
58665 Added network players to editor.
58666 ----------------------------
58667 revision 1.75
58668 date: 1994/08/03 21:06:19;  author: matt;  state: Exp;
58669 Added prototype for fix_object_segs(), and renamed now-unused spawn_pos
58670 ----------------------------
58671 revision 1.74
58672 date: 1994/08/02 12:30:27;  author: matt;  state: Exp;
58673 Added support for spinning objects
58674 ----------------------------
58675 revision 1.73
58676 date: 1994/07/27 20:53:25;  author: matt;  state: Exp;
58677 Added rotational drag & thrust, so turning now has momemtum like moving
58678 ----------------------------
58679 revision 1.72
58680 date: 1994/07/27 19:44:21;  author: mike;  state: Exp;
58681 Objects containing objects.
58682 ----------------------------
58683 revision 1.71
58684 date: 1994/07/22 20:43:29;  author: matt;  state: Exp;
58685 Fixed flares, by adding a physics flag that makes them stick to walls.
58686 ----------------------------
58687 revision 1.70
58688 date: 1994/07/21 12:42:10;  author: mike;  state: Exp;
58689 Prototype new find_object_seg and update_object_seg.
58690 ----------------------------
58691 revision 1.69
58692 date: 1994/07/19 15:26:39;  author: mike;  state: Exp;
58693 New ai_static structure.
58694 ----------------------------
58695 revision 1.68
58696 date: 1994/07/13 00:15:06;  author: matt;  state: Exp;
58697 Moved all (or nearly all) of the values that affect player movement to 
58698 bitmaps.tbl
58699 ----------------------------
58700 revision 1.67
58701 date: 1994/07/12 12:40:12;  author: matt;  state: Exp;
58702 Revamped physics system
58703 ----------------------------
58704 revision 1.66
58705 date: 1994/07/06 15:26:23;  author: yuan;  state: Exp;
58706 Added chase mode.
58707 =============================================================================
58708 RCS file: f:/miner/source/main/objfly.c,v
58709 Working file: main/objfly.c
58710 head: 2.0
58711 branch:
58712 description: Code for making objects do a flythrough.
58713 ----------------------------
58714 revision 2.0
58715 date: 1995/02/27 11:31:00;  author: john;  state: Exp;
58716 New version 2.0, which has no anonymous unions, builds with
58717 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
58718 ----------------------------
58719 revision 1.4
58720 date: 1994/11/17 14:58:11;  author: mike;  state: Exp;
58721 moved segment validation functions from editor to main.
58722 ----------------------------
58723 revision 1.3
58724 date: 1994/02/17 11:32:36;  author: matt;  state: Exp;
58725 Changes in object system
58726 ----------------------------
58727 revision 1.2
58728 date: 1994/01/27 18:46:28;  author: john;  state: Exp;
58729 Initial version
58730 ----------------------------
58731 revision 1.1
58732 date: 1994/01/27 15:11:07;  author: john;  state: Exp;
58733 Initial revision
58734 =============================================================================
58735 RCS file: f:/miner/source/main/editor/objpage.c,v
58736 Working file: main/editor/objpage.c
58737 head: 2.0
58738 branch:
58739 description: object selection stuff.
58740 ----------------------------
58741 revision 2.0
58742 date: 1995/02/27 11:34:43;  author: john;  state: Exp;
58743 Version 2.0! No anonymous unions, Watcom 10.0, with no need
58744 for bitmaps.tbl.
58745 ----------------------------
58746 revision 1.37
58747 date: 1995/01/14 19:17:55;  author: john;  state: Exp;
58748 First version of object paging.
58749 ----------------------------
58750 revision 1.36
58751 date: 1995/01/05 16:20:13;  author: mike;  state: Exp;
58752 bah, remove the int3.
58753 ----------------------------
58754 revision 1.35
58755 date: 1995/01/05 12:47:13;  author: mike;  state: Exp;
58756 Move code about to prevent compiler warning.
58757 ----------------------------
58758 revision 1.34
58759 date: 1994/11/18 15:23:55;  author: john;  state: Exp;
58760 Made so the int3 for drawing an invalib object just returns.
58761 ----------------------------
58762 revision 1.33
58763 date: 1994/11/02 16:19:18;  author: matt;  state: Exp;
58764 Moved draw_model_picture() out of editor, and cleaned up code
58765 ----------------------------
58766 revision 1.32
58767 date: 1994/10/23 02:11:18;  author: matt;  state: Exp;
58768 Got rid of obsolete hostage_info stuff
58769 ----------------------------
58770 revision 1.31
58771 date: 1994/09/09 14:41:35;  author: matt;  state: Exp;
58772 New parms for draw_polygon_model()
58773 ----------------------------
58774 revision 1.30
58775 date: 1994/08/29 19:26:53;  author: matt;  state: Exp;
58776 Fixed botches change from yesterday
58777 ----------------------------
58778 revision 1.29
58779 date: 1994/08/28 23:40:35;  author: matt;  state: Exp;
58780 ----------------------------
58781 revision 1.28
58782 date: 1994/08/14 23:15:32;  author: matt;  state: Exp;
58783 Added animating bitmap hostages, and cleaned up vclips a bit
58784 ----------------------------
58785 revision 1.27
58786 date: 1994/08/13 14:59:02;  author: matt;  state: Exp;
58787 Finished adding support for miscellaneous objects
58788 ----------------------------
58789 revision 1.26
58790 date: 1994/08/09 16:06:15;  author: john;  state: Exp;
58791 Added the ability to place players.  Made old
58792 Player variable be ConsoleObject.
58793 ----------------------------
58794 revision 1.25
58795 date: 1994/07/28 16:59:23;  author: mike;  state: Exp;
58796 objects containing objects.
58797 ----------------------------
58798 revision 1.24
58799 date: 1994/06/08 18:17:25;  author: john;  state: Exp;
58800 Changed the way object types and id's work for hostages
58801 and powerups.
58802 ----------------------------
58803 revision 1.23
58804 date: 1994/06/07 16:52:30;  author: matt;  state: Exp;
58805 Made object lighting work correctly; changed name of Ambient_light to
58806 Dynamic_light; cleaned up polygobj object rendering a little.
58807 ----------------------------
58808 revision 1.22
58809 date: 1994/05/31 18:42:07;  author: matt;  state: Exp;
58810 Made robot photos unlighted
58811 ----------------------------
58812 revision 1.21
58813 date: 1994/05/26 21:09:34;  author: matt;  state: Exp;
58814 Moved robot stuff out of polygon model and into robot_info struct
58815 Made new file, robot.c, to deal with robots
58816 ----------------------------
58817 revision 1.20
58818 date: 1994/05/19 12:10:11;  author: matt;  state: Exp;
58819 Use new vecmat macros and globals
58820 ----------------------------
58821 revision 1.19
58822 date: 1994/05/17 14:45:27;  author: mike;  state: Exp;
58823 Get object type and id from ObjType and ObjId.
58824 ----------------------------
58825 revision 1.18
58826 date: 1994/05/17 12:03:36;  author: mike;  state: Exp;
58827 Deal with little known fact that polygon object != robot.
58828 ----------------------------
58829 revision 1.17
58830 date: 1994/04/29 09:16:56;  author: matt;  state: Exp;
58831 Added support for multiple-piece explosions
58832 ----------------------------
58833 revision 1.16
58834 date: 1994/04/18 14:15:00;  author: john;  state: Exp;
58835 Initial version of robot dialog box.
58836 ----------------------------
58837 revision 1.15
58838 date: 1994/04/11 12:01:36;  author: yuan;  state: Exp;
58839 Fixed resetting to first object on page annoyance.
58840 ----------------------------
58841 revision 1.14
58842 date: 1994/04/01 14:35:50;  author: yuan;  state: Exp;
58843 Removed debug "id %d\n" for placing objects
58844 ----------------------------
58845 revision 1.13
58846 date: 1994/04/01 11:17:04;  author: yuan;  state: Exp;
58847 Added objects to objpage. Added buttons for easier tmap scrolling.
58848 Objects are selected fully from objpage and add object menu or pad.
58849 ----------------------------
58850 revision 1.12
58851 date: 1994/03/25 18:42:26;  author: matt;  state: Exp;
58852 Adjusted constant to make robot pictures more correct size
58853 ----------------------------
58854 revision 1.11
58855 date: 1994/03/25 16:57:17;  author: matt;  state: Exp;
58856 New parm to draw_polygon_object(), and draw object "snapshots" in
58857 correct size (although this probably doesn't work yet).
58858 ----------------------------
58859 revision 1.10
58860 date: 1994/03/25 14:23:01;  author: matt;  state: Exp;
58861 Disabled lighting when taking "snapshots" of robots
58862 ----------------------------
58863 revision 1.9
58864 date: 1994/03/17 10:47:24;  author: john;  state: Exp;
58865 Corrected all kinds of problems associated with N_polygon_objects.
58866 ----------------------------
58867 revision 1.8
58868 date: 1994/03/16 11:07:31;  author: john;  state: Exp;
58869 Made zoom work a bit better.
58870 ----------------------------
58871 revision 1.7
58872 date: 1994/03/16 10:50:32;  author: john;  state: Exp;
58873 fixed warning with constant length.
58874 ----------------------------
58875 revision 1.6
58876 date: 1994/03/16 10:43:18;  author: john;  state: Exp;
58877 Added controls to rotate/zoom object.
58878 ----------------------------
58879 revision 1.5
58880 date: 1994/03/15 22:23:24;  author: matt;  state: Exp;
58881 Render little bitmap pictures of robots for display on editor page
58882 ----------------------------
58883 revision 1.4
58884 date: 1994/02/01 11:27:14;  author: john;  state: Exp;
58885 Hacked in 8 object types for demo.
58886 ----------------------------
58887 revision 1.3
58888 date: 1994/01/26 16:42:19;  author: john;  state: Exp;
58889 Display numbers instead of bitmaps... made 
58890 Num_robot_types or whatever be set to 4
58891 in init_object_page... this is a hack!!!
58892 ----------------------------
58893 revision 1.2
58894 date: 1993/12/16 17:26:24;  author: john;  state: Exp;
58895 Moved texture and object selection to texpage and objpage
58896 ----------------------------
58897 revision 1.1
58898 date: 1993/12/16 16:12:57;  author: john;  state: Exp;
58899 Initial revision
58900 =============================================================================
58901 RCS file: f:/miner/source/main/editor/objpage.h,v
58902 Working file: main/editor/objpage.h
58903 head: 2.0
58904 branch:
58905 description: object selection stuff.
58906 ----------------------------
58907 revision 2.0
58908 date: 1995/02/27 11:35:32;  author: john;  state: Exp;
58909 Version 2.0! No anonymous unions, Watcom 10.0, with no need
58910 for bitmaps.tbl.
58911 ----------------------------
58912 revision 1.8
58913 date: 1994/11/02 16:19:20;  author: matt;  state: Exp;
58914 Moved draw_model_picture() out of editor, and cleaned up code
58915 ----------------------------
58916 revision 1.7
58917 date: 1994/07/28 16:59:36;  author: mike;  state: Exp;
58918 objects containing objects.
58919 ----------------------------
58920 revision 1.6
58921 date: 1994/05/17 14:45:48;  author: mike;  state: Exp;
58922 Get object type and id from ObjectType and ObjectId.
58923 ----------------------------
58924 revision 1.5
58925 date: 1994/05/17 12:03:55;  author: mike;  state: Exp;
58926 Deal with little known fact that polygon object != robot.
58927 ----------------------------
58928 revision 1.4
58929 date: 1994/05/14 18:00:33;  author: matt;  state: Exp;
58930 Got rid of externs in source (non-header) files
58931 ----------------------------
58932 revision 1.3
58933 date: 1994/04/01 11:17:06;  author: yuan;  state: Exp;
58934 Added objects to objpage. Added buttons for easier tmap scrolling.
58935 Objects are selected fully from objpage and add object menu or pad.
58936 ----------------------------
58937 revision 1.2
58938 date: 1993/12/16 17:26:27;  author: john;  state: Exp;
58939 Moved texture and object selection to texpage and objpage
58940 ----------------------------
58941 revision 1.1
58942 date: 1993/12/16 16:13:08;  author: john;  state: Exp;
58943 Initial revision
58944 =============================================================================
58945 RCS file: f:/miner/source/main/objvecs.c,v
58946 Working file: main/objvecs.c
58947 head: 1.2
58948 branch:
58949 description: Vectors for multiple-view bitmaps
58950 ----------------------------
58951 revision 1.2
58952 date: 1993/12/07 23:55:26;  author: matt;  state: Exp;
58953 Added tables from files from 3d
58954 ----------------------------
58955 revision 1.1
58956 date: 1993/12/07 23:02:54;  author: matt;  state: Exp;
58957 Initial revision
58958 =============================================================================
58959 RCS file: f:/miner/source/main/ourcom.c,v
58960 Working file: main/ourcom.c
58961 head: 2.0
58962 branch:
58963 description: Modem support code
58964 ----------------------------
58965 revision 2.0
58966 date: 1995/02/27 11:27:36;  author: john;  state: Exp;
58967 New version 2.0, which has no anonymous unions, builds with
58968 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
58969 ----------------------------
58970 revision 1.1
58971 date: 1994/10/09 22:29:00;  author: rob;  state: Exp;
58972 Initial revision
58973 ----------------------------
58974 revision 1.7
58975 date: 1994/09/27 15:05:54;  author: rob;  state: Exp;
58976 Last checkin had error.
58977 ----------------------------
58978 revision 1.6
58979 date: 1994/09/27 15:03:12;  author: rob;  state: Exp;
58980 Null modem basic routines working.  Sending DEAD messages and
58981 missiles still need to be done.
58982 ----------------------------
58983 revision 1.5
58984 date: 1994/09/24 16:52:20;  author: rob;  state: Exp;
58985 Added stubbed funcs for startup and stop of serial games.
58986 ----------------------------
58987 revision 1.4
58988 date: 1994/09/24 15:10:21;  author: rob;  state: Exp;
58989 Removed some compiler warnings.
58990 ----------------------------
58991 revision 1.3
58992 date: 1994/09/24 14:40:34;  author: rob;  state: Exp;
58993 Sending shortpos structures.  9600 baud max.
58994 ----------------------------
58995 revision 1.2
58996 date: 1994/09/22 17:53:11;  author: rob;  state: Exp;
58997 First revision.  Not functional yet.
58998 ----------------------------
58999 revision 1.1
59000 date: 1994/09/21 13:23:25;  author: rob;  state: Exp;
59001 Initial revision
59002 =============================================================================
59003 RCS file: f:/miner/source/main/outside.c,v
59004 Working file: main/outside.c
59005 head: 1.1
59006 branch:
59007 description: Code for rendering external scenes
59008 ----------------------------
59009 revision 1.1
59010 date: 1994/08/15 14:04:53;  author: matt;  state: Exp;
59011 Initial revision
59012 =============================================================================
59013 RCS file: f:/miner/source/main/outside.h,v
59014 Working file: main/outside.h
59015 head: 1.1
59016 branch:
59017 description: Header for newfile.c
59018 ----------------------------
59019 revision 1.1
59020 date: 1994/08/15 19:18:47;  author: matt;  state: Exp;
59021 Initial revision
59022 =============================================================================
59023 RCS file: f:/miner/source/main/polyobj.c,v
59024 Working file: main/polyobj.c
59025 head: 2.0
59026 branch:
59027 description: Hacked-in polygon objects
59028 ----------------------------
59029 revision 2.0
59030 date: 1995/02/27 11:32:44;  author: john;  state: Exp;
59031 New version 2.0, which has no anonymous unions, builds with
59032 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59033 ----------------------------
59034 revision 1.64
59035 date: 1995/01/14 19:16:43;  author: john;  state: Exp;
59036 First version of new bitmap paging code.
59037 ----------------------------
59038 revision 1.63
59039 date: 1994/12/14 18:06:54;  author: matt;  state: Exp;
59040 Removed compile warnings
59041 ----------------------------
59042 revision 1.62
59043 date: 1994/12/09 17:54:31;  author: john;  state: Exp;
59044 Made the CFILE's close right after reading in data.
59045 ----------------------------
59046 revision 1.61
59047 date: 1994/12/09 16:13:28;  author: mike;  state: Exp;
59048 speedup pof file reading, but still horribly slow using hog file...problem somewhere else.
59049 ----------------------------
59050 revision 1.60
59051 date: 1994/12/08 17:41:20;  author: yuan;  state: Exp;
59052 Cfiling stuff.
59053 ----------------------------
59054 revision 1.59
59055 date: 1994/11/21 11:02:19;  author: matt;  state: Exp;
59056 Added error checking
59057 ----------------------------
59058 revision 1.58
59059 date: 1994/11/14 11:32:49;  author: matt;  state: Exp;
59060 Allow switching to simpler models even when alt_textures specified
59061 ----------------------------
59062 revision 1.57
59063 date: 1994/11/13 21:15:24;  author: matt;  state: Exp;
59064 Added basic support for more than one level of detail simplification
59065 ----------------------------
59066 revision 1.56
59067 date: 1994/11/11 19:29:25;  author: matt;  state: Exp;
59068 Added code to show low detail polygon models
59069 ----------------------------
59070 revision 1.55
59071 date: 1994/11/10 14:02:57;  author: matt;  state: Exp;
59072 Hacked in support for player ships with different textures
59073 ----------------------------
59074 revision 1.54
59075 date: 1994/11/03 11:01:59;  author: matt;  state: Exp;
59076 Made robot pics lighted
59077 ----------------------------
59078 revision 1.53
59079 date: 1994/11/02 16:18:34;  author: matt;  state: Exp;
59080 Moved draw_model_picture() out of editor
59081 ----------------------------
59082 revision 1.52
59083 date: 1994/10/18 14:38:11;  author: matt;  state: Exp;
59084 Restored assert now that bug is fixed
59085 ----------------------------
59086 revision 1.51
59087 date: 1994/10/17 21:35:03;  author: matt;  state: Exp;
59088 Added support for new Control Center/Main Reactor
59089 ----------------------------
59090 revision 1.50
59091 date: 1994/10/14 17:46:23;  author: yuan;  state: Exp;
59092 Made the soft Int3 only work in net mode.
59093 ----------------------------
59094 revision 1.49
59095 date: 1994/10/14 17:43:47;  author: yuan;  state: Exp;
59096 Added soft int3's instead of Asserts  for some common network bugs.
59097 ----------------------------
59098 revision 1.48
59099 date: 1994/10/14 17:09:04;  author: yuan;  state: Exp;
59100 Made Assert on line 610 be if in an attempt
59101 to bypass.
59102 ----------------------------
59103 revision 1.47
59104 date: 1994/09/09 14:23:42;  author: matt;  state: Exp;
59105 Added glow code to polygon models for engine glow
59106 ----------------------------
59107 revision 1.46
59108 date: 1994/08/26 18:03:30;  author: matt;  state: Exp;
59109 Added code to remap polygon model numbers by matching filenames
59110 ----------------------------
59111 revision 1.45
59112 date: 1994/08/26 15:35:58;  author: matt;  state: Exp;
59113 Made eclips usable on more than one object at a time
59114 ----------------------------
59115 revision 1.44
59116 date: 1994/08/25 18:11:58;  author: matt;  state: Exp;
59117 Made player's weapons and flares fire from the positions on the 3d model.
59118 Also added support for quad lasers.
59119 ----------------------------
59120 revision 1.43
59121 date: 1994/07/25 00:14:18;  author: matt;  state: Exp;
59122 Made a couple of minor changes for the drivethrough
59123 ----------------------------
59124 revision 1.42
59125 date: 1994/07/25 00:02:41;  author: matt;  state: Exp;
59126 Various changes to accomodate new 3d, which no longer takes point numbers
59127 as parms, and now only takes pointers to points.
59128 =============================================================================
59129 RCS file: f:/miner/source/main/paging.c,v
59130 Working file: main/paging.c
59131 head: 2.5
59132 branch:
59133 description: Routines for paging in/out textures.
59134 ----------------------------
59135 revision 2.5
59136 date: 1995/10/07 13:18:21;  author: john;  state: Exp;
59137 Added PSX debugging stuff that builds .PAG files.
59138 ----------------------------
59139 revision 2.4
59140 date: 1995/08/24 13:40:03;  author: john;  state: Exp;
59141 Added code to page in vclip for powerup disapperance and to 
59142 fix bug that made robot makers not page in the correct bot
59143 textures.
59144 ----------------------------
59145 revision 2.3
59146 date: 1995/07/26 12:09:19;  author: john;  state: Exp;
59147 Made code that pages in weapon_info->robot_hit_vclip not
59148 page in unless it is a badass weapon.  Took out old functionallity
59149 of using this if no robot exp1_vclip, since all robots have these.
59150 ----------------------------
59151 revision 2.2
59152 date: 1995/07/24 13:22:11;  author: john;  state: Exp;
59153 Made sure everything gets paged in at the
59154 level start.  Fixed bug with robot effects not
59155 getting paged in correctly.
59156 ----------------------------
59157 revision 2.1
59158 date: 1995/05/12 15:50:16;  author: allender;  state: Exp;
59159 fix to check effects dest_bm_num > -1 before paging in
59160 ----------------------------
59161 revision 2.0
59162 date: 1995/02/27 11:27:39;  author: john;  state: Exp;
59163 New version 2.0, which has no anonymous unions, builds with
59164 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59165 ----------------------------
59166 revision 1.18
59167 date: 1995/02/22 14:12:28;  author: allender;  state: Exp;
59168 remove anonyous union from object structure
59169 ----------------------------
59170 revision 1.17
59171 date: 1995/02/11 22:54:15;  author: john;  state: Exp;
59172 Made loading for pig not show up for demos.
59173 ----------------------------
59174 revision 1.16
59175 date: 1995/02/11 22:37:04;  author: john;  state: Exp;
59176 Made cockpit redraw.
59177 ----------------------------
59178 revision 1.15
59179 date: 1995/01/28 16:29:35;  author: john;  state: Exp;
59180 *** empty log message ***
59181 ----------------------------
59182 revision 1.14
59183 date: 1995/01/27 17:16:18;  author: john;  state: Exp;
59184 Added code to page in all the weapons.
59185 ----------------------------
59186 revision 1.13
59187 date: 1995/01/24 21:51:22;  author: matt;  state: Exp;
59188 Clear the boxed message to fix a mem leakage
59189 ----------------------------
59190 revision 1.12
59191 date: 1995/01/23 13:00:46;  author: john;  state: Exp;
59192 Added hostage vclip paging.
59193 ----------------------------
59194 revision 1.11
59195 date: 1995/01/23 12:29:52;  author: john;  state: Exp;
59196 Added code to page in eclip on robots, dead control center,
59197 gauges bitmaps, and weapon pictures.
59198 ----------------------------
59199 revision 1.10
59200 date: 1995/01/21 12:54:15;  author: adam;  state: Exp;
59201 *** empty log message ***
59202 ----------------------------
59203 revision 1.9
59204 date: 1995/01/21 12:41:29;  author: adam;  state: Exp;
59205 changed orb to loading box
59206 ----------------------------
59207 revision 1.8
59208 date: 1995/01/18 15:09:02;  author: john;  state: Exp;
59209 Added start/stop time around paging.
59210 Made paging clear screen around globe.
59211 ----------------------------
59212 revision 1.7
59213 date: 1995/01/18 10:37:00;  author: john;  state: Exp;
59214 Added code to page in exploding monitors.
59215 ----------------------------
59216 revision 1.6
59217 date: 1995/01/17 19:03:35;  author: john;  state: Exp;
59218 Added cool spinning orb during loading.
59219 ----------------------------
59220 revision 1.5
59221 date: 1995/01/17 14:49:26;  author: john;  state: Exp;
59222 Paged in weapons.
59223 ----------------------------
59224 revision 1.4
59225 date: 1995/01/17 12:14:07;  author: john;  state: Exp;
59226 Made walls, object explosion vclips load at level start.
59227 ----------------------------
59228 revision 1.3
59229 date: 1995/01/15 13:23:24;  author: john;  state: Exp;
59230 First working version
59231 ----------------------------
59232 revision 1.2
59233 date: 1995/01/15 11:56:45;  author: john;  state: Exp;
59234 Working version of paging.
59235 ----------------------------
59236 revision 1.1
59237 date: 1995/01/15 11:33:37;  author: john;  state: Exp;
59238 Initial revision
59239 =============================================================================
59240 RCS file: f:/miner/source/main/paging.h,v
59241 Working file: main/paging.h
59242 head: 2.0
59243 branch:
59244 description: Prototypes for paging.
59245 ----------------------------
59246 revision 2.0
59247 date: 1995/02/27 11:30:12;  author: john;  state: Exp;
59248 New version 2.0, which has no anonymous unions, builds with
59249 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59250 ----------------------------
59251 revision 1.2
59252 date: 1995/01/15 11:56:39;  author: john;  state: Exp;
59253 Working version of paging.
59254 ----------------------------
59255 revision 1.1
59256 date: 1995/01/15 11:33:52;  author: john;  state: Exp;
59257 Initial revision
59258 =============================================================================
59259 RCS file: f:/miner/source/main/photos.c,v
59260 Working file: main/photos.c
59261 head: 2.1
59262 branch:
59263 description: Take multiple-view "photos" of an object
59264 ----------------------------
59265 revision 2.1
59266 date: 1995/03/06 15:23:34;  author: john;  state: Exp;
59267 New screen techniques.
59268 ----------------------------
59269 revision 2.0
59270 date: 1995/02/27 11:29:34;  author: john;  state: Exp;
59271 New version 2.0, which has no anonymous unions, builds with
59272 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59273 ----------------------------
59274 revision 1.8
59275 date: 1993/12/09 15:07:27;  author: john;  state: Exp;
59276 Changed palette stuff majorly... no more grd_curscreen->palette
59277 ----------------------------
59278 revision 1.7
59279 date: 1993/12/05 22:47:49;  author: matt;  state: Exp;
59280 Reworked include files in an attempt to cut down on build times
59281 ----------------------------
59282 revision 1.6
59283 date: 1993/12/01 00:27:08;  author: yuan;  state: Exp;
59284 Implemented new bitmap structure system...
59285 overall bitmap scheme still needs some work.
59286 ----------------------------
59287 revision 1.5
59288 date: 1993/11/29 19:50:11;  author: matt;  state: Exp;
59289 Change vertex allocation
59290 ----------------------------
59291 revision 1.4
59292 date: 1993/11/29 18:57:49;  author: matt;  state: Exp;
59293 Changed vertex numbering around a bit
59294 ----------------------------
59295 revision 1.3
59296 date: 1993/11/23 14:35:50;  author: matt;  state: Exp;
59297 Don't do perspecive on photos; save up vectors to file
59298 ----------------------------
59299 revision 1.2
59300 date: 1993/11/22 10:53:05;  author: matt;  state: Exp;
59301 Now use correct uvl structure (not just array of uvs)
59302 ----------------------------
59303 revision 1.1
59304 date: 1993/11/21 22:53:24;  author: matt;  state: Exp;
59305 Initial revision
59306 =============================================================================
59307 RCS file: f:/miner/source/main/physics.c,v
59308 Working file: main/physics.c
59309 head: 2.2
59310 branch:
59311 description: Code for flying through the mines
59312 ----------------------------
59313 revision 2.2
59314 date: 1995/03/24 14:48:54;  author: john;  state: Exp;
59315 Added cheat for player to go thru walls.
59316 ----------------------------
59317 revision 2.1
59318 date: 1995/03/20 18:15:59;  author: john;  state: Exp;
59319 Added code to not store the normals in the segment structure.
59320 ----------------------------
59321 revision 2.0
59322 date: 1995/02/27 11:32:06;  author: john;  state: Exp;
59323 New version 2.0, which has no anonymous unions, builds with
59324 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59325 ----------------------------
59326 revision 1.213
59327 date: 1995/02/22 13:40:48;  author: allender;  state: Exp;
59328 remove anonymous unions from object structure
59329 ----------------------------
59330 revision 1.212
59331 date: 1995/02/22 13:24:42;  author: john;  state: Exp;
59332 Removed the vecmat anonymous unions.
59333 ----------------------------
59334 revision 1.211
59335 date: 1995/02/06 19:46:59;  author: matt;  state: Exp;
59336 New function (untested), set_thrust_from_velocity()
59337 ----------------------------
59338 revision 1.210
59339 date: 1995/02/02 16:26:12;  author: matt;  state: Exp;
59340 Changed assert that was causing a problem
59341 ----------------------------
59342 revision 1.209
59343 date: 1995/02/02 14:07:00;  author: matt;  state: Exp;
59344 Fixed confusion about which segment you are touching when you're 
59345 touching a wall.  This manifested itself in spurious lava burns.
59346 ----------------------------
59347 revision 1.208
59348 date: 1995/02/01 21:03:24;  author: john;  state: Exp;
59349 Lintified.
59350 ----------------------------
59351 revision 1.207
59352 date: 1995/01/25 13:53:35;  author: rob;  state: Exp;
59353 Removed an Int3 from multiplayer games.
59354 ----------------------------
59355 revision 1.206
59356 date: 1995/01/23 17:30:47;  author: rob;  state: Exp;
59357 Removed Int3 on bogus sim time.
59358 ----------------------------
59359 revision 1.205
59360 date: 1995/01/17 11:08:56;  author: matt;  state: Exp;
59361 Disable new-ish FVI edge checking for all objects except the player,
59362 since it was causing problems with the fusion cannon.
59363 ----------------------------
59364 revision 1.204
59365 date: 1995/01/05 09:43:49;  author: matt;  state: Exp;
59366 Took out int3s from new code
59367 ----------------------------
59368 revision 1.203
59369 date: 1995/01/04 22:19:23;  author: matt;  state: Exp;
59370 Added hack to keep player from squeezing through closed walls/doors
59371 ----------------------------
59372 revision 1.202
59373 date: 1995/01/02 12:38:48;  author: mike;  state: Exp;
59374 physics hack to crazy josh not get hung up on proximity bombs.  Matt notified via email.
59375 ----------------------------
59376 revision 1.201
59377 date: 1994/12/13 15:39:22;  author: mike;  state: Exp;
59378 #ifndef NDEBUG some code.
59379 ----------------------------
59380 revision 1.200
59381 date: 1994/12/13 13:28:34;  author: yuan;  state: Exp;
59382 Fixed type.
59383 ----------------------------
59384 revision 1.199
59385 date: 1994/12/13 13:25:00;  author: matt;  state: Exp;
59386 Made bump hack compile out if so desired
59387 ----------------------------
59388 revision 1.198
59389 date: 1994/12/13 12:02:39;  author: matt;  state: Exp;
59390 Added hack to bump player a little if stuck
59391 ----------------------------
59392 revision 1.197
59393 date: 1994/12/12 00:32:23;  author: matt;  state: Exp;
59394 When objects other than player go out of mine, jerk to center of segment
59395 ----------------------------
59396 revision 1.196
59397 date: 1994/12/10 22:52:42;  author: mike;  state: Exp;
59398 make physics left-the-mine checking always be in.
59399 ----------------------------
59400 revision 1.195
59401 date: 1994/12/08 00:53:01;  author: mike;  state: Exp;
59402 oops...phys rot bug.
59403 ----------------------------
59404 revision 1.194
59405 date: 1994/12/07 12:54:54;  author: mike;  state: Exp;
59406 tweak rotvel applied from collisions.
59407 ----------------------------
59408 revision 1.193
59409 date: 1994/12/07 00:36:08;  author: mike;  state: Exp;
59410 fix phys_apply_rot for robots -- ai was bashing effect in next frame.
59411 ----------------------------
59412 revision 1.192
59413 date: 1994/12/05 17:23:10;  author: matt;  state: Exp;
59414 Made a bunch of debug code compile out
59415 ----------------------------
59416 revision 1.191
59417 date: 1994/12/05 16:30:10;  author: matt;  state: Exp;
59418 Was illegally changing an object's segment...shoot me.
59419 ----------------------------
59420 revision 1.190
59421 date: 1994/12/05 11:58:51;  author: mike;  state: Exp;
59422 fix stupid apply_force_rot() bug.
59423 ----------------------------
59424 revision 1.189
59425 date: 1994/12/05 09:42:17;  author: mike;  state: Exp;
59426 fix 0 mag problem when object applies force to itself.
59427 ----------------------------
59428 revision 1.188
59429 date: 1994/12/04 22:48:40;  author: matt;  state: Exp;
59430 Physics & FVI now only build seglist for player objects, and they 
59431 responsilby deal with buffer full conditions
59432 ----------------------------
59433 revision 1.187
59434 date: 1994/12/04 22:14:07;  author: mike;  state: Exp;
59435 apply instantaneous rotation to an object due to a force blow.
59436 ----------------------------
59437 revision 1.186
59438 date: 1994/12/04 18:51:30;  author: matt;  state: Exp;
59439 When weapons get stuck, delete them!
59440 ----------------------------
59441 revision 1.185
59442 date: 1994/12/04 18:38:56;  author: matt;  state: Exp;
59443 Added better handling of point-not-in-seg problem
59444 ----------------------------
59445 revision 1.184
59446 date: 1994/11/27 23:13:42;  author: matt;  state: Exp;
59447 Made changes for new mprintf calling convention
59448 ----------------------------
59449 revision 1.183
59450 date: 1994/11/25 23:46:18;  author: matt;  state: Exp;
59451 Fixed drag problems with framerates over 60Hz
59452 ----------------------------
59453 revision 1.182
59454 date: 1994/11/25 22:15:52;  author: matt;  state: Exp;
59455 Added asserts to try to trap frametime < 0 bug
59456 ----------------------------
59457 revision 1.181
59458 date: 1994/11/21 11:42:44;  author: mike;  state: Exp;
59459 ndebug stuff.
59460 ----------------------------
59461 revision 1.180
59462 date: 1994/11/19 15:15:04;  author: mike;  state: Exp;
59463 remove unused code and data
59464 ----------------------------
59465 revision 1.179
59466 date: 1994/11/16 11:25:22;  author: matt;  state: Exp;
59467 Abort physics if negative frametime
59468 ----------------------------
59469 revision 1.178
59470 date: 1994/10/05 19:50:41;  author: rob;  state: Exp;
59471 Removed a non-critical Int3 where an object's segnum is checked.
59472 Left mprintf message.
59473 ----------------------------
59474 revision 1.177
59475 date: 1994/10/03 22:57:50;  author: matt;  state: Exp;
59476 Fixed problem with matrix corruption of non-moving (but rotating) objects
59477 ----------------------------
59478 revision 1.176
59479 date: 1994/09/28 09:23:28;  author: mike;  state: Exp;
59480 Add useful information to mprintf(1,... error messages.
59481 ----------------------------
59482 revision 1.175
59483 date: 1994/09/21 17:16:54;  author: mike;  state: Exp;
59484 Make objects stuck in doors go away when door opens.
59485 ----------------------------
59486 revision 1.174
59487 date: 1994/09/12 14:19:06;  author: matt;  state: Exp;
59488 Drag & thrust now handled differently
59489 ----------------------------
59490 revision 1.173
59491 date: 1994/09/09 14:21:12;  author: matt;  state: Exp;
59492 Use new thrust flag
59493 ----------------------------
59494 revision 1.172
59495 date: 1994/09/08 16:21:57;  author: matt;  state: Exp;
59496 Cleaned up player-hit-wall code, and added object scrape handling
59497 Also added weapon-on-weapon hit sound
59498 ----------------------------
59499 revision 1.171
59500 date: 1994/09/02 12:30:37;  author: matt;  state: Exp;
59501 Fixed weapons which go through objects
59502 ----------------------------
59503 revision 1.170
59504 date: 1994/09/02 11:55:14;  author: mike;  state: Exp;
59505 Kill redefinition of a constant which is properly defined in object.h
59506 ----------------------------
59507 revision 1.169
59508 date: 1994/09/02 11:35:01;  author: matt;  state: Exp;
59509 Fixed typo
59510 ----------------------------
59511 revision 1.168
59512 date: 1994/09/02 11:32:48;  author: matt;  state: Exp;
59513 Fixed object/object collisions, so you can't fly through robots anymore.
59514 Cleaned up object damage system.
59515 ----------------------------
59516 revision 1.167
59517 date: 1994/08/30 21:58:15;  author: matt;  state: Exp;
59518 Made phys_apply_force() do nothing to an object if it's not a phys object
59519 ----------------------------
59520 revision 1.166
59521 date: 1994/08/26 10:47:01;  author: john;  state: Exp;
59522 New version of controls.
59523 ----------------------------
59524 revision 1.165
59525 date: 1994/08/25 21:53:57;  author: mike;  state: Exp;
59526 Prevent counts of -1 which eventually add up to a positive number in do_ai_frame, causing
59527 the too-many-retries behavior.
59528 ----------------------------
59529 revision 1.164
59530 date: 1994/08/25 18:43:33;  author: john;  state: Exp;
59531 First revision of new control code.
59532 ----------------------------
59533 revision 1.163
59534 date: 1994/08/17 22:18:05;  author: mike;  state: Exp;
59535 Make robots which have rotvel or rotthrust, but not movement, move.
59536 ----------------------------
59537 revision 1.162
59538 date: 1994/08/13 17:31:18;  author: mike;  state: Exp;
59539 retry count stuff.
59540 ----------------------------
59541 revision 1.161
59542 date: 1994/08/11 18:59:16;  author: mike;  state: Exp;
59543 *** empty log message ***
59544 ----------------------------
59545 revision 1.160
59546 date: 1994/08/10 19:53:47;  author: mike;  state: Exp;
59547 Debug code (which is still in...)
59548 and adapt to changed interface to create_path_to_player.
59549 ----------------------------
59550 revision 1.159
59551 date: 1994/08/08 21:38:43;  author: matt;  state: Exp;
59552 Cleaned up a code a little and optimized a little
59553 ----------------------------
59554 revision 1.158
59555 date: 1994/08/08 15:21:50;  author: mike;  state: Exp;
59556 Trap retry count >= 4, but don't do AI hack unless >= 6.
59557 ----------------------------
59558 revision 1.157
59559 date: 1994/08/08 11:47:15;  author: matt;  state: Exp;
59560 Cleaned up fvi and physics a little
59561 ----------------------------
59562 revision 1.156
59563 date: 1994/08/05 10:10:10;  author: yuan;  state: Exp;
59564 Commented out debug stuff that was killing framerate.
59565 ----------------------------
59566 revision 1.155
59567 date: 1994/08/04 19:12:36;  author: matt;  state: Exp;
59568 Changed a bunch of vecmat calls to use multiple-function routines, and to
59569 allow the use of C macros for some functions
59570 ----------------------------
59571 revision 1.154
59572 date: 1994/08/04 16:33:57;  author: mike;  state: Exp;
59573 Kill a pile of RCS stuff.
59574 Call create_path_to_player for a stuck object.
59575 ----------------------------
59576 revision 1.153
59577 date: 1994/08/04 00:21:02;  author: matt;  state: Exp;
59578 Cleaned up fvi & physics error handling; put in code to make sure objects
59579 are in correct segment; simplified segment finding for objects and points
59580 ----------------------------
59581 revision 1.152
59582 date: 1994/08/01 16:25:34;  author: matt;  state: Exp;
59583 Check for moved_time == 0 when computing hit speed
59584 ----------------------------
59585 revision 1.151
59586 date: 1994/08/01 13:30:32;  author: matt;  state: Exp;
59587 Made fvi() check holes in transparent walls, and changed fvi() calling
59588 parms to take all input data in query structure.
59589 ----------------------------
59590 revision 1.150
59591 date: 1994/07/29 23:41:46;  author: matt;  state: Exp;
59592 Fixed turn banking, which changed when I added rotational velocity
59593 ----------------------------
59594 revision 1.149
59595 date: 1994/07/27 20:53:23;  author: matt;  state: Exp;
59596 Added rotational drag & thrust, so turning now has momemtum like moving
59597 =============================================================================
59598 RCS file: f:/miner/source/main/physics.h,v
59599 Working file: main/physics.h
59600 head: 2.0
59601 branch:
59602 description: Headers for physics functions and data
59603 ----------------------------
59604 revision 2.0
59605 date: 1995/02/27 11:33:06;  author: john;  state: Exp;
59606 New version 2.0, which has no anonymous unions, builds with
59607 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59608 ----------------------------
59609 revision 1.29
59610 date: 1995/02/06 19:47:18;  author: matt;  state: Exp;
59611 New function (untested), set_thrust_from_velocity()
59612 ----------------------------
59613 revision 1.28
59614 date: 1994/12/04 22:14:20;  author: mike;  state: Exp;
59615 apply instantaneous rotation to an object due to a force blow.
59616 ----------------------------
59617 revision 1.27
59618 date: 1994/08/01 13:29:42;  author: matt;  state: Exp;
59619 Made fvi() check holes in transparent walls, and changed fvi() calling
59620 parms to take all input data in query structure.
59621 ----------------------------
59622 revision 1.26
59623 date: 1994/07/28 12:35:22;  author: matt;  state: Exp;
59624 Added prototype
59625 ----------------------------
59626 revision 1.25
59627 date: 1994/07/13 21:48:05;  author: matt;  state: Exp;
59628 FVI() and physics now keep lists of segments passed through which the
59629 trigger code uses.
59630 ----------------------------
59631 revision 1.24
59632 date: 1994/06/30 19:01:55;  author: matt;  state: Exp;
59633 Moved flying controls code from physics.c to controls.c
59634 ----------------------------
59635 revision 1.23
59636 date: 1994/06/16 14:14:20;  author: mike;  state: Exp;
59637 Change physics_lookahead to return hit_info.
59638 ----------------------------
59639 revision 1.22
59640 date: 1994/06/09 09:58:43;  author: matt;  state: Exp;
59641 Moved find_vector_intersection() from physics.c to new file fvi.c
59642 ----------------------------
59643 revision 1.21
59644 date: 1994/05/20 16:11:07;  author: matt;  state: Exp;
59645 Added new parm, ignore_obj, to find_vector_intersection()
59646 ----------------------------
59647 revision 1.20
59648 date: 1994/05/20 15:16:58;  author: matt;  state: Exp;
59649 Added new fvi return type; took out some troublesome (and troubling) asserts
59650 =============================================================================
59651 RCS file: f:/miner/source/main/piggy.c,v
59652 Working file: main/piggy.c
59653 head: 2.10
59654 branch:
59655 description: Functions for managing the pig files.
59656 ----------------------------
59657 revision 2.10
59658 date: 1995/10/07 13:17:26;  author: john;  state: Exp;
59659 Made all bitmaps paged out by default.
59660 ----------------------------
59661 revision 2.9
59662 date: 1995/04/14 14:05:24;  author: john;  state: Exp;
59663 *** empty log message ***
59664 ----------------------------
59665 revision 2.8
59666 date: 1995/04/12 13:39:37;  author: john;  state: Exp;
59667 Fixed bug with -lowmem not working.
59668 ----------------------------
59669 revision 2.7
59670 date: 1995/03/29 23:23:17;  author: john;  state: Exp;
59671 Fixed major bug with sounds not building into pig right.
59672 ----------------------------
59673 revision 2.6
59674 date: 1995/03/28 18:05:00;  author: john;  state: Exp;
59675 Fixed it so you don't have to delete pig after changing bitmaps.tbl
59676 ----------------------------
59677 revision 2.5
59678 date: 1995/03/16 23:13:06;  author: john;  state: Exp;
59679 Fixed bug with piggy paging in bitmap not checking for disk
59680 error, hence bogifying textures if you pull the CD out.
59681 ----------------------------
59682 revision 2.4
59683 date: 1995/03/14 16:22:27;  author: john;  state: Exp;
59684 Added cdrom alternate directory stuff.
59685 ----------------------------
59686 revision 2.3
59687 date: 1995/03/06 15:23:20;  author: john;  state: Exp;
59688 New screen techniques.
59689 ----------------------------
59690 revision 2.2
59691 date: 1995/02/27 13:13:40;  author: john;  state: Exp;
59692 Removed floating point.
59693 ----------------------------
59694 revision 2.1
59695 date: 1995/02/27 12:31:25;  author: john;  state: Exp;
59696 Made work without editor.
59697 ----------------------------
59698 revision 2.0
59699 date: 1995/02/27 11:28:02;  author: john;  state: Exp;
59700 New version 2.0, which has no anonymous unions, builds with
59701 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
59702 ----------------------------
59703 revision 1.85
59704 date: 1995/02/09 12:54:24;  author: john;  state: Exp;
59705 Made paged out bitmaps have bm_data be a valid pointer
59706 instead of NULL, in case anyone accesses it.
59707 ----------------------------
59708 revision 1.84
59709 date: 1995/02/09 12:50:59;  author: john;  state: Exp;
59710 Bullet-proofed the piggy loading code.
59711 ----------------------------
59712 revision 1.83
59713 date: 1995/02/07 17:08:51;  author: john;  state: Exp;
59714 Added some error handling stuff instead of asserts.
59715 ----------------------------
59716 revision 1.82
59717 date: 1995/02/03 17:06:48;  author: john;  state: Exp;
59718 Changed sound stuff to allow low memory usage.
59719 Also, changed so that Sounds isn't an array of digi_sounds, it
59720 is a ubyte pointing into GameSounds, this way the digi.c code that
59721 locks sounds won't accidentally unlock a sound that is already playing, but
59722 since it's Sounds[soundno] is different, it would erroneously be unlocked.
59723 ----------------------------
59724 revision 1.81
59725 date: 1995/02/02 21:56:39;  author: matt;  state: Exp;
59726 Added data for new gauge bitmaps
59727 ----------------------------
59728 revision 1.80
59729 date: 1995/02/01 23:31:57;  author: john;  state: Exp;
59730 Took out loading bar.
59731 ----------------------------
59732 revision 1.79
59733 date: 1995/01/28 15:13:18;  author: allender;  state: Exp;
59734 bumped up Piggy_bitmap_cache_size
59735 ----------------------------
59736 revision 1.78
59737 date: 1995/01/26 12:30:43;  author: john;  state: Exp;
59738 Took out prev.
59739 ----------------------------
59740 revision 1.77
59741 date: 1995/01/26 12:12:17;  author: john;  state: Exp;
59742 Made buffer be big for bitmaps.
59743 ----------------------------
59744 revision 1.76
59745 date: 1995/01/25 20:15:38;  author: john;  state: Exp;
59746 Made editor allocate all mem.
59747 ----------------------------
59748 revision 1.75
59749 date: 1995/01/25 14:52:56;  author: john;  state: Exp;
59750 Made bitmap buffer be 1.5 MB.
59751 ----------------------------
59752 revision 1.74
59753 date: 1995/01/22 16:03:19;  author: mike;  state: Exp;
59754 localization.
59755 ----------------------------
59756 revision 1.73
59757 date: 1995/01/22 15:58:36;  author: mike;  state: Exp;
59758 localization
59759 ----------------------------
59760 revision 1.72
59761 date: 1995/01/18 20:51:20;  author: john;  state: Exp;
59762 Took out warnings.
59763 ----------------------------
59764 revision 1.71
59765 date: 1995/01/18 20:47:21;  author: john;  state: Exp;
59766 Added code to allocate sounds & bitmaps into diff
59767 buffers, also made sounds not be compressed for registered.
59768 ----------------------------
59769 revision 1.70
59770 date: 1995/01/18 15:08:41;  author: john;  state: Exp;
59771 Added start/stop time around paging.
59772 Made paging clear screen around globe.
59773 ----------------------------
59774 revision 1.69
59775 date: 1995/01/18 10:07:51;  author: john;  state: Exp;
59776 Took out debugging mprintfs.
59777 ----------------------------
59778 revision 1.68
59779 date: 1995/01/17 14:27:42;  author: john;  state: Exp;
59780 y
59781 ----------------------------
59782 revision 1.67
59783 date: 1995/01/17 12:14:39;  author: john;  state: Exp;
59784 Made walls, object explosion vclips load at level start.
59785 ----------------------------
59786 revision 1.66
59787 date: 1995/01/15 13:15:44;  author: john;  state: Exp;
59788 Made so that paging always happens, lowmem just loads less.
59789 Also, make KB load print to hud.
59790 ----------------------------
59791 revision 1.65
59792 date: 1995/01/15 11:56:28;  author: john;  state: Exp;
59793 Working version of paging.
59794 ----------------------------
59795 revision 1.64
59796 date: 1995/01/14 19:17:07;  author: john;  state: Exp;
59797 First version of new bitmap paging code.
59798 ----------------------------
59799 revision 1.63
59800 date: 1994/12/15 12:26:44;  author: john;  state: Exp;
59801 Added -nolowmem function.
59802 ----------------------------
59803 revision 1.62
59804 date: 1994/12/14 21:12:26;  author: john;  state: Exp;
59805 Fixed bug with page fault when exiting and using
59806 -nosound.
59807 ----------------------------
59808 revision 1.61
59809 date: 1994/12/14 11:35:31;  author: john;  state: Exp;
59810 Evened out thermometer for pig read.
59811 ----------------------------
59812 revision 1.60
59813 date: 1994/12/14 10:51:00;  author: john;  state: Exp;
59814 Sped up sound loading.
59815 ----------------------------
59816 revision 1.59
59817 date: 1994/12/14 10:12:08;  author: john;  state: Exp;
59818 Sped up pig loading.
59819 ----------------------------
59820 revision 1.58
59821 date: 1994/12/13 09:14:47;  author: john;  state: Exp;
59822 *** empty log message ***
59823 ----------------------------
59824 revision 1.57
59825 date: 1994/12/13 09:12:57;  author: john;  state: Exp;
59826 Made the bar always fill up.
59827 ----------------------------
59828 revision 1.56
59829 date: 1994/12/13 03:49:08;  author: john;  state: Exp;
59830 Made -lowmem not load the unnecessary bitmaps.
59831 ----------------------------
59832 revision 1.55
59833 date: 1994/12/06 16:06:35;  author: john;  state: Exp;
59834 Took out piggy sorting.
59835 ----------------------------
59836 revision 1.54
59837 date: 1994/12/06 15:11:14;  author: john;  state: Exp;
59838 Fixed bug with reading pigs.
59839 ----------------------------
59840 revision 1.53
59841 date: 1994/12/06 14:14:47;  author: john;  state: Exp;
59842 Added code to set low mem based on memory.
59843 ----------------------------
59844 revision 1.52
59845 date: 1994/12/06 14:01:10;  author: john;  state: Exp;
59846 Fixed bug that was causing -lowmem all the time..
59847 ----------------------------
59848 revision 1.51
59849 date: 1994/12/06 13:33:48;  author: john;  state: Exp;
59850 Added lowmem option.
59851 ----------------------------
59852 revision 1.50
59853 date: 1994/12/05 19:40:10;  author: john;  state: Exp;
59854 If -nosound or no sound card selected, don't load sounds from pig.
59855 ----------------------------
59856 revision 1.49
59857 date: 1994/12/05 12:17:44;  author: john;  state: Exp;
59858 Added code that locks/unlocks digital sounds on demand.
59859 ----------------------------
59860 revision 1.48
59861 date: 1994/12/05 11:39:03;  author: matt;  state: Exp;
59862 Fixed little mistake
59863 ----------------------------
59864 revision 1.47
59865 date: 1994/12/05 09:29:22;  author: john;  state: Exp;
59866 Added clength to the sound field.
59867 ----------------------------
59868 revision 1.46
59869 date: 1994/12/04 15:27:15;  author: john;  state: Exp;
59870 Fixed my stupid bug that looked at -nosound instead of digi_driver_card
59871 to see whether or not to lock down sound memory.
59872 ----------------------------
59873 revision 1.45
59874 date: 1994/12/03 14:17:00;  author: john;  state: Exp;
59875 Took out my debug mprintf.
59876 ----------------------------
59877 revision 1.44
59878 date: 1994/12/03 13:32:37;  author: john;  state: Exp;
59879 Fixed bug with offscreen bitmap.
59880 ----------------------------
59881 revision 1.43
59882 date: 1994/12/03 13:07:13;  author: john;  state: Exp;
59883 Made the pig read/write compressed sounds.
59884 ----------------------------
59885 revision 1.42
59886 date: 1994/12/03 11:48:51;  author: matt;  state: Exp;
59887 Added option to not dump sounds to pigfile
59888 ----------------------------
59889 revision 1.41
59890 date: 1994/12/02 20:02:20;  author: matt;  state: Exp;
59891 Made sound files constant match constant for table
59892 ----------------------------
59893 revision 1.40
59894 date: 1994/11/29 11:03:09;  author: adam;  state: Exp;
59895 upped # of sounds
59896 ----------------------------
59897 revision 1.39
59898 date: 1994/11/27 23:13:51;  author: matt;  state: Exp;
59899 Made changes for new mprintf calling convention
59900 ----------------------------
59901 revision 1.38
59902 date: 1994/11/20 18:40:34;  author: john;  state: Exp;
59903 MAde the piggy.lst and piggy.all not dump for release.
59904 ----------------------------
59905 revision 1.37
59906 date: 1994/11/19 23:54:45;  author: mike;  state: Exp;
59907 up number of bitmaps for shareware version.
59908 ----------------------------
59909 revision 1.36
59910 date: 1994/11/19 19:53:05;  author: mike;  state: Exp;
59911 change MAX_BITMAP_FILES
59912 ----------------------------
59913 revision 1.35
59914 date: 1994/11/19 10:42:56;  author: matt;  state: Exp;
59915 Increased number of bitmaps for non-shareware version
59916 ----------------------------
59917 revision 1.34
59918 date: 1994/11/19 09:11:52;  author: john;  state: Exp;
59919 Added avg_color to bitmaps saved in pig.
59920 ----------------------------
59921 revision 1.33
59922 date: 1994/11/19 00:07:05;  author: john;  state: Exp;
59923 Fixed bug with 8 char sound filenames not getting read from pig.
59924 ----------------------------
59925 revision 1.32
59926 date: 1994/11/18 22:24:54;  author: john;  state: Exp;
59927 Added -bigpig command line that doesn't rle your pig.
59928 ----------------------------
59929 revision 1.31
59930 date: 1994/11/18 21:56:53;  author: john;  state: Exp;
59931 Added a better, leaner pig format.
59932 ----------------------------
59933 revision 1.30
59934 date: 1994/11/16 12:06:16;  author: john;  state: Exp;
59935 Fixed bug with calling .bbms abms.
59936 ----------------------------
59937 revision 1.29
59938 date: 1994/11/16 12:00:56;  author: john;  state: Exp;
59939 Added piggy.all dump.
59940 ----------------------------
59941 revision 1.28
59942 date: 1994/11/10 21:16:02;  author: adam;  state: Exp;
59943 nothing important
59944 ----------------------------
59945 revision 1.27
59946 date: 1994/11/10 13:42:00;  author: john;  state: Exp;
59947 Made sounds not lock down if using -nosound.
59948 ----------------------------
59949 revision 1.26
59950 date: 1994/11/09 19:55:40;  author: john;  state: Exp;
59951 Added full rle support with texture rle caching.
59952 ----------------------------
59953 revision 1.25
59954 date: 1994/11/09 16:36:42;  author: john;  state: Exp;
59955 First version with RLE bitmaps in Pig.
59956 ----------------------------
59957 revision 1.24
59958 date: 1994/10/27 19:42:59;  author: john;  state: Exp;
59959 Disable the piglet option.
59960 ----------------------------
59961 revision 1.23
59962 date: 1994/10/27 18:51:40;  author: john;  state: Exp;
59963 Added -piglet option that only loads needed textures for a 
59964 mine.  Only saved ~1MB, and code still doesn't free textures
59965 before you load a new mine.
59966 ----------------------------
59967 revision 1.22
59968 date: 1994/10/25 13:11:42;  author: john;  state: Exp;
59969 Made the sounds sort. Dumped piggy.lst.
59970 ----------------------------
59971 revision 1.21
59972 date: 1994/10/06 17:06:23;  author: john;  state: Exp;
59973 Took out rle stuff.
59974 ----------------------------
59975 revision 1.20
59976 date: 1994/10/06 15:45:36;  author: adam;  state: Exp;
59977 bumped MAX_BITMAP_FILES again!
59978 ----------------------------
59979 revision 1.19
59980 date: 1994/10/06 11:01:17;  author: yuan;  state: Exp;
59981 Upped MAX_BITMAP_FILES
59982 ----------------------------
59983 revision 1.18
59984 date: 1994/10/06 10:44:45;  author: john;  state: Exp;
59985 Added diagnostic message and psuedo run-length-encoder
59986 to see how much memory we would save by storing bitmaps
59987 in a RLE method.  Also, I commented out the code that
59988 stores 4K bitmaps on a 4K boundry to reduce pig size 
59989 a bit.
59990 ----------------------------
59991 revision 1.17
59992 date: 1994/10/04 20:03:13;  author: matt;  state: Exp;
59993 Upped maximum number of bitmaps
59994 ----------------------------
59995 revision 1.16
59996 date: 1994/10/03 18:04:20;  author: john;  state: Exp;
59997 Fixed bug with data_offset not set right for bitmaps
59998 that are 64x64 and not aligned on a 4k boundry.
59999 ----------------------------
60000 revision 1.15
60001 date: 1994/09/28 11:30:55;  author: john;  state: Exp;
60002 changed inferno.pig to descent.pig, changed the way it
60003 is read.
60004 ----------------------------
60005 revision 1.14
60006 date: 1994/09/22 16:14:17;  author: john;  state: Exp;
60007 Redid intro sequecing.
60008 ----------------------------
60009 revision 1.13
60010 date: 1994/09/19 14:42:47;  author: john;  state: Exp;
60011 Locked down sounds with Virtual memory.
60012 ----------------------------
60013 revision 1.12
60014 date: 1994/09/10 17:31:52;  author: mike;  state: Exp;
60015 Increase number of loadable bitmaps.
60016 ----------------------------
60017 revision 1.11
60018 date: 1994/09/01 19:32:49;  author: mike;  state: Exp;
60019 Boost texture map allocation.
60020 ----------------------------
60021 revision 1.10
60022 date: 1994/08/16 11:51:02;  author: john;  state: Exp;
60023 Added grwased pigs.
60024 ----------------------------
60025 revision 1.9
60026 date: 1994/07/06 09:18:03;  author: adam;  state: Exp;
60027 upped bitmap #s
60028 ----------------------------
60029 revision 1.8
60030 date: 1994/06/20 22:02:15;  author: matt;  state: Exp;
60031 Fixed bug from last change
60032 ----------------------------
60033 revision 1.7
60034 date: 1994/06/20 21:33:18;  author: matt;  state: Exp;
60035 Made bm.h not include sounds.h, to reduce dependencies
60036 ----------------------------
60037 revision 1.6
60038 date: 1994/06/20 16:52:19;  author: john;  state: Exp;
60039 cleaned up init output a bit.
60040 ----------------------------
60041 revision 1.5
60042 date: 1994/06/08 14:20:57;  author: john;  state: Exp;
60043 Made piggy dump before going into game.
60044 ----------------------------
60045 revision 1.4
60046 date: 1994/06/02 18:59:22;  author: matt;  state: Exp;
60047 Clear selector field of bitmap loaded from pig file
60048 ----------------------------
60049 revision 1.3
60050 date: 1994/05/06 15:31:41;  author: john;  state: Exp;
60051 Made name field a bit longer.
60052 ----------------------------
60053 revision 1.2
60054 date: 1994/05/06 13:02:44;  author: john;  state: Exp;
60055 Added piggy stuff; worked on supertransparency
60056 ----------------------------
60057 revision 1.1
60058 date: 1994/05/06 11:47:26;  author: john;  state: Exp;
60059 Initial revision
60060 =============================================================================
60061 RCS file: f:/miner/source/main/piggy.h,v
60062 Working file: main/piggy.h
60063 head: 2.0
60064 branch:
60065 description: Interface to piggy functions.
60066 ----------------------------
60067 revision 2.0
60068 date: 1995/02/27 11:31:21;  author: john;  state: Exp;
60069 New version 2.0, which has no anonymous unions, builds with
60070 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60071 ----------------------------
60072 revision 1.10
60073 date: 1995/02/03 17:08:29;  author: john;  state: Exp;
60074 Changed sound stuff to allow low memory usage.
60075 Also, changed so that Sounds isn't an array of digi_sounds, it
60076 is a ubyte pointing into GameSounds, this way the digi.c code that
60077 locks sounds won't accidentally unlock a sound that is already playing, but
60078 since it's Sounds[soundno] is different, it would erroneously be unlocked.
60079 ----------------------------
60080 revision 1.9
60081 date: 1995/01/24 14:33:49;  author: john;  state: Exp;
60082 *** empty log message ***
60083 ----------------------------
60084 revision 1.8
60085 date: 1995/01/24 14:32:35;  author: john;  state: Exp;
60086 Took out paging in code.
60087 ----------------------------
60088 revision 1.7
60089 date: 1995/01/23 12:30:17;  author: john;  state: Exp;
60090 Made debug code that mprintf what bitmap gets paged in.
60091 ----------------------------
60092 revision 1.6
60093 date: 1995/01/17 14:11:37;  author: john;  state: Exp;
60094 Added function that is called after level loaded.
60095 ----------------------------
60096 revision 1.5
60097 date: 1995/01/14 19:16:58;  author: john;  state: Exp;
60098 First version of new bitmap paging code.
60099 ----------------------------
60100 revision 1.4
60101 date: 1994/10/27 18:51:57;  author: john;  state: Exp;
60102 Added -piglet option that only loads needed textures for a 
60103 mine.  Only saved ~1MB, and code still doesn't free textures
60104 before you load a new mine.
60105 ----------------------------
60106 revision 1.3
60107 date: 1994/06/08 14:20:47;  author: john;  state: Exp;
60108 Made piggy dump before going into game.
60109 ----------------------------
60110 revision 1.2
60111 date: 1994/05/06 13:02:40;  author: john;  state: Exp;
60112 Added piggy stuff; worked on supertransparency
60113 ----------------------------
60114 revision 1.1
60115 date: 1994/05/06 11:47:46;  author: john;  state: Exp;
60116 Initial revision
60117 =============================================================================
60118 RCS file: f:/miner/source/main/player.h,v
60119 Working file: main/player.h
60120 head: 2.0
60121 branch:
60122 description: Structure information for the player
60123 ----------------------------
60124 revision 2.0
60125 date: 1995/02/27 11:30:25;  author: john;  state: Exp;
60126 New version 2.0, which has no anonymous unions, builds with
60127 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60128 ----------------------------
60129 revision 1.41
60130 date: 1994/12/20 17:56:43;  author: yuan;  state: Exp;
60131 Multiplayer object capability.
60132 ----------------------------
60133 revision 1.40
60134 date: 1994/12/02 15:04:42;  author: matt;  state: Exp;
60135 Fixed bogus weapon constants and arrays
60136 ----------------------------
60137 revision 1.39
60138 date: 1994/11/25 22:47:08;  author: matt;  state: Exp;
60139 Made saved game descriptions longer
60140 ----------------------------
60141 revision 1.38
60142 date: 1994/11/21 17:29:38;  author: matt;  state: Exp;
60143 Cleaned up sequencing & game saving for secret levels
60144 ----------------------------
60145 revision 1.37
60146 date: 1994/11/17 12:57:13;  author: rob;  state: Exp;
60147 Changed net_kills_level to net_killed_total.
60148 ----------------------------
60149 revision 1.36
60150 date: 1994/11/14 17:20:33;  author: rob;  state: Exp;
60151 Bumped player file version.
60152 ----------------------------
60153 revision 1.35
60154 date: 1994/11/04 19:55:06;  author: rob;  state: Exp;
60155 Changed a previously unused pad character to represent whether or not
60156 the player is connected to a net game (used to be objnum=-1 but we
60157 want to keep the objnum info in case of re-joins)
60158 ----------------------------
60159 revision 1.34
60160 date: 1994/10/22 14:13:54;  author: mike;  state: Exp;
60161 Add homing_object_dist field to player struct.
60162 ----------------------------
60163 revision 1.33
60164 date: 1994/10/22 00:08:45;  author: matt;  state: Exp;
60165 Fixed up problems with bonus & game sequencing
60166 Player doesn't get credit for hostages unless he gets them out alive
60167 ----------------------------
60168 revision 1.32
60169 date: 1994/10/21 20:43:03;  author: mike;  state: Exp;
60170 Add hostages_on_board to player struct.
60171 ----------------------------
60172 revision 1.31
60173 date: 1994/10/19 20:00:00;  author: john;  state: Exp;
60174 Added bonus points at the end of level based on skill level.
60175 ----------------------------
60176 revision 1.30
60177 date: 1994/10/19 15:14:24;  author: john;  state: Exp;
60178 Took % hits out of player structure, made %kills work properly.
60179 ----------------------------
60180 revision 1.29
60181 date: 1994/10/19 12:12:27;  author: john;  state: Exp;
60182 Added hour variable.
60183 ----------------------------
60184 revision 1.28
60185 date: 1994/10/17 17:24:48;  author: john;  state: Exp;
60186 Added starting_level to player struct.
60187 ----------------------------
60188 revision 1.27
60189 date: 1994/10/13 15:42:02;  author: mike;  state: Exp;
60190 Remove afterburner.
60191 ----------------------------
60192 revision 1.26
60193 date: 1994/10/10 17:00:23;  author: mike;  state: Exp;
60194 Lower number of players from 10 to 8.
60195 ----------------------------
60196 revision 1.25
60197 date: 1994/10/09 14:53:26;  author: matt;  state: Exp;
60198 Made player cockpit state & window size save/restore with saved games & automap
60199 ----------------------------
60200 revision 1.24
60201 date: 1994/10/08 20:24:10;  author: matt;  state: Exp;
60202 Added difficulty level to player structure for game load/save
60203 ----------------------------
60204 revision 1.23
60205 date: 1994/10/05 17:39:53;  author: rob;  state: Exp;
60206 Changed killer_objnum to a short (was char)
60207 ----------------------------
60208 revision 1.22
60209 date: 1994/10/03 22:59:07;  author: matt;  state: Exp;
60210 Limit callsign to 8 chars long, so we can use it as filename
60211 ----------------------------
60212 revision 1.21
60213 date: 1994/09/23 10:14:30;  author: mike;  state: Exp;
60214 Rename PLAYER_FLAGS_INVINCIBLE to PLAYER_FLAGS_INVULNERABLE.
60215 Add INVULNERABLE_TIME_MAX = 30 seconds.
60216 ----------------------------
60217 revision 1.20
60218 date: 1994/09/21 20:44:22;  author: matt;  state: Exp;
60219 Player explosion fireball now specified in bitmaps.tbl
60220 ----------------------------
60221 revision 1.19
60222 date: 1994/09/21 12:27:37;  author: mike;  state: Exp;
60223 Move CLOAK_TIME_MAX here from game.c
60224 ----------------------------
60225 revision 1.18
60226 date: 1994/09/16 13:10:16;  author: mike;  state: Exp;
60227 Add afterburner and cloak stuff.
60228 ----------------------------
60229 revision 1.17
60230 date: 1994/09/11 20:30:26;  author: matt;  state: Exp;
60231 Cleaned up thrust vars, changing a few names
60232 ----------------------------
60233 revision 1.16
60234 date: 1994/09/09 14:22:45;  author: matt;  state: Exp;
60235 Added extra gun for player
60236 ----------------------------
60237 revision 1.15
60238 date: 1994/09/07 13:30:11;  author: john;  state: Exp;
60239 Added code to tell how many packets were lost.
60240 ----------------------------
60241 revision 1.14
60242 date: 1994/09/02 11:56:33;  author: mike;  state: Exp;
60243 Alignment on the player struct.
60244 ----------------------------
60245 revision 1.13
60246 date: 1994/08/25 18:12:05;  author: matt;  state: Exp;
60247 Made player's weapons and flares fire from the positions on the 3d model.
60248 Also added support for quad lasers.
60249 ----------------------------
60250 revision 1.12
60251 date: 1994/08/22 15:49:40;  author: mike;  state: Exp;
60252 change spelling on num_missles -> num_missiles.
60253 ----------------------------
60254 revision 1.11
60255 date: 1994/08/18 10:47:32;  author: john;  state: Exp;
60256 Cleaned up game sequencing and player death stuff
60257 in preparation for making the player explode into
60258 pieces when dead.
60259 ----------------------------
60260 revision 1.10
60261 date: 1994/08/17 16:50:05;  author: john;  state: Exp;
60262 Added damaging fireballs, missiles.
60263 ----------------------------
60264 revision 1.9
60265 date: 1994/08/15 00:24:10;  author: john;  state: Exp;
60266 First version of netgame with players killing
60267 each other. still buggy...
60268 ----------------------------
60269 revision 1.8
60270 date: 1994/08/12 22:41:26;  author: john;  state: Exp;
60271 Took away Player_stats; add Players array.
60272 ----------------------------
60273 revision 1.7
60274 date: 1994/08/09 17:53:25;  author: adam;  state: Exp;
60275 *** empty log message ***
60276 ----------------------------
60277 revision 1.6
60278 date: 1994/07/13 00:15:05;  author: matt;  state: Exp;
60279 Moved all (or nearly all) of the values that affect player movement to 
60280 bitmaps.tbl
60281 ----------------------------
60282 revision 1.5
60283 date: 1994/07/08 21:44:17;  author: matt;  state: Exp;
60284 Made laser powerups saturate correctly
60285 ----------------------------
60286 revision 1.4
60287 date: 1994/07/07 14:59:02;  author: john;  state: Exp;
60288 Made radar powerups.
60289 ----------------------------
60290 revision 1.3
60291 date: 1994/07/02 13:49:39;  author: matt;  state: Exp;
60292 Cleaned up includes
60293 ----------------------------
60294 revision 1.2
60295 date: 1994/07/02 13:10:03;  author: matt;  state: Exp;
60296 Moved player stats struct from gameseq.h to player.h
60297 ----------------------------
60298 revision 1.1
60299 date: 1994/07/02 11:00:43;  author: matt;  state: Exp;
60300 Initial revision
60301 =============================================================================
60302 RCS file: f:/miner/source/main/playsave.c,v
60303 Working file: main/playsave.c
60304 head: 2.3
60305 branch:
60306 description: Functions to load & save player games
60307 ----------------------------
60308 revision 2.3
60309 date: 1995/05/26 16:16:23;  author: john;  state: Exp;
60310 Split SATURN into define's for requiring cd, using cd, etc.
60311 Also started adding all the Rockwell stuff.
60312 ----------------------------
60313 revision 2.2
60314 date: 1995/03/24 17:48:21;  author: john;  state: Exp;
60315 Made player files from saturn excrement the highest level for
60316 normal descent levels.
60317 ----------------------------
60318 revision 2.1
60319 date: 1995/03/21 14:38:49;  author: john;  state: Exp;
60320 Ifdef'd out the NETWORK code.
60321 ----------------------------
60322 revision 2.0
60323 date: 1995/02/27 11:27:59;  author: john;  state: Exp;
60324 New version 2.0, which has no anonymous unions, builds with
60325 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60326 ----------------------------
60327 revision 1.57
60328 date: 1995/02/13 20:34:55;  author: john;  state: Exp;
60329 Lintized
60330 ----------------------------
60331 revision 1.56
60332 date: 1995/02/13 13:23:24;  author: john;  state: Exp;
60333 Fixed bug with new player joystick selection.
60334 ----------------------------
60335 revision 1.55
60336 date: 1995/02/13 12:01:19;  author: john;  state: Exp;
60337 Fixed bug with joystick throttle still asking for 
60338 calibration with new pilots.
60339 ----------------------------
60340 revision 1.54
60341 date: 1995/02/13 10:29:12;  author: john;  state: Exp;
60342 Fixed bug with creating new player not resetting everything to default.
60343 ----------------------------
60344 revision 1.53
60345 date: 1995/02/03 10:58:46;  author: john;  state: Exp;
60346 Added code to save shareware style saved games into new format...
60347 Also, made new player file format not have the saved game array in it.
60348 ----------------------------
60349 revision 1.52
60350 date: 1995/02/02 21:09:28;  author: matt;  state: Exp;
60351 Let player start of level 8 if he made it to level 7 in the shareware
60352 ----------------------------
60353 revision 1.51
60354 date: 1995/02/02 18:50:14;  author: john;  state: Exp;
60355 Added warning for FCS when new pilot chooses.
60356 ----------------------------
60357 revision 1.50
60358 date: 1995/02/02 11:21:34;  author: john;  state: Exp;
60359 Made joystick calibrate when new user selects.
60360 ----------------------------
60361 revision 1.49
60362 date: 1995/02/01 18:06:38;  author: rob;  state: Exp;
60363 Put defaults macros into descent.tex
60364 ----------------------------
60365 revision 1.48
60366 date: 1995/01/25 14:37:53;  author: john;  state: Exp;
60367 Made joystick only prompt for calibration once...
60368 ----------------------------
60369 revision 1.47
60370 date: 1995/01/24 19:37:12;  author: matt;  state: Exp;
60371 Took out incorrect mprintf
60372 ----------------------------
60373 revision 1.46
60374 date: 1995/01/22 18:57:22;  author: matt;  state: Exp;
60375 Made player highest level work with missions
60376 ----------------------------
60377 revision 1.45
60378 date: 1995/01/21 16:36:05;  author: matt;  state: Exp;
60379 Made starting level system work for now, pending integration with
60380 mission code.
60381 ----------------------------
60382 revision 1.44
60383 date: 1995/01/20 22:47:32;  author: matt;  state: Exp;
60384 Mission system implemented, though imcompletely
60385 ----------------------------
60386 revision 1.43
60387 date: 1995/01/04 14:58:39;  author: rob;  state: Exp;
60388 Fixed for shareware build.
60389 ----------------------------
60390 revision 1.42
60391 date: 1995/01/04 11:36:43;  author: rob;  state: Exp;
60392 Added compatibility with older shareware pilot files.
60393 ----------------------------
60394 revision 1.41
60395 date: 1995/01/03 11:01:58;  author: rob;  state: Exp;
60396 fixed a default macro.
60397 ----------------------------
60398 revision 1.40
60399 date: 1995/01/03 10:44:06;  author: rob;  state: Exp;
60400 Added default taunt macros.
60401 ----------------------------
60402 revision 1.39
60403 date: 1994/12/13 10:01:16;  author: allender;  state: Exp;
60404 pop up message box when unable to correctly save player file
60405 ----------------------------
60406 revision 1.38
60407 date: 1994/12/12 11:37:14;  author: matt;  state: Exp;
60408 Fixed auto leveling defaults & saving
60409 ----------------------------
60410 revision 1.37
60411 date: 1994/12/12 00:26:59;  author: matt;  state: Exp;
60412 Added support for no-levelling option
60413 ----------------------------
60414 revision 1.36
60415 date: 1994/12/10 19:09:54;  author: matt;  state: Exp;
60416 Added assert for valid player number when loading game
60417 ----------------------------
60418 revision 1.35
60419 date: 1994/12/08 10:53:07;  author: rob;  state: Exp;
60420 Fixed a bug in highest_level tracking.
60421 ----------------------------
60422 revision 1.34
60423 date: 1994/12/08 10:01:36;  author: john;  state: Exp;
60424 Changed the way the player callsign stuff works.
60425 ----------------------------
60426 revision 1.33
60427 date: 1994/12/07 18:30:38;  author: rob;  state: Exp;
60428 Load highest level along with player (used to be only if higher)
60429 Capped at LAST_LEVEL in case a person loads a registered player in shareware.
60430 ----------------------------
60431 revision 1.32
60432 date: 1994/12/03 16:01:12;  author: matt;  state: Exp;
60433 When player file has bad version, force player to choose another
60434 ----------------------------
60435 revision 1.31
60436 date: 1994/12/02 19:54:00;  author: yuan;  state: Exp;
60437 Localization.
60438 ----------------------------
60439 revision 1.30
60440 date: 1994/12/02 11:01:36;  author: yuan;  state: Exp;
60441 Localization.
60442 ----------------------------
60443 revision 1.29
60444 date: 1994/11/29 03:46:28;  author: john;  state: Exp;
60445 Added joystick sensitivity; Added sound channels to detail menu.  Removed -maxchannels
60446 command line arg.
60447 ----------------------------
60448 revision 1.28
60449 date: 1994/11/29 01:10:23;  author: john;  state: Exp;
60450 Took out code that allowed new players to
60451 configure keyboard.
60452 ----------------------------
60453 revision 1.27
60454 date: 1994/11/25 22:47:10;  author: matt;  state: Exp;
60455 Made saved game descriptions longer
60456 ----------------------------
60457 revision 1.26
60458 date: 1994/11/22 12:10:42;  author: rob;  state: Exp;
60459 Fixed file handle left open if player file versions don't
60460 match.
60461 ----------------------------
60462 revision 1.25
60463 date: 1994/11/21 19:35:30;  author: john;  state: Exp;
60464 Replaced calls to joy_init with if (joy_present)
60465 ----------------------------
60466 revision 1.24
60467 date: 1994/11/21 17:29:34;  author: matt;  state: Exp;
60468 Cleaned up sequencing & game saving for secret levels
60469 ----------------------------
60470 revision 1.23
60471 date: 1994/11/21 11:10:01;  author: john;  state: Exp;
60472 Fixed bug with read-only .plr file making the config file 
60473 not update.
60474 ----------------------------
60475 revision 1.22
60476 date: 1994/11/20 19:03:08;  author: john;  state: Exp;
60477 Fixed bug with if not having a joystick, default 
60478 player input device is cyberman.
60479 ----------------------------
60480 revision 1.21
60481 date: 1994/11/17 12:24:07;  author: matt;  state: Exp;
60482 Made an array the right size, to fix error loading games
60483 ----------------------------
60484 revision 1.20
60485 date: 1994/11/14 17:52:54;  author: allender;  state: Exp;
60486 add call to WriteConfigFile when player files gets written
60487 ----------------------------
60488 revision 1.19
60489 date: 1994/11/14 17:19:23;  author: rob;  state: Exp;
60490 Removed gamma, joystick calibration, and sound settings from player file.
60491 Added default difficulty and multi macros.
60492 ----------------------------
60493 revision 1.18
60494 date: 1994/11/07 14:01:23;  author: john;  state: Exp;
60495 Changed the gamma correction sequencing.
60496 ----------------------------
60497 revision 1.17
60498 date: 1994/11/05 17:22:49;  author: john;  state: Exp;
60499 Fixed lots of sequencing problems with newdemo stuff.
60500 ----------------------------
60501 revision 1.16
60502 date: 1994/11/01 16:40:11;  author: john;  state: Exp;
60503 Added Gamma correction.
60504 ----------------------------
60505 revision 1.15
60506 date: 1994/10/24 19:56:50;  author: john;  state: Exp;
60507 Made the new user setup prompt for config options.
60508 ----------------------------
60509 revision 1.14
60510 date: 1994/10/24 17:44:21;  author: john;  state: Exp;
60511 Added stereo channel reversing.
60512 ----------------------------
60513 revision 1.13
60514 date: 1994/10/24 16:05:12;  author: matt;  state: Exp;
60515 Improved handling of player names that are the names of DOS devices
60516 ----------------------------
60517 revision 1.12
60518 date: 1994/10/22 00:08:51;  author: matt;  state: Exp;
60519 Fixed up problems with bonus & game sequencing
60520 Player doesn't get credit for hostages unless he gets them out alive
60521 ----------------------------
60522 revision 1.11
60523 date: 1994/10/19 19:59:57;  author: john;  state: Exp;
60524 Added bonus points at the end of level based on skill level.
60525 ----------------------------
60526 revision 1.10
60527 date: 1994/10/19 15:14:34;  author: john;  state: Exp;
60528 Took % hits out of player structure, made %kills work properly.
60529 ----------------------------
60530 revision 1.9
60531 date: 1994/10/19 12:44:26;  author: john;  state: Exp;
60532 Added hours field to player structure.
60533 ----------------------------
60534 revision 1.8
60535 date: 1994/10/17 17:24:34;  author: john;  state: Exp;
60536 Added starting_level to player struct.
60537 ----------------------------
60538 revision 1.7
60539 date: 1994/10/17 13:07:15;  author: john;  state: Exp;
60540 Moved the descent.cfg info into the player config file.
60541 ----------------------------
60542 revision 1.6
60543 date: 1994/10/09 14:54:31;  author: matt;  state: Exp;
60544 Made player cockpit state & window size save/restore with saved games & automap
60545 ----------------------------
60546 revision 1.5
60547 date: 1994/10/08 23:08:09;  author: matt;  state: Exp;
60548 Added error check & handling for game load/save disk io
60549 ----------------------------
60550 revision 1.4
60551 date: 1994/10/05 17:40:54;  author: rob;  state: Exp;
60552 Bumped save_file_version to 5 due to change in player.h
60553 ----------------------------
60554 revision 1.3
60555 date: 1994/10/03 23:00:54;  author: matt;  state: Exp;
60556 New file version for shorter callsigns
60557 ----------------------------
60558 revision 1.2
60559 date: 1994/09/28 17:25:05;  author: matt;  state: Exp;
60560 Added first draft of game save/load system
60561 ----------------------------
60562 revision 1.1
60563 date: 1994/09/27 14:39:12;  author: matt;  state: Exp;
60564 Initial revision
60565 =============================================================================
60566 RCS file: f:/miner/source/main/playsave.h,v
60567 Working file: main/playsave.h
60568 head: 2.0
60569 branch:
60570 description: Header for playsave.c
60571 ----------------------------
60572 revision 2.0
60573 date: 1995/02/27 11:31:24;  author: john;  state: Exp;
60574 New version 2.0, which has no anonymous unions, builds with
60575 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60576 ----------------------------
60577 revision 1.10
60578 date: 1995/01/22 18:57:04;  author: matt;  state: Exp;
60579 Made player highest level work with missions
60580 ----------------------------
60581 revision 1.9
60582 date: 1994/12/12 11:37:15;  author: matt;  state: Exp;
60583 Fixed auto leveling defaults & saving
60584 ----------------------------
60585 revision 1.8
60586 date: 1994/12/08 10:01:37;  author: john;  state: Exp;
60587 Changed the way the player callsign stuff works.
60588 ----------------------------
60589 revision 1.7
60590 date: 1994/11/25 22:46:56;  author: matt;  state: Exp;
60591 Made saved game descriptions longer
60592 ----------------------------
60593 revision 1.6
60594 date: 1994/10/24 20:00:02;  author: john;  state: Exp;
60595 Added prototype for read_player_file.
60596 ----------------------------
60597 revision 1.5
60598 date: 1994/10/17 13:07:12;  author: john;  state: Exp;
60599 Moved the descent.cfg info into the player config file.
60600 ----------------------------
60601 revision 1.4
60602 date: 1994/10/09 14:54:32;  author: matt;  state: Exp;
60603 Made player cockpit state & window size save/restore with saved games & automap
60604 ----------------------------
60605 revision 1.3
60606 date: 1994/10/08 23:08:09;  author: matt;  state: Exp;
60607 Added error check & handling for game load/save disk io
60608 ----------------------------
60609 revision 1.2
60610 date: 1994/09/28 17:25:06;  author: matt;  state: Exp;
60611 Added first draft of game save/load system
60612 ----------------------------
60613 revision 1.1
60614 date: 1994/09/27 15:47:23;  author: matt;  state: Exp;
60615 Initial revision
60616 =============================================================================
60617 RCS file: f:/miner/source/main/polyobj.c,v
60618 Working file: main/polyobj.c
60619 head: 2.1
60620 branch:
60621 description: Hacked-in polygon objects
60622 ----------------------------
60623 revision 2.1
60624 date: 1995/05/26 16:10:37;  author: john;  state: Exp;
60625 Support for new 4-byte align v8 pof files.
60626 ----------------------------
60627 revision 2.0
60628 date: 1995/02/27 11:32:44;  author: john;  state: Exp;
60629 New version 2.0, which has no anonymous unions, builds with
60630 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60631 ----------------------------
60632 revision 1.64
60633 date: 1995/01/14 19:16:43;  author: john;  state: Exp;
60634 First version of new bitmap paging code.
60635 ----------------------------
60636 revision 1.63
60637 date: 1994/12/14 18:06:54;  author: matt;  state: Exp;
60638 Removed compile warnings
60639 ----------------------------
60640 revision 1.62
60641 date: 1994/12/09 17:54:31;  author: john;  state: Exp;
60642 Made the CFILE's close right after reading in data.
60643 ----------------------------
60644 revision 1.61
60645 date: 1994/12/09 16:13:28;  author: mike;  state: Exp;
60646 speedup pof file reading, but still horribly slow using hog file...problem somewhere else.
60647 ----------------------------
60648 revision 1.60
60649 date: 1994/12/08 17:41:20;  author: yuan;  state: Exp;
60650 Cfiling stuff.
60651 ----------------------------
60652 revision 1.59
60653 date: 1994/11/21 11:02:19;  author: matt;  state: Exp;
60654 Added error checking
60655 ----------------------------
60656 revision 1.58
60657 date: 1994/11/14 11:32:49;  author: matt;  state: Exp;
60658 Allow switching to simpler models even when alt_textures specified
60659 ----------------------------
60660 revision 1.57
60661 date: 1994/11/13 21:15:24;  author: matt;  state: Exp;
60662 Added basic support for more than one level of detail simplification
60663 ----------------------------
60664 revision 1.56
60665 date: 1994/11/11 19:29:25;  author: matt;  state: Exp;
60666 Added code to show low detail polygon models
60667 ----------------------------
60668 revision 1.55
60669 date: 1994/11/10 14:02:57;  author: matt;  state: Exp;
60670 Hacked in support for player ships with different textures
60671 ----------------------------
60672 revision 1.54
60673 date: 1994/11/03 11:01:59;  author: matt;  state: Exp;
60674 Made robot pics lighted
60675 ----------------------------
60676 revision 1.53
60677 date: 1994/11/02 16:18:34;  author: matt;  state: Exp;
60678 Moved draw_model_picture() out of editor
60679 ----------------------------
60680 revision 1.52
60681 date: 1994/10/18 14:38:11;  author: matt;  state: Exp;
60682 Restored assert now that bug is fixed
60683 ----------------------------
60684 revision 1.51
60685 date: 1994/10/17 21:35:03;  author: matt;  state: Exp;
60686 Added support for new Control Center/Main Reactor
60687 ----------------------------
60688 revision 1.50
60689 date: 1994/10/14 17:46:23;  author: yuan;  state: Exp;
60690 Made the soft Int3 only work in net mode.
60691 ----------------------------
60692 revision 1.49
60693 date: 1994/10/14 17:43:47;  author: yuan;  state: Exp;
60694 Added soft int3's instead of Asserts  for some common network bugs.
60695 ----------------------------
60696 revision 1.48
60697 date: 1994/10/14 17:09:04;  author: yuan;  state: Exp;
60698 Made Assert on line 610 be if in an attempt
60699 to bypass.
60700 ----------------------------
60701 revision 1.47
60702 date: 1994/09/09 14:23:42;  author: matt;  state: Exp;
60703 Added glow code to polygon models for engine glow
60704 ----------------------------
60705 revision 1.46
60706 date: 1994/08/26 18:03:30;  author: matt;  state: Exp;
60707 Added code to remap polygon model numbers by matching filenames
60708 ----------------------------
60709 revision 1.45
60710 date: 1994/08/26 15:35:58;  author: matt;  state: Exp;
60711 Made eclips usable on more than one object at a time
60712 ----------------------------
60713 revision 1.44
60714 date: 1994/08/25 18:11:58;  author: matt;  state: Exp;
60715 Made player's weapons and flares fire from the positions on the 3d model.
60716 Also added support for quad lasers.
60717 ----------------------------
60718 revision 1.43
60719 date: 1994/07/25 00:14:18;  author: matt;  state: Exp;
60720 Made a couple of minor changes for the drivethrough
60721 ----------------------------
60722 revision 1.42
60723 date: 1994/07/25 00:02:41;  author: matt;  state: Exp;
60724 Various changes to accomodate new 3d, which no longer takes point numbers
60725 as parms, and now only takes pointers to points.
60726 =============================================================================
60727 RCS file: f:/miner/source/main/polyobj.h,v
60728 Working file: main/polyobj.h
60729 head: 2.1
60730 branch:
60731 description: Header for polyobj.c, the polygon object code
60732 ----------------------------
60733 revision 2.1
60734 date: 1995/02/27 18:21:54;  author: john;  state: Exp;
60735 Added extern for robot_points.
60736 ----------------------------
60737 revision 2.0
60738 date: 1995/02/27 11:29:58;  author: john;  state: Exp;
60739 New version 2.0, which has no anonymous unions, builds with
60740 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60741 ----------------------------
60742 revision 1.28
60743 date: 1995/01/12 12:10:16;  author: adam;  state: Exp;
60744 *** empty log message ***
60745 ----------------------------
60746 revision 1.27
60747 date: 1994/11/11 19:28:58;  author: matt;  state: Exp;
60748 Added code to show low detail polygon models
60749 ----------------------------
60750 revision 1.26
60751 date: 1994/11/10 14:03:05;  author: matt;  state: Exp;
60752 Hacked in support for player ships with different textures
60753 ----------------------------
60754 revision 1.25
60755 date: 1994/11/02 16:18:24;  author: matt;  state: Exp;
60756 Moved draw_model_picture() out of editor
60757 ----------------------------
60758 revision 1.24
60759 date: 1994/10/18 10:55:57;  author: adam;  state: Exp;
60760 bumped MAX_POLYGON_OBJECTS up
60761 ----------------------------
60762 revision 1.23
60763 date: 1994/10/17 21:35:01;  author: matt;  state: Exp;
60764 Added support for new Control Center/Main Reactor
60765 ----------------------------
60766 revision 1.22
60767 date: 1994/09/09 14:23:42;  author: matt;  state: Exp;
60768 Added glow code to polygon models for engine glow
60769 ----------------------------
60770 revision 1.21
60771 date: 1994/08/26 18:03:43;  author: matt;  state: Exp;
60772 Added code to remap polygon model numbers by matching filenames
60773 ----------------------------
60774 revision 1.20
60775 date: 1994/08/26 15:36:00;  author: matt;  state: Exp;
60776 Made eclips usable on more than one object at a time
60777 ----------------------------
60778 revision 1.19
60779 date: 1994/07/22 20:44:23;  author: matt;  state: Exp;
60780 Killed unused fields in polygon model structure
60781 ----------------------------
60782 revision 1.18
60783 date: 1994/06/16 17:52:11;  author: matt;  state: Exp;
60784 Made submodels rotate around their centers, not their pivot points
60785 ----------------------------
60786 revision 1.17
60787 date: 1994/06/14 12:22:05;  author: matt;  state: Exp;
60788 Integrated with drive code, using #defines to switch versions
60789 ----------------------------
60790 revision 1.16
60791 date: 1994/06/09 16:25:01;  author: matt;  state: Exp;
60792 Fixed confusion with two constants, MAX_SUBOBJS & MAX_SUBMODELS, which
60793 were used for the same things, but had different values.
60794 ----------------------------
60795 revision 1.15
60796 date: 1994/06/08 10:56:38;  author: matt;  state: Exp;
60797 Improved debris: now get submodel size from new POF files; debris now has
60798 limited life; debris can now be blown up.
60799 ----------------------------
60800 revision 1.14
60801 date: 1994/06/07 16:51:57;  author: matt;  state: Exp;
60802 Made object lighting work correctly; changed name of Ambient_light to
60803 Dynamic_light; cleaned up polygobj object rendering a little.
60804 ----------------------------
60805 revision 1.13
60806 date: 1994/05/26 21:08:59;  author: matt;  state: Exp;
60807 Moved robot stuff out of polygon model and into robot_info struct
60808 Made new file, robot.c, to deal with robots
60809 ----------------------------
60810 revision 1.12
60811 date: 1994/05/18 19:35:05;  author: matt;  state: Exp;
60812 Added fields for the rest of the subobj data
60813 ----------------------------
60814 revision 1.11
60815 date: 1994/05/16 16:17:13;  author: john;  state: Exp;
60816 Bunch of stuff on my Inferno Task list May16-23
60817 ----------------------------
60818 revision 1.10
60819 date: 1994/05/13 11:08:31;  author: matt;  state: Exp;
60820 Added support for multiple gun positions on polygon models
60821 ----------------------------
60822 revision 1.9
60823 date: 1994/04/29 09:18:04;  author: matt;  state: Exp;
60824 Added support for multiple-piece explosions
60825 ----------------------------
60826 revision 1.8
60827 date: 1994/04/28 18:44:18;  author: matt;  state: Exp;
60828 Took out code for old-style (non-interpreted) objects.
60829 ----------------------------
60830 revision 1.7
60831 date: 1994/03/25 16:54:38;  author: matt;  state: Exp;
60832 draw_polygon_object() now takes pointer to animation data
60833 ----------------------------
60834 revision 1.6
60835 date: 1994/03/15 17:44:33;  author: matt;  state: Exp;
60836 Changed a bunch of names
60837 ----------------------------
60838 revision 1.5
60839 date: 1994/03/07 20:02:29;  author: matt;  state: Exp;
60840 Added pointer to normals in polyobj struct
60841 Added prototype for draw_polygon_object()
60842 ----------------------------
60843 revision 1.4
60844 date: 1994/03/01 17:16:19;  author: matt;  state: Exp;
60845 Lots of changes to support loadable binary ".pof" robot files
60846 ----------------------------
60847 revision 1.3
60848 date: 1994/01/31 15:51:20;  author: matt;  state: Exp;
60849 Added ptr for rgb table for robot colors
60850 ----------------------------
60851 revision 1.2
60852 date: 1994/01/28 13:52:01;  author: matt;  state: Exp;
60853 Added flesh to this previously skeletal file.
60854 ----------------------------
60855 revision 1.1
60856 date: 1994/01/28 13:47:42;  author: matt;  state: Exp;
60857 Initial revision
60858 =============================================================================
60859 RCS file: f:/miner/source/main/powerup.c,v
60860 Working file: main/powerup.c
60861 head: 2.2
60862 branch:
60863 description: Code for powerup objects.
60864 ----------------------------
60865 revision 2.2
60866 date: 1995/03/24 13:50:36;  author: john;  state: Exp;
60867 Added mega-wowie zowie to release.
60868 ----------------------------
60869 revision 2.1
60870 date: 1995/03/21 14:38:39;  author: john;  state: Exp;
60871 Ifdef'd out the NETWORK code.
60872 ----------------------------
60873 revision 2.0
60874 date: 1995/02/27 11:27:15;  author: john;  state: Exp;
60875 New version 2.0, which has no anonymous unions, builds with
60876 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
60877 ----------------------------
60878 revision 1.94
60879 date: 1995/02/22 13:46:03;  author: allender;  state: Exp;
60880 remove anonymous unions from object structure
60881 ----------------------------
60882 revision 1.93
60883 date: 1995/02/06 15:52:51;  author: mike;  state: Exp;
60884 add mini megawow powerup for giving reasonable weapons.
60885 ----------------------------
60886 revision 1.92
60887 date: 1995/01/23 22:49:59;  author: mike;  state: Exp;
60888 drop energy instead of primary weapon if you have primary weapon
60889 (drop nothing if want to drop vulcan ammo and you are maxed out)
60890 if you have primary weapon and primary weapon there, get energy instead.
60891 ----------------------------
60892 revision 1.91
60893 date: 1995/01/19 09:42:22;  author: allender;  state: Exp;
60894 record laser levels for demos
60895 ----------------------------
60896 revision 1.90
60897 date: 1994/12/31 12:28:01;  author: rob;  state: Exp;
60898 Added sound for coop key grabs.
60899 ----------------------------
60900 revision 1.89
60901 date: 1994/12/19 19:55:17;  author: rob;  state: Exp;
60902 Fixing key semantics for coop game.
60903 ----------------------------
60904 revision 1.88
60905 date: 1994/12/07 12:55:21;  author: mike;  state: Exp;
60906 tweak vulcan amounts.
60907 ----------------------------
60908 revision 1.87
60909 date: 1994/12/06 13:55:36;  author: matt;  state: Exp;
60910 Made shield & energy powerup messages round to match HUD message
60911 ----------------------------
60912 revision 1.86
60913 date: 1994/12/03 19:03:57;  author: matt;  state: Exp;
60914 Fixed vulcan ammo HUD message
60915 ----------------------------
60916 revision 1.85
60917 date: 1994/11/29 11:35:41;  author: rob;  state: Exp;
60918 Added sound casting for grabbing powerups.
60919 ----------------------------
60920 revision 1.84
60921 date: 1994/11/28 11:26:38;  author: matt;  state: Exp;
60922 Cleaned up hud message printing for picking up weapons
60923 ----------------------------
60924 revision 1.83
60925 date: 1994/11/27 23:14:01;  author: matt;  state: Exp;
60926 Made changes for new mprintf calling convention
60927 ----------------------------
60928 revision 1.82
60929 date: 1994/11/21 16:02:51;  author: mike;  state: Exp;
60930 comment out unused powerups.
60931 ----------------------------
60932 revision 1.81
60933 date: 1994/11/20 18:25:47;  author: john;  state: Exp;
60934 Fixed some #ifndef RELEASE inconsistancies.
60935 ----------------------------
60936 revision 1.80
60937 date: 1994/11/19 23:54:13;  author: mike;  state: Exp;
60938 limit megawowiezowie to shareware powerups if in shareware version.
60939 ----------------------------
60940 revision 1.79
60941 date: 1994/11/14 16:06:16;  author: yuan;  state: Exp;
60942 Made cloak and invulnerability only picked up once.
60943 ----------------------------
60944 revision 1.78
60945 date: 1994/11/07 17:41:06;  author: mike;  state: Exp;
60946 messages for when you're fully stocked with missiles.
60947 ----------------------------
60948 revision 1.77
60949 date: 1994/10/28 14:42:50;  author: john;  state: Exp;
60950 Added sound volumes to all sound calls.
60951 ----------------------------
60952 revision 1.76
60953 date: 1994/10/26 15:55:23;  author: yuan;  state: Exp;
60954 Made vulcan cannon give 100 ammo if it has less than that.
60955 ----------------------------
60956 revision 1.75
60957 date: 1994/10/26 15:54:57;  author: yuan;  state: Exp;
60958 *** empty log message ***
60959 ----------------------------
60960 revision 1.74
60961 date: 1994/10/25 14:31:25;  author: allender;  state: Exp;
60962 Fixed bug where getting cloak powerup while cloaked resulted in
60963 player being cloaked forever.
60964 ----------------------------
60965 revision 1.73
60966 date: 1994/10/25 10:51:21;  author: matt;  state: Exp;
60967 Vulcan cannon powerups now contain ammo count
60968 ----------------------------
60969 revision 1.72
60970 date: 1994/10/21 20:41:32;  author: mike;  state: Exp;
60971 Fix silly backwards (- instead of +) bug in invulnerability powerup.
60972 ----------------------------
60973 revision 1.71
60974 date: 1994/10/20 09:49:23;  author: mike;  state: Exp;
60975 Fix up powerups in some way.
60976 ----------------------------
60977 revision 1.70
60978 date: 1994/10/19 11:16:25;  author: mike;  state: Exp;
60979 Limit amount of each type of ammo player can hold.
60980 ----------------------------
60981 revision 1.69
60982 date: 1994/10/17 14:12:11;  author: matt;  state: Exp;
60983 Added sound for powerup disappearance effect
60984 ----------------------------
60985 revision 1.68
60986 date: 1994/10/17 14:07:04;  author: mike;  state: Exp;
60987 Make shields and energy max out at 200.
60988 ----------------------------
60989 revision 1.67
60990 date: 1994/10/16 12:43:37;  author: mike;  state: Exp;
60991 Don't allow you to pick up a primary weapon, or invulnerability, you already have.
60992 Make cloak time additive.
60993 ----------------------------
60994 revision 1.66
60995 date: 1994/10/15 19:05:30;  author: mike;  state: Exp;
60996 Define constants for vulcan ammo amounts.
60997 ----------------------------
60998 revision 1.65
60999 date: 1994/10/14 15:57:28;  author: mike;  state: Exp;
61000 When you pick up a laser boost or quad_laser powerup, update weapon display.
61001 ----------------------------
61002 revision 1.64
61003 date: 1994/10/13 10:57:51;  author: adam;  state: Exp;
61004 fiddled with powerup disappearance
61005 ----------------------------
61006 revision 1.63
61007 date: 1994/10/12 13:07:33;  author: mike;  state: Exp;
61008 Make powerup play vclip when it goes away.
61009 ----------------------------
61010 revision 1.62
61011 date: 1994/10/12 08:04:42;  author: mike;  state: Exp;
61012 Make proximity powerup worth 4 bombs.
61013 ----------------------------
61014 revision 1.61
61015 date: 1994/10/08 23:37:33;  author: matt;  state: Exp;
61016 Don't pick up weapons you already have; also fixed auto_select bug
61017 for seconary weapons
61018 ----------------------------
61019 revision 1.60
61020 date: 1994/10/08 15:41:00;  author: mike;  state: Exp;
61021 Diminish palette effect due to powerups.
61022 ----------------------------
61023 revision 1.59
61024 date: 1994/10/07 23:37:45;  author: matt;  state: Exp;
61025 Made weapons select when pick up better one
61026 ----------------------------
61027 revision 1.58
61028 date: 1994/10/07 22:09:20;  author: rob;  state: Exp;
61029 Added network hook for grabbing the cloaking device.
61030 =============================================================================
61031 RCS file: f:/miner/source/main/powerup.h,v
61032 Working file: main/powerup.h
61033 head: 2.0
61034 branch:
61035 description: Powerup header file.
61036 ----------------------------
61037 revision 2.0
61038 date: 1995/02/27 11:27:35;  author: john;  state: Exp;
61039 New version 2.0, which has no anonymous unions, builds with
61040 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61041 ----------------------------
61042 revision 1.34
61043 date: 1995/02/06 15:52:37;  author: mike;  state: Exp;
61044 add mini megawow powerup for giving reasonable weapons.
61045 ----------------------------
61046 revision 1.33
61047 date: 1995/01/30 17:14:11;  author: mike;  state: Exp;
61048 halve rate of vulcan ammo consumption.
61049 ----------------------------
61050 revision 1.32
61051 date: 1995/01/15 20:47:56;  author: mike;  state: Exp;
61052 add lighting field to powerups.
61053 ----------------------------
61054 revision 1.31
61055 date: 1994/12/12 21:39:58;  author: matt;  state: Exp;
61056 Changed vulcan ammo: 10K max, 5K w/weapon, 1250 per powerup
61057 ----------------------------
61058 revision 1.30
61059 date: 1994/12/07 12:55:26;  author: mike;  state: Exp;
61060 tweak vulcan amounts.
61061 ----------------------------
61062 revision 1.29
61063 date: 1994/12/02 20:06:46;  author: matt;  state: Exp;
61064 Made vulcan ammo print at approx 25 times actual
61065 ----------------------------
61066 revision 1.28
61067 date: 1994/10/26 15:56:27;  author: yuan;  state: Exp;
61068 Made vulcan cannon give 100 ammo if it has less than that.
61069 ----------------------------
61070 revision 1.27
61071 date: 1994/10/15 19:07:10;  author: mike;  state: Exp;
61072 Define constants for amount of vulcan ammo per powerup.
61073 ----------------------------
61074 revision 1.26
61075 date: 1994/09/26 13:29:38;  author: matt;  state: Exp;
61076 Added extra life each 100,000 points, and show icons on HUD for num lives
61077 ----------------------------
61078 revision 1.25
61079 date: 1994/09/22 19:00:25;  author: mike;  state: Exp;
61080 Kill constants ENERGY_BOOST and SHIELD_BOOST: it's now difficulty level dependent.
61081 ----------------------------
61082 revision 1.24
61083 date: 1994/09/20 19:46:11;  author: mike;  state: Exp;
61084 Fix powerup number assignments.
61085 ----------------------------
61086 revision 1.23
61087 date: 1994/09/02 11:53:34;  author: mike;  state: Exp;
61088 Add the megawow powerup.  If you don't know about it, that's because it's a secret.
61089 ----------------------------
61090 revision 1.22
61091 date: 1994/09/01 10:41:35;  author: matt;  state: Exp;
61092 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
61093 correctly if width & height of bitmap are different.
61094 ----------------------------
61095 revision 1.21
61096 date: 1994/08/31 19:26:14;  author: mike;  state: Exp;
61097 Start adding new pile of powerups.
61098 ----------------------------
61099 revision 1.20
61100 date: 1994/08/25 17:56:08;  author: matt;  state: Exp;
61101 Added quad laser powerup
61102 ----------------------------
61103 revision 1.19
61104 date: 1994/08/18 15:11:50;  author: mike;  state: Exp;
61105 missile powerups.
61106 ----------------------------
61107 revision 1.18
61108 date: 1994/08/09 17:54:33;  author: adam;  state: Exp;
61109 upped no. of powerup types
61110 ----------------------------
61111 revision 1.17
61112 date: 1994/08/09 17:53:39;  author: adam;  state: Exp;
61113 *** empty log message ***
61114 ----------------------------
61115 revision 1.16
61116 date: 1994/07/27 19:44:16;  author: mike;  state: Exp;
61117 Objects containing objects.
61118 ----------------------------
61119 revision 1.15
61120 date: 1994/07/26 18:31:32;  author: mike;  state: Exp;
61121 Move some constants here from eobject.c.
61122 ----------------------------
61123 revision 1.14
61124 date: 1994/07/20 17:35:03;  author: yuan;  state: Exp;
61125 Some minor bug fixes and new key gauges...
61126 ----------------------------
61127 revision 1.13
61128 date: 1994/07/12 15:53:23;  author: john;  state: Exp;
61129 *** empty log message ***
61130 ----------------------------
61131 revision 1.12
61132 date: 1994/07/12 15:30:47;  author: mike;  state: Exp;
61133 Prototype diminish_towards_max.
61134 ----------------------------
61135 revision 1.11
61136 date: 1994/07/07 14:59:04;  author: john;  state: Exp;
61137 Made radar powerups.
61138 ----------------------------
61139 revision 1.10
61140 date: 1994/07/01 16:35:40;  author: yuan;  state: Exp;
61141 Added key system
61142 ----------------------------
61143 revision 1.9
61144 date: 1994/06/29 19:43:33;  author: matt;  state: Exp;
61145 Made powerup animation not happen in render routine
61146 ----------------------------
61147 revision 1.8
61148 date: 1994/06/21 18:54:03;  author: matt;  state: Exp;
61149 Added support for powerups that don't get picked up if not needed, but this
61150 feature is commented out at the end of do_powerup(), since the physics gave 
61151 me all sorts of problems, with the player getting stuck on a powerup.
61152 ----------------------------
61153 revision 1.7
61154 date: 1994/06/08 18:16:32;  author: john;  state: Exp;
61155 Bunch of new stuff that basically takes constants out of the code
61156 and puts them into bitmaps.tbl.
61157 ----------------------------
61158 revision 1.6
61159 date: 1994/05/18 13:26:30;  author: yuan;  state: Exp;
61160 *** empty log message ***
61161 ----------------------------
61162 revision 1.5
61163 date: 1994/05/17 17:01:48;  author: yuan;  state: Exp;
61164 Added constant for boosts.
61165 ----------------------------
61166 revision 1.4
61167 date: 1994/04/06 14:42:50;  author: yuan;  state: Exp;
61168 Adding new powerups.
61169 ----------------------------
61170 revision 1.3
61171 date: 1994/04/01 14:36:59;  author: yuan;  state: Exp;
61172 John's head is an extra life...
61173 ----------------------------
61174 revision 1.2
61175 date: 1994/04/01 11:15:22;  author: yuan;  state: Exp;
61176 Added multiple bitmap functionality to all objects...
61177 (hostages, powerups, lasers, etc.)  
61178 Hostages and powerups are implemented in the object system,
61179 just need to finish function call to "affect" player.
61180 ----------------------------
61181 revision 1.1
61182 date: 1994/03/31 17:01:43;  author: yuan;  state: Exp;
61183 Initial revision
61184 =============================================================================
61185 RCS file: f:/miner/source/main/radar.c,v
61186 Working file: main/radar.c
61187 head: 1.10
61188 branch:
61189 description: Routines for drawing the radar.
61190
61191 ----------------------------
61192 revision 1.10
61193 date: 1995/02/27 12:31:15;  author: john;  state: Exp;
61194 Version 2.0.
61195 ----------------------------
61196 revision 1.9
61197 date: 1995/02/01 21:03:36;  author: john;  state: Exp;
61198 Lintified.
61199 ----------------------------
61200 revision 1.8
61201 date: 1994/08/12 22:41:28;  author: john;  state: Exp;
61202 Took away Player_stats; add Players array.
61203 ----------------------------
61204 revision 1.7
61205 date: 1994/07/15 09:38:00;  author: john;  state: Exp;
61206 Moved in radar_farthest_dist.
61207 ----------------------------
61208 revision 1.6
61209 date: 1994/07/14 22:05:57;  author: john;  state: Exp;
61210 Made radar display not conflict with hostage
61211 vclip talking.
61212 ----------------------------
61213 revision 1.5
61214 date: 1994/07/12 18:41:51;  author: yuan;  state: Exp;
61215 Tweaked location of radar and hostage screen... 
61216 Still needs work.
61217 ----------------------------
61218 revision 1.4
61219 date: 1994/07/07 14:59:00;  author: john;  state: Exp;
61220 Made radar powerups.
61221 ----------------------------
61222 revision 1.3
61223 date: 1994/07/07 10:05:36;  author: john;  state: Exp;
61224 Pegged objects in radar to edges.
61225 ----------------------------
61226 revision 1.2
61227 date: 1994/07/06 19:36:33;  author: john;  state: Exp;
61228 Initial version of radar.
61229 ----------------------------
61230 revision 1.1
61231 date: 1994/07/06 17:22:07;  author: john;  state: Exp;
61232 Initial revision
61233 =============================================================================
61234 RCS file: f:/miner/source/main/radar.h,v
61235 Working file: main/radar.h
61236 head: 2.0
61237 branch:
61238 description: Prototypes for radar.
61239 ----------------------------
61240 revision 2.0
61241 date: 1995/02/27 11:33:07;  author: john;  state: Exp;
61242 New version 2.0, which has no anonymous unions, builds with
61243 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61244 ----------------------------
61245 revision 1.3
61246 date: 1994/07/07 14:59:03;  author: john;  state: Exp;
61247 Made radar powerups.
61248 ----------------------------
61249 revision 1.2
61250 date: 1994/07/06 19:36:36;  author: john;  state: Exp;
61251 Initial version of radar.
61252 ----------------------------
61253 revision 1.1
61254 date: 1994/07/06 17:22:18;  author: john;  state: Exp;
61255 Initial revision
61256 =============================================================================
61257 RCS file: f:/miner/source/main/render.c,v
61258 Working file: main/render.c
61259 head: 2.5
61260 branch:
61261 description: Sample setup for RCS header
61262 ----------------------------
61263 revision 2.5
61264 date: 1995/12/19 15:31:36;  author: john;  state: Exp;
61265 Made stereo mode only record 1 eye in demo.
61266 ----------------------------
61267 revision 2.4
61268 date: 1995/03/20 18:15:53;  author: john;  state: Exp;
61269 Added code to not store the normals in the segment structure.
61270 ----------------------------
61271 revision 2.3
61272 date: 1995/03/13 16:11:05;  author: john;  state: Exp;
61273 Maybe fixed bug that lighting didn't work with vr helmets.
61274 ----------------------------
61275 revision 2.2
61276 date: 1995/03/09 15:33:49;  author: john;  state: Exp;
61277 Fixed bug with iglasses timeout too long, and objects
61278 disappearing from left eye.
61279 ----------------------------
61280 revision 2.1
61281 date: 1995/03/06 15:23:59;  author: john;  state: Exp;
61282 New screen techniques.
61283 ----------------------------
61284 revision 2.0
61285 date: 1995/02/27 11:31:01;  author: john;  state: Exp;
61286 New version 2.0, which has no anonymous unions, builds with
61287 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61288 ----------------------------
61289 revision 1.252
61290 date: 1995/02/22 13:49:38;  author: allender;  state: Exp;
61291 remove anonymous unions from object structure
61292 ----------------------------
61293 revision 1.251
61294 date: 1995/02/11 15:07:26;  author: matt;  state: Exp;
61295 Took out code which was mostly intended as part of a larger renderer
61296 change which never happened.  This new code was causing problems with
61297 the level 4 control center.
61298 ----------------------------
61299 revision 1.250
61300 date: 1995/02/07 16:28:53;  author: matt;  state: Exp;
61301 Fixed problem with new code
61302 ----------------------------
61303 revision 1.249
61304 date: 1995/02/06 14:38:58;  author: matt;  state: Exp;
61305 Took out some code that didn't compile when editor in
61306 ----------------------------
61307 revision 1.248
61308 date: 1995/02/06 13:45:25;  author: matt;  state: Exp;
61309 Structural changes, plus small sorting improvements
61310 ----------------------------
61311 revision 1.247
61312 date: 1995/02/02 15:59:26;  author: matt;  state: Exp;
61313 Changed assert to int3.
61314 ----------------------------
61315 revision 1.246
61316 date: 1995/02/01 21:02:27;  author: matt;  state: Exp;
61317 Added partial fix for rendering bugs
61318 Ripped out laser hack system
61319 ----------------------------
61320 revision 1.245
61321 date: 1995/01/20 15:14:30;  author: matt;  state: Exp;
61322 Added parens to fix precedence bug
61323 ----------------------------
61324 revision 1.244
61325 date: 1995/01/14 19:16:59;  author: john;  state: Exp;
61326 First version of new bitmap paging code.
61327 ----------------------------
61328 revision 1.243
61329 date: 1995/01/03 20:19:25;  author: john;  state: Exp;
61330 Pretty good working version of game save.
61331 ----------------------------
61332 revision 1.242
61333 date: 1994/12/29 13:51:05;  author: john;  state: Exp;
61334 Made the floating reticle draw in the spot
61335 regardless of the eye offset.
61336 ----------------------------
61337 revision 1.241
61338 date: 1994/12/23 15:02:55;  author: john;  state: Exp;
61339 Tweaked floating reticle.
61340 ----------------------------
61341 revision 1.240
61342 date: 1994/12/23 14:27:45;  author: john;  state: Exp;
61343 Changed offset of floating reticle to line up with
61344 lasers a bit better.
61345 ----------------------------
61346 revision 1.239
61347 date: 1994/12/23 14:22:50;  author: john;  state: Exp;
61348 Added floating reticle for VR helments.  
61349 ----------------------------
61350 revision 1.238
61351 date: 1994/12/13 14:07:50;  author: matt;  state: Exp;
61352 Fixed tmap_num2 bug in search mode
61353 ----------------------------
61354 revision 1.237
61355 date: 1994/12/11 00:45:53;  author: matt;  state: Exp;
61356 Fixed problem when object sort buffer got full
61357 ----------------------------
61358 revision 1.236
61359 date: 1994/12/09 18:46:06;  author: matt;  state: Exp;
61360 Added a little debugging
61361 ----------------------------
61362 revision 1.235
61363 date: 1994/12/09 14:59:16;  author: matt;  state: Exp;
61364 Added system to attach a fireball to another object for rendering purposes,
61365 so the fireball always renders on top of (after) the object.
61366 ----------------------------
61367 revision 1.234
61368 date: 1994/12/08 15:46:54;  author: matt;  state: Exp;
61369 Fixed buffer overflow that caused seg depth screwup
61370 ----------------------------
61371 revision 1.233
61372 date: 1994/12/08 11:51:53;  author: matt;  state: Exp;
61373 Took out some unused stuff
61374 ----------------------------
61375 revision 1.232
61376 date: 1994/12/06 16:31:48;  author: mike;  state: Exp;
61377 fix detriangulation problems.
61378 ----------------------------
61379 revision 1.231
61380 date: 1994/12/05 15:32:51;  author: matt;  state: Exp;
61381 Changed an assert to an int3 & return
61382 ----------------------------
61383 revision 1.230
61384 date: 1994/12/04 17:28:04;  author: matt;  state: Exp;
61385 Got rid of unused no_render_flag array, and took out box clear when searching
61386 ----------------------------
61387 revision 1.229
61388 date: 1994/12/04 15:51:14;  author: matt;  state: Exp;
61389 Fixed linear tmap transition for objects
61390 ----------------------------
61391 revision 1.228
61392 date: 1994/12/03 20:16:50;  author: matt;  state: Exp;
61393 Turn off window clip for objects
61394 ----------------------------
61395 revision 1.227
61396 date: 1994/12/03 14:48:00;  author: matt;  state: Exp;
61397 Restored some default settings
61398 ----------------------------
61399 revision 1.226
61400 date: 1994/12/03 14:44:32;  author: matt;  state: Exp;
61401 Fixed another difficult bug in the window clip system
61402 ----------------------------
61403 revision 1.225
61404 date: 1994/12/02 13:19:56;  author: matt;  state: Exp;
61405 Fixed rect clears at terminus of rendering
61406 Made a bunch of debug code compile out
61407 ----------------------------
61408 revision 1.224
61409 date: 1994/12/02 11:58:21;  author: matt;  state: Exp;
61410 Fixed window clip bug
61411 ----------------------------
61412 revision 1.223
61413 date: 1994/11/28 21:50:42;  author: mike;  state: Exp;
61414 optimizations.
61415 ----------------------------
61416 revision 1.222
61417 date: 1994/11/28 01:32:15;  author: mike;  state: Exp;
61418 turn off window clearing.
61419 ----------------------------
61420 revision 1.221
61421 date: 1994/11/27 23:11:52;  author: matt;  state: Exp;
61422 Made changes for new mprintf calling convention
61423 ----------------------------
61424 revision 1.220
61425 date: 1994/11/20 15:58:55;  author: matt;  state: Exp;
61426 Don't migrate the control center, since it doesn't move out of its segment
61427 ----------------------------
61428 revision 1.219
61429 date: 1994/11/19 23:54:36;  author: mike;  state: Exp;
61430 change window colors.
61431 ----------------------------
61432 revision 1.218
61433 date: 1994/11/19 15:20:25;  author: mike;  state: Exp;
61434 rip out unused code and data
61435 ----------------------------
61436 revision 1.217
61437 date: 1994/11/18 13:21:24;  author: mike;  state: Exp;
61438 Clear only view portals into rest of world based on value of Clear_window.
61439 ----------------------------
61440 revision 1.216
61441 date: 1994/11/15 17:02:10;  author: matt;  state: Exp;
61442 Re-added accidentally deleted variable
61443 ----------------------------
61444 revision 1.215
61445 date: 1994/11/15 16:51:50;  author: matt;  state: Exp;
61446 Made rear view only switch to rear cockpit if cockpit on in front view
61447 ----------------------------
61448 revision 1.214
61449 date: 1994/11/14 20:47:57;  author: john;  state: Exp;
61450 Attempted to strip out all the code in the game 
61451 directory that uses any ui code.
61452 ----------------------------
61453 revision 1.213
61454 date: 1994/11/11 15:37:07;  author: mike;  state: Exp;
61455 write orange for background to show render bugs.
61456 ----------------------------
61457 revision 1.212
61458 date: 1994/11/09 22:57:18;  author: matt;  state: Exp;
61459 Keep tract of depth of segments rendered, for detail level optimization
61460 ----------------------------
61461 revision 1.211
61462 date: 1994/11/01 23:40:14;  author: matt;  state: Exp;
61463 Elegantly handler buffer getting full
61464 ----------------------------
61465 revision 1.210
61466 date: 1994/10/31 22:28:13;  author: mike;  state: Exp;
61467 Fix detriangulation bug.
61468 ----------------------------
61469 revision 1.209
61470 date: 1994/10/31 11:48:56;  author: mike;  state: Exp;
61471 Optimize detriangulation, speedup of about 4% in many cases, 0% in many.
61472 ----------------------------
61473 revision 1.208
61474 date: 1994/10/30 20:08:34;  author: matt;  state: Exp;
61475 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
61476 go out; made more explosions on walls.
61477 ----------------------------
61478 revision 1.207
61479 date: 1994/10/27 14:14:35;  author: matt;  state: Exp;
61480 Don't do light flash during endlevel sequence
61481 ----------------------------
61482 revision 1.206
61483 date: 1994/10/11 12:05:42;  author: mike;  state: Exp;
61484 Improve detriangulation.
61485 ----------------------------
61486 revision 1.205
61487 date: 1994/10/07 15:27:00;  author: john;  state: Exp;
61488 Commented out the code that moves your eye
61489 forward.
61490 ----------------------------
61491 revision 1.204
61492 date: 1994/10/05 16:07:38;  author: mike;  state: Exp;
61493 Don't detriangulate sides if in player's segment.  Prevents player going behind a wall,
61494 though there are cases in which it would be ok to detriangulate these.
61495 ----------------------------
61496 revision 1.203
61497 date: 1994/10/03 12:44:05;  author: matt;  state: Exp;
61498 Took out unreferenced code
61499 ----------------------------
61500 revision 1.202
61501 date: 1994/09/28 14:08:45;  author: john;  state: Exp;
61502 Added Zoom stuff back in, but ifdef'd it out.
61503 ----------------------------
61504 revision 1.201
61505 date: 1994/09/25 23:41:49;  author: matt;  state: Exp;
61506 Changed the object load & save code to read/write the structure fields one
61507 at a time (rather than the whole structure at once).  This mean that the
61508 object structure can be changed without breaking the load/save functions.
61509 As a result of this change, the local_object data can be and has been 
61510 incorporated into the object array.  Also, timeleft is now a property 
61511 of all objects, and the object structure has been otherwise cleaned up.
61512 ----------------------------
61513 revision 1.200
61514 date: 1994/09/25 15:50:10;  author: mike;  state: Exp;
61515 Integrate my debug changes which shows how many textures were rendered
61516 this frame.
61517 ----------------------------
61518 revision 1.199
61519 date: 1994/09/25 15:45:22;  author: matt;  state: Exp;
61520 Added OBJ_LIGHT, a type of object that casts light
61521 Added generalized lifeleft, and moved it to local_object
61522 ----------------------------
61523 revision 1.198
61524 date: 1994/09/15 21:23:32;  author: matt;  state: Exp;
61525 Changed system to keep track of whether & what cockpit is up
61526 ----------------------------
61527 revision 1.197
61528 date: 1994/09/15 16:30:12;  author: mike;  state: Exp;
61529 Comment out call to object_render_targets, which did nothing.
61530 ----------------------------
61531 revision 1.196
61532 date: 1994/09/07 22:25:51;  author: matt;  state: Exp;
61533 Don't migrate through semi-transparent walls
61534 ----------------------------
61535 revision 1.195
61536 date: 1994/09/07 19:16:21;  author: mike;  state: Exp;
61537 Homing missile.
61538 ----------------------------
61539 revision 1.194
61540 date: 1994/08/31 20:54:17;  author: matt;  state: Exp;
61541 Don't do flash effect while whiting out
61542 ----------------------------
61543 revision 1.193
61544 date: 1994/08/23 17:20:12;  author: john;  state: Exp;
61545 Added rear-view cockpit.
61546 ----------------------------
61547 revision 1.192
61548 date: 1994/08/22 14:36:35;  author: john;  state: Exp;
61549 Made R key make a "reverse" view render.
61550 ----------------------------
61551 revision 1.191
61552 date: 1994/08/19 20:09:26;  author: matt;  state: Exp;
61553 Added end-of-level cut scene with external scene
61554 ----------------------------
61555 revision 1.190
61556 date: 1994/08/10 19:56:17;  author: john;  state: Exp;
61557 Changed font stuff; Took out old menu; messed up lots of
61558 other stuff like game sequencing messages, etc.
61559 ----------------------------
61560 revision 1.189
61561 date: 1994/08/10 14:45:05;  author: john;  state: Exp;
61562 *** empty log message ***
61563 ----------------------------
61564 revision 1.188
61565 date: 1994/08/09 16:04:06;  author: john;  state: Exp;
61566 Added network players to editor.
61567 ----------------------------
61568 revision 1.187
61569 date: 1994/08/05 17:07:05;  author: john;  state: Exp;
61570 Made lasers be two objects, one drawing after the other
61571 all the time.
61572 ----------------------------
61573 revision 1.186
61574 date: 1994/08/05 10:07:57;  author: matt;  state: Exp;
61575 Disable window check checking (i.e., always use window check)
61576 ----------------------------
61577 revision 1.185
61578 date: 1994/08/04 19:11:30;  author: matt;  state: Exp;
61579 Changed a bunch of vecmat calls to use multiple-function routines, and to
61580 allow the use of C macros for some functions
61581 ----------------------------
61582 revision 1.184
61583 date: 1994/08/04 00:21:14;  author: matt;  state: Exp;
61584 Cleaned up fvi & physics error handling; put in code to make sure objects
61585 are in correct segment; simplified segment finding for objects and points
61586 ----------------------------
61587 revision 1.183
61588 date: 1994/08/02 19:04:28;  author: matt;  state: Exp;
61589 Cleaned up vertex list functions
61590 ----------------------------
61591 revision 1.182
61592 date: 1994/07/29 15:13:33;  author: matt;  state: Exp;
61593 When window check turned off, cut render depth in half
61594 ----------------------------
61595 revision 1.181
61596 date: 1994/07/29 11:03:50;  author: matt;  state: Exp;
61597 Use highest_segment_index instead of num_segments so render works from
61598 the editor
61599 ----------------------------
61600 revision 1.180
61601 date: 1994/07/29 10:04:34;  author: mike;  state: Exp;
61602 Update Cursegp when an object is selected.
61603 ----------------------------
61604 revision 1.179
61605 date: 1994/07/25 00:02:50;  author: matt;  state: Exp;
61606 Various changes to accomodate new 3d, which no longer takes point numbers
61607 as parms, and now only takes pointers to points.
61608 ----------------------------
61609 revision 1.178
61610 date: 1994/07/24 14:37:49;  author: matt;  state: Exp;
61611 Added angles for player head
61612 ----------------------------
61613 revision 1.177
61614 date: 1994/07/20 19:08:07;  author: matt;  state: Exp;
61615 If in editor, don't move eye from center of viewer object
61616 =============================================================================
61617 RCS file: f:/miner/source/main/render.h,v
61618 Working file: main/render.h
61619 head: 2.0
61620 branch:
61621 description: Header for rendering-based functions
61622 ----------------------------
61623 revision 2.0
61624 date: 1995/02/27 11:33:00;  author: john;  state: Exp;
61625 New version 2.0, which has no anonymous unions, builds with
61626 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61627 ----------------------------
61628 revision 1.17
61629 date: 1994/11/30 12:33:33;  author: mike;  state: Exp;
61630 prototype Clear_window.
61631 ----------------------------
61632 revision 1.16
61633 date: 1994/11/02 16:19:52;  author: matt;  state: Exp;
61634 Increased size of extra object buffer
61635 ----------------------------
61636 revision 1.15
61637 date: 1994/07/25 00:02:49;  author: matt;  state: Exp;
61638 Various changes to accomodate new 3d, which no longer takes point numbers
61639 as parms, and now only takes pointers to points.
61640 ----------------------------
61641 revision 1.14
61642 date: 1994/07/24 14:37:42;  author: matt;  state: Exp;
61643 Added angles for player head
61644 ----------------------------
61645 revision 1.13
61646 date: 1994/06/24 17:01:34;  author: john;  state: Exp;
61647 Add VFX support; Took Game Sequencing, like EndGame and stuff and
61648 took it out of game.c and into gameseq.c
61649 ----------------------------
61650 revision 1.12
61651 date: 1994/06/16 10:55:57;  author: matt;  state: Exp;
61652 Made a bunch of test code dependent on #defines
61653 ----------------------------
61654 revision 1.11
61655 date: 1994/06/01 00:01:36;  author: matt;  state: Exp;
61656 Added mine destruction flashing effect
61657 ----------------------------
61658 revision 1.10
61659 date: 1994/05/22 18:47:36;  author: mike;  state: Exp;
61660 make Render_list a globally accessible variable.
61661 ----------------------------
61662 revision 1.9
61663 date: 1994/05/22 15:29:32;  author: mike;  state: Exp;
61664 Separation of lighting from render.c to lighting.c.
61665 ----------------------------
61666 revision 1.8
61667 date: 1994/05/14 17:59:39;  author: matt;  state: Exp;
61668 Added extern.
61669 ----------------------------
61670 revision 1.7
61671 date: 1994/05/14 17:15:17;  author: matt;  state: Exp;
61672 Got rid of externs in source (non-header) files
61673 ----------------------------
61674 revision 1.6
61675 date: 1994/02/17 11:32:41;  author: matt;  state: Exp;
61676 Changes in object system
61677 ----------------------------
61678 revision 1.5
61679 date: 1994/01/21 17:31:48;  author: matt;  state: Exp;
61680 Moved code from render_frame() to caller, making code cleaner
61681 ----------------------------
61682 revision 1.4
61683 date: 1994/01/06 09:46:12;  author: john;  state: Exp;
61684 Added removable walls... all code that checked for
61685 children to see if a wall was a doorway, i changed
61686 to yuan's wall_is_doorway function that is in wall.c...
61687 doesn't work yet.
61688 ----------------------------
61689 revision 1.3
61690 date: 1994/01/05 11:25:47;  author: john;  state: Exp;
61691 Changed Player_zoom to Render_zoom
61692 ----------------------------
61693 revision 1.2
61694 date: 1994/01/05 10:53:43;  author: john;  state: Exp;
61695 New object code by John.  
61696 ----------------------------
61697 revision 1.1
61698 date: 1993/11/04 14:01:43;  author: matt;  state: Exp;
61699 Initial revision
61700 =============================================================================
61701 RCS file: f:/miner/source/main/robot.c,v
61702 Working file: main/robot.c
61703 head: 2.1
61704 branch:
61705 description: Code for handling robots
61706 ----------------------------
61707 revision 2.1
61708 date: 1995/03/07 16:52:02;  author: john;  state: Exp;
61709 Fixed robots not moving without edtiro bug.
61710 ----------------------------
61711 revision 2.0
61712 date: 1995/02/27 11:31:11;  author: john;  state: Exp;
61713 New version 2.0, which has no anonymous unions, builds with
61714 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61715 ----------------------------
61716 revision 1.19
61717 date: 1995/02/22 13:58:09;  author: allender;  state: Exp;
61718 remove anonymous unions from object structure
61719 ----------------------------
61720 revision 1.18
61721 date: 1995/01/27 11:17:06;  author: rob;  state: Exp;
61722 Avoid problems with illegal gun num.
61723 ----------------------------
61724 revision 1.17
61725 date: 1994/11/19 15:15:02;  author: mike;  state: Exp;
61726 remove unused code and data
61727 ----------------------------
61728 revision 1.16
61729 date: 1994/11/05 16:41:31;  author: adam;  state: Exp;
61730 upped MAX_ROBOT_JOINTS
61731 ----------------------------
61732 revision 1.15
61733 date: 1994/09/26 15:29:29;  author: matt;  state: Exp;
61734 Allow morphing objects to fire
61735 ----------------------------
61736 revision 1.14
61737 date: 1994/06/20 14:31:02;  author: matt;  state: Exp;
61738 Don't include joint zero in animation data
61739 ----------------------------
61740 revision 1.13
61741 date: 1994/06/10 14:39:58;  author: matt;  state: Exp;
61742 Increased limit of robot joints
61743 ----------------------------
61744 revision 1.12
61745 date: 1994/06/10 10:59:18;  author: matt;  state: Exp;
61746 Do error checking on list of angles
61747 ----------------------------
61748 revision 1.11
61749 date: 1994/06/09 16:21:32;  author: matt;  state: Exp;
61750 Took out special-case and test code.
61751 ----------------------------
61752 revision 1.10
61753 date: 1994/06/07 13:21:14;  author: matt;  state: Exp;
61754 Added support for new chunk-based POF files, with robot animation data.
61755 ----------------------------
61756 revision 1.9
61757 date: 1994/06/01 17:58:24;  author: mike;  state: Exp;
61758 Greater flinch effect.
61759 ----------------------------
61760 revision 1.8
61761 date: 1994/06/01 14:59:25;  author: matt;  state: Exp;
61762 Fixed calc_gun_position(), which was rotating the wrong way for the
61763 object orientation.
61764 ----------------------------
61765 revision 1.7
61766 date: 1994/06/01 12:44:04;  author: matt;  state: Exp;
61767 Added flinch state for test robot
61768 ----------------------------
61769 revision 1.6
61770 date: 1994/05/31 19:17:24;  author: matt;  state: Exp;
61771 Fixed test robot angles
61772 ----------------------------
61773 revision 1.5
61774 date: 1994/05/30 19:43:50;  author: mike;  state: Exp;
61775 Call set_test_robot.
61776 ----------------------------
61777 revision 1.4
61778 date: 1994/05/30 00:02:44;  author: matt;  state: Exp;
61779 Got rid of robot render type, and generally cleaned up polygon model
61780 render objects.
61781 ----------------------------
61782 revision 1.3
61783 date: 1994/05/29 18:46:15;  author: matt;  state: Exp;
61784 Added stuff for getting robot animation info for different states
61785 ----------------------------
61786 revision 1.2
61787 date: 1994/05/26 21:09:15;  author: matt;  state: Exp;
61788 Moved robot stuff out of polygon model and into robot_info struct
61789 Made new file, robot.c, to deal with robots
61790 ----------------------------
61791 revision 1.1
61792 date: 1994/05/26 18:02:04;  author: matt;  state: Exp;
61793 Initial revision
61794 =============================================================================
61795 RCS file: f:/miner/source/main/robot.h,v
61796 Working file: main/robot.h
61797 head: 2.1
61798 branch:
61799 description: Header for robot.c
61800 ----------------------------
61801 revision 2.1
61802 date: 1995/03/07 16:52:00;  author: john;  state: Exp;
61803 Fixed robots not moving without edtiro bug.
61804 ----------------------------
61805 revision 2.0
61806 date: 1995/02/27 11:30:59;  author: john;  state: Exp;
61807 New version 2.0, which has no anonymous unions, builds with
61808 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61809 ----------------------------
61810 revision 1.25
61811 date: 1994/11/30 14:02:44;  author: mike;  state: Exp;
61812 fields for see/attack/claw sounds.
61813 ----------------------------
61814 revision 1.24
61815 date: 1994/10/27 15:55:41;  author: adam;  state: Exp;
61816 *** empty log message ***
61817 ----------------------------
61818 revision 1.23
61819 date: 1994/10/20 15:17:03;  author: mike;  state: Exp;
61820 Add boss flag.
61821 ----------------------------
61822 revision 1.22
61823 date: 1994/10/20 09:51:00;  author: adam;  state: Exp;
61824 *** empty log message ***
61825 ----------------------------
61826 revision 1.21
61827 date: 1994/10/18 10:52:54;  author: mike;  state: Exp;
61828 Support robots lunging as an attack_type.
61829 ----------------------------
61830 revision 1.20
61831 date: 1994/10/17 21:19:02;  author: mike;  state: Exp;
61832 robot cloaking.
61833 ----------------------------
61834 revision 1.19
61835 date: 1994/09/27 00:03:39;  author: mike;  state: Exp;
61836 Add score_value to robot_info struct.
61837 ----------------------------
61838 revision 1.18
61839 date: 1994/09/22 19:01:12;  author: mike;  state: Exp;
61840 Move NDL from here to game.h
61841 ----------------------------
61842 revision 1.17
61843 date: 1994/09/22 15:46:55;  author: mike;  state: Exp;
61844 Add default contained objects for robots.
61845 ----------------------------
61846 revision 1.16
61847 date: 1994/09/22 10:46:57;  author: mike;  state: Exp;
61848 Add difficulty levels.
61849 ----------------------------
61850 revision 1.15
61851 date: 1994/09/15 16:34:16;  author: mike;  state: Exp;
61852 Change rapidfire_count to a byte, add evade_speed, dum1, dum2.
61853 ----------------------------
61854 revision 1.14
61855 date: 1994/09/09 14:21:58;  author: matt;  state: Exp;
61856 Increased maximum number of games
61857 ----------------------------
61858 revision 1.13
61859 date: 1994/08/25 18:12:13;  author: matt;  state: Exp;
61860 Made player's weapons and flares fire from the positions on the 3d model.
61861 Also added support for quad lasers.
61862 ----------------------------
61863 revision 1.12
61864 date: 1994/08/23 16:37:24;  author: mike;  state: Exp;
61865 Add rapidfire_count to robot_info.
61866 ----------------------------
61867 revision 1.11
61868 date: 1994/07/27 19:45:01;  author: mike;  state: Exp;
61869 Objects containing objects.
61870 ----------------------------
61871 revision 1.10
61872 date: 1994/07/12 12:40:01;  author: matt;  state: Exp;
61873 Revamped physics system
61874 ----------------------------
61875 revision 1.9
61876 date: 1994/06/21 12:17:12;  author: mike;  state: Exp;
61877 Add circle_distance to robot_info.
61878 ----------------------------
61879 revision 1.8
61880 date: 1994/06/09 16:22:28;  author: matt;  state: Exp;
61881 Moved header for calc_gun_point() here, where it belongs
61882 ----------------------------
61883 revision 1.7
61884 date: 1994/06/08 18:16:23;  author: john;  state: Exp;
61885 Bunch of new stuff that basically takes constants out of the code
61886 and puts them into bitmaps.tbl.
61887 ----------------------------
61888 revision 1.6
61889 date: 1994/06/03 11:38:09;  author: john;  state: Exp;
61890 Made robots get their strength for RobotInfo->strength, which
61891 is read in from bitmaps.tbl
61892 ----------------------------
61893 revision 1.5
61894 date: 1994/05/30 19:43:31;  author: mike;  state: Exp;
61895 Add voluminous comment for robot_get_anim_state.
61896 ----------------------------
61897 revision 1.4
61898 date: 1994/05/30 00:03:18;  author: matt;  state: Exp;
61899 Got rid of robot render type, and generally cleaned up polygon model
61900 render objects.
61901 ----------------------------
61902 revision 1.3
61903 date: 1994/05/29 18:46:37;  author: matt;  state: Exp;
61904 Added stuff for getting robot animation info for different states
61905 ----------------------------
61906 revision 1.2
61907 date: 1994/05/26 21:09:18;  author: matt;  state: Exp;
61908 Moved robot stuff out of polygon model and into robot_info struct
61909 Made new file, robot.c, to deal with robots
61910 ----------------------------
61911 revision 1.1
61912 date: 1994/05/26 18:02:12;  author: matt;  state: Exp;
61913 Initial revision
61914 =============================================================================
61915 RCS file: f:/miner/source/main/scores.c,v
61916 Working file: main/scores.c
61917 head: 2.2
61918 branch:
61919 description: Inferno High Scores and Statistics System
61920 ----------------------------
61921 revision 2.2
61922 date: 1995/06/15 12:13:54;  author: john;  state: Exp;
61923 Made end game, win game and title sequences all go
61924 on after 5 minutes automatically.
61925 ----------------------------
61926 revision 2.1
61927 date: 1995/03/06 15:23:57;  author: john;  state: Exp;
61928 New screen techniques.
61929 ----------------------------
61930 revision 2.0
61931 date: 1995/02/27 11:30:53;  author: john;  state: Exp;
61932 New version 2.0, which has no anonymous unions, builds with
61933 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
61934 ----------------------------
61935 revision 1.109
61936 date: 1995/02/09 12:23:19;  author: rob;  state: Exp;
61937 Added assert for length of filename.
61938 ----------------------------
61939 revision 1.108
61940 date: 1995/01/03 17:33:24;  author: john;  state: Exp;
61941 Made scrolling textbox. Used it for scores cool saying.
61942 ----------------------------
61943 revision 1.107
61944 date: 1994/12/28 10:42:51;  author: john;  state: Exp;
61945 More VFX tweaking.
61946 ----------------------------
61947 revision 1.106
61948 date: 1994/12/28 10:26:19;  author: john;  state: Exp;
61949 Fixed some VFX problems.
61950 ----------------------------
61951 revision 1.105
61952 date: 1994/12/15 16:42:12;  author: adam;  state: Exp;
61953 some fix
61954 ----------------------------
61955 revision 1.104
61956 date: 1994/12/14 11:59:19;  author: john;  state: Exp;
61957 Changed the default high scores.
61958 ----------------------------
61959 revision 1.103
61960 date: 1994/12/09 00:41:12;  author: mike;  state: Exp;
61961 fix hang in automap print screen
61962 ----------------------------
61963 revision 1.102
61964 date: 1994/12/07 00:36:26;  author: mike;  state: Exp;
61965 scores sequencing stuff.
61966 ----------------------------
61967 revision 1.101
61968 date: 1994/12/06 15:14:21;  author: yuan;  state: Exp;
61969 Localization
61970 ----------------------------
61971 revision 1.100
61972 date: 1994/12/03 17:07:52;  author: yuan;  state: Exp;
61973 Localization 368
61974 ----------------------------
61975 revision 1.99
61976 date: 1994/12/03 14:49:27;  author: mark;  state: Exp;
61977 Fixed john's bug with previous.
61978 ----------------------------
61979 revision 1.98
61980 date: 1994/12/03 14:43:54;  author: john;  state: Exp;
61981 Added enter, space  to exit scores.
61982 ----------------------------
61983 revision 1.97
61984 date: 1994/12/03 14:32:34;  author: john;  state: Exp;
61985 Added integrated-super-deluxe-ctrl-r to reset high scores.
61986 ----------------------------
61987 revision 1.96
61988 date: 1994/12/01 20:15:20;  author: yuan;  state: Exp;
61989 Localization
61990 ----------------------------
61991 revision 1.95
61992 date: 1994/11/30 19:36:36;  author: john;  state: Exp;
61993 Made Gravis Ultrasound work again.  Made the scores blink
61994 at a constant rate.  Revamped the newmenu background storage,
61995 which hopefully fixed some bugs.  Made menus in ame not pause
61996 sound, except for the pause key.               ^== Game!
61997 ----------------------------
61998 revision 1.94
61999 date: 1994/11/30 12:32:08;  author: john;  state: Exp;
62000 Made secret levels print correctly.
62001 ----------------------------
62002 revision 1.93
62003 date: 1994/11/30 12:06:47;  author: mike;  state: Exp;
62004 fix bug: looper not initialized.
62005 ----------------------------
62006 revision 1.92
62007 date: 1994/11/29 13:20:04;  author: john;  state: Exp;
62008 changed the "Wow! You placed .." to something better.
62009 ----------------------------
62010 revision 1.91
62011 date: 1994/11/29 01:35:38;  author: john;  state: Exp;
62012 Made it so that even if you don't get a high score, you still show
62013 up on the chart..
62014 ----------------------------
62015 revision 1.90
62016 date: 1994/11/23 17:29:29;  author: mike;  state: Exp;
62017 fix xx-xx level bug in high scores.
62018 ----------------------------
62019 revision 1.89
62020 date: 1994/11/22 16:55:27;  author: mike;  state: Exp;
62021 allow high scores even in pudly trainee level.
62022 ----------------------------
62023 revision 1.88
62024 date: 1994/11/21 17:28:33;  author: john;  state: Exp;
62025 Changed default score values.
62026 ----------------------------
62027 revision 1.87
62028 date: 1994/11/18 23:37:53;  author: john;  state: Exp;
62029 Changed some shorts to ints.
62030 ----------------------------
62031 revision 1.86
62032 date: 1994/11/13 15:39:24;  author: john;  state: Exp;
62033 Added critical error handler to game.  Took out -editor command line
62034 option because it didn't work anymore and wasn't worth fixing.  Made scores
62035 not use MINER enviroment variable on release version, and made scores
62036 not print an error if there is no descent.hi.
62037 ----------------------------
62038 revision 1.85
62039 date: 1994/11/06 10:15:58;  author: john;  state: Exp;
62040 Took out kill % and hostage %
62041 ----------------------------
62042 revision 1.84
62043 date: 1994/11/05 15:03:39;  author: john;  state: Exp;
62044 Added non-popup menu for the main menu, so that scores and credits don't have to save
62045 the background.
62046 ----------------------------
62047 revision 1.83
62048 date: 1994/11/05 14:05:57;  author: john;  state: Exp;
62049 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
62050 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
62051 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
62052 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
62053 ----------------------------
62054 revision 1.82
62055 date: 1994/11/04 20:11:41;  author: john;  state: Exp;
62056 Neatening up palette stuff with demos.
62057 ----------------------------
62058 revision 1.81
62059 date: 1994/11/04 12:02:34;  author: john;  state: Exp;
62060 Fixed fading transitions a bit more.
62061 ----------------------------
62062 revision 1.80
62063 date: 1994/10/27 12:10:39;  author: john;  state: Exp;
62064 Moved kill % a little to the right.
62065 ----------------------------
62066 revision 1.79
62067 date: 1994/10/24 20:25:03;  author: john;  state: Exp;
62068 Fixed bug with space at end of 1 line message.
62069 Made Enter go between the two input lines.
62070 ----------------------------
62071 revision 1.78
62072 date: 1994/10/24 18:20:18;  author: john;  state: Exp;
62073 Made the current high score flash.
62074 ----------------------------
62075 revision 1.77
62076 date: 1994/10/24 13:37:22;  author: mike;  state: Exp;
62077 Fix grammar error.  --anal Mike.
62078 ----------------------------
62079 revision 1.76
62080 date: 1994/10/22 13:19:19;  author: john;  state: Exp;
62081 Made joy/mouse buttons leave score screen.
62082 ----------------------------
62083 revision 1.75
62084 date: 1994/10/21 15:26:57;  author: john;  state: Exp;
62085 Used PrtScr instead of F2.
62086 ----------------------------
62087 revision 1.74
62088 date: 1994/10/21 13:54:21;  author: matt;  state: Exp;
62089 Replace '1' with special wide '1' to make numbers line up
62090 ----------------------------
62091 revision 1.73
62092 date: 1994/10/19 20:48:01;  author: john;  state: Exp;
62093 Made so that people playing on wimp level
62094 can't get high scores.
62095 ----------------------------
62096 revision 1.72
62097 date: 1994/10/19 15:14:05;  author: john;  state: Exp;
62098 Took % hits out of player structure, made %kills work properly.
62099 ----------------------------
62100 revision 1.71
62101 date: 1994/10/19 14:39:27;  author: john;  state: Exp;
62102 Finished up; added keys to prtscr, int3.
62103 ----------------------------
62104 revision 1.70
62105 date: 1994/10/19 12:44:09;  author: john;  state: Exp;
62106 Added hours field to player structure.
62107 ----------------------------
62108 revision 1.69
62109 date: 1994/10/19 11:25:21;  author: john;  state: Exp;
62110 Looking good.
62111 ----------------------------
62112 revision 1.68
62113 date: 1994/10/19 10:54:12;  author: john;  state: Exp;
62114 Test version.
62115 ----------------------------
62116 revision 1.67
62117 date: 1994/10/19 10:00:27;  author: john;  state: Exp;
62118 *** empty log message ***
62119 ----------------------------
62120 revision 1.66
62121 date: 1994/10/19 09:59:03;  author: john;  state: Exp;
62122 Made cool saying have the potential to be up to 50 chars
62123 ----------------------------
62124 revision 1.65
62125 date: 1994/10/19 09:53:30;  author: john;  state: Exp;
62126 Working version of scores.
62127 ----------------------------
62128 revision 1.64
62129 date: 1994/10/18 21:07:46;  author: john;  state: Exp;
62130 Fixed bug that didn't print name correctly.
62131 ----------------------------
62132 revision 1.63
62133 date: 1994/10/18 18:21:46;  author: john;  state: Exp;
62134 NEw score system.
62135 ----------------------------
62136 revision 1.62
62137 date: 1994/10/17 20:31:42;  author: john;  state: Exp;
62138 Made the text for the difficulty labels global so that
62139 the high score screen can print "rookie" or whatever.
62140 ----------------------------
62141 revision 1.61
62142 date: 1994/10/17 17:27:44;  author: john;  state: Exp;
62143 Added starting_level to high score system.
62144 ----------------------------
62145 revision 1.60
62146 date: 1994/10/17 16:56:35;  author: john;  state: Exp;
62147 Added starting level to stats menu.
62148 ----------------------------
62149 revision 1.59
62150 date: 1994/10/17 16:55:25;  author: john;  state: Exp;
62151 Added starting level, but didn't hook it to anything.
62152 ----------------------------
62153 revision 1.58
62154 date: 1994/10/17 16:47:17;  author: john;  state: Exp;
62155 Added diff. level.
62156 ----------------------------
62157 revision 1.57
62158 date: 1994/10/17 15:49:53;  author: john;  state: Exp;
62159 Added stats screen.
62160 ----------------------------
62161 revision 1.56
62162 date: 1994/10/03 23:02:29;  author: matt;  state: Exp;
62163 After player added or not to scores, scores are now displayed
62164 ----------------------------
62165 revision 1.55
62166 date: 1994/09/01 18:09:38;  author: john;  state: Exp;
62167 Made commas in scores work correctly .
62168 ----------------------------
62169 revision 1.54
62170 date: 1994/09/01 18:03:57;  author: john;  state: Exp;
62171 Neatened up scores a bit.
62172 ----------------------------
62173 revision 1.53
62174 date: 1994/08/26 14:27:37;  author: john;  state: Exp;
62175 Made it prompt for name
62176 ----------------------------
62177 revision 1.52
62178 date: 1994/08/26 13:03:17;  author: john;  state: Exp;
62179 *** empty log message ***
62180 ----------------------------
62181 revision 1.51
62182 date: 1994/08/26 13:01:52;  author: john;  state: Exp;
62183 Put high score system in.
62184 ----------------------------
62185 revision 1.50
62186 date: 1994/08/10 19:57:01;  author: john;  state: Exp;
62187 Changed font stuff; Took out old menu; messed up lots of
62188 other stuff like game sequencing messages, etc.
62189 ----------------------------
62190 revision 1.49
62191 date: 1994/07/25 15:40:27;  author: matt;  state: Exp;
62192 Took out debugging code accidentally left in.
62193 =============================================================================
62194 RCS file: f:/miner/source/main/scores.h,v
62195 Working file: main/scores.h
62196 head: 2.0
62197 branch:
62198 description: Scores header.
62199 ----------------------------
62200 revision 2.0
62201 date: 1995/02/27 11:31:53;  author: john;  state: Exp;
62202 New version 2.0, which has no anonymous unions, builds with
62203 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62204 ----------------------------
62205 revision 1.13
62206 date: 1994/12/07 00:36:36;  author: mike;  state: Exp;
62207 scores sequencing stuff.
62208 ----------------------------
62209 revision 1.12
62210 date: 1994/11/28 11:26:09;  author: matt;  state: Exp;
62211 Took out scores for weapons, which are no longer used
62212 ----------------------------
62213 revision 1.11
62214 date: 1994/10/24 18:20:03;  author: john;  state: Exp;
62215 Made the current high score flash.
62216 ----------------------------
62217 revision 1.10
62218 date: 1994/10/18 18:21:36;  author: john;  state: Exp;
62219 NEw score system.
62220 ----------------------------
62221 revision 1.9
62222 date: 1994/10/03 23:01:58;  author: matt;  state: Exp;
62223 New parms for scores_view()
62224 ----------------------------
62225 revision 1.8
62226 date: 1994/09/27 16:10:37;  author: adam;  state: Exp;
62227 changed scores of course
62228 ----------------------------
62229 revision 1.7
62230 date: 1994/08/31 19:25:46;  author: mike;  state: Exp;
62231 Add score values for new powerups.
62232 ----------------------------
62233 revision 1.6
62234 date: 1994/08/26 16:00:18;  author: mike;  state: Exp;
62235 enhanced (?) scoring.
62236 ----------------------------
62237 revision 1.5
62238 date: 1994/08/26 13:01:45;  author: john;  state: Exp;
62239 Put high score system in.
62240 ----------------------------
62241 revision 1.4
62242 date: 1994/05/30 16:33:21;  author: yuan;  state: Exp;
62243 Revamping high scores.
62244 ----------------------------
62245 revision 1.3
62246 date: 1994/05/14 17:15:07;  author: matt;  state: Exp;
62247 Got rid of externs in source (non-header) files
62248 ----------------------------
62249 revision 1.2
62250 date: 1994/05/13 13:13:57;  author: yuan;  state: Exp;
62251 Added player death...
62252 When you die, if just pops up a a message.
62253 When game is over, a message is popped up, and if you have a high score,
62254 you get to enter it.
62255 ----------------------------
62256 revision 1.1
62257 date: 1994/05/13 10:22:16;  author: yuan;  state: Exp;
62258 Initial revision
62259 =============================================================================
62260 RCS file: f:/miner/source/main/screens.h,v
62261 Working file: main/screens.h
62262 head: 2.2
62263 branch:
62264 description: Info on canvases, screens, etc.
62265 ----------------------------
62266 revision 2.2
62267 date: 1995/03/14 12:14:00;  author: john;  state: Exp;
62268 Made VR helmets have 4 resolutions to choose from.
62269 ----------------------------
62270 revision 2.1
62271 date: 1995/03/06 15:24:09;  author: john;  state: Exp;
62272 New screen techniques.
62273 ----------------------------
62274 revision 2.0
62275 date: 1995/02/27 11:31:40;  author: john;  state: Exp;
62276 New version 2.0, which has no anonymous unions, builds with
62277 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62278 ----------------------------
62279 revision 1.15
62280 date: 1994/08/10 19:56:45;  author: john;  state: Exp;
62281 Changed font stuff; Took out old menu; messed up lots of
62282 other stuff like game sequencing messages, etc.
62283 ----------------------------
62284 revision 1.14
62285 date: 1994/07/20 21:04:26;  author: john;  state: Exp;
62286 Add VictorMax VR helment support.
62287 ----------------------------
62288 revision 1.13
62289 date: 1994/06/24 17:01:28;  author: john;  state: Exp;
62290 Add VFX support; Took Game Sequencing, like EndGame and stuff and
62291 took it out of game.c and into gameseq.c
62292 ----------------------------
62293 revision 1.12
62294 date: 1994/04/20 20:30:03;  author: john;  state: Exp;
62295 *** empty log message ***
62296 ----------------------------
62297 revision 1.11
62298 date: 1994/03/30 21:12:05;  author: yuan;  state: Exp;
62299 Use only 119 lines (saves 3 scanlines)
62300 ----------------------------
62301 revision 1.10
62302 date: 1994/03/17 16:49:37;  author: john;  state: Exp;
62303 *** empty log message ***
62304 ----------------------------
62305 revision 1.9
62306 date: 1994/02/11 15:07:44;  author: matt;  state: Exp;
62307 Added extern of Canv_game_offscrn
62308 ----------------------------
62309 revision 1.8
62310 date: 1994/01/31 16:52:43;  author: john;  state: Exp;
62311 redid cockpit bounds.
62312 ----------------------------
62313 revision 1.7
62314 date: 1994/01/26 18:13:53;  author: john;  state: Exp;
62315 Changed 3d constants..
62316 ----------------------------
62317 revision 1.6
62318 date: 1994/01/25 17:11:46;  author: john;  state: Exp;
62319 *** empty log message ***
62320 ----------------------------
62321 revision 1.5
62322 date: 1994/01/25 11:43:25;  author: john;  state: Exp;
62323 Changed game window size.
62324 ----------------------------
62325 revision 1.4
62326 date: 1993/12/13 16:32:39;  author: yuan;  state: Exp;
62327 Fixed menu system memory errors, and other bugs.
62328 ----------------------------
62329 revision 1.3
62330 date: 1993/12/10 16:07:23;  author: yuan;  state: Exp;
62331 Working on menu system.  Updated the title screen.
62332 ----------------------------
62333 revision 1.2
62334 date: 1993/12/09 21:27:46;  author: matt;  state: Exp;
62335 Added 3d window sizing constants
62336 ----------------------------
62337 revision 1.1
62338 date: 1993/12/06 09:50:33;  author: matt;  state: Exp;
62339 Initial revision
62340 =============================================================================
62341 RCS file: f:/miner/source/main/editor/segment.c,v
62342 Working file: main/editor/segment.c
62343 head: 2.0
62344 branch:
62345 description: Interrogation functions for segment data structure.
62346 ----------------------------
62347 revision 2.0
62348 date: 1995/02/27 11:35:21;  author: john;  state: Exp;
62349 Version 2.0! No anonymous unions, Watcom 10.0, with no need
62350 for bitmaps.tbl.
62351 ----------------------------
62352 revision 1.191
62353 date: 1995/02/22 15:28:30;  author: allender;  state: Exp;
62354 remove anonymous unions from object structure
62355 ----------------------------
62356 revision 1.190
62357 date: 1995/02/02 02:59:40;  author: yuan;  state: Exp;
62358 Working on exterminating bogus matcen_nums... (harmless though)
62359 ----------------------------
62360 revision 1.189
62361 date: 1995/02/01 16:29:51;  author: yuan;  state: Exp;
62362 Stabilizing triggers and matcens.
62363 ----------------------------
62364 revision 1.188
62365 date: 1995/02/01 11:31:47;  author: yuan;  state: Exp;
62366 Trigger bug fixed.
62367 ----------------------------
62368 revision 1.187
62369 date: 1994/11/27 23:17:24;  author: matt;  state: Exp;
62370 Made changes for new mprintf calling convention
62371 ----------------------------
62372 revision 1.186
62373 date: 1994/11/17 14:48:12;  author: mike;  state: Exp;
62374 validation functions moved from editor to game.
62375 ----------------------------
62376 revision 1.185
62377 date: 1994/10/30 14:13:17;  author: mike;  state: Exp;
62378 rip out local segment stuff.
62379 ----------------------------
62380 revision 1.184
62381 date: 1994/10/27 10:04:24;  author: matt;  state: Exp;
62382 When triangulating, don't use WID() to see if connected, look at children
62383 ----------------------------
62384 revision 1.183
62385 date: 1994/10/26 13:40:23;  author: mike;  state: Exp;
62386 debug code for matt.
62387 ----------------------------
62388 revision 1.182
62389 date: 1994/10/24 16:34:00;  author: mike;  state: Exp;
62390 Force render after mine compress to prevent bugs in segment selection via clicking in 3d window.
62391 ----------------------------
62392 revision 1.181
62393 date: 1994/10/20 18:16:15;  author: mike;  state: Exp;
62394 Initialize ControlCenterTriggers.num_links in create_new_mine.
62395 ----------------------------
62396 revision 1.180
62397 date: 1994/10/18 16:29:14;  author: mike;  state: Exp;
62398 Write function to automatically fix bogus segnums in segment array.
62399 ----------------------------
62400 revision 1.179
62401 date: 1994/10/08 17:10:41;  author: matt;  state: Exp;
62402 Correctly set current_level_num when loading/creating mine in editor
62403 ----------------------------
62404 revision 1.178
62405 date: 1994/09/25 14:17:51;  author: mike;  state: Exp;
62406 Initialize (to 0) Num_robot_centers and Num_open_doors at mine creation.
62407 ----------------------------
62408 revision 1.177
62409 date: 1994/09/20 14:36:06;  author: mike;  state: Exp;
62410 Write function to find overlapping segments.
62411 ----------------------------
62412 revision 1.176
62413 date: 1994/08/25 21:55:57;  author: mike;  state: Exp;
62414 IS_CHILD stuff.
62415 ----------------------------
62416 revision 1.175
62417 date: 1994/08/23 15:28:03;  author: mike;  state: Exp;
62418 Fix peculiarity in med_combine_duplicate_vertices.
62419 ----------------------------
62420 revision 1.174
62421 date: 1994/08/09 16:06:17;  author: john;  state: Exp;
62422 Added the ability to place players.  Made old
62423 Player variable be ConsoleObject.
62424 ----------------------------
62425 revision 1.173
62426 date: 1994/08/05 21:18:10;  author: matt;  state: Exp;
62427 Allow two doors to be linked together
62428 ----------------------------
62429 revision 1.172
62430 date: 1994/08/04 19:13:16;  author: matt;  state: Exp;
62431 Changed a bunch of vecmat calls to use multiple-function routines, and to
62432 allow the use of C macros for some functions
62433 ----------------------------
62434 revision 1.171
62435 date: 1994/07/22 12:37:00;  author: matt;  state: Exp;
62436 Cleaned up editor/game interactions some more.
62437 ----------------------------
62438 revision 1.170
62439 date: 1994/07/22 11:20:08;  author: mike;  state: Exp;
62440 Set Lsegments validity.
62441 ----------------------------
62442 revision 1.169
62443 date: 1994/07/21 19:02:49;  author: mike;  state: Exp;
62444 lsegment stuff.
62445 ----------------------------
62446 revision 1.168
62447 date: 1994/07/21 13:27:17;  author: matt;  state: Exp;
62448 Ripped out remants of old demo system, and added demo
62449 disables object movement and game options from menu.
62450 ----------------------------
62451 revision 1.167
62452 date: 1994/07/19 20:15:48;  author: matt;  state: Exp;
62453 Name for each level now saved in the .SAV file & stored in Current_level_name
62454 ----------------------------
62455 revision 1.166
62456 date: 1994/07/06 12:42:45;  author: john;  state: Exp;
62457 Made generic messages for hostages.
62458 ----------------------------
62459 revision 1.165
62460 date: 1994/06/24 17:04:29;  author: john;  state: Exp;
62461 *** empty log message ***
62462 ----------------------------
62463 revision 1.164
62464 date: 1994/06/15 15:42:40;  author: mike;  state: Exp;
62465 Initialize static_light field in new segments.
62466 ----------------------------
62467 revision 1.163
62468 date: 1994/06/13 17:49:19;  author: mike;  state: Exp;
62469 Fix bug in med_validate_side which was toasting lighting for removable walls.
62470 ----------------------------
62471 revision 1.162
62472 date: 1994/06/13 10:52:20;  author: mike;  state: Exp;
62473 Fix bug in triangulation of sides between connected segments.
62474 Was assigning SIDE_IS_02 regardless of how triangulated, was
62475 causing physics bugs.
62476 ----------------------------
62477 revision 1.161
62478 date: 1994/06/08 18:14:16;  author: mike;  state: Exp;
62479 Fix triangulation of sides in hallways (ie, where there is no wall),
62480 so they get triangulated the same way, so find_new_seg doesn't get
62481 stuck in an infinite recursion.
62482 ----------------------------
62483 revision 1.160
62484 date: 1994/06/08 11:44:31;  author: mike;  state: Exp;
62485 Fix bug in normals not being opposite on opposite sides of a segment.
62486 Problem occurred due to difference in handling of remainder in signed divide.
62487 ----------------------------
62488 revision 1.159
62489 date: 1994/05/31 19:00:15;  author: yuan;  state: Exp;
62490 Fixed gamestate restore.
62491 ----------------------------
62492 revision 1.158
62493 date: 1994/05/30 20:22:36;  author: yuan;  state: Exp;
62494 New triggers.
62495 ----------------------------
62496 revision 1.157
62497 date: 1994/05/26 19:32:51;  author: mike;  state: Exp;
62498 Add bfs_parse.
62499 ----------------------------
62500 revision 1.156
62501 date: 1994/05/23 14:56:46;  author: mike;  state: Exp;
62502 make current segment be add segment.,
62503 =============================================================================
62504 RCS file: f:/miner/source/main/segment.h,v
62505 Working file: main/segment.h
62506 head: 2.1
62507 branch:
62508 description: Include file for functions which need to access segment data structure.
62509 ----------------------------
62510 revision 2.1
62511 date: 1995/03/20 18:15:22;  author: john;  state: Exp;
62512 Added code to not store the normals in the segment structure.
62513 ----------------------------
62514 revision 2.0
62515 date: 1995/02/27 11:26:49;  author: john;  state: Exp;
62516 New version 2.0, which has no anonymous unions, builds with
62517 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62518 ----------------------------
62519 revision 1.89
62520 date: 1995/01/24 15:07:55;  author: yuan;  state: Exp;
62521 *** empty log message ***
62522 ----------------------------
62523 revision 1.88
62524 date: 1994/12/12 01:04:06;  author: yuan;  state: Exp;
62525 Boosted MAX_GAME_VERTS.
62526 ----------------------------
62527 revision 1.87
62528 date: 1994/12/11 16:18:14;  author: mike;  state: Exp;
62529 add constants so we can detect too-large mines for game while in editor.
62530 ----------------------------
62531 revision 1.86
62532 date: 1994/12/08 15:07:29;  author: yuan;  state: Exp;
62533 *** empty log message ***
62534 ----------------------------
62535 revision 1.85
62536 date: 1994/12/01 21:06:39;  author: matt;  state: Exp;
62537 Moved plane tolerance constant to gameseg.c, the only file that used it.
62538 ----------------------------
62539 revision 1.84
62540 date: 1994/11/27 14:01:41;  author: matt;  state: Exp;
62541 Fixed segment structure so LVLs work
62542 ----------------------------
62543 revision 1.83
62544 date: 1994/11/26 22:50:20;  author: matt;  state: Exp;
62545 Removed editor-only fields from segment structure when editor is compiled
62546 out, and padded segment structure to even multiple of 4 bytes.
62547 ----------------------------
62548 revision 1.82
62549 date: 1994/11/21 11:43:36;  author: mike;  state: Exp;
62550 smaller segment and vertex buffers.
62551 ----------------------------
62552 revision 1.81
62553 date: 1994/11/17 11:39:35;  author: matt;  state: Exp;
62554 Ripped out code to load old mines
62555 ----------------------------
62556 revision 1.80
62557 date: 1994/10/30 14:12:05;  author: mike;  state: Exp;
62558 rip out local segments stuff.
62559 ----------------------------
62560 revision 1.79
62561 date: 1994/10/27 11:33:58;  author: mike;  state: Exp;
62562 lower number of segments by 100, saving 116K.
62563 ----------------------------
62564 revision 1.78
62565 date: 1994/08/25 21:54:50;  author: mike;  state: Exp;
62566 Add macro IS_CHILD to make checking for the presence of a child centralized.
62567 ----------------------------
62568 revision 1.77
62569 date: 1994/08/11 18:58:16;  author: mike;  state: Exp;
62570 Add prototype for Side_to_verts_int.
62571 ----------------------------
62572 revision 1.76
62573 date: 1994/08/01 11:04:13;  author: yuan;  state: Exp;
62574 New materialization centers.
62575 ----------------------------
62576 revision 1.75
62577 date: 1994/07/25 00:04:19;  author: matt;  state: Exp;
62578 Various changes to accomodate new 3d, which no longer takes point numbers
62579 as parms, and now only takes pointers to points.
62580 ----------------------------
62581 revision 1.74
62582 date: 1994/07/21 19:01:30;  author: mike;  state: Exp;
62583 new lsegment structure.
62584 ----------------------------
62585 revision 1.73
62586 date: 1994/06/08 14:30:48;  author: matt;  state: Exp;
62587 Added static_light field to segment structure, and padded side struct
62588 to be longword aligned.
62589 ----------------------------
62590 revision 1.72
62591 date: 1994/05/19 23:25:17;  author: mike;  state: Exp;
62592 Change MINE_VERSION to 15, DEFAULT_LIGHTING to 0
62593 ----------------------------
62594 revision 1.71
62595 date: 1994/05/12 14:45:54;  author: mike;  state: Exp;
62596 New segment data structure (!!), group, special, object, value = short.
62597 ----------------------------
62598 revision 1.70
62599 date: 1994/05/03 11:06:46;  author: mike;  state: Exp;
62600 Remove constants VMAG and UMAG which are editor specific..
62601 ----------------------------
62602 revision 1.69
62603 date: 1994/04/18 10:40:28;  author: yuan;  state: Exp;
62604 Increased segment limit to 1000
62605 (From 500)
62606 =============================================================================
62607 RCS file: f:/miner/source/main/segment2.h,v
62608 Working file: main/segment2.h
62609 head: 1.2
62610 branch:
62611 description: Include file for makeseg program, not necessary for game or editor.
62612 ----------------------------
62613 revision 1.2
62614 date: 1993/09/20 15:17:49;  author: mike;  state: Exp;
62615 Define constants: NUM_FACES, NUM_VERTICES, NUM_UVS, NUM_RGBS, NUM_FACE_VERTS
62616 ----------------------------
62617 revision 1.1
62618 date: 1993/09/15 19:12:32;  author: matt;  state: Exp;
62619 Initial revision
62620 =============================================================================
62621 RCS file: f:/miner/source/main/segpoint.h,v
62622 Working file: main/segpoint.h
62623 head: 2.0
62624 branch:
62625 description: Hopefully temporary file to hold external definition of Segment_points[]
62626 ----------------------------
62627 revision 2.0
62628 date: 1995/02/27 11:26:54;  author: john;  state: Exp;
62629 New version 2.0, which has no anonymous unions, builds with
62630 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62631 ----------------------------
62632 revision 1.2
62633 date: 1994/02/16 17:14:40;  author: matt;  state: Exp;
62634 Added include of 3d.h
62635 ----------------------------
62636 revision 1.1
62637 date: 1993/12/06 09:51:37;  author: matt;  state: Exp;
62638 Initial revision
62639 =============================================================================
62640 RCS file: f:/miner/source/main/editor/seguvs.c,v
62641 Working file: main/editor/seguvs.c
62642 head: 2.1
62643 branch:
62644 description: u,v coordinate computation for segment faces
62645 ----------------------------
62646 revision 2.1
62647 date: 1995/05/08 10:49:34;  author: mike;  state: Exp;
62648 fix lighting bug: oblong segments could be very dark.
62649 ----------------------------
62650 revision 2.0
62651 date: 1995/02/27 11:36:37;  author: john;  state: Exp;
62652 Version 2.0. Ansi-fied.
62653 ----------------------------
62654 revision 1.84
62655 date: 1994/11/27 23:17:18;  author: matt;  state: Exp;
62656 Made changes for new mprintf calling convention
62657 ----------------------------
62658 revision 1.83
62659 date: 1994/11/17 14:48:02;  author: mike;  state: Exp;
62660 validation functions moved from editor to game.
62661 ----------------------------
62662 revision 1.82
62663 date: 1994/10/15 19:08:26;  author: mike;  state: Exp;
62664 Disable exhaustive search mprintfs in find_point_seg during lighting.
62665 ----------------------------
62666 revision 1.81
62667 date: 1994/08/25 21:55:50;  author: mike;  state: Exp;
62668 IS_CHILD stuff.
62669 ----------------------------
62670 revision 1.80
62671 date: 1994/08/04 19:13:22;  author: matt;  state: Exp;
62672 Changed a bunch of vecmat calls to use multiple-function routines, and to
62673 allow the use of C macros for some functions
62674 ----------------------------
62675 revision 1.79
62676 date: 1994/08/03 10:31:33;  author: mike;  state: Exp;
62677 Texture map propagation without uv assignment.
62678 ----------------------------
62679 revision 1.78
62680 date: 1994/08/01 13:31:12;  author: matt;  state: Exp;
62681 Made fvi() check holes in transparent walls, and changed fvi() calling
62682 parms to take all input data in query structure.
62683 ----------------------------
62684 revision 1.77
62685 date: 1994/07/08 14:31:24;  author: matt;  state: Exp;
62686 New parms for FVI
62687 ----------------------------
62688 revision 1.76
62689 date: 1994/06/23 14:01:04;  author: mike;  state: Exp;
62690 Fix cache bug which caused some vertices to not get light, mainly
62691 noticeable at joints which had doors.
62692 ----------------------------
62693 revision 1.75
62694 date: 1994/06/22 17:33:11;  author: mike;  state: Exp;
62695 Make position of light (which is always towards center of segment from
62696 actual light panel) constant, not dependent on segment size, which fixes
62697 bug of dark light panels in very large segments.
62698 ----------------------------
62699 revision 1.74
62700 date: 1994/06/21 18:58:18;  author: mike;  state: Exp;
62701 Fix stupid bug in light propagation, was using wrong vector in fvi caching.
62702 ----------------------------
62703 revision 1.73
62704 date: 1994/06/20 11:20:24;  author: mike;  state: Exp;
62705 Fix stupid lighting bug introduced when I went to cached fvi results.
62706 ----------------------------
62707 revision 1.72
62708 date: 1994/06/19 16:26:37;  author: mike;  state: Exp;
62709 Speed up lighting by storing and hashing fvi results.
62710 ----------------------------
62711 revision 1.71
62712 date: 1994/06/17 16:05:56;  author: mike;  state: Exp;
62713 Support optional quick lighting propagation: no find_vector_intersection.
62714 ----------------------------
62715 revision 1.70
62716 date: 1994/06/15 15:42:30;  author: mike;  state: Exp;
62717 Propagate static_light.
62718 ----------------------------
62719 revision 1.69
62720 date: 1994/06/14 16:59:37;  author: mike;  state: Exp;
62721 Fix references to tmap_num2, must strip off orientation bits.
62722 ----------------------------
62723 revision 1.68
62724 date: 1994/06/09 09:58:58;  author: matt;  state: Exp;
62725 Moved find_vector_intersection() from physics.c to new file fvi.c
62726 ----------------------------
62727 revision 1.67
62728 date: 1994/06/08 18:14:02;  author: mike;  state: Exp;
62729 mprintf a dot in light casting.
62730 ----------------------------
62731 revision 1.66
62732 date: 1994/06/08 14:37:45;  author: mike;  state: Exp;
62733 double static light value in going from value (a short) to static_light (a fix).
62734 ----------------------------
62735 revision 1.65
62736 date: 1994/06/08 14:29:44;  author: matt;  state: Exp;
62737 Added static_light field to segment structure, and padded side struct
62738 to be longword aligned.
62739 ----------------------------
62740 revision 1.64
62741 date: 1994/06/08 11:45:24;  author: mike;  state: Exp;
62742 New, supercool, superslow lighting function.
62743 ----------------------------
62744 revision 1.63
62745 date: 1994/06/07 09:38:11;  author: mike;  state: Exp;
62746 Make lighting function yet better by calling find_vector_intersection.
62747 ----------------------------
62748 revision 1.62
62749 date: 1994/06/06 13:14:33;  author: mike;  state: Exp;
62750 Make illusory walls cast light.
62751 ----------------------------
62752 revision 1.61
62753 date: 1994/06/05 20:39:47;  author: mike;  state: Exp;
62754 Add new distance and dot product based lighting function.
62755 ----------------------------
62756 revision 1.60
62757 date: 1994/05/31 12:31:18;  author: mike;  state: Exp;
62758 fix bugs in lighting, though it's not perfect, will be changing all
62759 lighting to be distance based.  Bug had to do with not handling one
62760 of the return values from WALL_IS_DOORWAY, so assuming light couldn't
62761 be recursively propagated almost all the time.
62762 ----------------------------
62763 revision 1.59
62764 date: 1994/05/19 23:35:26;  author: mike;  state: Exp;
62765 Support uv coordinates in range 0..1.0.
62766 ----------------------------
62767 revision 1.58
62768 date: 1994/05/19 12:10:21;  author: matt;  state: Exp;
62769 Use new vecmat macros and globals
62770 ----------------------------
62771 revision 1.57
62772 date: 1994/05/04 19:15:53;  author: mike;  state: Exp;
62773 Error checking for degenerate segments.
62774 ----------------------------
62775 revision 1.56
62776 date: 1994/05/03 11:02:34;  author: mike;  state: Exp;
62777 Change how default texture map assignment works; now pixels are constant size.
62778 ----------------------------
62779 revision 1.55
62780 date: 1994/04/28 23:25:26;  author: yuan;  state: Exp;
62781 Obliterated warnings.
62782 =============================================================================
62783 RCS file: f:/miner/source/main/editor/seguvs.h,v
62784 Working file: main/editor/seguvs.h
62785 head: 2.0
62786 branch:
62787 description: Header for seguvs.c
62788 ----------------------------
62789 revision 2.0
62790 date: 1995/02/27 11:34:58;  author: john;  state: Exp;
62791 Version 2.0! No anonymous unions, Watcom 10.0, with no need
62792 for bitmaps.tbl.
62793 ----------------------------
62794 revision 1.3
62795 date: 1994/08/03 10:32:28;  author: mike;  state: Exp;
62796 Add stretch_uvs_from_curedge.
62797 ----------------------------
62798 revision 1.2
62799 date: 1994/05/14 18:00:58;  author: matt;  state: Exp;
62800 Got rid of externs in source (non-header) files
62801 ----------------------------
62802 revision 1.1
62803 date: 1994/05/14 17:27:26;  author: matt;  state: Exp;
62804 Initial revision
62805 =============================================================================
62806 RCS file: f:/miner/source/main/serial.c,v
62807 Working file: main/serial.c
62808 head: 2.1
62809 branch:
62810 description: .
62811 ----------------------------
62812 revision 2.1
62813 date: 1995/03/30 16:36:21;  author: mike;  state: Exp;
62814 text localization.
62815 ----------------------------
62816 revision 2.0
62817 date: 1995/02/27 11:27:38;  author: john;  state: Exp;
62818 New version 2.0, which has no anonymous unions, builds with
62819 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62820 ----------------------------
62821 revision 1.7
62822 date: 1994/11/19 15:15:11;  author: mike;  state: Exp;
62823 remove unused code and data
62824 ----------------------------
62825 revision 1.6
62826 date: 1994/11/12 19:58:17;  author: john;  state: Exp;
62827 Turned off stack checking around interrupt.
62828 ----------------------------
62829 revision 1.5
62830 date: 1994/11/12 19:47:20;  author: matt;  state: Exp;
62831 Added paren
62832 ----------------------------
62833 revision 1.4
62834 date: 1994/11/12 19:46:16;  author: john;  state: Exp;
62835 Fixed buug that didn't lock down isr data.
62836 ----------------------------
62837 revision 1.3
62838 date: 1994/11/12 17:59:54;  author: john;  state: Exp;
62839 Added code to lock down interrupt code and data for serial isr.
62840 ----------------------------
62841 revision 1.2
62842 date: 1994/07/21 21:31:32;  author: john;  state: Exp;
62843 First cheapo version of VictorMaxx tracking.
62844 ----------------------------
62845 revision 1.1
62846 date: 1994/07/21 18:40:38;  author: john;  state: Exp;
62847 Initial revision
62848 =============================================================================
62849 RCS file: f:/miner/source/main/serial.h,v
62850 Working file: main/serial.h
62851 head: 2.0
62852 branch:
62853 description: .
62854 ----------------------------
62855 revision 2.0
62856 date: 1995/02/27 11:32:33;  author: john;  state: Exp;
62857 New version 2.0, which has no anonymous unions, builds with
62858 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62859 ----------------------------
62860 revision 1.2
62861 date: 1994/07/21 21:31:33;  author: john;  state: Exp;
62862 First cheapo version of VictorMaxx tracking.
62863 ----------------------------
62864 revision 1.1
62865 date: 1994/07/21 18:40:47;  author: john;  state: Exp;
62866 Initial revision
62867 =============================================================================
62868 RCS file: f:/miner/source/main/ship.c,v
62869 Working file: main/ship.c
62870 head: 1.2
62871 branch:
62872 description: Functions to affect the ship.
62873 ----------------------------
62874 revision 1.2
62875 date: 1994/03/01 18:12:37;  author: yuan;  state: Exp;
62876 Wallswitches, triggers, and more!
62877 ----------------------------
62878 revision 1.1
62879 date: 1994/02/25 15:51:53;  author: yuan;  state: Exp;
62880 Initial revision
62881 =============================================================================
62882 RCS file: f:/miner/source/main/ship.h,v
62883 Working file: main/ship.h
62884 head: 1.2
62885 branch:
62886 description: Functions that affect the ship (Player_stats)
62887 ----------------------------
62888 revision 1.2
62889 date: 1994/03/01 18:12:56;  author: yuan;  state: Exp;
62890 Walls, switches, and triggers...
62891 ----------------------------
62892 revision 1.1
62893 date: 1994/02/25 15:52:13;  author: yuan;  state: Exp;
62894 Initial revision
62895 =============================================================================
62896 RCS file: f:/miner/source/main/slew.c,v
62897 Working file: main/slew.c
62898 head: 2.0
62899 branch:
62900 description: Basic slew system for moving around the mine
62901 ----------------------------
62902 revision 2.0
62903 date: 1995/02/27 11:29:32;  author: john;  state: Exp;
62904 New version 2.0, which has no anonymous unions, builds with
62905 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
62906 ----------------------------
62907 revision 1.34
62908 date: 1995/02/22 14:23:28;  author: allender;  state: Exp;
62909 remove anonymous unions from object structure
62910 ----------------------------
62911 revision 1.33
62912 date: 1995/02/22 13:24:26;  author: john;  state: Exp;
62913 Removed the vecmat anonymous unions.
62914 ----------------------------
62915 revision 1.32
62916 date: 1994/09/10 15:46:42;  author: john;  state: Exp;
62917 First version of new keyboard configuration.
62918 ----------------------------
62919 revision 1.31
62920 date: 1994/08/31 18:29:58;  author: matt;  state: Exp;
62921 Made slew work with new key system
62922 ----------------------------
62923 revision 1.30
62924 date: 1994/08/31 14:10:48;  author: john;  state: Exp;
62925 Made slew go faster.
62926 ----------------------------
62927 revision 1.29
62928 date: 1994/08/29 19:16:38;  author: matt;  state: Exp;
62929 Made slew object not have physics movement type, so slew objects don't
62930 get bumped.
62931 ----------------------------
62932 revision 1.28
62933 date: 1994/08/24 18:59:59;  author: john;  state: Exp;
62934 Changed key_down_time to return fixed seconds instead of
62935 milliseconds.
62936 ----------------------------
62937 revision 1.27
62938 date: 1994/07/01 11:33:05;  author: john;  state: Exp;
62939 Fixed bug with looking for stick even if one not present.
62940 ----------------------------
62941 revision 1.26
62942 date: 1994/05/20 11:56:33;  author: matt;  state: Exp;
62943 Cleaned up find_vector_intersection() interface
62944 Killed check_point_in_seg(), check_player_seg(), check_object_seg()
62945 ----------------------------
62946 revision 1.25
62947 date: 1994/05/19 12:08:41;  author: matt;  state: Exp;
62948 Use new vecmat macros and globals
62949 ----------------------------
62950 revision 1.24
62951 date: 1994/05/14 17:16:18;  author: matt;  state: Exp;
62952 Got rid of externs in source (non-header) files
62953 ----------------------------
62954 revision 1.23
62955 date: 1994/05/03 12:26:38;  author: matt;  state: Exp;
62956 Removed use of physics_info var rotvel, which wasn't used for rotational
62957 velocity at all.
62958 ----------------------------
62959 revision 1.22
62960 date: 1994/02/17 11:32:34;  author: matt;  state: Exp;
62961 Changes in object system
62962 ----------------------------
62963 revision 1.21
62964 date: 1994/01/18 14:03:53;  author: john;  state: Exp;
62965 made joy_get_pos use the new ints instead of
62966 shorts.
62967 ----------------------------
62968 revision 1.20
62969 date: 1994/01/10 17:11:35;  author: mike;  state: Exp;
62970 Add prototype for check_object_seg
62971 ----------------------------
62972 revision 1.19
62973 date: 1994/01/05 10:53:38;  author: john;  state: Exp;
62974 New object code by John.  
62975 ----------------------------
62976 revision 1.18
62977 date: 1993/12/22 15:32:50;  author: john;  state: Exp;
62978 took out previos code that attempted to make
62979 modifiers cancel keydowntime.
62980 ----------------------------
62981 revision 1.17
62982 date: 1993/12/22 11:41:56;  author: john;  state: Exp;
62983 Made so that keydowntime recognizes editor special case!
62984 ----------------------------
62985 revision 1.16
62986 date: 1993/12/14 18:13:52;  author: matt;  state: Exp;
62987 Made slew work in editor even when game isn't in slew mode
62988 ----------------------------
62989 revision 1.15
62990 date: 1993/12/07 23:53:39;  author: matt;  state: Exp;
62991 Made slew work in editor even when game isn't in slew mode
62992 ----------------------------
62993 revision 1.14
62994 date: 1993/12/05 22:47:49;  author: matt;  state: Exp;
62995 Reworked include files in an attempt to cut down on build times
62996 ----------------------------
62997 revision 1.13
62998 date: 1993/12/01 11:44:14;  author: matt;  state: Exp;
62999 Chagned Frfract to FrameTime
63000 ----------------------------
63001 revision 1.12
63002 date: 1993/11/08 16:21:42;  author: john;  state: Exp;
63003 made stop_slew or whatever return an int
63004 ----------------------------
63005 revision 1.11
63006 date: 1993/11/01 13:59:49;  author: john;  state: Exp;
63007 more slew experiments.
63008 =============================================================================
63009 RCS file: f:/miner/source/main/slew.h,v
63010 Working file: main/slew.h
63011 head: 2.0
63012 branch:
63013 description: Prototypes, etc., for slew system
63014 ----------------------------
63015 revision 2.0
63016 date: 1995/02/27 11:33:05;  author: john;  state: Exp;
63017 New version 2.0, which has no anonymous unions, builds with
63018 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63019 ----------------------------
63020 revision 1.5
63021 date: 1994/12/15 16:43:58;  author: matt;  state: Exp;
63022 Made slew functions compile out for release versions
63023 ----------------------------
63024 revision 1.4
63025 date: 1994/02/17 11:32:41;  author: matt;  state: Exp;
63026 Changes in object system
63027 ----------------------------
63028 revision 1.3
63029 date: 1994/01/05 10:53:42;  author: john;  state: Exp;
63030 New object code by John.  
63031 ----------------------------
63032 revision 1.2
63033 date: 1993/12/05 22:48:57;  author: matt;  state: Exp;
63034 Reworked include files in an attempt to cut down on build times
63035 ----------------------------
63036 revision 1.1
63037 date: 1993/12/05 20:20:16;  author: matt;  state: Exp;
63038 Initial revision
63039 =============================================================================
63040 RCS file: f:/miner/source/main/songs.c,v
63041 Working file: main/songs.c
63042 head: 2.1
63043 branch:
63044 description: Routines to manage the songs in Descent.
63045 ----------------------------
63046 revision 2.1
63047 date: 1995/05/02 16:15:21;  author: john;  state: Exp;
63048 Took out printf.
63049 ----------------------------
63050 revision 2.0
63051 date: 1995/02/27 11:27:13;  author: john;  state: Exp;
63052 New version 2.0, which has no anonymous unions, builds with
63053 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63054 ----------------------------
63055 revision 1.2
63056 date: 1995/02/11 12:42:12;  author: john;  state: Exp;
63057 Added new song method, with FM bank switching..
63058 ----------------------------
63059 revision 1.1
63060 date: 1995/02/11 10:20:33;  author: john;  state: Exp;
63061 Initial revision
63062 =============================================================================
63063 RCS file: f:/miner/source/main/songs.h,v
63064 Working file: main/songs.h
63065 head: 2.0
63066 branch:
63067 description: .
63068 ----------------------------
63069 revision 2.0
63070 date: 1995/02/27 11:30:52;  author: john;  state: Exp;
63071 New version 2.0, which has no anonymous unions, builds with
63072 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63073 ----------------------------
63074 revision 1.6
63075 date: 1995/02/11 22:21:44;  author: adam;  state: Exp;
63076 *** empty log message ***
63077 ----------------------------
63078 revision 1.5
63079 date: 1995/02/11 19:10:49;  author: adam;  state: Exp;
63080 *** empty log message ***
63081 ----------------------------
63082 revision 1.4
63083 date: 1995/02/11 18:34:40;  author: adam;  state: Exp;
63084 *** empty log message ***
63085 ----------------------------
63086 revision 1.3
63087 date: 1995/02/11 18:04:51;  author: adam;  state: Exp;
63088 upped songs
63089 ----------------------------
63090 revision 1.2
63091 date: 1995/02/11 12:42:12;  author: john;  state: Exp;
63092 Added new song method, with FM bank switching..
63093 ----------------------------
63094 revision 1.1
63095 date: 1995/02/11 10:20:18;  author: john;  state: Exp;
63096 Initial revision
63097 =============================================================================
63098 RCS file: f:/miner/source/main/sounds.h,v
63099 Working file: main/sounds.h
63100 head: 2.0
63101 branch:
63102 description: Numbering system for the sounds.
63103 ----------------------------
63104 revision 2.0
63105 date: 1995/02/27 11:27:32;  author: john;  state: Exp;
63106 New version 2.0, which has no anonymous unions, builds with
63107 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63108 ----------------------------
63109 revision 1.41
63110 date: 1995/02/03 17:08:28;  author: john;  state: Exp;
63111 Changed sound stuff to allow low memory usage.
63112 Also, changed so that Sounds isn't an array of digi_sounds, it
63113 is a ubyte pointing into GameSounds, this way the digi.c code that
63114 locks sounds won't accidentally unlock a sound that is already playing, but
63115 since it's Sounds[soundno] is different, it would erroneously be unlocked.
63116 ----------------------------
63117 revision 1.40
63118 date: 1995/01/30 21:45:17;  author: adam;  state: Exp;
63119 added weapon change sounds
63120 ----------------------------
63121 revision 1.39
63122 date: 1995/01/30 21:11:57;  author: mike;  state: Exp;
63123 Use new weapon selection sounds, different for primary and secondary.
63124 ----------------------------
63125 revision 1.38
63126 date: 1995/01/26 17:02:58;  author: mike;  state: Exp;
63127 make fusion cannon have more chrome, make fusion, mega rock you!
63128 ----------------------------
63129 revision 1.37
63130 date: 1995/01/18 19:46:15;  author: matt;  state: Exp;
63131 Added sound for invulnerability wearing off, and voice message for cheating
63132 ----------------------------
63133 revision 1.36
63134 date: 1995/01/18 19:05:04;  author: john;  state: Exp;
63135 Increased MAX_SOUNDS.
63136 ----------------------------
63137 revision 1.35
63138 date: 1994/12/14 16:57:08;  author: adam;  state: Exp;
63139 *** empty log message ***
63140 ----------------------------
63141 revision 1.34
63142 date: 1994/12/08 21:31:40;  author: adam;  state: Exp;
63143 *** empty log message ***
63144 ----------------------------
63145 revision 1.33
63146 date: 1994/12/08 12:33:01;  author: mike;  state: Exp;
63147 make boss dying more interesting.
63148 ----------------------------
63149 revision 1.32
63150 date: 1994/12/04 21:39:40;  author: matt;  state: Exp;
63151 Added sound constants for endlevel explosions
63152 ----------------------------
63153 revision 1.31
63154 date: 1994/11/30 14:02:58;  author: mike;  state: Exp;
63155 see/claw/attack sounds.
63156 ----------------------------
63157 revision 1.30
63158 date: 1994/11/29 20:43:54;  author: matt;  state: Exp;
63159 Deleted a bunch of unused constants
63160 ----------------------------
63161 revision 1.29
63162 date: 1994/11/29 15:48:11;  author: matt;  state: Exp;
63163 Cleaned up, & added new sounds
63164 ----------------------------
63165 revision 1.28
63166 date: 1994/11/29 14:35:36;  author: adam;  state: Exp;
63167 moved lava noise index
63168 ----------------------------
63169 revision 1.27
63170 date: 1994/11/29 13:23:30;  author: matt;  state: Exp;
63171 Cleaned up sound constants
63172 ----------------------------
63173 revision 1.26
63174 date: 1994/11/29 13:01:04;  author: rob;  state: Exp;
63175 ADded badass explosion define.
63176 ----------------------------
63177 revision 1.25
63178 date: 1994/11/29 11:34:23;  author: rob;  state: Exp;
63179 Added new HUD sounds.
63180 ----------------------------
63181 revision 1.24
63182 date: 1994/11/15 16:52:01;  author: mike;  state: Exp;
63183 hiss sound placeholder.
63184 ----------------------------
63185 revision 1.23
63186 date: 1994/10/25 16:21:45;  author: adam;  state: Exp;
63187 changed homing sound
63188 ----------------------------
63189 revision 1.22
63190 date: 1994/10/23 00:27:34;  author: matt;  state: Exp;
63191 Made exploding wall do one long sound, instead of lots of small ones
63192 ----------------------------
63193 revision 1.21
63194 date: 1994/10/22 14:12:35;  author: mike;  state: Exp;
63195 Add sound for missile tracking player.
63196 ----------------------------
63197 revision 1.20
63198 date: 1994/10/11 12:25:21;  author: matt;  state: Exp;
63199 Added "hot rocks" that create badass explosion when hit by weapons
63200 ----------------------------
63201 revision 1.19
63202 date: 1994/10/10 20:57:50;  author: matt;  state: Exp;
63203 Added sound for exploding wall (hostage door)
63204 ----------------------------
63205 revision 1.18
63206 date: 1994/10/04 15:33:31;  author: john;  state: Exp;
63207 Took out the old PLAY_SOUND??? code and replaced it
63208 with direct calls into digi_link_??? so that all sounds
63209 can be made 3d.
63210 ----------------------------
63211 revision 1.17
63212 date: 1994/09/29 21:13:41;  author: john;  state: Exp;
63213 Added Master volumes for digi and midi. Also took out panning,
63214 because it doesn't work with MasterVolume stuff. 
63215 ----------------------------
63216 revision 1.16
63217 date: 1994/09/29 00:42:29;  author: matt;  state: Exp;
63218 Made hitting a locked door play a sound
63219 ----------------------------
63220 revision 1.15
63221 date: 1994/09/20 19:14:34;  author: john;  state: Exp;
63222 Massaged the sound system; used a better formula for determining
63223 which l/r balance, also, put in Mike's stuff that searches for a connection
63224 between the 2 sounds' segments, stopping for closed doors, etc.
63225 ----------------------------
63226 revision 1.14
63227 date: 1994/07/06 15:23:59;  author: john;  state: Exp;
63228 Revamped hostage sound.
63229 ----------------------------
63230 revision 1.13
63231 date: 1994/06/21 19:13:27;  author: john;  state: Exp;
63232 *** empty log message ***
63233 ----------------------------
63234 revision 1.12
63235 date: 1994/06/21 12:09:54;  author: adam;  state: Exp;
63236 *** empty log message ***
63237 ----------------------------
63238 revision 1.11
63239 date: 1994/06/21 12:03:15;  author: john;  state: Exp;
63240 Added more sounds.
63241 ----------------------------
63242 revision 1.10
63243 date: 1994/06/20 22:01:54;  author: matt;  state: Exp;
63244 Added prototype for Play3D()
63245 ----------------------------
63246 revision 1.9
63247 date: 1994/06/20 21:06:06;  author: yuan;  state: Exp;
63248 Fixed up menus.
63249 ----------------------------
63250 revision 1.8
63251 date: 1994/06/17 12:21:54;  author: mike;  state: Exp;
63252 Hook for robot hits player.
63253 ----------------------------
63254 revision 1.7
63255 date: 1994/06/15 19:01:35;  author: john;  state: Exp;
63256 Added the capability to make 3d sounds play just once for the
63257 laser hit wall effects.
63258 ----------------------------
63259 revision 1.6
63260 date: 1994/06/08 11:43:03;  author: john;  state: Exp;
63261 Enable 3D sound.
63262 ----------------------------
63263 revision 1.5
63264 date: 1994/06/07 18:21:20;  author: john;  state: Exp;
63265 Start changing sound to the new 3D system.
63266 ----------------------------
63267 revision 1.4
63268 date: 1994/05/16 16:17:41;  author: john;  state: Exp;
63269 Bunch of stuff on my Inferno Task list May16-23
63270 ----------------------------
63271 revision 1.3
63272 date: 1994/05/09 21:11:38;  author: john;  state: Exp;
63273 Sound changes; pass index instead of pointer to digi routines.
63274 Made laser sound cut off the last laser sound.
63275 ----------------------------
63276 revision 1.2
63277 date: 1994/04/27 11:47:46;  author: john;  state: Exp;
63278 First version.
63279 ----------------------------
63280 revision 1.1
63281 date: 1994/04/26 10:44:36;  author: john;  state: Exp;
63282 Initial revision
63283 =============================================================================
63284 RCS file: f:/miner/source/main/ipx.h,v
63285 Working file: main/ipx.h
63286 head: 1.3
63287 branch:
63288 description: Prototype for IPX communications.
63289 ----------------------------
63290 revision 1.3
63291 date: 1994/07/25 12:33:22;  author: john;  state: Exp;
63292 Network "pinging" in.
63293 ----------------------------
63294 revision 1.2
63295 date: 1994/07/20 15:58:29;  author: john;  state: Exp;
63296 First installment of ipx stuff.
63297 ----------------------------
63298 revision 1.1
63299 date: 1994/07/19 15:43:05;  author: john;  state: Exp;
63300 Initial revision
63301 =============================================================================
63302 RCS file: f:/miner/source/main/state.c,v
63303 Working file: main/state.c
63304 head: 2.14
63305 branch:
63306 description: Functions to save/restore game state.
63307 ----------------------------
63308 revision 2.14
63309 date: 1995/05/26 16:16:10;  author: john;  state: Exp;
63310 Split SATURN into define's for requiring cd, using cd, etc.
63311 Also started adding all the Rockwell stuff.
63312 ----------------------------
63313 revision 2.13
63314 date: 1995/04/06 15:12:20;  author: john;  state: Exp;
63315 Fixed bug with lunacy not working.
63316 ----------------------------
63317 revision 2.12
63318 date: 1995/04/04 13:33:05;  author: john;  state: Exp;
63319 Removed multiplayer save.
63320 ----------------------------
63321 revision 2.11
63322 date: 1995/03/31 13:42:10;  author: john;  state: Exp;
63323 Made saved games from the bogus saturn version read in
63324 correctly.
63325 ----------------------------
63326 revision 2.10
63327 date: 1995/03/31 12:45:28;  author: john;  state: Exp;
63328 Fixed bug with previous.
63329 ----------------------------
63330 revision 2.9
63331 date: 1995/03/31 12:24:40;  author: john;  state: Exp;
63332 I had changed alt_textures from a pointer to a byte. This hosed old
63333 saved games, so I restored it to an int.
63334 ----------------------------
63335 revision 2.8
63336 date: 1995/03/28 11:22:47;  author: john;  state: Exp;
63337 Added cheats to save file. Changed lunacy text.
63338 ----------------------------
63339 revision 2.7
63340 date: 1995/03/27 21:41:03;  author: john;  state: Exp;
63341 Added code to verify that the proper multi save file
63342 is used when restoring a network game.
63343 ----------------------------
63344 revision 2.6
63345 date: 1995/03/27 18:04:18;  author: john;  state: Exp;
63346 Made multi save/restore require the -multisave command line arg.
63347 ----------------------------
63348 revision 2.5
63349 date: 1995/03/27 17:01:52;  author: john;  state: Exp;
63350 Made deafult choice work better.
63351 ----------------------------
63352 revision 2.4
63353 date: 1995/03/27 15:49:44;  author: john;  state: Exp;
63354 Added slots to save games.
63355 ----------------------------
63356 revision 2.3
63357 date: 1995/03/27 12:59:19;  author: john;  state: Exp;
63358 Initial version of multiplayer save games.
63359 ----------------------------
63360 revision 2.2
63361 date: 1995/03/24 13:11:35;  author: john;  state: Exp;
63362 Added save game during briefing screens.
63363 ----------------------------
63364 revision 2.1
63365 date: 1995/03/21 14:38:36;  author: john;  state: Exp;
63366 Ifdef'd out the NETWORK code.
63367 ----------------------------
63368 revision 2.0
63369 date: 1995/02/27 11:27:00;  author: john;  state: Exp;
63370 New version 2.0, which has no anonymous unions, builds with
63371 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63372 ----------------------------
63373 revision 1.43
63374 date: 1995/02/22 14:32:41;  author: allender;  state: Exp;
63375 remove anonymous unions from object structure
63376 ----------------------------
63377 revision 1.42
63378 date: 1995/02/13 20:34:33;  author: john;  state: Exp;
63379 Lintized
63380 ----------------------------
63381 revision 1.41
63382 date: 1995/02/13 10:37:30;  author: john;  state: Exp;
63383 Saved Buggin' cheat mode to save file.
63384 ----------------------------
63385 revision 1.40
63386 date: 1995/02/09 10:24:25;  author: john;  state: Exp;
63387 *** empty log message ***
63388 ----------------------------
63389 revision 1.39
63390 date: 1995/02/09 10:22:20;  author: john;  state: Exp;
63391 Fixed bug with callsign getting trashed if you copy somebody else
63392 's save game file into your directory.
63393 ----------------------------
63394 revision 1.38
63395 date: 1995/02/08 21:01:27;  author: john;  state: Exp;
63396 Closed state file around the code that shows briefing screens so that the
63397 code works on machines with clean boot with only 5 file handles.
63398 ----------------------------
63399 revision 1.37
63400 date: 1995/02/07 14:02:33;  author: john;  state: Exp;
63401 Added code to verify game restore.
63402 ----------------------------
63403 revision 1.36
63404 date: 1995/02/07 11:07:43;  author: john;  state: Exp;
63405 Added hooks for confirm on game state restore.
63406 ----------------------------
63407 revision 1.35
63408 date: 1995/02/03 11:27:36;  author: john;  state: Exp;
63409 Made inbetween level save's thumbnail's have correct aspect.
63410 ----------------------------
63411 revision 1.34
63412 date: 1995/02/03 10:58:43;  author: john;  state: Exp;
63413 Added code to save shareware style saved games into new format...
63414 Also, made new player file format not have the saved game array in it.
63415 ----------------------------
63416 revision 1.33
63417 date: 1995/02/02 19:40:52;  author: john;  state: Exp;
63418 Added 10 save game slots.
63419 ----------------------------
63420 revision 1.32
63421 date: 1995/02/02 12:23:20;  author: john;  state: Exp;
63422 Made between level saves have picture.
63423 ----------------------------
63424 revision 1.31
63425 date: 1995/01/31 11:21:43;  author: john;  state: Exp;
63426 Added code for fixed with menus.
63427 ----------------------------
63428 revision 1.30
63429 date: 1995/01/29 21:37:29;  author: mike;  state: Exp;
63430 initialize variables on game load so you don't drain your energy when you fire.
63431 ----------------------------
63432 revision 1.29
63433 date: 1995/01/29 13:47:58;  author: mike;  state: Exp;
63434 Restore some variables on game load (in game).
63435 ----------------------------
63436 revision 1.28
63437 date: 1995/01/26 10:46:57;  author: john;  state: Exp;
63438 Fixed bug with state names getting hosed.
63439 ----------------------------
63440 revision 1.27
63441 date: 1995/01/26 09:51:23;  author: john;  state: Exp;
63442 Fixed bug with game descriptions getting hosed.
63443 ----------------------------
63444 revision 1.26
63445 date: 1995/01/25 16:35:49;  author: john;  state: Exp;
63446 Made so that when you hit enter during
63447 game save, -empty- goes away.
63448 ----------------------------
63449 revision 1.25
63450 date: 1995/01/25 15:01:39;  author: john;  state: Exp;
63451 Upped the save file version.
63452 ----------------------------
63453 revision 1.24
63454 date: 1995/01/24 20:35:35;  author: john;  state: Exp;
63455 *** empty log message ***
63456 ----------------------------
63457 revision 1.23
63458 date: 1995/01/24 20:34:24;  author: john;  state: Exp;
63459 Fixed bug with player stats not being set right for in
63460 between level saves.
63461 ----------------------------
63462 revision 1.22
63463 date: 1995/01/23 10:39:03;  author: john;  state: Exp;
63464 Added mission stuff to game saves.
63465 ----------------------------
63466 revision 1.21
63467 date: 1995/01/22 16:07:12;  author: mike;  state: Exp;
63468 localization.
63469 ----------------------------
63470 revision 1.20
63471 date: 1995/01/22 15:58:32;  author: mike;  state: Exp;
63472 localization
63473 ----------------------------
63474 revision 1.19
63475 date: 1995/01/20 11:04:40;  author: john;  state: Exp;
63476 Upped state save version.
63477 ----------------------------
63478 revision 1.18
63479 date: 1995/01/19 17:00:44;  author: john;  state: Exp;
63480 Made save game work between levels.
63481 ----------------------------
63482 revision 1.17
63483 date: 1995/01/17 14:27:33;  author: john;  state: Exp;
63484 *** empty log message ***
63485 ----------------------------
63486 revision 1.16
63487 date: 1995/01/17 13:36:37;  author: john;  state: Exp;
63488 Moved pig loading into StartNewLevelSub.
63489 ----------------------------
63490 revision 1.15
63491 date: 1995/01/16 16:53:38;  author: john;  state: Exp;
63492 Added code to save cheat state during save game.
63493 ----------------------------
63494 revision 1.14
63495 date: 1995/01/15 16:55:22;  author: john;  state: Exp;
63496 Improved mine texture parsing.
63497 ----------------------------
63498 revision 1.13
63499 date: 1995/01/12 10:45:15;  author: john;  state: Exp;
63500 Added difficulty level to save/restore game.
63501 ----------------------------
63502 revision 1.12
63503 date: 1995/01/05 15:46:55;  author: john;  state: Exp;
63504 Made weapons not rearm when starting a saved game.
63505 ----------------------------
63506 revision 1.11
63507 date: 1995/01/05 11:51:45;  author: john;  state: Exp;
63508 Added better Abort game menu.
63509 Made save state return success or nopt.
63510 ----------------------------
63511 revision 1.10
63512 date: 1995/01/05 11:34:51;  author: john;  state: Exp;
63513 Took out endlevel save stuff for registered.
63514 ----------------------------
63515 revision 1.9
63516 date: 1995/01/04 18:19:52;  author: john;  state: Exp;
63517 Added automap visited list saving.
63518 ----------------------------
63519 revision 1.8
63520 date: 1995/01/04 17:29:56;  author: john;  state: Exp;
63521 Made save/restore ALT+F?. Also made them not work
63522 in network mode, and if recording a demo, will 
63523 quit recording.
63524 ----------------------------
63525 revision 1.7
63526 date: 1995/01/04 13:18:31;  author: john;  state: Exp;
63527 Added cool 6 game save.
63528 ----------------------------
63529 revision 1.6
63530 date: 1995/01/03 20:38:46;  author: john;  state: Exp;
63531 Saved morph objects.
63532 ----------------------------
63533 revision 1.5
63534 date: 1995/01/03 20:19:29;  author: john;  state: Exp;
63535 Pretty good working version of game save.
63536 ----------------------------
63537 revision 1.4
63538 date: 1995/01/03 14:18:18;  author: matt;  state: Exp;
63539 ifdefs added to compile code add.  Added by Mike, I think.
63540 ----------------------------
63541 revision 1.3
63542 date: 1994/12/29 18:40:19;  author: john;  state: Exp;
63543 Initial version.
63544 ----------------------------
63545 revision 1.2
63546 date: 1994/12/29 15:26:40;  author: john;  state: Exp;
63547 Put in hooks for saving/restoring game state.
63548 ----------------------------
63549 revision 1.1
63550 date: 1994/12/29 15:16:02;  author: john;  state: Exp;
63551 Initial revision
63552 =============================================================================
63553 RCS file: f:/miner/source/main/state.h,v
63554 Working file: main/state.h
63555 head: 2.1
63556 branch:
63557 description: Prototypes for state saving functions.
63558 ----------------------------
63559 revision 2.1
63560 date: 1995/03/27 21:40:35;  author: john;  state: Exp;
63561 Added code to verify that the proper multi save file
63562 is used when restoring a network game.
63563 ----------------------------
63564 revision 2.0
63565 date: 1995/02/27 11:28:44;  author: john;  state: Exp;
63566 New version 2.0, which has no anonymous unions, builds with
63567 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63568 ----------------------------
63569 revision 1.6
63570 date: 1995/02/07 10:54:05;  author: john;  state: Exp;
63571 *** empty log message ***
63572 ----------------------------
63573 revision 1.5
63574 date: 1995/02/03 10:58:12;  author: john;  state: Exp;
63575 Added code to save shareware style saved games into new format...
63576 Also, made new player file format not have the saved game array in it.
63577 ----------------------------
63578 revision 1.4
63579 date: 1995/01/19 17:00:51;  author: john;  state: Exp;
63580 Made save game work between levels.
63581 ----------------------------
63582 revision 1.3
63583 date: 1995/01/05 11:51:44;  author: john;  state: Exp;
63584 Added better Abort game menu.
63585 Made save state return success or nopt.
63586 ----------------------------
63587 revision 1.2
63588 date: 1994/12/29 15:26:39;  author: john;  state: Exp;
63589 Put in hooks for saving/restoring game state.
63590 ----------------------------
63591 revision 1.1
63592 date: 1994/12/29 15:15:47;  author: john;  state: Exp;
63593 Initial revision
63594 =============================================================================
63595 RCS file: f:/miner/source/main/switch.c,v
63596 Working file: main/switch.c
63597 head: 2.1
63598 branch:
63599 description: New Triggers and Switches.
63600 ----------------------------
63601 revision 2.1
63602 date: 1995/03/21 14:39:08;  author: john;  state: Exp;
63603 Ifdef'd out the NETWORK code.
63604 ----------------------------
63605 revision 2.0
63606 date: 1995/02/27 11:28:41;  author: john;  state: Exp;
63607 New version 2.0, which has no anonymous unions, builds with
63608 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63609 ----------------------------
63610 revision 1.51
63611 date: 1995/01/31 15:26:23;  author: rob;  state: Exp;
63612 Don't trigger matcens in anarchy games.
63613 ----------------------------
63614 revision 1.50
63615 date: 1995/01/26 12:18:26;  author: rob;  state: Exp;
63616 Changed network_do_frame call.
63617 ----------------------------
63618 revision 1.49
63619 date: 1995/01/18 18:50:35;  author: allender;  state: Exp;
63620 don't process triggers if in demo playback mode.  Fix for Rob to only do
63621 multi_send_endlevel_start if in multi player game
63622 ----------------------------
63623 revision 1.48
63624 date: 1995/01/13 11:59:40;  author: rob;  state: Exp;
63625 Added palette fade after secret level exit.
63626 ----------------------------
63627 revision 1.47
63628 date: 1995/01/12 17:00:41;  author: rob;  state: Exp;
63629 Fixed a problem with switches and secret levels.
63630 ----------------------------
63631 revision 1.46
63632 date: 1995/01/12 13:35:11;  author: rob;  state: Exp;
63633 Added data flush after secret level exit.
63634 ----------------------------
63635 revision 1.45
63636 date: 1995/01/03 15:25:11;  author: rob;  state: Exp;
63637 Fixed a compile error.
63638 ----------------------------
63639 revision 1.44
63640 date: 1995/01/03 15:12:02;  author: rob;  state: Exp;
63641 Adding multiplayer switching.
63642 ----------------------------
63643 revision 1.43
63644 date: 1994/11/29 16:52:12;  author: yuan;  state: Exp;
63645 Removed some obsolete commented out code.
63646 ----------------------------
63647 revision 1.42
63648 date: 1994/11/27 23:15:07;  author: matt;  state: Exp;
63649 Made changes for new mprintf calling convention
63650 ----------------------------
63651 revision 1.41
63652 date: 1994/11/22 18:36:45;  author: rob;  state: Exp;
63653 Added new hook for endlevel for secret doors.
63654 ----------------------------
63655 revision 1.40
63656 date: 1994/11/21 17:29:43;  author: matt;  state: Exp;
63657 Cleaned up sequencing & game saving for secret levels
63658 ----------------------------
63659 revision 1.39
63660 date: 1994/11/19 15:20:32;  author: mike;  state: Exp;
63661 rip out unused code and data
63662 ----------------------------
63663 revision 1.38
63664 date: 1994/10/25 16:09:52;  author: yuan;  state: Exp;
63665 Fixed byte bug.
63666 ----------------------------
63667 revision 1.37
63668 date: 1994/10/24 16:05:28;  author: matt;  state: Exp;
63669 Removed clear of fuelcen_control_center_destroyed
63670 ----------------------------
63671 revision 1.36
63672 date: 1994/10/08 14:21:13;  author: matt;  state: Exp;
63673 Added include
63674 ----------------------------
63675 revision 1.35
63676 date: 1994/10/07 12:34:09;  author: matt;  state: Exp;
63677 Added code fot going to/from secret levels
63678 ----------------------------
63679 revision 1.34
63680 date: 1994/10/05 15:16:10;  author: rob;  state: Exp;
63681 Used to be that only player #0 could trigger switches, now only the
63682 LOCAL player can do it (and he's expected to tell the other guy with
63683 a com message if its important!)
63684 ----------------------------
63685 revision 1.33
63686 date: 1994/09/24 17:42:03;  author: mike;  state: Exp;
63687 Kill temporary version of function written by Yuan, replaced by MK.
63688 ----------------------------
63689 revision 1.32
63690 date: 1994/09/24 17:10:00;  author: yuan;  state: Exp;
63691 Added Matcen triggers.
63692 ----------------------------
63693 revision 1.31
63694 date: 1994/09/23 18:02:21;  author: yuan;  state: Exp;
63695 Completed wall checking.
63696 ----------------------------
63697 revision 1.30
63698 date: 1994/08/19 20:09:41;  author: matt;  state: Exp;
63699 Added end-of-level cut scene with external scene
63700 ----------------------------
63701 revision 1.29
63702 date: 1994/08/18 10:47:36;  author: john;  state: Exp;
63703 Cleaned up game sequencing and player death stuff
63704 in preparation for making the player explode into
63705 pieces when dead.
63706 ----------------------------
63707 revision 1.28
63708 date: 1994/08/12 22:42:11;  author: john;  state: Exp;
63709 Took away Player_stats; added Players array.
63710 ----------------------------
63711 revision 1.27
63712 date: 1994/07/02 13:50:44;  author: matt;  state: Exp;
63713 Cleaned up includes
63714 ----------------------------
63715 revision 1.26
63716 date: 1994/06/27 16:32:25;  author: yuan;  state: Exp;
63717 Commented out incomplete code...
63718 ----------------------------
63719 revision 1.25
63720 date: 1994/06/27 15:53:27;  author: john;  state: Exp;
63721 #define'd out the newdemo stuff
63722 ----------------------------
63723 revision 1.24
63724 date: 1994/06/27 15:10:04;  author: yuan;  state: Exp;
63725 Might mess up triggers.
63726 ----------------------------
63727 revision 1.23
63728 date: 1994/06/24 17:01:43;  author: john;  state: Exp;
63729 Add VFX support; Took Game Sequencing, like EndGame and stuff and
63730 took it out of game.c and into gameseq.c
63731 ----------------------------
63732 revision 1.22
63733 date: 1994/06/16 16:20:15;  author: john;  state: Exp;
63734 Made player start out in physics mode; Neatend up game loop a bit.
63735 ----------------------------
63736 revision 1.21
63737 date: 1994/06/15 14:57:22;  author: john;  state: Exp;
63738 Added triggers to demo recording.
63739 ----------------------------
63740 revision 1.20
63741 date: 1994/06/10 17:44:25;  author: mike;  state: Exp;
63742 Assert on result of find_connect_side == -1
63743 ----------------------------
63744 revision 1.19
63745 date: 1994/06/08 10:20:15;  author: yuan;  state: Exp;
63746 Removed unused testing.
63747 ----------------------------
63748 revision 1.18
63749 date: 1994/06/07 13:10:48;  author: yuan;  state: Exp;
63750 Fixed bug in check trigger... Still working on other bugs.
63751 ----------------------------
63752 revision 1.17
63753 date: 1994/05/30 20:22:04;  author: yuan;  state: Exp;
63754 New triggers.
63755 ----------------------------
63756 revision 1.16
63757 date: 1994/05/27 10:32:46;  author: yuan;  state: Exp;
63758 New dialog boxes (Walls and Triggers) added.
63759 ----------------------------
63760 revision 1.15
63761 date: 1994/05/25 18:06:46;  author: yuan;  state: Exp;
63762 Making new dialog box controls for walls and triggers.
63763 ----------------------------
63764 revision 1.14
63765 date: 1994/05/10 19:05:32;  author: yuan;  state: Exp;
63766 Made end of level flag rather than menu popping up
63767 ----------------------------
63768 revision 1.13
63769 date: 1994/04/29 15:05:25;  author: yuan;  state: Exp;
63770 Added menu pop-up at exit trigger.
63771 =============================================================================
63772 RCS file: f:/miner/source/main/switch.h,v
63773 Working file: main/switch.h
63774 head: 2.0
63775 branch:
63776 description: Triggers and Switches.
63777 ----------------------------
63778 revision 2.0
63779 date: 1995/02/27 11:26:52;  author: john;  state: Exp;
63780 New version 2.0, which has no anonymous unions, builds with
63781 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63782 ----------------------------
63783 revision 1.19
63784 date: 1995/01/12 17:00:36;  author: rob;  state: Exp;
63785 Fixed a problem with switches and secret levels.
63786 ----------------------------
63787 revision 1.18
63788 date: 1994/10/06 21:24:40;  author: matt;  state: Exp;
63789 Added switch for exit to secret level
63790 ----------------------------
63791 revision 1.17
63792 date: 1994/09/29 17:05:52;  author: matt;  state: Exp;
63793 Removed unused constant
63794 ----------------------------
63795 revision 1.16
63796 date: 1994/09/24 17:10:07;  author: yuan;  state: Exp;
63797 Added Matcen triggers.
63798 ----------------------------
63799 revision 1.15
63800 date: 1994/08/15 18:06:39;  author: yuan;  state: Exp;
63801 Added external trigger.
63802 ----------------------------
63803 revision 1.14
63804 date: 1994/06/16 16:20:52;  author: john;  state: Exp;
63805 Made player start out in physics mode; Neatend up game loop a bit.
63806 ----------------------------
63807 revision 1.13
63808 date: 1994/05/30 20:22:08;  author: yuan;  state: Exp;
63809 New triggers.
63810 ----------------------------
63811 revision 1.12
63812 date: 1994/05/27 10:32:44;  author: yuan;  state: Exp;
63813 New dialog boxes (Walls and Triggers) added.
63814 ----------------------------
63815 revision 1.11
63816 date: 1994/05/25 18:06:32;  author: yuan;  state: Exp;
63817 Making new dialog box controls for walls and triggers.
63818 ----------------------------
63819 revision 1.10
63820 date: 1994/04/28 18:04:40;  author: yuan;  state: Exp;
63821 Gamesave added.
63822 Trigger problem fixed (seg pointer is replaced by index now.)
63823 ----------------------------
63824 revision 1.9
63825 date: 1994/04/26 11:19:01;  author: yuan;  state: Exp;
63826 Make it so a trigger can only be triggered every 5 seconds.
63827 =============================================================================
63828 RCS file: f:/miner/source/main/tempgame.c,v
63829 Working file: main/tempgame.c
63830 head: 2.0
63831 branch:
63832 description: Game loop for Inferno
63833 ----------------------------
63834 revision 2.0
63835 date: 1995/02/27 11:28:06;  author: john;  state: Exp;
63836 New version 2.0, which has no anonymous unions, builds with
63837 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63838 ----------------------------
63839 revision 1.747
63840 date: 1995/02/06 12:24:45;  author: allender;  state: Exp;
63841 force Endlevel_sequence in game() to fix rare bug
63842 ----------------------------
63843 revision 1.745
63844 date: 1995/02/02 15:57:52;  author: john;  state: Exp;
63845 Added turbo mode cheat.
63846 ----------------------------
63847 revision 1.744
63848 date: 1995/02/02 14:43:39;  author: john;  state: Exp;
63849 Uppped frametime limit to 150 Hz.
63850 ----------------------------
63851 revision 1.743
63852 date: 1995/02/02 13:37:16;  author: mike;  state: Exp;
63853 move T-?? message down in certain modes.
63854 ----------------------------
63855 revision 1.742
63856 date: 1995/02/02 01:26:59;  author: john;  state: Exp;
63857 Took out no key repeating.
63858 ----------------------------
63859 revision 1.741
63860 date: 1995/01/29 21:36:44;  author: mike;  state: Exp;
63861 make fusion cannon not make pitching slow.
63862 ----------------------------
63863 revision 1.740
63864 date: 1995/01/28 15:57:57;  author: john;  state: Exp;
63865 Made joystick calibration be only when wrong detected in
63866 menu or joystick axis changed.
63867 ----------------------------
63868 revision 1.739
63869 date: 1995/01/28 15:21:03;  author: yuan;  state: Exp;
63870 Added X-tra life cheat.
63871 ----------------------------
63872 revision 1.738
63873 date: 1995/01/27 14:08:31;  author: rob;  state: Exp;
63874 Fixed a bug.
63875 ----------------------------
63876 revision 1.737
63877 date: 1995/01/27 14:04:59;  author: rob;  state: Exp;
63878 Its not my fault, Mark told me to do it!
63879 ----------------------------
63880 revision 1.736
63881 date: 1995/01/27 13:12:18;  author: rob;  state: Exp;
63882 Added charging noises to play across net.
63883 ----------------------------
63884 revision 1.735
63885 date: 1995/01/27 11:48:28;  author: allender;  state: Exp;
63886 check for newdemo_state to be paused and stop recording.  We might be
63887 in between levels
63888 ----------------------------
63889 revision 1.734
63890 date: 1995/01/26 22:11:41;  author: mike;  state: Exp;
63891 Purple chromo-blaster (ie, fusion cannon) spruce up (chromification)
63892 ----------------------------
63893 revision 1.733
63894 date: 1995/01/26 17:03:04;  author: mike;  state: Exp;
63895 make fusion cannon have more chrome, make fusion, mega rock you!
63896 ----------------------------
63897 revision 1.732
63898 date: 1995/01/25 14:37:25;  author: john;  state: Exp;
63899 Made joystick only prompt for calibration once...
63900 ----------------------------
63901 revision 1.731
63902 date: 1995/01/24 15:49:14;  author: john;  state: Exp;
63903 Made typeing in long net messages wrap on 
63904 small screen sizes.
63905 ----------------------------
63906 revision 1.730
63907 date: 1995/01/24 15:23:42;  author: mike;  state: Exp;
63908 network message tweaking.
63909 ----------------------------
63910 revision 1.729
63911 date: 1995/01/24 12:00:47;  author: john;  state: Exp;
63912 Fixed bug with defing macro passing keys to controls.
63913 ----------------------------
63914 revision 1.728
63915 date: 1995/01/24 11:53:35;  author: john;  state: Exp;
63916 Added better macro defining code.
63917 ----------------------------
63918 revision 1.727
63919 date: 1995/01/23 22:17:15;  author: john;  state: Exp;
63920 Fixed bug with not clearing key buffer when leaving f8.
63921 ----------------------------
63922 revision 1.726
63923 date: 1995/01/23 22:07:09;  author: john;  state: Exp;
63924 Added flush to game inputs during F8.
63925 =============================================================================
63926 RCS file: f:/miner/source/main/terrain.c,v
63927 Working file: main/terrain.c
63928 head: 2.0
63929 branch:
63930 description: Code to render cool external-scene terrain
63931 ----------------------------
63932 revision 2.0
63933 date: 1995/02/27 11:31:27;  author: john;  state: Exp;
63934 New version 2.0, which has no anonymous unions, builds with
63935 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63936 ----------------------------
63937 revision 1.12
63938 date: 1994/12/03 00:18:00;  author: matt;  state: Exp;
63939 Made endlevel sequence cut off early
63940 Made exit model and bit explosion always plot last (after all terrain)
63941 ----------------------------
63942 revision 1.11
63943 date: 1994/11/27 23:13:46;  author: matt;  state: Exp;
63944 Made changes for new mprintf calling convention
63945 ----------------------------
63946 revision 1.10
63947 date: 1994/11/21 18:04:36;  author: matt;  state: Exp;
63948 Fixed alloc/free problem with height array
63949 ----------------------------
63950 revision 1.9
63951 date: 1994/11/21 17:30:42;  author: matt;  state: Exp;
63952 Properly free light array
63953 ----------------------------
63954 revision 1.8
63955 date: 1994/11/19 12:40:55;  author: matt;  state: Exp;
63956 Added system to read endlevel data from file, and to make it work
63957 with any exit tunnel.
63958 ----------------------------
63959 revision 1.7
63960 date: 1994/11/16 11:49:44;  author: matt;  state: Exp;
63961 Added code to rotate terrain to match mine
63962 ----------------------------
63963 revision 1.6
63964 date: 1994/11/02 16:22:59;  author: matt;  state: Exp;
63965 Killed mprintf
63966 ----------------------------
63967 revision 1.5
63968 date: 1994/10/30 20:09:19;  author: matt;  state: Exp;
63969 For endlevel: added big explosion at tunnel exit; made lights in tunnel 
63970 go out; made more explosions on walls.
63971 ----------------------------
63972 revision 1.4
63973 date: 1994/10/27 21:15:07;  author: matt;  state: Exp;
63974 Added better error handling
63975 ----------------------------
63976 revision 1.3
63977 date: 1994/10/27 01:03:17;  author: matt;  state: Exp;
63978 Made terrain renderer use aribtary point in height array as origin
63979 ----------------------------
63980 revision 1.2
63981 date: 1994/08/19 20:09:44;  author: matt;  state: Exp;
63982 Added end-of-level cut scene with external scene
63983 ----------------------------
63984 revision 1.1
63985 date: 1994/08/17 20:20:49;  author: matt;  state: Exp;
63986 Initial revision
63987 =============================================================================
63988 RCS file: f:/miner/source/main/terrain.h,v
63989 Working file: main/terrain.h
63990 head: 2.0
63991 branch:
63992 description: Header for terrain.c
63993 ----------------------------
63994 revision 2.0
63995 date: 1995/02/27 11:32:53;  author: john;  state: Exp;
63996 New version 2.0, which has no anonymous unions, builds with
63997 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
63998 ----------------------------
63999 revision 1.3
64000 date: 1994/10/27 01:03:51;  author: matt;  state: Exp;
64001 Made terrain renderer use aribtary point in height array as origin
64002 ----------------------------
64003 revision 1.2
64004 date: 1994/08/19 20:09:45;  author: matt;  state: Exp;
64005 Added end-of-level cut scene with external scene
64006 ----------------------------
64007 revision 1.1
64008 date: 1994/08/17 20:33:36;  author: matt;  state: Exp;
64009 Initial revision
64010 =============================================================================
64011 RCS file: f:/miner/source/main/texmerge.c,v
64012 Working file: main/texmerge.c
64013 head: 2.0
64014 branch:
64015 description: Routines to cache merged textures.
64016 ----------------------------
64017 revision 2.0
64018 date: 1995/02/27 11:31:08;  author: john;  state: Exp;
64019 New version 2.0, which has no anonymous unions, builds with
64020 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64021 ----------------------------
64022 revision 1.28
64023 date: 1995/01/14 19:16:56;  author: john;  state: Exp;
64024 First version of new bitmap paging code.
64025 ----------------------------
64026 revision 1.27
64027 date: 1994/12/14 18:21:58;  author: yuan;  state: Exp;
64028 *** empty log message ***
64029 ----------------------------
64030 revision 1.26
64031 date: 1994/12/13 09:50:08;  author: john;  state: Exp;
64032 Added Asserts to stop if wall looks like door.
64033 ----------------------------
64034 revision 1.25
64035 date: 1994/12/07 00:35:24;  author: mike;  state: Exp;
64036 change how flat shading average color is computed for paste-ons.
64037 ----------------------------
64038 revision 1.24
64039 date: 1994/11/19 15:20:29;  author: mike;  state: Exp;
64040 rip out unused code and data
64041 ----------------------------
64042 revision 1.23
64043 date: 1994/11/12 16:38:51;  author: mike;  state: Exp;
64044 deal with avg_color in texture merging.
64045 ----------------------------
64046 revision 1.22
64047 date: 1994/11/09 19:55:39;  author: john;  state: Exp;
64048 Added full rle support with texture rle caching.
64049 ----------------------------
64050 revision 1.21
64051 date: 1994/10/20 15:21:16;  author: john;  state: Exp;
64052 Took out the texmerge caching.
64053 ----------------------------
64054 revision 1.20
64055 date: 1994/10/10 19:00:57;  author: john;  state: Exp;
64056 Made caching info print every 1000 frames.
64057 ----------------------------
64058 revision 1.19
64059 date: 1994/10/10 18:41:21;  author: john;  state: Exp;
64060 Printed out texture caching info.
64061 ----------------------------
64062 revision 1.18
64063 date: 1994/08/11 18:59:02;  author: mike;  state: Exp;
64064 Use new assembler version of merge functions.
64065 ----------------------------
64066 revision 1.17
64067 date: 1994/06/09 12:13:14;  author: john;  state: Exp;
64068 Changed selectors so that all bitmaps have a selector of
64069 0, but inside the texture mapper they get a selector set.
64070 ----------------------------
64071 revision 1.16
64072 date: 1994/05/14 17:15:15;  author: matt;  state: Exp;
64073 Got rid of externs in source (non-header) files
64074 ----------------------------
64075 revision 1.15
64076 date: 1994/05/09 17:21:09;  author: john;  state: Exp;
64077 Took out mprintf with cache hits/misses.
64078 ----------------------------
64079 revision 1.14
64080 date: 1994/05/05 12:55:07;  author: john;  state: Exp;
64081 Made SuperTransparency work.
64082 ----------------------------
64083 revision 1.13
64084 date: 1994/05/04 11:15:37;  author: john;  state: Exp;
64085 Added Super Transparency
64086 ----------------------------
64087 revision 1.12
64088 date: 1994/04/28 23:36:04;  author: john;  state: Exp;
64089 Took out a debugging mprintf.
64090 ----------------------------
64091 revision 1.11
64092 date: 1994/04/22 17:44:48;  author: john;  state: Exp;
64093 Made top 2 bits of paste-ons pick the
64094 orientation of the bitmap.
64095 ----------------------------
64096 revision 1.10
64097 date: 1994/03/31 12:05:51;  author: matt;  state: Exp;
64098 Cleaned up includes
64099 ----------------------------
64100 revision 1.9
64101 date: 1994/03/15 16:31:52;  author: yuan;  state: Exp;
64102 Cleaned up bm-loading code.
64103 (And structures)
64104 ----------------------------
64105 revision 1.8
64106 date: 1994/01/24 13:15:19;  author: john;  state: Exp;
64107 Made caching work with pointers, not texture numbers,
64108 that way, the animated textures cache.
64109 ----------------------------
64110 revision 1.7
64111 date: 1994/01/21 16:38:10;  author: john;  state: Exp;
64112 Took out debug info.
64113 ----------------------------
64114 revision 1.6
64115 date: 1994/01/21 16:28:43;  author: john;  state: Exp;
64116 added warning to print cache hit/miss.
64117 ----------------------------
64118 revision 1.5
64119 date: 1994/01/21 16:22:30;  author: john;  state: Exp;
64120 Put in caching/
64121 ----------------------------
64122 revision 1.4
64123 date: 1994/01/21 15:34:49;  author: john;  state: Exp;
64124 *** empty log message ***
64125 ----------------------------
64126 revision 1.3
64127 date: 1994/01/21 15:33:08;  author: john;  state: Exp;
64128 *** empty log message ***
64129 ----------------------------
64130 revision 1.2
64131 date: 1994/01/21 15:15:35;  author: john;  state: Exp;
64132 Created new module texmerge, that merges textures together and 
64133 caches the results.
64134 ----------------------------
64135 revision 1.1
64136 date: 1994/01/21 14:55:29;  author: john;  state: Exp;
64137 Initial revision
64138 =============================================================================
64139 RCS file: f:/miner/source/main/texmerge.h,v
64140 Working file: main/texmerge.h
64141 head: 2.0
64142 branch:
64143 description: Definitions for texture merging caching stuff.
64144 ----------------------------
64145 revision 2.0
64146 date: 1995/02/27 11:28:05;  author: john;  state: Exp;
64147 New version 2.0, which has no anonymous unions, builds with
64148 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64149 ----------------------------
64150 revision 1.4
64151 date: 1995/01/14 19:16:26;  author: john;  state: Exp;
64152 First version of new bitmap paging code.
64153 ----------------------------
64154 revision 1.3
64155 date: 1994/01/21 15:23:26;  author: john;  state: Exp;
64156 made texmerge_close return void.
64157 ----------------------------
64158 revision 1.2
64159 date: 1994/01/21 15:16:01;  author: john;  state: Exp;
64160 Created new module texmerge, that merges textures together and 
64161 caches the results.
64162 ----------------------------
64163 revision 1.1
64164 date: 1994/01/21 15:03:36;  author: john;  state: Exp;
64165 Initial revision
64166 =============================================================================
64167 RCS file: f:/miner/source/main/editor/texpage.c,v
64168 Working file: main/editor/texpage.c
64169 head: 2.0
64170 branch:
64171 description: Routines for displaying texture pages
64172 ----------------------------
64173 revision 2.0
64174 date: 1995/02/27 11:34:51;  author: john;  state: Exp;
64175 Version 2.0! No anonymous unions, Watcom 10.0, with no need
64176 for bitmaps.tbl.
64177 ----------------------------
64178 revision 1.14
64179 date: 1995/01/14 19:18:02;  author: john;  state: Exp;
64180 First version of object paging.
64181 ----------------------------
64182 revision 1.13
64183 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
64184 Made changes for new mprintf calling convention
64185 ----------------------------
64186 revision 1.12
64187 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
64188 fix bug in tmapnum == 0 always getting reassigned.
64189 ----------------------------
64190 revision 1.11
64191 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
64192 changing texture maps in all mines.
64193 ----------------------------
64194 revision 1.10
64195 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
64196 Changed some shorts to ints.
64197 ----------------------------
64198 revision 1.9
64199 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
64200 Fixed bug with writing to canvas before initing it.
64201 ----------------------------
64202 revision 1.8
64203 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
64204 Fixed grab bug, and cleaned up code
64205 ----------------------------
64206 revision 1.7
64207 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
64208 Fixed overplot problem with texture names
64209 ----------------------------
64210 revision 1.6
64211 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
64212 Fixed resetting to first texture on page annoyance.
64213 ----------------------------
64214 revision 1.5
64215 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
64216 Added objects to objpage. Added buttons for easier tmap scrolling.
64217 Objects are selected fully from objpage and add object menu or pad.
64218 ----------------------------
64219 revision 1.4
64220 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
64221 Fixed bm loader (might have some changes in walls and switches)
64222 ----------------------------
64223 revision 1.3
64224 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
64225 Moved texture and object selection to texpage and objpage
64226 ----------------------------
64227 revision 1.2
64228 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
64229 moved texture selection stuff to texpage.c
64230 ----------------------------
64231 revision 1.1
64232 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
64233 Initial revision
64234 =============================================================================
64235 RCS file: f:/miner/source/main/editor/texpage.h,v
64236 Working file: main/editor/texpage.h
64237 head: 2.0
64238 branch:
64239 description: Definitions for texpage.c
64240 ----------------------------
64241 revision 2.0
64242 date: 1995/02/27 11:34:31;  author: john;  state: Exp;
64243 Version 2.0! No anonymous unions, Watcom 10.0, with no need
64244 for bitmaps.tbl.
64245 ----------------------------
64246 revision 1.3
64247 date: 1994/05/14 17:17:53;  author: matt;  state: Exp;
64248 Got rid of externs in source (non-header) files
64249 ----------------------------
64250 revision 1.2
64251 date: 1993/12/16 15:57:54;  author: john;  state: Exp;
64252 moved texture selection stuff to texpage.c
64253 ----------------------------
64254 revision 1.1
64255 date: 1993/12/16 15:22:34;  author: john;  state: Exp;
64256 Initial revision
64257 =============================================================================
64258 RCS file: f:/miner/source/main/text.c,v
64259 Working file: main/text.c
64260 head: 2.0
64261 branch:
64262 description: Code for localizable text
64263 ----------------------------
64264 revision 2.0
64265 date: 1995/02/27 11:33:09;  author: john;  state: Exp;
64266 New version 2.0, which has no anonymous unions, builds with
64267 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64268 ----------------------------
64269 revision 1.11
64270 date: 1994/12/14 12:53:23;  author: matt;  state: Exp;
64271 Improved error handling
64272 ----------------------------
64273 revision 1.10
64274 date: 1994/12/09 18:36:44;  author: john;  state: Exp;
64275 Added code to make text read from hogfile.
64276 ----------------------------
64277 revision 1.9
64278 date: 1994/12/08 20:56:34;  author: john;  state: Exp;
64279 More cfile stuff.
64280 ----------------------------
64281 revision 1.8
64282 date: 1994/12/08 17:20:06;  author: yuan;  state: Exp;
64283 Cfiling stuff.
64284 ----------------------------
64285 revision 1.7
64286 date: 1994/12/05 15:10:36;  author: allender;  state: Exp;
64287 support encoded descent.tex file (descent.txb)
64288 ----------------------------
64289 revision 1.6
64290 date: 1994/12/01 14:18:34;  author: matt;  state: Exp;
64291 Now support backslash chars in descent.tex file
64292 ----------------------------
64293 revision 1.5
64294 date: 1994/10/27 00:13:10;  author: john;  state: Exp;
64295 Took out cfile.
64296 ----------------------------
64297 revision 1.4
64298 date: 1994/07/11 15:33:49;  author: matt;  state: Exp;
64299 Put in command-line switch to load different text files
64300 ----------------------------
64301 revision 1.3
64302 date: 1994/07/10 09:56:25;  author: yuan;  state: Exp;
64303 #include <stdio.h> added for FILE type.
64304 ----------------------------
64305 revision 1.2
64306 date: 1994/07/09 22:48:14;  author: matt;  state: Exp;
64307 Added localizable text
64308 ----------------------------
64309 revision 1.1
64310 date: 1994/07/09 21:30:46;  author: matt;  state: Exp;
64311 Initial revision
64312 =============================================================================
64313 RCS file: f:/miner/source/main/text.h,v
64314 Working file: main/text.h
64315 head: 2.2
64316 branch:
64317 description: Header for text.c, including symbolics for text messages
64318 ----------------------------
64319 revision 2.2
64320 date: 1995/03/30 16:36:22;  author: mike;  state: Exp;
64321 text localization.
64322 ----------------------------
64323 revision 2.1
64324 date: 1995/03/08 15:33:24;  author: allender;  state: Exp;
64325 *** empty log message ***
64326 ----------------------------
64327 revision 2.0
64328 date: 1995/02/27 11:30:21;  author: john;  state: Exp;
64329 New version 2.0, which has no anonymous unions, builds with
64330 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64331 ----------------------------
64332 revision 1.63
64333 date: 1995/02/11 14:59:42;  author: rob;  state: Exp;
64334 Added string for controlcen invul.
64335 ----------------------------
64336 revision 1.62
64337 date: 1995/02/10 15:19:38;  author: allender;  state: Exp;
64338 added text for bad write on demo write
64339 ----------------------------
64340 revision 1.61
64341 date: 1995/02/08 10:59:11;  author: rob;  state: Exp;
64342 Added string used in kill list view.
64343 ----------------------------
64344 revision 1.60
64345 date: 1995/02/07 20:38:40;  author: rob;  state: Exp;
64346 Added new localized strings for new multi options.
64347 ----------------------------
64348 revision 1.59
64349 date: 1995/02/02 15:29:17;  author: matt;  state: Exp;
64350 Changed & localized secret level text
64351 ----------------------------
64352 revision 1.58
64353 date: 1995/02/02 12:24:14;  author: adam;  state: Exp;
64354 added automap string
64355 ----------------------------
64356 revision 1.57
64357 date: 1995/02/01 18:06:50;  author: rob;  state: Exp;
64358 Localize default macros, other stuff frm network.c
64359 ----------------------------
64360 revision 1.56
64361 date: 1995/01/30 15:29:53;  author: rob;  state: Exp;
64362 Localizing.
64363 ----------------------------
64364 revision 1.55
64365 date: 1995/01/30 13:54:25;  author: allender;  state: Exp;
64366 added mission/demo text
64367 ----------------------------
64368 revision 1.54
64369 date: 1995/01/24 22:03:22;  author: mike;  state: Exp;
64370 text localization.
64371 ----------------------------
64372 revision 1.53
64373 date: 1995/01/23 13:05:59;  author: adam;  state: Exp;
64374 added save/load game text
64375 ----------------------------
64376 revision 1.52
64377 date: 1995/01/22 15:58:42;  author: mike;  state: Exp;
64378 localization
64379 ----------------------------
64380 revision 1.51
64381 date: 1994/12/29 12:08:47;  author: rob;  state: Exp;
64382 removed new text strings.
64383 ----------------------------
64384 revision 1.50
64385 date: 1994/12/28 16:47:14;  author: rob;  state: Exp;
64386 Added new com setup strings.
64387 ----------------------------
64388 revision 1.49
64389 date: 1994/12/15 23:24:22;  author: rob;  state: Exp;
64390 Added string for rejoin failure.
64391 ----------------------------
64392 revision 1.48
64393 date: 1994/12/15 10:16:06;  author: adam;  state: Exp;
64394 added lame trademark notice
64395 ----------------------------
64396 revision 1.47
64397 date: 1994/12/14 18:21:23;  author: yuan;  state: Exp;
64398 *** empty log message ***
64399 ----------------------------
64400 revision 1.46
64401 date: 1994/12/14 16:57:01;  author: matt;  state: Exp;
64402 Added text for hat2
64403 ----------------------------
64404 revision 1.45
64405 date: 1994/12/14 08:50:12;  author: allender;  state: Exp;
64406 *** empty log message ***
64407 ----------------------------
64408 revision 1.44
64409 date: 1994/12/13 19:43:29;  author: rob;  state: Exp;
64410 Added string.
64411 ----------------------------
64412 revision 1.43
64413 date: 1994/12/13 12:54:45;  author: mike;  state: Exp;
64414 add strings for hostages on board when you die.
64415 ----------------------------
64416 revision 1.42
64417 date: 1994/12/13 10:04:09;  author: allender;  state: Exp;
64418 *** empty log message ***
64419 ----------------------------
64420 revision 1.41
64421 date: 1994/12/12 22:20:23;  author: rob;  state: Exp;
64422 Added two new localized strings for modem.c
64423 ----------------------------
64424 revision 1.40
64425 date: 1994/12/09 19:46:26;  author: yuan;  state: Exp;
64426 Localized the sucker.
64427 ----------------------------
64428 revision 1.39
64429 date: 1994/12/09 14:35:30;  author: yuan;  state: Exp;
64430 Added localization string for Rob.
64431 ----------------------------
64432 revision 1.38
64433 date: 1994/12/09 14:08:16;  author: mike;  state: Exp;
64434 text message for remaining ships at end bonus.
64435 ----------------------------
64436 revision 1.37
64437 date: 1994/12/09 00:28:26;  author: rob;  state: Exp;
64438 Added "died in mine" string.
64439 ----------------------------
64440 revision 1.36
64441 date: 1994/12/08 14:30:31;  author: yuan;  state: Exp;
64442 Fixed off by one problem.
64443 ----------------------------
64444 revision 1.35
64445 date: 1994/12/08 11:18:56;  author: allender;  state: Exp;
64446 demo text string
64447 ----------------------------
64448 revision 1.33
64449 date: 1994/12/07 19:14:33;  author: matt;  state: Exp;
64450 Cleaned up command-line options and command-line help message
64451 ----------------------------
64452 revision 1.32
64453 date: 1994/12/07 17:20:34;  author: yuan;  state: Exp;
64454 Localization
64455 ----------------------------
64456 revision 1.31
64457 date: 1994/12/07 16:49:15;  author: yuan;  state: Exp;
64458 More localization
64459 ----------------------------
64460 revision 1.30
64461 date: 1994/12/07 14:52:11;  author: yuan;  state: Exp;
64462 Localization 492
64463 ----------------------------
64464 revision 1.29
64465 date: 1994/12/07 11:28:12;  author: matt;  state: Exp;
64466 Did a little localization support
64467 ----------------------------
64468 revision 1.28
64469 date: 1994/12/06 18:29:31;  author: mike;  state: Exp;
64470 Add text for cheat: Start at any level.
64471 ----------------------------
64472 revision 1.27
64473 date: 1994/12/06 16:30:39;  author: yuan;  state: Exp;
64474 Localization
64475 ----------------------------
64476 revision 1.26
64477 date: 1994/12/06 15:14:55;  author: yuan;  state: Exp;
64478 Fixed number of textstrings.
64479 ----------------------------
64480 revision 1.25
64481 date: 1994/12/06 15:13:52;  author: yuan;  state: Exp;
64482 Localization
64483 ----------------------------
64484 revision 1.24
64485 date: 1994/12/06 13:46:24;  author: adam;  state: Exp;
64486 *** empty log message ***
64487 ----------------------------
64488 revision 1.23
64489 date: 1994/12/05 23:17:28;  author: yuan;  state: Exp;
64490 Localization bugs fixed.
64491 ----------------------------
64492 revision 1.22
64493 date: 1994/12/05 23:05:41;  author: yuan;  state: Exp;
64494 Localization 425
64495 ----------------------------
64496 revision 1.21
64497 date: 1994/12/05 22:42:27;  author: rob;  state: Exp;
64498 Added new connect status strings
64499 ----------------------------
64500 revision 1.20
64501 date: 1994/12/05 16:47:30;  author: rob;  state: Exp;
64502 Added a new string.
64503 ----------------------------
64504 revision 1.19
64505 date: 1994/12/03 22:35:17;  author: yuan;  state: Exp;
64506 Localization 412
64507 ----------------------------
64508 revision 1.18
64509 date: 1994/12/03 17:53:42;  author: yuan;  state: Exp;
64510 382.
64511 =============================================================================
64512 RCS file: f:/miner/source/main/editor/texture.c,v
64513 Working file: main/editor/texture.c
64514 head: 2.0
64515 branch:
64516 description: Texture map assignment.
64517 ----------------------------
64518 revision 2.0
64519 date: 1995/02/27 11:34:50;  author: john;  state: Exp;
64520 Version 2.0! No anonymous unions, Watcom 10.0, with no need
64521 for bitmaps.tbl.
64522 ----------------------------
64523 revision 1.13
64524 date: 1994/08/04 19:13:15;  author: matt;  state: Exp;
64525 Changed a bunch of vecmat calls to use multiple-function routines, and to
64526 allow the use of C macros for some functions
64527 ----------------------------
64528 revision 1.12
64529 date: 1994/08/03 10:31:56;  author: mike;  state: Exp;
64530 Texture map propagation without uv assignment.
64531 ----------------------------
64532 revision 1.11
64533 date: 1994/07/14 19:36:34;  author: yuan;  state: Exp;
64534 Tuning texture slides.
64535 ----------------------------
64536 revision 1.10
64537 date: 1994/07/14 19:29:08;  author: yuan;  state: Exp;
64538 Fixed sliding.
64539 ----------------------------
64540 revision 1.9
64541 date: 1994/07/14 14:43:06;  author: yuan;  state: Exp;
64542 Added 3x rotation.
64543 ----------------------------
64544 revision 1.8
64545 date: 1994/07/14 11:12:42;  author: yuan;  state: Exp;
64546 Made sliding 3x more sensitive
64547 ----------------------------
64548 revision 1.7
64549 date: 1994/07/14 10:49:56;  author: yuan;  state: Exp;
64550 Made texture rotation 3x finer
64551 ----------------------------
64552 revision 1.6
64553 date: 1994/02/14 12:06:00;  author: mike;  state: Exp;
64554 change segment data structure.
64555 ----------------------------
64556 revision 1.5
64557 date: 1993/12/06 13:26:52;  author: mike;  state: Exp;
64558 Make rotation and sliding work for triangulated sides.
64559 ----------------------------
64560 revision 1.4
64561 date: 1993/12/04 17:18:46;  author: mike;  state: Exp;
64562 Add tiling functions, set_default.
64563 ----------------------------
64564 revision 1.3
64565 date: 1993/12/03 18:39:12;  author: unknown;  state: Exp;
64566 Add texture map sliding, allow to work on triangulated sides.
64567 ----------------------------
64568 revision 1.2
64569 date: 1993/11/30 17:06:09;  author: mike;  state: Exp;
64570 Texture map functions.
64571 ----------------------------
64572 revision 1.1
64573 date: 1993/11/29 16:00:57;  author: mike;  state: Exp;
64574 Initial revision
64575 =============================================================================
64576 RCS file: f:/miner/source/main/textures.h,v
64577 Working file: main/textures.h
64578 head: 2.0
64579 branch:
64580 description: Array of textures, and other stuff
64581 ----------------------------
64582 revision 2.0
64583 date: 1995/02/27 11:31:54;  author: john;  state: Exp;
64584 New version 2.0, which has no anonymous unions, builds with
64585 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64586 ----------------------------
64587 revision 1.3
64588 date: 1994/03/15 16:32:56;  author: yuan;  state: Exp;
64589 Cleaned up bm-loading code.
64590 (Fixed structures too)
64591 ----------------------------
64592 revision 1.2
64593 date: 1993/12/05 22:49:53;  author: matt;  state: Exp;
64594 Reworked include files in an attempt to cut down on build times
64595 ----------------------------
64596 revision 1.1
64597 date: 1993/12/05 20:16:26;  author: matt;  state: Exp;
64598 Initial revision
64599 =============================================================================
64600 RCS file: f:/miner/source/main/titles.c,v
64601 Working file: main/titles.c
64602 head: 2.10
64603 branch:
64604 description: Routines to display title screens...
64605 ----------------------------
64606 revision 2.10
64607 date: 1995/06/15 12:14:16;  author: john;  state: Exp;
64608 Made end game, win game and title sequences all go
64609 on after 5 minutes automatically.
64610 ----------------------------
64611 revision 2.9
64612 date: 1995/06/14 17:25:48;  author: john;  state: Exp;
64613 Fixed bug with VFX palette not getting loaded for credits, titles.
64614 ----------------------------
64615 revision 2.8
64616 date: 1995/05/26 16:16:30;  author: john;  state: Exp;
64617 Split SATURN into define's for requiring cd, using cd, etc.
64618 Also started adding all the Rockwell stuff.
64619 ----------------------------
64620 revision 2.7
64621 date: 1995/03/24 13:11:36;  author: john;  state: Exp;
64622 Added save game during briefing screens.
64623 ----------------------------
64624 revision 2.6
64625 date: 1995/03/21 14:41:17;  author: john;  state: Exp;
64626 Ifdef'd out the NETWORK code.
64627 ----------------------------
64628 revision 2.5
64629 date: 1995/03/15 14:33:45;  author: john;  state: Exp;
64630 Added code to force the Descent CD-rom in the drive.
64631 ----------------------------
64632 revision 2.4
64633 date: 1995/03/14 18:24:50;  author: john;  state: Exp;
64634 Force Destination Saturn to use CD-ROM drive.
64635 ----------------------------
64636 revision 2.3
64637 date: 1995/03/10 13:05:52;  author: john;  state: Exp;
64638 Added code so that palette is correct for VFX1 helmets.
64639 ----------------------------
64640 revision 2.2
64641 date: 1995/03/07 14:19:28;  author: mike;  state: Exp;
64642 More destination saturn stuff.
64643 ----------------------------
64644 revision 2.1
64645 date: 1995/03/06 15:24:16;  author: john;  state: Exp;
64646 New screen techniques.
64647 ----------------------------
64648 revision 2.0
64649 date: 1995/02/27 11:32:50;  author: john;  state: Exp;
64650 New version 2.0, which has no anonymous unions, builds with
64651 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64652 ----------------------------
64653 revision 1.95
64654 date: 1995/02/12 04:07:19;  author: matt;  state: Exp;
64655 After freeing Robot_canv, set ptr to NULL
64656 ----------------------------
64657 revision 1.94
64658 date: 1995/02/11 12:41:57;  author: john;  state: Exp;
64659 Added new song method, with FM bank switching..
64660 ----------------------------
64661 revision 1.93
64662 date: 1995/02/11 09:51:59;  author: john;  state: Exp;
64663 Stripped out all SVGA references.
64664 ----------------------------
64665 revision 1.92
64666 date: 1995/02/07 09:56:10;  author: john;  state: Exp;
64667 Fixed bug with wrong title screen drawing during save btwn lvls.
64668 ----------------------------
64669 revision 1.91
64670 date: 1995/02/04 13:53:16;  author: john;  state: Exp;
64671 Added code to display the correct titles between levels
64672 that have robot maps..
64673 ----------------------------
64674 revision 1.90
64675 date: 1995/02/02 16:36:33;  author: adam;  state: Exp;
64676 *** empty log message ***
64677 ----------------------------
64678 revision 1.89
64679 date: 1995/02/02 12:23:30;  author: john;  state: Exp;
64680 Made between level saves have picture.
64681 ----------------------------
64682 revision 1.88
64683 date: 1995/02/02 01:50:16;  author: adam;  state: Exp;
64684 rearranged robot briefings.
64685 ----------------------------
64686 revision 1.87
64687 date: 1995/02/01 22:28:54;  author: mike;  state: Exp;
64688 *** empty log message ***
64689 ----------------------------
64690 revision 1.86
64691 date: 1995/02/01 17:12:21;  author: mike;  state: Exp;
64692 Make score come after endgame screens.
64693 ----------------------------
64694 revision 1.85
64695 date: 1995/02/01 14:04:17;  author: adam;  state: Exp;
64696 mucked with screens
64697 ----------------------------
64698 revision 1.84
64699 date: 1995/01/28 16:59:30;  author: adam;  state: Exp;
64700 added hook for special first briefing music
64701 ----------------------------
64702 revision 1.83
64703 date: 1995/01/21 17:04:35;  author: mike;  state: Exp;
64704 fix endgame text bogosity.
64705 ----------------------------
64706 revision 1.82
64707 date: 1995/01/21 16:26:29;  author: matt;  state: Exp;
64708 Made endlevel briefing work with missions
64709 ----------------------------
64710 revision 1.81
64711 date: 1995/01/21 13:15:20;  author: adam;  state: Exp;
64712 added new robot briefings.
64713 ----------------------------
64714 revision 1.80
64715 date: 1995/01/20 22:47:33;  author: matt;  state: Exp;
64716 Mission system implemented, though imcompletely
64717 ----------------------------
64718 revision 1.79
64719 date: 1995/01/20 14:57:52;  author: mike;  state: Exp;
64720 support arbitrary number of screens/level.
64721 ----------------------------
64722 revision 1.78
64723 date: 1995/01/15 14:29:12;  author: john;  state: Exp;
64724 Made the exit door page in.
64725 ----------------------------
64726 revision 1.77
64727 date: 1995/01/15 14:27:09;  author: adam;  state: Exp;
64728 messed with endgame stuff
64729 ----------------------------
64730 revision 1.76
64731 date: 1995/01/14 15:42:49;  author: mike;  state: Exp;
64732 Make endgame for registered support 3 screens.
64733 ----------------------------
64734 revision 1.75
64735 date: 1995/01/14 14:00:59;  author: adam;  state: Exp;
64736 *** empty log message ***
64737 ----------------------------
64738 revision 1.74
64739 date: 1995/01/09 11:28:53;  author: mike;  state: Exp;
64740 Support new $O thingy for bitmaps which cycle and are not the exit door.
64741 ----------------------------
64742 revision 1.73
64743 date: 1995/01/02 12:39:13;  author: mike;  state: Exp;
64744 fix secret level sequencing.
64745 ----------------------------
64746 revision 1.72
64747 date: 1994/12/12 19:44:14;  author: rob;  state: Exp;
64748 Added kill matrix to end of game sequence.
64749 ----------------------------
64750 revision 1.71
64751 date: 1994/12/09 22:32:57;  author: adam;  state: Exp;
64752 messed with text positioning
64753 ----------------------------
64754 revision 1.70
64755 date: 1994/12/09 14:08:37;  author: mike;  state: Exp;
64756 make briefing text work with hog files.
64757 ----------------------------
64758 revision 1.69
64759 date: 1994/12/09 00:41:47;  author: mike;  state: Exp;
64760 fix hang in automap print screen.
64761 ----------------------------
64762 revision 1.68
64763 date: 1994/12/08 20:56:36;  author: john;  state: Exp;
64764 More cfile stuff.
64765 ----------------------------
64766 revision 1.67
64767 date: 1994/12/08 17:19:11;  author: yuan;  state: Exp;
64768 Cfiling stuff.
64769 ----------------------------
64770 revision 1.66
64771 date: 1994/12/07 11:28:00;  author: matt;  state: Exp;
64772 Did a localization suppport
64773 ----------------------------
64774 revision 1.65
64775 date: 1994/12/06 17:10:23;  author: yuan;  state: Exp;
64776 Fixed missing )
64777 ----------------------------
64778 revision 1.64
64779 date: 1994/12/06 17:00:45;  author: rob;  state: Exp;
64780 Fixed problem with finishing the game in modem/serial mode.
64781 ----------------------------
64782 revision 1.63
64783 date: 1994/12/06 16:58:37;  author: matt;  state: Exp;
64784 Killed warnings
64785 ----------------------------
64786 revision 1.62
64787 date: 1994/12/06 15:54:28;  author: mike;  state: Exp;
64788 fix guy at end...
64789 =============================================================================
64790 RCS file: f:/miner/source/main/titles.h,v
64791 Working file: main/titles.h
64792 head: 2.0
64793 branch:
64794 description: .
64795 ----------------------------
64796 revision 2.0
64797 date: 1995/02/27 11:27:40;  author: john;  state: Exp;
64798 New version 2.0, which has no anonymous unions, builds with
64799 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64800 ----------------------------
64801 revision 1.12
64802 date: 1995/02/02 12:23:29;  author: john;  state: Exp;
64803 Made between level saves have picture.
64804 ----------------------------
64805 revision 1.11
64806 date: 1995/01/21 16:27:11;  author: matt;  state: Exp;
64807 Made endlevel briefing work with missions
64808 ----------------------------
64809 revision 1.10
64810 date: 1995/01/20 22:48:02;  author: matt;  state: Exp;
64811 Mission system implemented, though imcompletely
64812 ----------------------------
64813 revision 1.9
64814 date: 1994/12/07 19:14:07;  author: matt;  state: Exp;
64815 Kill briefing screen disable switch for release version
64816 ----------------------------
64817 revision 1.8
64818 date: 1994/11/21 16:40:24;  author: matt;  state: Exp;
64819 Added prototype
64820 ----------------------------
64821 revision 1.7
64822 date: 1994/11/05 14:05:54;  author: john;  state: Exp;
64823 Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
64824 track of whether the palette is faded in or not.  Then, wherever the code needs to fade out,
64825 it just calls gr_palette_fade_out and it will fade out if it isn't already.  The same with fade_in.
64826 This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
64827 ----------------------------
64828 revision 1.6
64829 date: 1994/11/01 17:57:48;  author: mike;  state: Exp;
64830 Briefing screens.
64831 ----------------------------
64832 revision 1.5
64833 date: 1994/10/31 22:28:04;  author: mike;  state: Exp;
64834 briefing screens
64835 ----------------------------
64836 revision 1.4
64837 date: 1994/09/16 16:14:31;  author: john;  state: Exp;
64838 Added acrade sequencing.
64839 ----------------------------
64840 revision 1.3
64841 date: 1994/06/22 00:26:53;  author: matt;  state: Exp;
64842 Added support for Interplay's animating title sequence
64843 ----------------------------
64844 revision 1.2
64845 date: 1994/06/17 12:13:36;  author: john;  state: Exp;
64846 More newdemo stuff; made editor->game transition start in slew mode.
64847 ----------------------------
64848 revision 1.1
64849 date: 1994/06/17 10:50:12;  author: john;  state: Exp;
64850 Initial revision
64851 =============================================================================
64852 RCS file: f:/miner/source/main/vclip.c,v
64853 Working file: main/vclip.c
64854 head: 2.0
64855 branch:
64856 description: Routines for vclips.
64857 ----------------------------
64858 revision 2.0
64859 date: 1995/02/27 11:32:41;  author: john;  state: Exp;
64860 New version 2.0, which has no anonymous unions, builds with
64861 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64862 ----------------------------
64863 revision 1.8
64864 date: 1994/09/25 23:40:52;  author: matt;  state: Exp;
64865 Changed the object load & save code to read/write the structure fields one
64866 at a time (rather than the whole structure at once).  This mean that the
64867 object structure can be changed without breaking the load/save functions.
64868 As a result of this change, the local_object data can be and has been 
64869 incorporated into the object array.  Also, timeleft is now a property 
64870 of all objects, and the object structure has been otherwise cleaned up.
64871 ----------------------------
64872 revision 1.7
64873 date: 1994/09/25 15:45:26;  author: matt;  state: Exp;
64874 Added OBJ_LIGHT, a type of object that casts light
64875 Added generalized lifeleft, and moved it to local_object
64876 ----------------------------
64877 revision 1.6
64878 date: 1994/09/09 20:05:57;  author: mike;  state: Exp;
64879 Add vclips for weapons.
64880 ----------------------------
64881 revision 1.5
64882 date: 1994/06/14 21:14:35;  author: matt;  state: Exp;
64883 Made rod objects draw lighted or not depending on a parameter, so the
64884 materialization effect no longer darkens.
64885 ----------------------------
64886 revision 1.4
64887 date: 1994/06/08 18:16:24;  author: john;  state: Exp;
64888 Bunch of new stuff that basically takes constants out of the code
64889 and puts them into bitmaps.tbl.
64890 ----------------------------
64891 revision 1.3
64892 date: 1994/06/03 10:47:17;  author: matt;  state: Exp;
64893 Made vclips (used by explosions) which can be either rods or blobs, as
64894 specified in BITMAPS.TBL.  (This is for the materialization center effect).
64895 ----------------------------
64896 revision 1.2
64897 date: 1994/05/11 09:25:25;  author: john;  state: Exp;
64898 Abandoned new vclip system for now because each wallclip, vclip,
64899 etc, is different and it would be a huge pain to change all of them.
64900 ----------------------------
64901 revision 1.1
64902 date: 1994/05/10 15:21:12;  author: john;  state: Exp;
64903 Initial revision
64904 =============================================================================
64905 RCS file: f:/miner/source/main/vclip.h,v
64906 Working file: main/vclip.h
64907 head: 2.0
64908 branch:
64909 description: Stuff for video clips.
64910 ----------------------------
64911 revision 2.0
64912 date: 1995/02/27 11:32:42;  author: john;  state: Exp;
64913 New version 2.0, which has no anonymous unions, builds with
64914 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
64915 ----------------------------
64916 revision 1.33
64917 date: 1994/11/21 11:17:57;  author: adam;  state: Exp;
64918 *** empty log message ***
64919 ----------------------------
64920 revision 1.32
64921 date: 1994/10/12 13:07:07;  author: mike;  state: Exp;
64922 Add VCLIP_POWERUP_DISAPPEARANCE.
64923 ----------------------------
64924 revision 1.31
64925 date: 1994/10/12 10:23:54;  author: adam;  state: Exp;
64926 *** empty log message ***
64927 ----------------------------
64928 revision 1.30
64929 date: 1994/10/11 12:25:21;  author: matt;  state: Exp;
64930 Added "hot rocks" that create badass explosion when hit by weapons
64931 ----------------------------
64932 revision 1.29
64933 date: 1994/10/06 14:10:07;  author: matt;  state: Exp;
64934 Added constant for player appearence effect
64935 ----------------------------
64936 revision 1.28
64937 date: 1994/09/26 08:40:30;  author: adam;  state: Exp;
64938 *** empty log message ***
64939 ----------------------------
64940 revision 1.27
64941 date: 1994/09/10 17:30:57;  author: mike;  state: Exp;
64942 move a prototype here, had been defined in object.c
64943 ----------------------------
64944 revision 1.26
64945 date: 1994/09/09 20:04:25;  author: mike;  state: Exp;
64946 Add weapon_vclip.
64947 ----------------------------
64948 revision 1.25
64949 date: 1994/08/31 19:27:09;  author: mike;  state: Exp;
64950 Increase max number of Vclips for new pile of weapon powerups.
64951 ----------------------------
64952 revision 1.24
64953 date: 1994/08/14 23:14:43;  author: matt;  state: Exp;
64954 Added animating bitmap hostages, and cleaned up vclips a bit
64955 ----------------------------
64956 revision 1.23
64957 date: 1994/07/23 19:56:39;  author: matt;  state: Exp;
64958 Took out unused constant
64959 ----------------------------
64960 revision 1.22
64961 date: 1994/07/22 10:42:10;  author: adam;  state: Exp;
64962 upped max no. of vclips
64963 ----------------------------
64964 revision 1.21
64965 date: 1994/06/14 21:15:14;  author: matt;  state: Exp;
64966 Made rod objects draw lighted or not depending on a parameter, so the
64967 materialization effect no longer darkens.
64968 ----------------------------
64969 revision 1.20
64970 date: 1994/06/09 19:38:16;  author: john;  state: Exp;
64971 Made each Vclip have its own sound... but only used in the
64972 materialization center.
64973 ----------------------------
64974 revision 1.19
64975 date: 1994/06/09 11:46:26;  author: john;  state: Exp;
64976 Took out unused vclip defines.
64977 ----------------------------
64978 revision 1.18
64979 date: 1994/06/08 18:16:33;  author: john;  state: Exp;
64980 Bunch of new stuff that basically takes constants out of the code
64981 and puts them into bitmaps.tbl.
64982 ----------------------------
64983 revision 1.17
64984 date: 1994/06/08 12:49:01;  author: mike;  state: Exp;
64985 Add light_value to vclip.
64986 ----------------------------
64987 revision 1.16
64988 date: 1994/06/08 11:43:28;  author: mike;  state: Exp;
64989 Allow 20 vclips, I think (anyway, more than it used to be, probably 12).
64990 ----------------------------
64991 revision 1.15
64992 date: 1994/06/03 10:48:22;  author: matt;  state: Exp;
64993 Made vclips (used by explosions) which can be either rods or blobs, as
64994 specified in BITMAPS.TBL.  (This is for the materialization center effect).
64995 ----------------------------
64996 revision 1.14
64997 date: 1994/06/01 17:21:08;  author: john;  state: Exp;
64998 Added muzzle flash
64999 ----------------------------
65000 revision 1.13
65001 date: 1994/06/01 10:34:02;  author: john;  state: Exp;
65002 Added robot morphing effect.
65003 ----------------------------
65004 revision 1.12
65005 date: 1994/05/16 16:17:38;  author: john;  state: Exp;
65006 Bunch of stuff on my Inferno Task list May16-23
65007 ----------------------------
65008 revision 1.11
65009 date: 1994/05/10 18:32:50;  author: john;  state: Exp;
65010 *** empty log message ***
65011 ----------------------------
65012 revision 1.10
65013 date: 1994/04/29 14:35:52;  author: matt;  state: Exp;
65014 Added second kind of fireball
65015 ----------------------------
65016 revision 1.9
65017 date: 1994/04/11 10:36:31;  author: yuan;  state: Exp;
65018 Started adding types for exploding hostages.
65019 ----------------------------
65020 revision 1.8
65021 date: 1994/04/07 16:27:43;  author: yuan;  state: Exp;
65022 Added SUPERPIG the robot with 200 hit points.
65023 Now robots can take multiple hits before blowing up.
65024 ----------------------------
65025 revision 1.7
65026 date: 1994/04/07 13:45:58;  author: yuan;  state: Exp;
65027 Defined Pclips... maybe shouldn't be in this file.
65028 ----------------------------
65029 revision 1.6
65030 date: 1994/03/28 20:58:22;  author: yuan;  state: Exp;
65031 Added blood vclip constant
65032 ----------------------------
65033 revision 1.5
65034 date: 1994/03/15 16:31:56;  author: yuan;  state: Exp;
65035 Cleaned up bm-loading code.
65036 (And structures)
65037 ----------------------------
65038 revision 1.4
65039 date: 1994/03/04 17:09:43;  author: yuan;  state: Exp;
65040 New wall stuff
65041 ----------------------------
65042 revision 1.3
65043 date: 1994/01/11 10:59:01;  author: yuan;  state: Exp;
65044 Added effects
65045 ----------------------------
65046 revision 1.2
65047 date: 1994/01/06 17:13:15;  author: john;  state: Exp;
65048 Added Video clip functionality
65049 ----------------------------
65050 revision 1.1
65051 date: 1994/01/06 15:10:15;  author: john;  state: Exp;
65052 Initial revision
65053 =============================================================================
65054 RCS file: f:/miner/source/main/vfx.c,v
65055 Working file: main/vfx.c
65056 head: 2.4
65057 branch:
65058 description: Routines to access VR helmet.
65059 ----------------------------
65060 revision 2.4
65061 date: 1995/05/11 13:28:59;  author: john;  state: Exp;
65062 Made so no -vfx doesnt' check for VIPPORT.
65063 ----------------------------
65064 revision 2.3
65065 date: 1995/05/11 13:08:28;  author: john;  state: Exp;
65066 Made code print bomb out with error if it can't find VIPPORT.
65067 ----------------------------
65068 revision 2.2
65069 date: 1995/05/08 13:53:32;  author: john;  state: Exp;
65070 Added code to read the vipport environment variable.
65071 ----------------------------
65072 revision 2.1
65073 date: 1995/03/10 13:05:50;  author: john;  state: Exp;
65074 Added code so that palette is correct for VFX1 helmets.
65075 ----------------------------
65076 revision 2.0
65077 date: 1995/02/27 11:30:29;  author: john;  state: Exp;
65078 New version 2.0, which has no anonymous unions, builds with
65079 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65080 ----------------------------
65081 revision 1.5
65082 date: 1994/12/28 10:26:42;  author: john;  state: Exp;
65083 Fixed some VFX problems.
65084 ----------------------------
65085 revision 1.4
65086 date: 1994/11/19 15:20:34;  author: mike;  state: Exp;
65087 rip out unused code and data
65088 ----------------------------
65089 revision 1.3
65090 date: 1994/09/20 19:36:11;  author: matt;  state: Exp;
65091 Added seperate function to set palette
65092 ----------------------------
65093 revision 1.2
65094 date: 1994/06/24 17:03:50;  author: john;  state: Exp;
65095 Added VFX support. Also took all game sequencing stuff like
65096 EndGame out and put it into gameseq.c
65097 ----------------------------
65098 revision 1.1
65099 date: 1994/06/23 09:14:06;  author: john;  state: Exp;
65100 Initial revision
65101 =============================================================================
65102 RCS file: f:/miner/source/main/vfx.h,v
65103 Working file: main/vfx.h
65104 head: 2.1
65105 branch:
65106 description: Prototypes for vfx.c
65107 ----------------------------
65108 revision 2.1
65109 date: 1995/03/10 12:58:04;  author: john;  state: Exp;
65110 Added vfx_set_palette_sub function.
65111 ----------------------------
65112 revision 2.0
65113 date: 1995/02/27 11:31:19;  author: john;  state: Exp;
65114 New version 2.0, which has no anonymous unions, builds with
65115 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65116 ----------------------------
65117 revision 1.5
65118 date: 1994/12/28 10:43:02;  author: john;  state: Exp;
65119 More VFX tweaking.
65120 ----------------------------
65121 revision 1.4
65122 date: 1994/12/28 10:26:49;  author: john;  state: Exp;
65123 Fixed some VFX problems.
65124 ----------------------------
65125 revision 1.3
65126 date: 1994/09/20 19:36:01;  author: matt;  state: Exp;
65127 Added seperate function to set palette
65128 ----------------------------
65129 revision 1.2
65130 date: 1994/06/24 17:03:51;  author: john;  state: Exp;
65131 Added VFX support. Also took all game sequencing stuff like
65132 EndGame out and put it into gameseq.c
65133 ----------------------------
65134 revision 1.1
65135 date: 1994/06/23 09:14:16;  author: john;  state: Exp;
65136 Initial revision
65137 =============================================================================
65138 RCS file: f:/miner/source/main/vfx1.h,v
65139 Working file: main/vfx1.h
65140 head: 2.0
65141 branch:
65142 description: .
65143 ----------------------------
65144 revision 2.0
65145 date: 1995/02/27 11:28:52;  author: john;  state: Exp;
65146 New version 2.0, which has no anonymous unions, builds with
65147 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65148 ----------------------------
65149 revision 1.3
65150 date: 1994/09/15 16:11:26;  author: john;  state: Exp;
65151 Added support for VFX1 head tracking. Fixed bug with memory over-
65152 write when using stereo mode.
65153 ----------------------------
65154 revision 1.2
65155 date: 1994/06/24 17:03:54;  author: john;  state: Exp;
65156 Added VFX support. Also took all game sequencing stuff like
65157 EndGame out and put it into gameseq.c
65158 ----------------------------
65159 revision 1.1
65160 date: 1994/06/23 17:59:56;  author: john;  state: Exp;
65161 Initial revision
65162 =============================================================================
65163 RCS file: f:/miner/source/main/victor.c,v
65164 Working file: main/victor.c
65165 head: 2.5
65166 branch:
65167 description: Routines to access the VictorMaxx helmet.
65168 ----------------------------
65169 revision 2.5
65170 date: 1995/03/30 16:35:59;  author: mike;  state: Exp;
65171 text localization.
65172 ----------------------------
65173 revision 2.4
65174 date: 1995/03/09 15:34:33;  author: john;  state: Exp;
65175 Fixed bug with timeout being too long.
65176 ----------------------------
65177 revision 2.3
65178 date: 1995/03/08 15:42:00;  author: john;  state: Exp;
65179 Took out debug code.
65180 ----------------------------
65181 revision 2.2
65182 date: 1995/03/08 15:32:54;  author: john;  state: Exp;
65183 Made VictorMaxx head tracking use Greenleaf code.
65184 ----------------------------
65185 revision 2.1
65186 date: 1995/03/06 15:24:03;  author: john;  state: Exp;
65187 New screen techniques.
65188 ----------------------------
65189 revision 2.0
65190 date: 1995/02/27 11:31:23;  author: john;  state: Exp;
65191 New version 2.0, which has no anonymous unions, builds with
65192 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65193 ----------------------------
65194 revision 1.13
65195 date: 1994/12/06 16:30:40;  author: yuan;  state: Exp;
65196 Localization
65197 ----------------------------
65198 revision 1.12
65199 date: 1994/11/27 23:15:06;  author: matt;  state: Exp;
65200 Made changes for new mprintf calling convention
65201 ----------------------------
65202 revision 1.11
65203 date: 1994/11/19 15:14:56;  author: mike;  state: Exp;
65204 remove unused code and data
65205 ----------------------------
65206 revision 1.10
65207 date: 1994/11/13 16:32:58;  author: matt;  state: Exp;
65208 Made angle averaging work right when yaw is near 0/360 degrees
65209 Made angle read code empty buffer and use last values
65210 ----------------------------
65211 revision 1.9
65212 date: 1994/11/12 13:47:37;  author: john;  state: Exp;
65213 Reenabled the victor screen mode setting code.
65214 ----------------------------
65215 revision 1.8
65216 date: 1994/11/11 18:33:26;  author: john;  state: Exp;
65217 Made victor not set screen mode.
65218 ----------------------------
65219 revision 1.7
65220 date: 1994/08/25 18:43:44;  author: john;  state: Exp;
65221 First revision of new control code.
65222 ----------------------------
65223 revision 1.6
65224 date: 1994/07/25 10:24:04;  author: john;  state: Exp;
65225 Victor stuff.
65226 ----------------------------
65227 revision 1.5
65228 date: 1994/07/22 17:53:32;  author: john;  state: Exp;
65229 Added better victormax support.
65230 ----------------------------
65231 revision 1.4
65232 date: 1994/07/21 21:31:31;  author: john;  state: Exp;
65233 First cheapo version of VictorMaxx tracking.
65234 ----------------------------
65235 revision 1.3
65236 date: 1994/07/20 21:30:34;  author: john;  state: Exp;
65237 Got screen mode change to work.
65238 ----------------------------
65239 revision 1.2
65240 date: 1994/07/20 21:04:31;  author: john;  state: Exp;
65241 Add VictorMax VR helment support.
65242 ----------------------------
65243 revision 1.1
65244 date: 1994/07/20 20:49:01;  author: john;  state: Exp;
65245 Initial revision
65246 =============================================================================
65247 RCS file: f:/miner/source/main/victor.h,v
65248 Working file: main/victor.h
65249 head: 2.0
65250 branch:
65251 description: Prototypes for the VictorMaxx VR helment.
65252 ----------------------------
65253 revision 2.0
65254 date: 1995/02/27 11:27:31;  author: john;  state: Exp;
65255 New version 2.0, which has no anonymous unions, builds with
65256 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65257 ----------------------------
65258 revision 1.4
65259 date: 1994/11/12 14:46:55;  author: john;  state: Exp;
65260 Added support for victor head tracking.
65261 ----------------------------
65262 revision 1.3
65263 date: 1994/07/21 21:31:12;  author: john;  state: Exp;
65264 First cheapo version of VictorMaxx tracking.
65265 ----------------------------
65266 revision 1.2
65267 date: 1994/07/20 21:04:32;  author: john;  state: Exp;
65268 Add VictorMax VR helment support.
65269 ----------------------------
65270 revision 1.1
65271 date: 1994/07/20 20:49:19;  author: john;  state: Exp;
65272 Initial revision
65273 =============================================================================
65274 RCS file: f:/miner/source/main/wall.c,v
65275 Working file: main/wall.c
65276 head: 2.1
65277 branch:
65278 description: Destroyable wall stuff
65279 ----------------------------
65280 revision 2.1
65281 date: 1995/03/21 14:39:04;  author: john;  state: Exp;
65282 Ifdef'd out the NETWORK code.
65283 ----------------------------
65284 revision 2.0
65285 date: 1995/02/27 11:28:32;  author: john;  state: Exp;
65286 New version 2.0, which has no anonymous unions, builds with
65287 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65288 ----------------------------
65289 revision 1.112
65290 date: 1995/02/22 13:53:07;  author: allender;  state: Exp;
65291 remove anonymous unions from object structure
65292 ----------------------------
65293 revision 1.111
65294 date: 1995/02/01 17:32:17;  author: adam;  state: Exp;
65295 Took out a bogus int3.
65296 ----------------------------
65297 revision 1.110
65298 date: 1995/02/01 17:20:24;  author: john;  state: Exp;
65299 Lintized.
65300 ----------------------------
65301 revision 1.109
65302 date: 1995/01/21 17:39:50;  author: matt;  state: Exp;
65303 Cleaned up laser/player hit wall confusions
65304 ----------------------------
65305 revision 1.108
65306 date: 1995/01/21 17:14:17;  author: rob;  state: Exp;
65307 Fixed bug in multiplayer door-butting.
65308 ----------------------------
65309 revision 1.107
65310 date: 1995/01/18 18:57:11;  author: rob;  state: Exp;
65311 Added new hostage door hooks.
65312 ----------------------------
65313 revision 1.106
65314 date: 1995/01/18 18:48:18;  author: allender;  state: Exp;
65315 removed #ifdef newdemo's.  Added function call to record a door that
65316 starts to open. This fixes the rewind problem
65317 ----------------------------
65318 revision 1.105
65319 date: 1995/01/16 11:55:39;  author: mike;  state: Exp;
65320 make control center (and robots whose id == your playernum) not able to open doors.
65321 ----------------------------
65322 revision 1.104
65323 date: 1994/12/11 23:07:21;  author: matt;  state: Exp;
65324 Fixed stuck objects & blastable walls
65325 ----------------------------
65326 revision 1.103
65327 date: 1994/12/10 16:44:34;  author: matt;  state: Exp;
65328 Added debugging code to track down door that turns into rock
65329 ----------------------------
65330 revision 1.102
65331 date: 1994/12/06 16:27:05;  author: matt;  state: Exp;
65332 Added debugging
65333 ----------------------------
65334 revision 1.101
65335 date: 1994/12/02 10:50:27;  author: yuan;  state: Exp;
65336 Localization
65337 ----------------------------
65338 revision 1.100
65339 date: 1994/11/30 19:41:22;  author: rob;  state: Exp;
65340 Put in a fix so that door opening sounds travel through the door.
65341 ----------------------------
65342 revision 1.99
65343 date: 1994/11/28 11:59:50;  author: yuan;  state: Exp;
65344 *** empty log message ***
65345 ----------------------------
65346 revision 1.98
65347 date: 1994/11/28 11:25:45;  author: matt;  state: Exp;
65348 Cleaned up key hud messages
65349 ----------------------------
65350 revision 1.97
65351 date: 1994/11/27 23:15:11;  author: matt;  state: Exp;
65352 Made changes for new mprintf calling convention
65353 ----------------------------
65354 revision 1.96
65355 date: 1994/11/19 15:18:29;  author: mike;  state: Exp;
65356 rip out unused code and data.
65357 ----------------------------
65358 revision 1.95
65359 date: 1994/11/17 14:57:12;  author: mike;  state: Exp;
65360 moved segment validation functions from editor to main.
65361 ----------------------------
65362 revision 1.94
65363 date: 1994/11/07 08:47:30;  author: john;  state: Exp;
65364 Made wall state record.
65365 ----------------------------
65366 revision 1.93
65367 date: 1994/11/04 16:06:37;  author: rob;  state: Exp;
65368 Fixed network damage of blastable walls.
65369 ----------------------------
65370 revision 1.92
65371 date: 1994/11/02 21:54:01;  author: matt;  state: Exp;
65372 Don't let objects with zero size keep door from shutting
65373 ----------------------------
65374 revision 1.91
65375 date: 1994/10/31 13:48:42;  author: rob;  state: Exp;
65376 Fixed bug in opening doors over network/modem.  Added a new message
65377 type to multi.c that communicates door openings across the net. 
65378 Changed includes in multi.c and wall.c to accomplish this.
65379 ----------------------------
65380 revision 1.90
65381 date: 1994/10/28 14:42:41;  author: john;  state: Exp;
65382 Added sound volumes to all sound calls.
65383 ----------------------------
65384 revision 1.89
65385 date: 1994/10/23 19:16:55;  author: matt;  state: Exp;
65386 Fixed bug with "no key" messages
65387 =============================================================================
65388 RCS file: f:/miner/source/main/wall.h,v
65389 Working file: main/wall.h
65390 head: 2.0
65391 branch:
65392 description: ----------------------------
65393 revision 2.0
65394 date: 1995/02/27 11:31:36;  author: john;  state: Exp;
65395 New version 2.0, which has no anonymous unions, builds with
65396 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65397 ----------------------------
65398 revision 1.47
65399 date: 1994/11/19 15:20:35;  author: mike;  state: Exp;
65400 rip out unused code and data
65401 ----------------------------
65402 revision 1.46
65403 date: 1994/10/25 15:40:12;  author: yuan;  state: Exp;
65404 MAX_WALLS pumped up
65405 ----------------------------
65406 revision 1.45
65407 date: 1994/10/23 19:17:07;  author: matt;  state: Exp;
65408 Fixed bug with "no key" messages
65409 ----------------------------
65410 revision 1.44
65411 date: 1994/10/18 15:38:03;  author: mike;  state: Exp;
65412 Define hidden walls.
65413 ----------------------------
65414 revision 1.43
65415 date: 1994/10/04 13:32:26;  author: adam;  state: Exp;
65416 commented out MAX_DOOR_ANIMS
65417 ----------------------------
65418 revision 1.42
65419 date: 1994/10/04 13:31:21;  author: adam;  state: Exp;
65420 upped MAX_WALL_ANIMS to 30
65421 ----------------------------
65422 revision 1.41
65423 date: 1994/09/29 00:42:30;  author: matt;  state: Exp;
65424 Made hitting a locked door play a sound
65425 ----------------------------
65426 revision 1.40
65427 date: 1994/09/27 15:42:41;  author: mike;  state: Exp;
65428 Prototype Wall_names.
65429 ----------------------------
65430 revision 1.39
65431 date: 1994/09/23 22:15:32;  author: matt;  state: Exp;
65432 Made doors not close on objects, made doors open again if shot while
65433 closing, and cleaned up walls/doors a bit.
65434 ----------------------------
65435 revision 1.38
65436 date: 1994/09/22 15:31:33;  author: matt;  state: Exp;
65437 Mucked with, and hopefully improved, exploding walls
65438 ----------------------------
65439 revision 1.37
65440 date: 1994/09/21 17:17:05;  author: mike;  state: Exp;
65441 Make objects stuck in doors go away when door opens.
65442 ----------------------------
65443 revision 1.36
65444 date: 1994/09/13 21:10:46;  author: matt;  state: Exp;
65445 Added wclips that use tmap1 instead of tmap2, saving lots of merging
65446 ----------------------------
65447 revision 1.35
65448 date: 1994/09/13 20:11:08;  author: yuan;  state: Exp;
65449 *** empty log message ***
65450 ----------------------------
65451 revision 1.34
65452 date: 1994/09/10 13:31:53;  author: matt;  state: Exp;
65453 Made exploding walls a type of blastable walls.
65454 Cleaned up blastable walls, making them tmap2 bitmaps.
65455 ----------------------------
65456 revision 1.33
65457 date: 1994/08/17 12:55:34;  author: matt;  state: Exp;
65458 Added external walls to wall_is_doorway
65459 ----------------------------
65460 revision 1.32
65461 date: 1994/08/15 17:54:35;  author: john;  state: Exp;
65462 *** empty log message ***
65463 ----------------------------
65464 revision 1.31
65465 date: 1994/08/15 17:46:56;  author: yuan;  state: Exp;
65466 Added external walls, fixed blastable walls.
65467 ----------------------------
65468 revision 1.30
65469 date: 1994/08/05 21:17:21;  author: matt;  state: Exp;
65470 Allow two doors to be linked together
65471 ----------------------------
65472 revision 1.29
65473 date: 1994/08/01 10:39:10;  author: matt;  state: Exp;
65474 Parenthesized parms to WID() macro
65475 ----------------------------
65476 revision 1.28
65477 date: 1994/07/20 17:35:03;  author: yuan;  state: Exp;
65478 Some minor bug fixes and new key gauges...
65479 ----------------------------
65480 revision 1.27
65481 date: 1994/07/19 14:32:03;  author: yuan;  state: Exp;
65482 Fixed keys bug... renumbered some constants.
65483 ----------------------------
65484 revision 1.26
65485 date: 1994/07/14 22:38:29;  author: matt;  state: Exp;
65486 Added exploding doors
65487 ----------------------------
65488 revision 1.25
65489 date: 1994/07/11 15:08:43;  author: yuan;  state: Exp;
65490 Wall anim file names stored in structure.
65491  
65492 =============================================================================
65493 RCS file: f:/miner/source/main/weapon.c,v
65494 Working file: main/weapon.c
65495 head: 2.1
65496 branch:
65497 description: Functions for weapons...
65498 ----------------------------
65499 revision 2.1
65500 date: 1995/03/21 14:38:43;  author: john;  state: Exp;
65501 Ifdef'd out the NETWORK code.
65502 ----------------------------
65503 revision 2.0
65504 date: 1995/02/27 11:27:25;  author: john;  state: Exp;
65505 New version 2.0, which has no anonymous unions, builds with
65506 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65507 ----------------------------
65508 revision 1.54
65509 date: 1995/02/15 15:21:48;  author: mike;  state: Exp;
65510 make smart missile select if mega missiles used up.
65511 ----------------------------
65512 revision 1.53
65513 date: 1995/02/12 02:12:30;  author: john;  state: Exp;
65514 Fixed bug with state restore making weapon beeps.
65515 ----------------------------
65516 revision 1.52
65517 date: 1995/02/09 20:42:15;  author: mike;  state: Exp;
65518 change weapon autoselect, always autoselect smart, mega.
65519 ----------------------------
65520 revision 1.51
65521 date: 1995/02/07 20:44:26;  author: mike;  state: Exp;
65522 autoselect mega, smart when you pick them up.
65523 ----------------------------
65524 revision 1.50
65525 date: 1995/02/07 13:32:25;  author: rob;  state: Exp;
65526 Added include of multi.h
65527 ----------------------------
65528 revision 1.49
65529 date: 1995/02/07 13:21:33;  author: yuan;  state: Exp;
65530 Fixed 2nd typo
65531 ----------------------------
65532 revision 1.48
65533 date: 1995/02/07 13:16:39;  author: yuan;  state: Exp;
65534 Fixed typo.
65535 ----------------------------
65536 revision 1.47
65537 date: 1995/02/07 12:53:12;  author: rob;  state: Exp;
65538 Added network sound prop. to weapon switch.
65539 ----------------------------
65540 revision 1.46
65541 date: 1995/02/06 15:53:17;  author: mike;  state: Exp;
65542 don't autoselect smart or mega missile when you pick it up.
65543 ----------------------------
65544 revision 1.45
65545 date: 1995/02/02 21:43:34;  author: mike;  state: Exp;
65546 make autoselection better.
65547 ----------------------------
65548 revision 1.44
65549 date: 1995/02/02 16:27:21;  author: mike;  state: Exp;
65550 make concussion missiles trade up.
65551 ----------------------------
65552 revision 1.43
65553 date: 1995/02/01 23:34:57;  author: adam;  state: Exp;
65554 messed with weapon change sounds
65555 ----------------------------
65556 revision 1.42
65557 date: 1995/02/01 17:12:47;  author: mike;  state: Exp;
65558 Make smart missile, mega missile not auto-select.
65559 ----------------------------
65560 revision 1.41
65561 date: 1995/02/01 15:50:54;  author: mike;  state: Exp;
65562 fix bogus weapon selection sound code.
65563 ----------------------------
65564 revision 1.40
65565 date: 1995/01/31 16:16:31;  author: mike;  state: Exp;
65566 Separate smart blobs for robot and player.
65567 ----------------------------
65568 revision 1.39
65569 date: 1995/01/30 21:12:11;  author: mike;  state: Exp;
65570 Use new weapon selection sounds, different for primary and secondary.
65571 ----------------------------
65572 revision 1.38
65573 date: 1995/01/29 13:46:52;  author: mike;  state: Exp;
65574 Don't auto-select fusion cannon when you run out of energy.
65575 ----------------------------
65576 revision 1.37
65577 date: 1995/01/20 11:11:13;  author: allender;  state: Exp;
65578 record weapon changes again.  (John somehow lost my 1.35 changes).
65579 ----------------------------
65580 revision 1.36
65581 date: 1995/01/19 17:00:46;  author: john;  state: Exp;
65582 Made save game work between levels.
65583 ----------------------------
65584 revision 1.34
65585 date: 1995/01/09 17:03:48;  author: mike;  state: Exp;
65586 fix autoselection of weapons.
65587 ----------------------------
65588 revision 1.33
65589 date: 1995/01/05 15:46:31;  author: john;  state: Exp;
65590 Made weapons not rearm when starting a saved game.
65591 ----------------------------
65592 revision 1.32
65593 date: 1995/01/03 12:34:23;  author: mike;  state: Exp;
65594 autoselect next lower weapon if run out of smart or mega missile.
65595 ----------------------------
65596 revision 1.31
65597 date: 1994/12/12 21:39:37;  author: matt;  state: Exp;
65598 Changed vulcan ammo: 10K max, 5K w/weapon, 1250 per powerup
65599 ----------------------------
65600 revision 1.30
65601 date: 1994/12/09 19:55:04;  author: matt;  state: Exp;
65602 Added weapon name in "not available in shareware" message
65603 ----------------------------
65604 revision 1.29
65605 date: 1994/12/06 13:50:24;  author: adam;  state: Exp;
65606 added shareware msg. when choosing 4 top weapons
65607 ----------------------------
65608 revision 1.28
65609 date: 1994/12/02 22:07:13;  author: mike;  state: Exp;
65610 if you gots 19 concussion missiles and you runs over 4, say you picks up 1, not 4, we do the math, see?
65611 ----------------------------
65612 revision 1.27
65613 date: 1994/12/02 20:06:24;  author: matt;  state: Exp;
65614 Made vulcan ammo print at approx 25 times actual
65615 ----------------------------
65616 revision 1.26
65617 date: 1994/12/02 15:05:03;  author: matt;  state: Exp;
65618 Fixed bogus weapon constants and arrays
65619 ----------------------------
65620 revision 1.25
65621 date: 1994/12/02 10:50:34;  author: yuan;  state: Exp;
65622 Localization
65623 ----------------------------
65624 revision 1.24
65625 date: 1994/11/29 15:48:28;  author: matt;  state: Exp;
65626 selecting weapon now makes sound
65627 ----------------------------
65628 revision 1.23
65629 date: 1994/11/28 11:26:58;  author: matt;  state: Exp;
65630 Cleaned up hud message printing for picking up weapons
65631 ----------------------------
65632 revision 1.22
65633 date: 1994/11/27 23:13:39;  author: matt;  state: Exp;
65634 Made changes for new mprintf calling convention
65635 ----------------------------
65636 revision 1.21
65637 date: 1994/11/12 16:38:34;  author: mike;  state: Exp;
65638 clean up default ammo stuff.
65639 ----------------------------
65640 revision 1.20
65641 date: 1994/11/07 17:41:18;  author: mike;  state: Exp;
65642 messages for when you try to fire a weapon you don't have or don't have ammo for.
65643 ----------------------------
65644 revision 1.19
65645 date: 1994/10/21 20:40:05;  author: mike;  state: Exp;
65646 fix double vulcan ammo.
65647 ----------------------------
65648 revision 1.18
65649 date: 1994/10/20 09:49:05;  author: mike;  state: Exp;
65650 kill messages no one liked...*sniff* *sniff*
65651 ----------------------------
65652 revision 1.17
65653 date: 1994/10/19 11:17:07;  author: mike;  state: Exp;
65654 Limit amount of player ammo.
65655 ----------------------------
65656 revision 1.16
65657 date: 1994/10/12 08:04:18;  author: mike;  state: Exp;
65658 Fix proximity/homing confusion.
65659 ----------------------------
65660 revision 1.15
65661 date: 1994/10/11 18:27:58;  author: matt;  state: Exp;
65662 Changed auto selection of secondary weapons
65663 ----------------------------
65664 revision 1.14
65665 date: 1994/10/08 23:37:54;  author: matt;  state: Exp;
65666 Don't pick up weapons you already have; also fixed auto_select bug
65667 for seconary weapons
65668 ----------------------------
65669 revision 1.13
65670 date: 1994/10/08 14:55:47;  author: matt;  state: Exp;
65671 Fixed bug that selected vulcan cannon when picked up ammo, even though
65672 you didn't have the weapon.
65673 ----------------------------
65674 revision 1.12
65675 date: 1994/10/08 12:50:32;  author: matt;  state: Exp;
65676 Fixed bug that let you select weapons you don't have
65677 ----------------------------
65678 revision 1.11
65679 date: 1994/10/07 23:37:56;  author: matt;  state: Exp;
65680 Made weapons select when pick up better one
65681 ----------------------------
65682 revision 1.10
65683 date: 1994/10/07 16:02:08;  author: matt;  state: Exp;
65684 Fixed problem with weapon auto-select
65685 ----------------------------
65686 revision 1.9
65687 date: 1994/10/05 17:00:20;  author: matt;  state: Exp;
65688 Made player_has_weapon() public and moved constants to header file
65689 ----------------------------
65690 revision 1.8
65691 date: 1994/09/26 11:27:13;  author: mike;  state: Exp;
65692 Fix auto selection of weapon when you run out of ammo.
65693 ----------------------------
65694 revision 1.7
65695 date: 1994/09/13 16:40:45;  author: mike;  state: Exp;
65696 Add rearm delay and missile firing delay.
65697 ----------------------------
65698 revision 1.6
65699 date: 1994/09/13 14:43:12;  author: matt;  state: Exp;
65700 Added cockpit weapon displays
65701 ----------------------------
65702 revision 1.5
65703 date: 1994/09/03 15:23:06;  author: mike;  state: Exp;
65704 Auto select next weaker weapon when one runs out, clean up code.
65705 ----------------------------
65706 revision 1.4
65707 date: 1994/09/02 16:38:19;  author: mike;  state: Exp;
65708 Eliminate a pile of arrays, associate weapon data with Weapon_info.
65709 ----------------------------
65710 revision 1.3
65711 date: 1994/09/02 11:57:10;  author: mike;  state: Exp;
65712 Add a bunch of stuff, I forget what.
65713 ----------------------------
65714 revision 1.2
65715 date: 1994/06/03 16:26:32;  author: john;  state: Exp;
65716 Initial version.
65717 ----------------------------
65718 revision 1.1
65719 date: 1994/06/03 14:40:43;  author: john;  state: Exp;
65720 Initial revision
65721 =============================================================================
65722 RCS file: f:/miner/source/main/weapon.h,v
65723 Working file: main/weapon.h
65724 head: 2.0
65725 branch:
65726 description: Protypes for weapon stuff.
65727 ----------------------------
65728 revision 2.0
65729 date: 1995/02/27 11:31:10;  author: john;  state: Exp;
65730 New version 2.0, which has no anonymous unions, builds with
65731 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
65732 ----------------------------
65733 revision 1.44
65734 date: 1995/01/30 17:14:18;  author: mike;  state: Exp;
65735 halve rate of vulcan ammo consumption.
65736 ----------------------------
65737 revision 1.43
65738 date: 1995/01/19 17:45:04;  author: mike;  state: Exp;
65739 damage_force removed, that information coming from strength field.
65740 ----------------------------
65741 revision 1.42
65742 date: 1995/01/05 15:46:11;  author: john;  state: Exp;
65743 Made weapons not rearm when starting a saved game.
65744 ----------------------------
65745 revision 1.41
65746 date: 1995/01/04 12:20:27;  author: john;  state: Exp;
65747 Declearations to work better with game state save.
65748 ----------------------------
65749 revision 1.40
65750 date: 1994/12/13 12:54:16;  author: mike;  state: Exp;
65751 fix proximity, homing flags, backwards!
65752 ----------------------------
65753 revision 1.39
65754 date: 1994/12/11 16:17:57;  author: mike;  state: Exp;
65755 change default weapon life so shots from ctrlcen on level 6 won't evaporate before they hit you.
65756 ----------------------------
65757 revision 1.38
65758 date: 1994/12/09 19:55:26;  author: matt;  state: Exp;
65759 Added weapon name in "not available in shareware" message
65760 ----------------------------
65761 revision 1.37
65762 date: 1994/12/07 12:55:27;  author: mike;  state: Exp;
65763 tweak vulcan amounts.
65764 ----------------------------
65765 revision 1.36
65766 date: 1994/12/03 19:03:56;  author: matt;  state: Exp;
65767 Fixed vulcan ammo HUD message
65768 ----------------------------
65769 revision 1.35
65770 date: 1994/12/02 15:05:02;  author: matt;  state: Exp;
65771 Fixed bogus weapon constants and arrays
65772 ----------------------------
65773 revision 1.34
65774 date: 1994/11/29 14:26:05;  author: john;  state: Exp;
65775 Again.
65776 ----------------------------
65777 revision 1.33
65778 date: 1994/11/29 14:13:47;  author: adam;  state: Exp;
65779 Changed the byte flash sound to short.
65780 ----------------------------
65781 revision 1.32
65782 date: 1994/11/12 16:36:55;  author: mike;  state: Exp;
65783 default ammo stuff.
65784 ----------------------------
65785 revision 1.31
65786 date: 1994/10/21 10:55:24;  author: adam;  state: Exp;
65787 upped MAX_WEAPON_TYPES to 30
65788 ----------------------------
65789 revision 1.30
65790 date: 1994/10/19 11:16:37;  author: mike;  state: Exp;
65791 Limit ammo amounts.
65792 ----------------------------
65793 revision 1.29
65794 date: 1994/10/12 08:05:04;  author: mike;  state: Exp;
65795 Clean up homing/proximity mess.
65796 ----------------------------
65797 revision 1.28
65798 date: 1994/10/08 23:37:53;  author: matt;  state: Exp;
65799 Don't pick up weapons you already have; also fixed auto_select bug
65800 for seconary weapons
65801 ----------------------------
65802 revision 1.27
65803 date: 1994/10/07 23:37:56;  author: matt;  state: Exp;
65804 Made weapons select when pick up better one
65805 ----------------------------
65806 revision 1.26
65807 date: 1994/10/07 16:02:17;  author: matt;  state: Exp;
65808 Fixed problem with weapon auto-select
65809 ----------------------------
65810 revision 1.25
65811 date: 1994/10/05 17:07:44;  author: matt;  state: Exp;
65812 Made player_has_weapon() public and moved constants to header file
65813 ----------------------------
65814 revision 1.24
65815 date: 1994/09/30 21:50:49;  author: mike;  state: Exp;
65816 Add homing_flag and 3 dummy bytes to weapon_info.
65817 ----------------------------
65818 revision 1.23
65819 date: 1994/09/30 13:47:41;  author: mike;  state: Exp;
65820 Make speed and strength be difficulty level based.
65821 ----------------------------
65822 revision 1.22
65823 date: 1994/09/20 16:10:13;  author: mike;  state: Exp;
65824 Prototype Primary_weapon_names and Secondary_weapon_names.
65825 ----------------------------
65826 revision 1.21
65827 date: 1994/09/20 12:17:21;  author: adam;  state: Exp;
65828 upped weapon types
65829 ----------------------------
65830 revision 1.20
65831 date: 1994/09/13 16:40:29;  author: mike;  state: Exp;
65832 Define REARM_TIME -- time it takes until you can fire a newly armed weapon.
65833 ----------------------------
65834 revision 1.19
65835 date: 1994/09/13 14:43:03;  author: matt;  state: Exp;
65836 Added cockpit weapon displays
65837 ----------------------------
65838 revision 1.18
65839 date: 1994/09/11 15:50:34;  author: mike;  state: Exp;
65840 Add matter and bounce to weapon_info.
65841 ----------------------------
65842 revision 1.17
65843 date: 1994/09/10 17:32:17;  author: mike;  state: Exp;
65844 Add thrust to weapon_info.
65845 ----------------------------
65846 revision 1.16
65847 date: 1994/09/09 20:04:54;  author: mike;  state: Exp;
65848 Add vclips for weapons.
65849 ----------------------------
65850 revision 1.15
65851 date: 1994/09/07 15:59:14;  author: mike;  state: Exp;
65852 Add default lifetimes to weapons, destroyable, lifetime, damage_radius, damage_force fields to weapons.
65853 ----------------------------
65854 revision 1.14
65855 date: 1994/09/03 15:18:06;  author: mike;  state: Exp;
65856 Add prototype for auto_select_weapon.
65857 ----------------------------
65858 revision 1.13
65859 date: 1994/09/02 16:38:33;  author: mike;  state: Exp;
65860 Move data from global arrays to Weapon_info.
65861 ----------------------------
65862 revision 1.12
65863 date: 1994/09/02 11:54:59;  author: mike;  state: Exp;
65864 Add a whole slew of constants for the whole slew of new weapons.
65865 ----------------------------
65866 revision 1.11
65867 date: 1994/08/23 16:39:15;  author: mike;  state: Exp;
65868 Add light to weapon struct
65869 =============================================================================
65870 RCS file: f:/miner/source/main/editor/centers.c,v
65871 Working file: main/editor/centers.c
65872 head: 2.0
65873 branch:
65874 description: Dialog box stuff for control centers, material centers, etc.
65875 ----------------------------
65876 revision 2.0
65877 date: 1995/02/27 11:35:30;  author: john;  state: Exp;
65878 Version 2.0! No anonymous unions, Watcom 10.0, with no need
65879 for bitmaps.tbl.
65880 ----------------------------
65881 revision 1.9
65882 date: 1994/11/27 23:17:28;  author: matt;  state: Exp;
65883 Made changes for new mprintf calling convention
65884 ----------------------------
65885 revision 1.8
65886 date: 1994/10/05 22:13:46;  author: mike;  state: Exp;
65887 Clean up Centers dialog.
65888 ----------------------------
65889 revision 1.7
65890 date: 1994/10/03 23:39:55;  author: mike;  state: Exp;
65891 Call fuelcen_activate instead of fuelcen_create.
65892 ----------------------------
65893 revision 1.6
65894 date: 1994/08/02 12:16:35;  author: mike;  state: Exp;
65895 Change materialization center functionality.
65896 ----------------------------
65897 revision 1.5
65898 date: 1994/08/01 11:04:42;  author: yuan;  state: Exp;
65899 New materialization centers.
65900 ----------------------------
65901 revision 1.4
65902 date: 1994/07/22 17:19:10;  author: yuan;  state: Exp;
65903 Working on dialog box for refuel/repair/material/control centers.
65904 ----------------------------
65905 revision 1.3
65906 date: 1994/07/21 19:35:09;  author: yuan;  state: Exp;
65907 Fixed #include problem
65908 ----------------------------
65909 revision 1.2
65910 date: 1994/07/21 19:02:41;  author: yuan;  state: Exp;
65911 *** empty log message ***
65912 ----------------------------
65913 revision 1.1
65914 date: 1994/07/18 16:00:54;  author: yuan;  state: Exp;
65915 Initial revision
65916 =============================================================================
65917 RCS file: f:/miner/source/main/editor/centers.h,v
65918 Working file: main/editor/centers.h
65919 head: 2.0
65920 branch:
65921 description: Center header
65922 ----------------------------
65923 revision 2.0
65924 date: 1995/02/27 11:35:02;  author: john;  state: Exp;
65925 Version 2.0! No anonymous unions, Watcom 10.0, with no need
65926 for bitmaps.tbl.
65927 ----------------------------
65928 revision 1.3
65929 date: 1994/08/02 12:16:27;  author: mike;  state: Exp;
65930 Prototype Center_names.
65931 ----------------------------
65932 revision 1.2
65933 date: 1994/07/21 19:35:20;  author: yuan;  state: Exp;
65934 Fixed #include problem
65935 ----------------------------
65936 revision 1.1
65937 date: 1994/07/21 19:11:36;  author: yuan;  state: Exp;
65938 Initial revision
65939 =============================================================================
65940 RCS file: f:/miner/source/main/editor/curves.c,v
65941 Working file: main/editor/curves.c
65942 head: 2.0
65943 branch:
65944 description: curve generation stuff
65945 =============================================================================
65946 RCS file: f:/miner/source/main/editor/dcflib.h,v
65947 Working file: main/editor/dcflib.h
65948 head: 2.0
65949 branch:
65950 description: temporary demo version for mine.c
65951 ----------------------------
65952 revision 2.0
65953 date: 1995/02/27 11:34:25;  author: john;  state: Exp;
65954 Version 2.0! No anonymous unions, Watcom 10.0, with no need
65955 for bitmaps.tbl.
65956 ----------------------------
65957 revision 1.3
65958 date: 1994/02/14 20:14:27;  author: john;  state: Exp;
65959 First version working with new cfile stuff.
65960 ----------------------------
65961 revision 1.2
65962 date: 1994/02/08 13:38:21;  author: yuan;  state: Exp;
65963 mine loading functions converted.
65964 ----------------------------
65965 revision 1.1
65966 date: 1994/02/08 13:23:14;  author: yuan;  state: Exp;
65967 Initial revision
65968 =============================================================================
65969 RCS file: f:/miner/source/main/editor/editor.h,v
65970 Working file: main/editor/editor.h
65971 head: 2.0
65972 branch:
65973 description: Header for editor functions, data strcutures, etc.
65974 ----------------------------
65975 revision 2.0
65976 date: 1995/02/27 11:34:47;  author: john;  state: Exp;
65977 Version 2.0! No anonymous unions, Watcom 10.0, with no need
65978 for bitmaps.tbl.
65979 ----------------------------
65980 revision 1.113
65981 date: 1994/11/17 14:47:55;  author: mike;  state: Exp;
65982 validation functions moved from editor to game.
65983 ----------------------------
65984 revision 1.112
65985 date: 1994/08/03 10:30:51;  author: mike;  state: Exp;
65986 Prototype Stretch_scale_x and Stretch_scale_y.
65987 ----------------------------
65988 revision 1.111
65989 date: 1994/08/02 14:18:23;  author: mike;  state: Exp;
65990 Clean up dialog boxes.
65991 ----------------------------
65992 revision 1.110
65993 date: 1994/07/28 16:59:45;  author: mike;  state: Exp;
65994 objects containing objects.
65995 ----------------------------
65996 revision 1.109
65997 date: 1994/07/21 12:45:18;  author: mike;  state: Exp;
65998 Add Editor_time_of_day, prototype render_3d_in_big_window, move_object_to_mouse_click.
65999 ----------------------------
66000 revision 1.108
66001 date: 1994/07/20 16:43:33;  author: mike;  state: Exp;
66002 Move a bunch of things here so eobject can access variables in med
66003 ----------------------------
66004 revision 1.107
66005 date: 1994/07/06 16:36:43;  author: mike;  state: Exp;
66006 Prototype draw_world_from_game.
66007 ----------------------------
66008 revision 1.106
66009 date: 1994/06/24 17:04:26;  author: john;  state: Exp;
66010 *** empty log message ***
66011 ----------------------------
66012 revision 1.105
66013 date: 1994/06/08 18:13:53;  author: mike;  state: Exp;
66014 Add prototype for med_validate_segment_all
66015 ----------------------------
66016 revision 1.104
66017 date: 1994/05/23 14:47:59;  author: mike;  state: Exp;
66018 Make current segment be add segment.
66019 ----------------------------
66020 revision 1.103
66021 date: 1994/05/19 23:34:46;  author: mike;  state: Exp;
66022 Change VMAG to be compatible with new uv coordinates in range 0..1.0.
66023 ----------------------------
66024 revision 1.102
66025 date: 1994/05/19 12:10:12;  author: matt;  state: Exp;
66026 Use new vecmat macros and globals
66027 ----------------------------
66028 revision 1.101
66029 date: 1994/05/14 18:00:34;  author: matt;  state: Exp;
66030 Got rid of externs in source (non-header) files
66031 ----------------------------
66032 revision 1.100
66033 date: 1994/05/14 17:18:12;  author: matt;  state: Exp;
66034 Got rid of externs in source (non-header) files
66035 ----------------------------
66036 revision 1.99
66037 date: 1994/05/09 23:33:20;  author: mike;  state: Exp;
66038 Current_group, make med_combine_duplicate_vertices take vlp parameter.
66039 Change med_find_closest_threshold_segment_side take threshold as a parameter.
66040 ----------------------------
66041 revision 1.98
66042 date: 1994/05/06 14:39:46;  author: mike;  state: Exp;
66043 Prototype place_object.
66044 ----------------------------
66045 revision 1.97
66046 date: 1994/05/04 19:16:12;  author: mike;  state: Exp;
66047 Add prototype for Degenerate_segment_found.
66048 ----------------------------
66049 revision 1.96
66050 date: 1994/05/04 13:07:34;  author: matt;  state: Exp;
66051 Moved a bunch of color constants to meddraw.c, which was the only file
66052 that used them.
66053 ----------------------------
66054 revision 1.95
66055 date: 1994/05/03 11:06:08;  author: mike;  state: Exp;
66056 Change VMAG, add constants for SEGSIZEMODE_FREE, etc.
66057 ----------------------------
66058 revision 1.94
66059 date: 1994/05/02 17:56:29;  author: yuan;  state: Exp;
66060 Changed undo_status into array rather than malloced pointers.
66061 ----------------------------
66062 revision 1.93
66063 date: 1994/04/19 18:29:37;  author: matt;  state: Exp;
66064 In wire-frame editor window, draw objects as "spheres"
66065 ----------------------------
66066 revision 1.92
66067 date: 1994/04/13 13:25:12;  author: mike;  state: Exp;
66068 Add constant definitions for each keypad.
66069 ----------------------------
66070 revision 1.91
66071 date: 1994/04/01 11:17:08;  author: yuan;  state: Exp;
66072 Added objects to objpage. Added buttons for easier tmap scrolling.
66073 Objects are selected fully from objpage and add object menu or pad.
66074 ----------------------------
66075 revision 1.90
66076 date: 1994/03/21 16:54:16;  author: yuan;  state: Exp;
66077 Fixed bogus group generated by segment rotation.
66078 ----------------------------
66079 revision 1.89
66080 date: 1994/02/16 13:49:07;  author: mike;  state: Exp;
66081 enable editor to compile out.
66082 ----------------------------
66083 revision 1.88
66084 date: 1994/02/10 16:04:57;  author: mike;  state: Exp;
66085 separate editor based on EDITOR flag.
66086 ----------------------------
66087 revision 1.87
66088 date: 1994/02/08 12:41:29;  author: yuan;  state: Exp;
66089 Added med_load_game function prototype
66090 ----------------------------
66091 revision 1.86
66092 date: 1994/01/14 12:16:04;  author: yuan;  state: Exp;
66093 Fixed function prototype for med_find_closest_threshold_segment_side.
66094 ----------------------------
66095 revision 1.85
66096 date: 1994/01/14 11:58:55;  author: yuan;  state: Exp;
66097 New function in build menu. 
66098 "Punch" through walls to force a joint formation with
66099 closest segment:side, if the closest segment:side allows
66100 a connection.
66101 ----------------------------
66102 revision 1.84
66103 date: 1994/01/06 12:57:47;  author: mike;  state: Exp;
66104 Fix bug in assigning texture maps and uv coordinates to removable wall.
66105 ----------------------------
66106 revision 1.83
66107 date: 1994/01/05 17:51:04;  author: mike;  state: Exp;
66108 Add prototypes for create_removable_wall and remove_removable_wall
66109 ----------------------------
66110 revision 1.82
66111 date: 1994/01/05 09:59:09;  author: yuan;  state: Exp;
66112 Added med_load_pmine function prototype
66113 ----------------------------
66114 revision 1.81
66115 date: 1993/12/16 14:00:46;  author: mike;  state: Exp;
66116 Add Curvert and Curedge.
66117 ----------------------------
66118 revision 1.80
66119 date: 1993/12/14 18:33:07;  author: yuan;  state: Exp;
66120 Added prototype for timed autosave.
66121 ----------------------------
66122 revision 1.79
66123 date: 1993/12/10 14:48:48;  author: mike;  state: Exp;
66124 Kill orthogonal views.
66125 ----------------------------
66126 revision 1.78
66127 date: 1993/12/09 16:27:16;  author: yuan;  state: Exp;
66128 Added toggle for autosave
66129 ----------------------------
66130 revision 1.77
66131 date: 1993/12/09 14:02:52;  author: mike;  state: Exp;
66132 Add prototype for med_combine_duplicate_vertices.
66133 ----------------------------
66134 revision 1.76
66135 date: 1993/12/08 10:59:52;  author: mike;  state: Exp;
66136 Add DisplayCurrentRobotType and Cur_object_index.
66137 ----------------------------
66138 revision 1.75
66139 date: 1993/12/06 18:43:49;  author: matt;  state: Exp;
66140 Changed object loading & handling
66141 ----------------------------
66142 revision 1.74
66143 date: 1993/12/05 22:50:49;  author: matt;  state: Exp;
66144 Reworked include files in an attempt to cut down on build times
66145 ----------------------------
66146 revision 1.73
66147 date: 1993/12/02 17:51:31;  author: john;  state: Exp;
66148 Changed my variable to match Mike's
66149 ----------------------------
66150 revision 1.72
66151 date: 1993/12/02 17:36:26;  author: john;  state: Exp;
66152 added cur_obj_type
66153 ----------------------------
66154 revision 1.71
66155 date: 1993/11/30 17:06:33;  author: mike;  state: Exp;
66156 Add prototype for med_set_vertex.
66157 ----------------------------
66158 revision 1.70
66159 date: 1993/11/29 19:47:11;  author: matt;  state: Exp;
66160 Changed how coordinate axes draw routine gets vertices
66161 Added functions alloc_vert() & free_vert()
66162 =============================================================================
66163 RCS file: f:/miner/source/main/editor/eglobal.c,v
66164 Working file: main/editor/eglobal.c
66165 head: 2.0
66166 branch:
66167 description: Globals for editor.
66168 ----------------------------
66169 revision 2.0
66170 date: 1995/02/27 11:35:52;  author: john;  state: Exp;
66171 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66172 for bitmaps.tbl.
66173 ----------------------------
66174 revision 1.35
66175 date: 1994/05/23 14:48:15;  author: mike;  state: Exp;
66176 make current segment be add segment.
66177 ----------------------------
66178 revision 1.34
66179 date: 1994/05/19 12:10:30;  author: matt;  state: Exp;
66180 Use new vecmat macros and globals
66181 ----------------------------
66182 revision 1.33
66183 date: 1994/05/04 19:16:27;  author: mike;  state: Exp;
66184 Add Degenerate_segment_found.
66185 ----------------------------
66186 revision 1.32
66187 date: 1994/05/03 11:02:57;  author: mike;  state: Exp;
66188 Add SegSizeMode.
66189 ----------------------------
66190 revision 1.31
66191 date: 1994/02/16 13:49:12;  author: mike;  state: Exp;
66192 enable editor to compile out.
66193 ----------------------------
66194 revision 1.30
66195 date: 1994/02/10 15:36:35;  author: matt;  state: Exp;
66196 Various changes to make editor compile out.
66197 ----------------------------
66198 revision 1.29
66199 date: 1993/12/16 14:00:33;  author: mike;  state: Exp;
66200 Add Curvert and Curedge.
66201 ----------------------------
66202 revision 1.28
66203 date: 1993/12/10 14:48:28;  author: mike;  state: Exp;
66204 Kill orthogonal views.
66205 ----------------------------
66206 revision 1.27
66207 date: 1993/12/08 10:58:49;  author: mike;  state: Exp;
66208 Add Cur_object_index.
66209 ----------------------------
66210 revision 1.26
66211 date: 1993/12/06 18:45:45;  author: matt;  state: Exp;
66212 Changed object loading & handling
66213 ----------------------------
66214 revision 1.25
66215 date: 1993/12/02 17:51:49;  author: john;  state: Exp;
66216 Changed my variable to match Mike's.
66217 ----------------------------
66218 revision 1.24
66219 date: 1993/12/02 17:36:13;  author: john;  state: Exp;
66220 Added cur_obj_type
66221 ----------------------------
66222 revision 1.23
66223 date: 1993/11/24 14:41:16;  author: mike;  state: Exp;
66224 Add variable Num_tilings.
66225 ----------------------------
66226 revision 1.22
66227 date: 1993/11/12 16:40:55;  author: mike;  state: Exp;
66228 Add Identity_matrix, which is an identity matrix.
66229 ----------------------------
66230 revision 1.21
66231 date: 1993/11/02 13:08:17;  author: mike;  state: Exp;
66232 Add N_warning_segs and Warning_segs
66233 ----------------------------
66234 revision 1.20
66235 date: 1993/11/02 10:31:53;  author: mike;  state: Exp;
66236 Document some variables,
66237 Add Been_visited, removing it from editor.c
66238 Add Selected_segs[] and N_selected_segs.
66239 ----------------------------
66240 revision 1.19
66241 date: 1993/10/31 18:07:48;  author: mike;  state: Exp;
66242 Add variable Lock_view_to_cursegp.
66243 ----------------------------
66244 revision 1.18
66245 date: 1993/10/19 20:54:51;  author: matt;  state: Exp;
66246 Changed/cleaned up window updates
66247 ----------------------------
66248 revision 1.17
66249 date: 1993/10/18 18:35:43;  author: mike;  state: Exp;
66250 Move Highest_vertex_index and Highest_segment_index here because they need
66251 to be globals.
66252 ----------------------------
66253 revision 1.16
66254 date: 1993/10/15 13:10:00;  author: mike;  state: Exp;
66255 Move globals from editor.c to eglobal.c
66256 ----------------------------
66257 revision 1.15
66258 date: 1993/10/14 18:08:55;  author: mike;  state: Exp;
66259 Change use of CONNECTIVITY to MAX_SIDES_PER_SEGMENT
66260 ----------------------------
66261 revision 1.14
66262 date: 1993/10/13 11:11:38;  author: matt;  state: Exp;
66263 Made coordinate axes off by default
66264 ----------------------------
66265 revision 1.13
66266 date: 1993/10/12 09:59:27;  author: mike;  state: Exp;
66267 Remove definition of Side_to_verts, which belongs in the game, not in the editor.
66268 ----------------------------
66269 revision 1.12
66270 date: 1993/10/09 15:48:07;  author: mike;  state: Exp;
66271 Change type of Vertex_active and Side_to_verts from char to byte
66272 Move N_found_segs and Found_segs here from render.c
66273 Add Show_axes_flag.
66274 ----------------------------
66275 revision 1.11
66276 date: 1993/10/06 11:29:58;  author: mike;  state: Exp;
66277 Add prototype for Side_opposite
66278 ----------------------------
66279 revision 1.10
66280 date: 1993/10/05 17:00:17;  author: mike;  state: Exp;
66281 Add Vertex_active.
66282 ----------------------------
66283 revision 1.9
66284 date: 1993/10/04 17:18:16;  author: mike;  state: Exp;
66285 Add variables Markedsegp, Markedside
66286 ----------------------------
66287 revision 1.8
66288 date: 1993/10/02 18:18:02;  author: mike;  state: Exp;
66289 Added Draw_all_segments.  If !0, then all segments are drawn in draw_world.  If not set, then only those segments which
66290 are connected to the first segment are drawn.
66291 ----------------------------
66292 revision 1.7
66293 date: 1993/10/01 10:03:15;  author: mike;  state: Exp;
66294 Fix ordering of vertices on front face: Used to be 0,1,2,3 made it 3,2,1,0
66295 ----------------------------
66296 revision 1.6
66297 date: 1993/09/27 16:04:28;  author: mike;  state: Exp;
66298 Add Side_to_verts to replace _verts, which was local to segment.c
66299 ----------------------------
66300 revision 1.5
66301 date: 1993/09/27 15:20:52;  author: mike;  state: Exp;
66302 Add Curside, which is current side, so we can make a certain side active.
66303 ----------------------------
66304 revision 1.4
66305 date: 1993/09/23 15:01:13;  author: mike;  state: Exp;
66306 Remove game specific variables, put in mglobal.c
66307 ----------------------------
66308 revision 1.3
66309 date: 1993/09/22 10:52:17;  author: mike;  state: Exp;
66310 Add global New_segment
66311 ----------------------------
66312 revision 1.2
66313 date: 1993/09/22 09:41:21;  author: mike;  state: Exp;
66314 Change constand and variable names to conform to coding standards.
66315 ----------------------------
66316 revision 1.1
66317 date: 1993/09/20 17:06:09;  author: mike;  state: Exp;
66318 Initial revision
66319 =============================================================================
66320 RCS file: f:/miner/source/main/editor/ehostage.c,v
66321 Working file: main/editor/ehostage.c
66322 head: 2.0
66323 branch:
66324 description: Routines for placing hostages, etc...
66325 ----------------------------
66326 revision 2.0
66327 date: 1995/02/27 11:35:45;  author: john;  state: Exp;
66328 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66329 for bitmaps.tbl.
66330 ----------------------------
66331 revision 1.17
66332 date: 1995/01/14 19:18:05;  author: john;  state: Exp;
66333 First version of object paging.
66334 ----------------------------
66335 revision 1.16
66336 date: 1994/11/20 14:11:41;  author: matt;  state: Exp;
66337 Show object number in hostage window
66338 ----------------------------
66339 revision 1.15
66340 date: 1994/11/19 19:55:46;  author: matt;  state: Exp;
66341 Added code to full support different hostage head clip & message for
66342 each hostage.
66343 ----------------------------
66344 revision 1.14
66345 date: 1994/10/28 15:03:27;  author: john;  state: Exp;
66346 Made digi_play_sample use volume.
66347 ----------------------------
66348 revision 1.13
66349 date: 1994/10/23 02:11:39;  author: matt;  state: Exp;
66350 Got rid of obsolete hostage_info stuff
66351 ----------------------------
66352 revision 1.12
66353 date: 1994/10/04 13:15:44;  author: john;  state: Exp;
66354 Changed PLAY_SOUND to digi_play_sample.
66355 ----------------------------
66356 revision 1.11
66357 date: 1994/08/02 14:17:28;  author: mike;  state: Exp;
66358 Clean up dialog boxes.
66359 ----------------------------
66360 revision 1.10
66361 date: 1994/07/22 17:19:17;  author: yuan;  state: Exp;
66362 Working on dialog box for refuel/repair/material/control centers.
66363 ----------------------------
66364 revision 1.9
66365 date: 1994/07/06 15:22:34;  author: john;  state: Exp;
66366 Added new sound.
66367 ----------------------------
66368 revision 1.8
66369 date: 1994/07/06 14:26:07;  author: john;  state: Exp;
66370 Added vclip.
66371 ----------------------------
66372 revision 1.7
66373 date: 1994/07/06 13:25:52;  author: john;  state: Exp;
66374 Added compress hostages functions.
66375 ----------------------------
66376 revision 1.6
66377 date: 1994/07/06 12:52:27;  author: john;  state: Exp;
66378 Fixed warnings.
66379 ----------------------------
66380 revision 1.5
66381 date: 1994/07/06 12:43:04;  author: john;  state: Exp;
66382 Made generic messages for hostages.
66383 ----------------------------
66384 revision 1.4
66385 date: 1994/07/06 11:49:01;  author: john;  state: Exp;
66386 Made adding hostage update current object.
66387 ----------------------------
66388 revision 1.3
66389 date: 1994/07/06 10:56:00;  author: john;  state: Exp;
66390 New structures for hostages.
66391 ----------------------------
66392 revision 1.2
66393 date: 1994/07/01 17:57:13;  author: john;  state: Exp;
66394 First version of not-working hostage system
66395 ----------------------------
66396 revision 1.1
66397 date: 1994/07/01 14:21:44;  author: john;  state: Exp;
66398 Initial revision
66399 =============================================================================
66400 RCS file: f:/miner/source/main/editor/ehostage.h,v
66401 Working file: main/editor/ehostage.h
66402 head: 2.0
66403 branch:
66404 description: .
66405 ----------------------------
66406 revision 2.0
66407 date: 1995/02/27 11:35:13;  author: john;  state: Exp;
66408 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66409 for bitmaps.tbl.
66410 ----------------------------
66411 revision 1.2
66412 date: 1994/07/01 17:57:14;  author: john;  state: Exp;
66413 First version of not-working hostage system
66414 ----------------------------
66415 revision 1.1
66416 date: 1994/07/01 14:24:41;  author: john;  state: Exp;
66417 Initial revision
66418 =============================================================================
66419 RCS file: f:/miner/source/main/editor/einit.c,v
66420 Working file: main/editor/einit.c
66421 head: 2.0
66422 branch:
66423 description: Initialization routines for editor.
66424 ----------------------------
66425 revision 2.0
66426 date: 1995/02/27 11:34:24;  author: john;  state: Exp;
66427 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66428 for bitmaps.tbl.
66429 ----------------------------
66430 revision 1.9
66431 date: 1993/09/23 15:01:38;  author: mike;  state: Exp;
66432 *** empty log message ***
66433 ----------------------------
66434 revision 1.8
66435 date: 1993/09/22 10:52:36;  author: mike;  state: Exp;
66436 Move create_new_mine to segment.c, thereby making this a rather unimportant file.
66437 ----------------------------
66438 revision 1.7
66439 date: 1993/09/22 09:41:33;  author: mike;  state: Exp;
66440 Change constant and variable names to conform to coding standards.
66441 ----------------------------
66442 revision 1.6
66443 date: 1993/09/21 15:09:25;  author: mike;  state: Exp;
66444 Make create_new_mine create a multi-segment mine.
66445 ----------------------------
66446 revision 1.5
66447 date: 1993/09/17 16:44:31;  author: mike;  state: Exp;
66448 new create_new_mine
66449 ----------------------------
66450 revision 1.4
66451 date: 1993/09/16 12:50:00;  author: mike;  state: Exp;
66452 Create file.
66453 ----------------------------
66454 revision 1.3
66455 date: 1993/09/15 19:11:20;  author: matt;  state: Exp;
66456 Hacked this to make it work
66457 ----------------------------
66458 revision 1.2
66459 date: 1993/09/15 18:10:54;  author: mike;  state: Exp;
66460 no changes
66461 ----------------------------
66462 revision 1.1
66463 date: 1993/09/15 18:01:39;  author: mike;  state: Exp;
66464 Initial revision
66465 =============================================================================
66466 RCS file: f:/miner/source/main/editor/elight.c,v
66467 Working file: main/editor/elight.c
66468 head: 2.0
66469 branch:
66470 description: Editor lighting functions.
66471 ----------------------------
66472 revision 2.0
66473 date: 1995/02/27 11:35:16;  author: john;  state: Exp;
66474 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66475 for bitmaps.tbl.
66476 ----------------------------
66477 revision 1.21
66478 date: 1994/06/14 16:59:23;  author: mike;  state: Exp;
66479 Fix references to tmap_num2, must strip off orientation bits.
66480 ----------------------------
66481 revision 1.20
66482 date: 1994/05/31 12:31:57;  author: mike;  state: Exp;
66483 fix bug in lighting -- WALL_IS_DOORWAY return value getting ignored,
66484 almost never recursively propagated light.
66485 ----------------------------
66486 revision 1.19
66487 date: 1994/05/19 23:35:12;  author: mike;  state: Exp;
66488 Support uv coordinates in range 0..1.0.
66489 ----------------------------
66490 revision 1.18
66491 date: 1994/05/16 12:05:29;  author: john;  state: Exp;
66492 Made texturemap light be a fix from 0 to 1.
66493 ----------------------------
66494 revision 1.17
66495 date: 1994/05/14 18:00:38;  author: matt;  state: Exp;
66496 Got rid of externs in source (non-header) files
66497 ----------------------------
66498 revision 1.16
66499 date: 1994/05/03 11:04:27;  author: mike;  state: Exp;
66500 Add function to select edge.
66501 ----------------------------
66502 revision 1.15
66503 date: 1994/04/20 17:29:11;  author: yuan;  state: Exp;
66504 Fixed bug where tmaps above 256 don't light properly.
66505 (duh!)
66506 ----------------------------
66507 revision 1.14
66508 date: 1994/03/22 14:20:46;  author: yuan;  state: Exp;
66509 Made texture map 1 also cast light.  (Cumulative with tmap_num2)
66510 ----------------------------
66511 revision 1.13
66512 date: 1994/03/15 16:34:14;  author: yuan;  state: Exp;
66513 Fixed bm loader (might have some changes in walls and switches)
66514 ----------------------------
66515 revision 1.12
66516 date: 1994/02/22 18:55:10;  author: yuan;  state: Exp;
66517 Ambient lighting "shines" on doors too!
66518 ----------------------------
66519 revision 1.11
66520 date: 1994/02/17 12:05:55;  author: matt;  state: Exp;
66521 Got rid of warnings
66522 ----------------------------
66523 revision 1.10
66524 date: 1994/02/16 22:28:03;  author: mike;  state: Exp;
66525 fix ambient lighting and smoothing.
66526 ----------------------------
66527 revision 1.9
66528 date: 1994/02/14 12:05:42;  author: mike;  state: Exp;
66529 change segment data structure.
66530 ----------------------------
66531 revision 1.8
66532 date: 1994/01/26 17:27:45;  author: yuan;  state: Exp;
66533 Still not perfected ambient lighting
66534 ----------------------------
66535 revision 1.7
66536 date: 1994/01/25 17:58:08;  author: yuan;  state: Exp;
66537 Added ambient lighting, and also added fixing bogus segments
66538 functions to the editor... (they don't work fully... need to
66539 check out seguvs.c
66540 ----------------------------
66541 revision 1.6
66542 date: 1994/01/24 11:46:10;  author: yuan;  state: Exp;
66543 *** empty log message ***
66544 ----------------------------
66545 revision 1.5
66546 date: 1994/01/24 11:03:05;  author: yuan;  state: Exp;
66547 Set lgiht maximum added... Changes are still in progress
66548 ----------------------------
66549 revision 1.4
66550 date: 1994/01/18 19:16:07;  author: yuan;  state: Exp;
66551 Added assign default to lighting pad.
66552 ----------------------------
66553 revision 1.3
66554 date: 1993/12/17 12:26:00;  author: mike;  state: Exp;
66555 Add functions for setting light values on whole segment at once.
66556 ----------------------------
66557 revision 1.2
66558 date: 1993/12/16 16:56:12;  author: mike;  state: Exp;
66559 Add new texture map lighting control functions.
66560 ----------------------------
66561 revision 1.1
66562 date: 1993/12/16 13:21:50;  author: mike;  state: Exp;
66563 Initial revision
66564 =============================================================================
66565 RCS file: f:/miner/source/main/editor/eobject.c,v
66566 Working file: main/editor/eobject.c
66567 head: 2.0
66568 branch:
66569 description: Editor object functions.
66570 ----------------------------
66571 revision 2.0
66572 date: 1995/02/27 11:35:14;  author: john;  state: Exp;
66573 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66574 for bitmaps.tbl.
66575 ----------------------------
66576 revision 1.93
66577 date: 1995/02/22 15:09:04;  author: allender;  state: Exp;
66578 remove anonymous unions from object structure
66579 ----------------------------
66580 revision 1.92
66581 date: 1995/01/12 12:10:32;  author: yuan;  state: Exp;
66582 Added coop object capability.
66583 ----------------------------
66584 revision 1.91
66585 date: 1994/12/20 17:57:02;  author: yuan;  state: Exp;
66586 Multiplayer object stuff.
66587 ----------------------------
66588 revision 1.90
66589 date: 1994/11/27 23:17:49;  author: matt;  state: Exp;
66590 Made changes for new mprintf calling convention
66591 ----------------------------
66592 revision 1.89
66593 date: 1994/11/17 14:48:06;  author: mike;  state: Exp;
66594 validation functions moved from editor to game.
66595 ----------------------------
66596 revision 1.88
66597 date: 1994/11/14 11:40:03;  author: mike;  state: Exp;
66598 fix default robot behavior.
66599 ----------------------------
66600 revision 1.87
66601 date: 1994/10/25 10:51:31;  author: matt;  state: Exp;
66602 Vulcan cannon powerups now contain ammo count
66603 ----------------------------
66604 revision 1.86
66605 date: 1994/10/23 02:11:40;  author: matt;  state: Exp;
66606 Got rid of obsolete hostage_info stuff
66607 ----------------------------
66608 revision 1.85
66609 date: 1994/10/17 21:35:32;  author: matt;  state: Exp;
66610 Added support for new Control Center/Main Reactor
66611 ----------------------------
66612 revision 1.84
66613 date: 1994/10/10 17:23:13;  author: mike;  state: Exp;
66614 Verify that not placing too many player objects.
66615 ----------------------------
66616 revision 1.83
66617 date: 1994/09/24 14:15:35;  author: mike;  state: Exp;
66618 Custom colored object support.
66619 ----------------------------
66620 revision 1.82
66621 date: 1994/09/15 22:58:12;  author: matt;  state: Exp;
66622 Made new objects be oriented to their segment
66623 Added keypad function to flip an object upside-down
66624 ----------------------------
66625 revision 1.81
66626 date: 1994/09/01 10:58:41;  author: matt;  state: Exp;
66627 Sizes for powerups now specified in bitmaps.tbl; blob bitmaps now plot
66628 correctly if width & height of bitmap are different.
66629 ----------------------------
66630 revision 1.80
66631 date: 1994/08/25 21:58:14;  author: mike;  state: Exp;
66632 Write ObjectSelectPrevInMine and something else, I think...
66633 ----------------------------
66634 revision 1.79
66635 date: 1994/08/16 20:19:54;  author: mike;  state: Exp;
66636 Make STILL default (from CHASE_OBJECT).
66637 ----------------------------
66638 revision 1.78
66639 date: 1994/08/14 23:15:45;  author: matt;  state: Exp;
66640 Added animating bitmap hostages, and cleaned up vclips a bit
66641 ----------------------------
66642 revision 1.77
66643 date: 1994/08/13 14:58:43;  author: matt;  state: Exp;
66644 Finished adding support for miscellaneous objects
66645 ----------------------------
66646 revision 1.76
66647 date: 1994/08/12 22:24:58;  author: matt;  state: Exp;
66648 Generalized polygon objects (such as control center)
66649 ----------------------------
66650 revision 1.75
66651 date: 1994/08/09 16:06:11;  author: john;  state: Exp;
66652 Added the ability to place players.  Made old
66653 Player variable be ConsoleObject.
66654 ----------------------------
66655 revision 1.74
66656 date: 1994/08/05 18:18:55;  author: matt;  state: Exp;
66657 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
66658 ----------------------------
66659 revision 1.73
66660 date: 1994/08/01 13:30:56;  author: matt;  state: Exp;
66661 Made fvi() check holes in transparent walls, and changed fvi() calling
66662 parms to take all input data in query structure.
66663 =============================================================================
66664 RCS file: f:/miner/source/main/editor/eobject.h,v
66665 Working file: main/editor/eobject.h
66666 head: 2.0
66667 branch:
66668 description: Header for eobject.c
66669 ----------------------------
66670 revision 2.0
66671 date: 1995/02/27 11:35:30;  author: john;  state: Exp;
66672 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66673 for bitmaps.tbl.
66674 ----------------------------
66675 revision 1.5
66676 date: 1994/09/15 22:57:46;  author: matt;  state: Exp;
66677 Made new objects be oriented to their segment
66678 Added keypad function to flip an object upside-down
66679 ----------------------------
66680 revision 1.4
66681 date: 1994/08/25 21:57:23;  author: mike;  state: Exp;
66682 Prototype ObjectSelectPrevInMine, and probably wrote it too, though not in this file.
66683 ----------------------------
66684 revision 1.3
66685 date: 1994/08/05 18:17:48;  author: matt;  state: Exp;
66686 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
66687 ----------------------------
66688 revision 1.2
66689 date: 1994/05/14 18:00:59;  author: matt;  state: Exp;
66690 Got rid of externs in source (non-header) files
66691 ----------------------------
66692 revision 1.1
66693 date: 1994/05/14 17:36:30;  author: matt;  state: Exp;
66694 Initial revision
66695 =============================================================================
66696 RCS file: f:/miner/source/main/editor/eswitch.c,v
66697 Working file: main/editor/eswitch.c
66698 head: 2.0
66699 branch:
66700 description: Editor switch functions. 
66701 ----------------------------
66702 revision 2.0
66703 date: 1995/02/27 11:35:18;  author: john;  state: Exp;
66704 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66705 for bitmaps.tbl.
66706 ----------------------------
66707 revision 1.33
66708 date: 1995/01/14 19:18:04;  author: john;  state: Exp;
66709 First version of object paging.
66710 ----------------------------
66711 revision 1.32
66712 date: 1994/11/27 23:18:01;  author: matt;  state: Exp;
66713 Made changes for new mprintf calling convention
66714 ----------------------------
66715 revision 1.31
66716 date: 1994/11/07 10:55:42;  author: yuan;  state: Exp;
66717 *** empty log message ***
66718 ----------------------------
66719 revision 1.30
66720 date: 1994/10/13 13:15:06;  author: yuan;  state: Exp;
66721 Fixed trigger removal bug.
66722 ----------------------------
66723 revision 1.29
66724 date: 1994/10/06 21:24:16;  author: matt;  state: Exp;
66725 Added switch for exit to secret level
66726 ----------------------------
66727 revision 1.28
66728 date: 1994/09/29 17:06:10;  author: matt;  state: Exp;
66729 Took out references to obsolete external triggers
66730 ----------------------------
66731 revision 1.27
66732 date: 1994/09/28 13:40:34;  author: yuan;  state: Exp;
66733 Fixed control center trigger bug.
66734 ----------------------------
66735 revision 1.26
66736 date: 1994/09/26 16:25:04;  author: yuan;  state: Exp;
66737 Only allow one binding of each matcen .
66738 ----------------------------
66739 revision 1.25
66740 date: 1994/09/24 17:10:19;  author: yuan;  state: Exp;
66741 Added Matcen triggers.
66742 ----------------------------
66743 revision 1.24
66744 date: 1994/09/20 18:23:58;  author: yuan;  state: Exp;
66745 Killed the BOGIFYING WALL DRAGON...
66746 There was a problem with triggers being created that had bogus
66747 pointers back to their segments.
66748 ----------------------------
66749 revision 1.23
66750 date: 1994/08/25 21:56:33;  author: mike;  state: Exp;
66751 IS_CHILD stuff.
66752 ----------------------------
66753 revision 1.22
66754 date: 1994/08/15 18:06:54;  author: yuan;  state: Exp;
66755 Added external trigger.
66756 ----------------------------
66757 revision 1.21
66758 date: 1994/07/22 17:18:47;  author: yuan;  state: Exp;
66759 Working on dialog box for refuel/repair/material/control centers.
66760 ----------------------------
66761 revision 1.20
66762 date: 1994/07/06 10:55:55;  author: john;  state: Exp;
66763 New structures for hostages.
66764 ----------------------------
66765 revision 1.19
66766 date: 1994/07/01 16:36:20;  author: yuan;  state: Exp;
66767 Working on triggers that aren't always on.
66768 ----------------------------
66769 revision 1.18
66770 date: 1994/06/21 18:50:14;  author: john;  state: Exp;
66771 Made ESC key exit dialog.
66772 ----------------------------
66773 revision 1.17
66774 date: 1994/06/20 22:30:36;  author: yuan;  state: Exp;
66775 Fixed crazy runaway trigger bug that Adam found
66776 ----------------------------
66777 revision 1.16
66778 date: 1994/05/31 10:03:48;  author: yuan;  state: Exp;
66779 Fixed compiler warnings...
66780 ----------------------------
66781 revision 1.15
66782 date: 1994/05/30 20:22:30;  author: yuan;  state: Exp;
66783 New triggers.
66784 ----------------------------
66785 revision 1.14
66786 date: 1994/05/27 12:33:50;  author: yuan;  state: Exp;
66787 Fixed some bugs when adding trigger.
66788 ----------------------------
66789 revision 1.13
66790 date: 1994/05/27 10:34:29;  author: yuan;  state: Exp;
66791 Added new Dialog boxes for Walls and Triggers.
66792 ----------------------------
66793 revision 1.12
66794 date: 1994/05/25 18:15:02;  author: yuan;  state: Exp;
66795 Fixed make warnings to save 10 cents!
66796 ----------------------------
66797 revision 1.11
66798 date: 1994/05/25 18:08:03;  author: yuan;  state: Exp;
66799 Revamping walls and triggers interface.
66800 Wall interface complete, but triggers are still in progress.
66801 ----------------------------
66802 revision 1.10
66803 date: 1994/04/29 15:05:50;  author: yuan;  state: Exp;
66804 Trigger/Link removing stuff still needs to be fixed.
66805 ----------------------------
66806 revision 1.9
66807 date: 1994/04/28 23:25:34;  author: yuan;  state: Exp;
66808 Obliterated warnings.
66809 ----------------------------
66810 revision 1.8
66811 date: 1994/04/28 18:08:06;  author: yuan;  state: Exp;
66812 Fixed trigger bug.
66813 =============================================================================
66814 RCS file: f:/miner/source/main/editor/eswitch.h,v
66815 Working file: main/editor/eswitch.h
66816 head: 2.0
66817 branch:
66818 description: Headers for switch adding functions
66819 ----------------------------
66820 revision 2.0
66821 date: 1995/02/27 11:35:40;  author: john;  state: Exp;
66822 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66823 for bitmaps.tbl.
66824 ----------------------------
66825 revision 1.6
66826 date: 1994/05/30 20:22:35;  author: yuan;  state: Exp;
66827 New triggers.
66828 ----------------------------
66829 revision 1.5
66830 date: 1994/05/27 10:34:35;  author: yuan;  state: Exp;
66831 Added new Dialog boxes for Walls and Triggers.
66832 ----------------------------
66833 revision 1.4
66834 date: 1994/05/25 18:08:39;  author: yuan;  state: Exp;
66835 Revamping walls and triggers interface.
66836 Wall interface complete, but triggers are still in progress.
66837 ----------------------------
66838 revision 1.3
66839 date: 1994/04/28 23:46:56;  author: yuan;  state: Exp;
66840 Added prototype for remove_trigger.
66841 ----------------------------
66842 revision 1.2
66843 date: 1994/03/15 16:34:20;  author: yuan;  state: Exp;
66844 Fixed bm loader (might have some changes in walls and switches)
66845 ----------------------------
66846 revision 1.1
66847 date: 1994/03/10 14:49:03;  author: yuan;  state: Exp;
66848 Initial revision
66849 =============================================================================
66850 RCS file: f:/miner/source/main/editor/fixseg.c,v
66851 Working file: main/editor/fixseg.c
66852 head: 2.0
66853 branch:
66854 description: Functions to make faces planar and probably other things.
66855 ----------------------------
66856 revision 2.0
66857 date: 1995/02/27 11:36:25;  author: john;  state: Exp;
66858 Version 2.0. Ansi-fied.
66859 ----------------------------
66860 revision 1.7
66861 date: 1994/11/27 23:18:01;  author: matt;  state: Exp;
66862 Made changes for new mprintf calling convention
66863 ----------------------------
66864 revision 1.6
66865 date: 1994/11/17 14:48:00;  author: mike;  state: Exp;
66866 validation functions moved from editor to game.
66867 ----------------------------
66868 revision 1.5
66869 date: 1994/08/04 19:13:26;  author: matt;  state: Exp;
66870 Changed a bunch of vecmat calls to use multiple-function routines, and to
66871 allow the use of C macros for some functions
66872 ----------------------------
66873 revision 1.4
66874 date: 1994/02/10 15:36:31;  author: matt;  state: Exp;
66875 Various changes to make editor compile out.
66876 ----------------------------
66877 revision 1.3
66878 date: 1993/12/03 18:45:09;  author: mike;  state: Exp;
66879 initial stuff.
66880 ----------------------------
66881 revision 1.2
66882 date: 1993/11/30 17:05:09;  author: mike;  state: Exp;
66883 Added part of code to make a side planar.
66884 ----------------------------
66885 revision 1.1
66886 date: 1993/11/30 10:05:36;  author: mike;  state: Exp;
66887 Initial revision
66888 =============================================================================
66889 RCS file: f:/miner/source/main/editor/func.c,v
66890 Working file: main/editor/func.c
66891 head: 1.1
66892 branch:
66893 description: .
66894 ----------------------------
66895 revision 1.1
66896 date: 1994/11/21 14:13:17;  author: matt;  state: Exp;
66897 Initial revision
66898 ----------------------------
66899 revision 1.1
66900 date: 1993/11/15 12:28:17;  author: john;  state: Exp;
66901 Initial revision
66902 =============================================================================
66903 RCS file: f:/miner/source/main/editor/group.c,v
66904 Working file: main/editor/group.c
66905 head: 2.0
66906 branch:
66907 description: group functions
66908 ----------------------------
66909 revision 2.0
66910 date: 1995/02/27 11:35:05;  author: john;  state: Exp;
66911 Version 2.0! No anonymous unions, Watcom 10.0, with no need
66912 for bitmaps.tbl.
66913 ----------------------------
66914 revision 1.65
66915 date: 1994/11/27 23:17:21;  author: matt;  state: Exp;
66916 Made changes for new mprintf calling convention
66917 ----------------------------
66918 revision 1.64
66919 date: 1994/11/17 14:48:08;  author: mike;  state: Exp;
66920 validation functions moved from editor to game.
66921 ----------------------------
66922 revision 1.63
66923 date: 1994/11/17 11:38:56;  author: matt;  state: Exp;
66924 Ripped out code to load old mines
66925 ----------------------------
66926 revision 1.62
66927 date: 1994/10/27 10:06:20;  author: mike;  state: Exp;
66928 adapt to no inverse table.
66929 ----------------------------
66930 revision 1.61
66931 date: 1994/10/03 23:40:08;  author: mike;  state: Exp;
66932 New fuelcen_activate parameters.
66933 ----------------------------
66934 revision 1.60
66935 date: 1994/09/28 17:32:01;  author: mike;  state: Exp;
66936 Make group copying work for copying a group's walls.
66937 ----------------------------
66938 revision 1.59
66939 date: 1994/09/20 14:35:28;  author: mike;  state: Exp;
66940 Fix bugs in group subtraction code.  Don't allow to attach a group if the attach side is unfree.
66941 ----------------------------
66942 revision 1.58
66943 date: 1994/08/25 21:58:07;  author: mike;  state: Exp;
66944 IS_CHILD stuff.
66945 ----------------------------
66946 revision 1.57
66947 date: 1994/08/04 19:12:58;  author: matt;  state: Exp;
66948 Changed a bunch of vecmat calls to use multiple-function routines, and to
66949 allow the use of C macros for some functions
66950 ----------------------------
66951 revision 1.56
66952 date: 1994/08/03 15:40:01;  author: mike;  state: Exp;
66953 Enable calls to compress_mine to get rid of bugs in group
66954 copying -- was creating invalid segments.
66955 ----------------------------
66956 revision 1.55
66957 date: 1994/06/30 10:59:13;  author: yuan;  state: Exp;
66958 Fixed texture translations.
66959 ----------------------------
66960 revision 1.54
66961 date: 1994/06/22 17:36:00;  author: mike;  state: Exp;
66962 Fix bug in group creation, was stuffing first two group segs over number
66963 of segments in group (then number would overwrite them), so there would
66964 be two bogus segments in group, one of which was always 0, the other
66965 would be a small number.
66966 ----------------------------
66967 revision 1.53
66968 date: 1994/06/14 17:07:15;  author: john;  state: Exp;
66969 *** empty log message ***
66970 ----------------------------
66971 revision 1.52
66972 date: 1994/06/14 16:59:09;  author: mike;  state: Exp;
66973 Fix references to tmap_num2, must strip off orientation bits.
66974 ----------------------------
66975 revision 1.51
66976 date: 1994/05/23 14:56:37;  author: mike;  state: Exp;
66977 make current segment be add segment.
66978 ----------------------------
66979 revision 1.50
66980 date: 1994/05/19 12:10:01;  author: matt;  state: Exp;
66981 Use new vecmat macros and globals
66982 ----------------------------
66983 revision 1.49
66984 date: 1994/05/17 10:33:59;  author: matt;  state: Exp;
66985 Deleted unused get_free_object_num() func.
66986 ----------------------------
66987 revision 1.48
66988 date: 1994/05/09 23:34:17;  author: mike;  state: Exp;
66989 Punch all sloppy sides in a group, speed up segment rotation.
66990 ----------------------------
66991 revision 1.47
66992 date: 1994/05/06 14:39:56;  author: mike;  state: Exp;
66993 Make objects move and copy with groups.
66994 ----------------------------
66995 revision 1.46
66996 date: 1994/05/05 16:05:54;  author: yuan;  state: Exp;
66997 Added fuelcen/repaircens to groups...
66998 Eventually, walls will be added too...
66999 ----------------------------
67000 revision 1.45
67001 date: 1994/05/05 12:56:25;  author: yuan;  state: Exp;
67002 Fixed a bunch of group bugs.
67003 ----------------------------
67004 revision 1.44
67005 date: 1994/05/04 14:10:04;  author: mike;  state: Exp;
67006 Assert added to prevent bombing out when current_group = -1
67007 ----------------------------
67008 revision 1.43
67009 date: 1994/05/02 17:59:18;  author: yuan;  state: Exp;
67010 Changed undo_status into an array rather than malloced pointers.
67011 ----------------------------
67012 revision 1.42
67013 date: 1994/05/02 15:23:19;  author: mike;  state: Exp;
67014 Call med_combine_duplicate_vertices in med_copy_group and med_move_group.
67015 ----------------------------
67016 revision 1.41
67017 date: 1994/04/27 12:11:23;  author: mike;  state: Exp;
67018 Fix bug in group rotation.
67019 ----------------------------
67020 revision 1.40
67021 date: 1994/04/22 10:07:37;  author: yuan;  state: Exp;
67022 Make sure we don't get obj->next equal itself error.
67023 ----------------------------
67024 revision 1.39
67025 date: 1994/04/18 17:15:13;  author: yuan;  state: Exp;
67026 Added error checking for select prev, and next group.
67027 =============================================================================
67028 RCS file: f:/miner/source/main/editor/info.c,v
67029 Working file: main/editor/info.c
67030 head: 2.0
67031 branch:
67032 description: Print debugging info in ui.
67033 ----------------------------
67034 revision 2.0
67035 date: 1995/02/27 11:35:34;  author: john;  state: Exp;
67036 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67037 for bitmaps.tbl.
67038 ----------------------------
67039 revision 1.42
67040 date: 1995/02/22 15:12:50;  author: allender;  state: Exp;
67041 remove anonymous unions from object structure
67042 ----------------------------
67043 revision 1.41
67044 date: 1994/12/08 13:59:39;  author: matt;  state: Exp;
67045 *** empty log message ***
67046 ----------------------------
67047 revision 1.40
67048 date: 1994/09/30 00:38:30;  author: mike;  state: Exp;
67049 Fix some diagnostic messages
67050 ----------------------------
67051 revision 1.39
67052 date: 1994/09/29 20:13:12;  author: mike;  state: Exp;
67053 Clean up some text, prevent it from writing outside canvas.
67054 ----------------------------
67055 revision 1.38
67056 date: 1994/09/29 09:32:17;  author: mike;  state: Exp;
67057 Fix text clipping problem in UI keypad info text.
67058 ----------------------------
67059 revision 1.37
67060 date: 1994/09/25 23:42:20;  author: matt;  state: Exp;
67061 Took out references to obsolete constants
67062 ----------------------------
67063 revision 1.36
67064 date: 1994/08/25 21:57:05;  author: mike;  state: Exp;
67065 IS_CHILD stuff.
67066 ----------------------------
67067 revision 1.35
67068 date: 1994/08/23 16:39:50;  author: mike;  state: Exp;
67069 mode replaced by behavior in ai_info.
67070 ----------------------------
67071 revision 1.34
67072 date: 1994/07/18 10:45:23;  author: mike;  state: Exp;
67073 Fix erase window in texture pads after adding more click-boxes.
67074 ----------------------------
67075 revision 1.33
67076 date: 1994/07/15 12:34:10;  author: mike;  state: Exp;
67077 Remove use of AIM_FOLLOW_PATH_CIRCULAR.
67078 ----------------------------
67079 revision 1.32
67080 date: 1994/06/17 17:13:46;  author: yuan;  state: Exp;
67081 Fixed text so it doesn't overflow screen
67082 ----------------------------
67083 revision 1.31
67084 date: 1994/06/01 17:22:31;  author: matt;  state: Exp;
67085 Set font color before drawing info; got rid of superfluous %d
67086 ----------------------------
67087 revision 1.30
67088 date: 1994/05/29 23:40:29;  author: matt;  state: Exp;
67089 Killed reference to now-unused movement type
67090 ----------------------------
67091 revision 1.29
67092 date: 1994/05/29 22:52:32;  author: matt;  state: Exp;
67093 Deleted unused stuff
67094 ----------------------------
67095 revision 1.28
67096 date: 1994/05/27 10:34:16;  author: yuan;  state: Exp;
67097 Added new Dialog boxes for Walls and Triggers.
67098 ----------------------------
67099 revision 1.27
67100 date: 1994/05/17 10:34:35;  author: matt;  state: Exp;
67101 Changed Num_objects to num_objects, since it's not really global anymore
67102 ----------------------------
67103 revision 1.26
67104 date: 1994/05/14 17:17:59;  author: matt;  state: Exp;
67105 Got rid of externs in source (non-header) files
67106 ----------------------------
67107 revision 1.25
67108 date: 1994/05/12 14:47:07;  author: mike;  state: Exp;
67109 Adjust for Ai_states killed, replaced by field in object structure.
67110 ----------------------------
67111 revision 1.24
67112 date: 1994/05/06 12:52:11;  author: yuan;  state: Exp;
67113 Adding some gamesave checks...
67114 ----------------------------
67115 revision 1.23
67116 date: 1994/05/03 19:21:28;  author: matt;  state: Exp;
67117 Removed reference to robot flythrough mode, which doesn't exist anymore
67118 ----------------------------
67119 revision 1.22
67120 date: 1994/05/03 11:03:06;  author: mike;  state: Exp;
67121 Customize text for segment sizing keypad.
67122 ----------------------------
67123 revision 1.21
67124 date: 1994/04/29 15:05:40;  author: yuan;  state: Exp;
67125 More info added...
67126 ----------------------------
67127 revision 1.20
67128 date: 1994/04/22 17:45:58;  author: john;  state: Exp;
67129 MAde top 2 bits of paste-ons pick the 
67130 orientation of the bitmap.
67131 ----------------------------
67132 revision 1.19
67133 date: 1994/04/20 17:29:30;  author: yuan;  state: Exp;
67134 Added tmap_num info.
67135 ----------------------------
67136 revision 1.18
67137 date: 1994/04/13 19:12:55;  author: mike;  state: Exp;
67138 Fix font color problems in keypads.
67139 ----------------------------
67140 revision 1.17
67141 date: 1994/04/13 13:26:37;  author: mike;  state: Exp;
67142 Kill a mprintf.
67143 ----------------------------
67144 revision 1.16
67145 date: 1994/04/13 13:24:44;  author: mike;  state: Exp;
67146 Separate info display, customize for each keypad.
67147 ----------------------------
67148 revision 1.15
67149 date: 1994/03/19 17:21:31;  author: yuan;  state: Exp;
67150 Wall system implemented until specific features need to be added...
67151 (Needs to be hammered on though.)
67152 ----------------------------
67153 revision 1.14
67154 date: 1994/02/22 18:13:13;  author: yuan;  state: Exp;
67155 Added tmap number field.
67156 ----------------------------
67157 revision 1.13
67158 date: 1994/02/17 09:46:27;  author: matt;  state: Exp;
67159 Removed include of slew.h
67160 ----------------------------
67161 revision 1.12
67162 date: 1994/02/16 19:58:56;  author: yuan;  state: Exp;
67163 Added type to info
67164 ----------------------------
67165 revision 1.11
67166 date: 1994/02/16 16:48:08;  author: yuan;  state: Exp;
67167 Added Curside.
67168 ----------------------------
67169 revision 1.10
67170 date: 1994/02/03 17:26:43;  author: yuan;  state: Exp;
67171 Fixed formatting of vertex numbering.
67172 ----------------------------
67173 revision 1.9
67174 date: 1994/01/31 12:17:06;  author: yuan;  state: Exp;
67175 Make sure Num_segments, etc. are drawn.
67176 ----------------------------
67177 revision 1.8
67178 date: 1994/01/22 13:43:12;  author: yuan;  state: Exp;
67179 Cosmetic fixes.
67180 ----------------------------
67181 revision 1.7
67182 date: 1994/01/21 12:14:59;  author: yuan;  state: Exp;
67183 Fixed cosmetic problem
67184 ----------------------------
67185 revision 1.6
67186 date: 1994/01/21 12:01:03;  author: yuan;  state: Exp;
67187 Added segment and vertex info
67188 ----------------------------
67189 revision 1.5
67190 date: 1994/01/20 11:28:11;  author: john;  state: Exp;
67191 *** empty log message ***
67192 ----------------------------
67193 revision 1.4
67194 date: 1994/01/19 10:44:42;  author: john;  state: Exp;
67195 *** empty log message ***
67196 ----------------------------
67197 revision 1.3
67198 date: 1994/01/19 10:32:36;  author: john;  state: Exp;
67199 *** empty log message ***
67200 ----------------------------
67201 revision 1.2
67202 date: 1994/01/19 09:34:31;  author: john;  state: Exp;
67203 First version.
67204 ----------------------------
67205 revision 1.1
67206 date: 1994/01/19 09:30:43;  author: john;  state: Exp;
67207 Initial revision
67208 =============================================================================
67209 RCS file: f:/miner/source/main/editor/info.h,v
67210 Working file: main/editor/info.h
67211 head: 2.0
67212 branch:
67213 description: Header for info.c
67214 ----------------------------
67215 revision 2.0
67216 date: 1995/02/27 11:34:32;  author: john;  state: Exp;
67217 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67218 for bitmaps.tbl.
67219 ----------------------------
67220 revision 1.2
67221 date: 1994/05/14 17:18:17;  author: matt;  state: Exp;
67222 Got rid of externs in source (non-header) files
67223 ----------------------------
67224 revision 1.1
67225 date: 1994/05/14 16:30:39;  author: matt;  state: Exp;
67226 Initial revision
67227 =============================================================================
67228 RCS file: f:/miner/source/main/editor/kbuild.c,v
67229 Working file: main/editor/kbuild.c
67230 head: 2.0
67231 branch:
67232 description: Functions for building parts of mines.
67233 ----------------------------
67234 revision 2.0
67235 date: 1995/02/27 11:35:43;  author: john;  state: Exp;
67236 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67237 for bitmaps.tbl.
67238 ----------------------------
67239 revision 1.20
67240 date: 1995/02/22 11:00:47;  author: yuan;  state: Exp;
67241 prototype include.
67242 ----------------------------
67243 revision 1.19
67244 date: 1995/02/22 10:59:01;  author: yuan;  state: Exp;
67245 Save sloppy mine before punching.
67246 ----------------------------
67247 revision 1.18
67248 date: 1994/08/25 21:57:56;  author: mike;  state: Exp;
67249 IS_CHILD stuff.
67250 ----------------------------
67251 revision 1.17
67252 date: 1994/05/16 12:00:52;  author: mike;  state: Exp;
67253 Call med_combine_duplicate_vertices before various build functions.
67254 ----------------------------
67255 revision 1.16
67256 date: 1994/05/09 23:34:31;  author: mike;  state: Exp;
67257 Punch all sloppy sides in a group.
67258 ----------------------------
67259 revision 1.15
67260 date: 1994/02/16 15:23:06;  author: yuan;  state: Exp;
67261 Checking in for editor make.
67262 ----------------------------
67263 revision 1.14
67264 date: 1994/01/21 12:01:31;  author: yuan;  state: Exp;
67265 Added clearer editor_status messages (sloppy joint vs. joint)
67266 ----------------------------
67267 revision 1.13
67268 date: 1994/01/14 11:59:52;  author: yuan;  state: Exp;
67269 New function in build menu. 
67270 "Punch" through walls to force a joint formation with
67271 closest segment:side, if the closest segment:side allows
67272 a connection.
67273 ----------------------------
67274 revision 1.12
67275 date: 1994/01/07 17:45:05;  author: yuan;  state: Exp;
67276 Just changed some tabs and formatting I believe.
67277 ----------------------------
67278 revision 1.11
67279 date: 1993/12/06 19:33:36;  author: yuan;  state: Exp;
67280 Fixed autosave stuff so that undo restores Cursegp and
67281 Markedsegp
67282 ----------------------------
67283 revision 1.10
67284 date: 1993/12/02 12:39:15;  author: matt;  state: Exp;
67285 Removed extra includes
67286 ----------------------------
67287 revision 1.9
67288 date: 1993/11/12 14:31:31;  author: yuan;  state: Exp;
67289 Added warn_if_concave_segments.
67290 ----------------------------
67291 revision 1.8
67292 date: 1993/11/11 17:12:45;  author: yuan;  state: Exp;
67293 Fixed display of messages, so that concave segment
67294 warning doesn't wipe them out immediately.
67295 ----------------------------
67296 revision 1.7
67297 date: 1993/11/09 12:09:28;  author: mike;  state: Exp;
67298 Remove extern for mine_filename, put it in editor.h
67299 ----------------------------
67300 revision 1.6
67301 date: 1993/11/08 19:14:06;  author: yuan;  state: Exp;
67302 Added Undo command (not working yet)
67303 ----------------------------
67304 revision 1.5
67305 date: 1993/11/05 17:32:36;  author: john;  state: Exp;
67306 added funcs
67307 .,
67308 ----------------------------
67309 revision 1.4
67310 date: 1993/11/01 16:53:51;  author: mike;  state: Exp;
67311 Add CreateAdjacentJointsSegment and CreateAdjacentJointsAll
67312 ----------------------------
67313 revision 1.3
67314 date: 1993/11/01 11:24:59;  author: mike;  state: Exp;
67315 Add CreateJointAdjacent
67316 ----------------------------
67317 revision 1.2
67318 date: 1993/10/29 19:13:11;  author: yuan;  state: Exp;
67319 Added diagnostic messages
67320 ----------------------------
67321 revision 1.1
67322 date: 1993/10/13 18:53:27;  author: john;  state: Exp;
67323 Initial revision
67324 =============================================================================
67325 RCS file: f:/miner/source/main/editor/kcurve.c,v
67326 Working file: main/editor/kcurve.c
67327 head: 2.0
67328 branch:
67329 description: Functions for curve stuff.
67330 ----------------------------
67331 revision 2.0
67332 date: 1995/02/27 11:35:29;  author: john;  state: Exp;
67333 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67334 for bitmaps.tbl.
67335 ----------------------------
67336 revision 1.17
67337 date: 1994/08/25 21:56:43;  author: mike;  state: Exp;
67338 IS_CHILD stuff.
67339 ----------------------------
67340 revision 1.16
67341 date: 1994/05/14 17:17:54;  author: matt;  state: Exp;
67342 Got rid of externs in source (non-header) files
67343 ----------------------------
67344 revision 1.15
67345 date: 1994/01/28 10:52:24;  author: mike;  state: Exp;
67346 Bind set_average_light_on_curside to DeleteCurve
67347 ----------------------------
67348 revision 1.14
67349 date: 1994/01/25 17:34:47;  author: mike;  state: Exp;
67350 Stupidly bound fix_bogus_uvs_all to delete curve.
67351 ----------------------------
67352 revision 1.13
67353 date: 1993/12/06 19:34:15;  author: yuan;  state: Exp;
67354 Fixed autosave so that undo restores Cursegp
67355 and Markedsegp
67356 ----------------------------
67357 revision 1.12
67358 date: 1993/12/02 12:39:28;  author: matt;  state: Exp;
67359 Removed extra includes
67360 ----------------------------
67361 revision 1.11
67362 date: 1993/11/12 13:08:38;  author: yuan;  state: Exp;
67363 Fixed warning for concave segment so it appears after any
67364 "less important" diagnostic messages.
67365 ----------------------------
67366 revision 1.10
67367 date: 1993/11/11 17:03:25;  author: yuan;  state: Exp;
67368 Fixed undo-status display
67369 ----------------------------
67370 revision 1.9
67371 date: 1993/11/11 15:55:11;  author: yuan;  state: Exp;
67372 Added undo messages.
67373 ----------------------------
67374 revision 1.8
67375 date: 1993/11/08 19:13:30;  author: yuan;  state: Exp;
67376 Added Undo command (not working yet)
67377 ----------------------------
67378 revision 1.7
67379 date: 1993/11/05 17:32:51;  author: john;  state: Exp;
67380 added funcs
67381 .,
67382 ----------------------------
67383 revision 1.6
67384 date: 1993/10/29 19:12:41;  author: yuan;  state: Exp;
67385 Added diagnostic messages
67386 ----------------------------
67387 revision 1.5
67388 date: 1993/10/29 16:26:30;  author: yuan;  state: Exp;
67389 Added diagnostic messages for curve generation
67390 ----------------------------
67391 revision 1.4
67392 date: 1993/10/22 19:47:30;  author: yuan;  state: Exp;
67393 Can't build curve if Marked Seg has a segment attached.
67394 ----------------------------
67395 revision 1.3
67396 date: 1993/10/19 20:54:50;  author: matt;  state: Exp;
67397 Changed/cleaned up window updates
67398 ----------------------------
67399 revision 1.2
67400 date: 1993/10/14 13:52:17;  author: mike;  state: Exp;
67401 Add return value to AssignTexture
67402 ----------------------------
67403 revision 1.1
67404 date: 1993/10/13 18:53:11;  author: john;  state: Exp;
67405 Initial revision
67406 =============================================================================
67407 RCS file: f:/miner/source/main/editor/kdefs.h,v
67408 Working file: main/editor/kdefs.h
67409 head: 2.1
67410 branch:
67411 description: Prototypes for functions called from keypresses or buttons.
67412 ----------------------------
67413 revision 2.1
67414 date: 1995/03/08 16:07:10;  author: yuan;  state: Exp;
67415 Added segment sizing default functions.
67416 ----------------------------
67417 revision 2.0
67418 date: 1995/02/27 11:34:34;  author: john;  state: Exp;
67419 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67420 for bitmaps.tbl.
67421 ----------------------------
67422 revision 1.97
67423 date: 1995/01/12 12:10:22;  author: yuan;  state: Exp;
67424 Added coop object capability.
67425 ----------------------------
67426 revision 1.96
67427 date: 1994/10/27 10:06:33;  author: mike;  state: Exp;
67428 kill macro stuff.
67429 ----------------------------
67430 revision 1.95
67431 date: 1994/09/26 23:22:59;  author: matt;  state: Exp;
67432 Added functions to keep player's starting position from getting messed up
67433 ----------------------------
67434 revision 1.94
67435 date: 1994/09/24 14:15:24;  author: mike;  state: Exp;
67436 Custom colored object support.
67437 ----------------------------
67438 revision 1.93
67439 date: 1994/09/23 18:03:52;  author: yuan;  state: Exp;
67440 Finished wall checking code.
67441 ----------------------------
67442 revision 1.92
67443 date: 1994/09/14 16:50:49;  author: yuan;  state: Exp;
67444 Added load mine only function
67445 ----------------------------
67446 revision 1.91
67447 date: 1994/08/16 18:11:03;  author: yuan;  state: Exp;
67448 Maded C place you in the center of a segment.
67449 ----------------------------
67450 revision 1.90
67451 date: 1994/08/15 17:47:55;  author: yuan;  state: Exp;
67452 Added external walls.
67453 ----------------------------
67454 revision 1.89
67455 date: 1994/08/03 10:32:10;  author: mike;  state: Exp;
67456 Texture map propagation without uv assignment.
67457 ----------------------------
67458 revision 1.88
67459 date: 1994/08/02 14:18:01;  author: mike;  state: Exp;
67460 Add Object dialog.
67461 ----------------------------
67462 revision 1.87
67463 date: 1994/07/22 17:19:15;  author: yuan;  state: Exp;
67464 Working on dialog box for refuel/repair/material/control centers.
67465 ----------------------------
67466 revision 1.86
67467 date: 1994/07/21 17:26:49;  author: matt;  state: Exp;
67468 When new mine created, the default save filename is now reset
67469 ----------------------------
67470 revision 1.85
67471 date: 1994/07/21 12:47:26;  author: mike;  state: Exp;
67472 *** empty log message ***
67473 ----------------------------
67474 revision 1.84
67475 date: 1994/07/14 14:49:19;  author: yuan;  state: Exp;
67476 Added prototype
67477 ----------------------------
67478 revision 1.83
67479 date: 1994/07/14 14:43:09;  author: yuan;  state: Exp;
67480 Added new rotation functions
67481 ----------------------------
67482 revision 1.82
67483 date: 1994/07/01 17:57:04;  author: john;  state: Exp;
67484 First version of not-working hostage system
67485 ----------------------------
67486 revision 1.81
67487 date: 1994/06/21 12:57:27;  author: yuan;  state: Exp;
67488 Remove center from segment function added to menu.
67489 ----------------------------
67490 revision 1.80
67491 date: 1994/06/17 16:05:20;  author: mike;  state: Exp;
67492 Prototype set_average_light_on_all_quick.
67493 ----------------------------
67494 revision 1.79
67495 date: 1994/05/31 16:43:24;  author: john;  state: Exp;
67496 Added hooks to create materialization centers.
67497 ----------------------------
67498 revision 1.78
67499 date: 1994/05/27 10:34:40;  author: yuan;  state: Exp;
67500 Added new Dialog boxes for Walls and Triggers.
67501 ----------------------------
67502 revision 1.77
67503 date: 1994/05/25 18:08:44;  author: yuan;  state: Exp;
67504 Revamping walls and triggers interface.
67505 Wall interface complete, but triggers are still in progress.
67506 ----------------------------
67507 revision 1.76
67508 date: 1994/05/09 23:34:04;  author: mike;  state: Exp;
67509 SubtractFromGroup, CreateSloppyAdjacentJointsGroup, ClearFoundList
67510 ----------------------------
67511 revision 1.75
67512 date: 1994/05/03 18:31:17;  author: mike;  state: Exp;
67513 Add PerturbCurside.
67514 ----------------------------
67515 revision 1.74
67516 date: 1994/05/03 11:04:39;  author: mike;  state: Exp;
67517 Add prototypes for new segment sizing functions.
67518 ----------------------------
67519 revision 1.73
67520 date: 1994/04/29 10:32:04;  author: yuan;  state: Exp;
67521 Added door 8... Door typing system should be replaced soon.
67522 =============================================================================
67523 RCS file: f:/miner/source/main/editor/kfuncs.c,v
67524 Working file: main/editor/kfuncs.c
67525 head: 2.1
67526 branch:
67527 description: .
67528 ----------------------------
67529 revision 2.1
67530 date: 1995/03/08 16:07:23;  author: yuan;  state: Exp;
67531 Added segment sizing default functions.
67532 ----------------------------
67533 revision 2.0
67534 date: 1995/02/27 11:34:45;  author: john;  state: Exp;
67535 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67536 for bitmaps.tbl.
67537 ----------------------------
67538 revision 1.112
67539 date: 1995/01/12 12:10:31;  author: yuan;  state: Exp;
67540 Added coop object capability.
67541 ----------------------------
67542 revision 1.111
67543 date: 1994/11/27 23:17:16;  author: matt;  state: Exp;
67544 Made changes for new mprintf calling convention
67545 ----------------------------
67546 revision 1.110
67547 date: 1994/11/23 12:17:22;  author: mike;  state: Exp;
67548 bind retmap functions.
67549 ----------------------------
67550 revision 1.109
67551 date: 1994/11/19 15:20:54;  author: mike;  state: Exp;
67552 rip out unused code and data.
67553 ----------------------------
67554 revision 1.108
67555 date: 1994/11/17 11:39:02;  author: matt;  state: Exp;
67556 Ripped out code to load old mines
67557 ----------------------------
67558 revision 1.107
67559 date: 1994/10/27 10:06:12;  author: mike;  state: Exp;
67560 kill macro stuff.
67561 ----------------------------
67562 revision 1.106
67563 date: 1994/10/18 15:31:43;  author: mike;  state: Exp;
67564 Bind mine correction function to test keypad, key=1.
67565 ----------------------------
67566 revision 1.105
67567 date: 1994/09/26 23:22:06;  author: matt;  state: Exp;
67568 Added functions to keep player's starting position from getting messed up
67569 ----------------------------
67570 revision 1.104
67571 date: 1994/09/24 14:15:41;  author: mike;  state: Exp;
67572 Custom colored object support.
67573 ----------------------------
67574 revision 1.103
67575 date: 1994/09/23 18:03:54;  author: yuan;  state: Exp;
67576 Finished wall checking code.
67577 ----------------------------
67578 revision 1.102
67579 date: 1994/09/22 19:03:52;  author: mike;  state: Exp;
67580 Test function test_shortpos on ctrl-keypad3
67581 ----------------------------
67582 revision 1.101
67583 date: 1994/09/20 14:35:56;  author: mike;  state: Exp;
67584 Bind functions to keypad 2, 3.
67585 ----------------------------
67586 revision 1.100
67587 date: 1994/09/15 22:58:10;  author: matt;  state: Exp;
67588 Made new objects be oriented to their segment
67589 Added keypad function to flip an object upside-down
67590 ----------------------------
67591 revision 1.99
67592 date: 1994/09/14 16:50:50;  author: yuan;  state: Exp;
67593 Added load mine only function
67594 ----------------------------
67595 revision 1.98
67596 date: 1994/08/25 21:57:52;  author: mike;  state: Exp;
67597 IS_CHILD stuff.
67598 ----------------------------
67599 revision 1.97
67600 date: 1994/08/16 18:10:52;  author: yuan;  state: Exp;
67601 Maded C place you in the center of a segment.
67602 ----------------------------
67603 revision 1.96
67604 date: 1994/08/15 17:48:01;  author: yuan;  state: Exp;
67605 Added external walls.
67606 ----------------------------
67607 revision 1.95
67608 date: 1994/08/13 17:32:38;  author: mike;  state: Exp;
67609 test function.
67610 ----------------------------
67611 revision 1.94
67612 date: 1994/08/05 21:17:57;  author: matt;  state: Exp;
67613 Allow two doors to be linked together
67614 ----------------------------
67615 revision 1.93
67616 date: 1994/08/05 18:18:52;  author: matt;  state: Exp;
67617 Made object rotation have 4x resolution, and SHIFT+rotate do old resolution.
67618 ----------------------------
67619 revision 1.92
67620 date: 1994/08/03 10:31:06;  author: mike;  state: Exp;
67621 Add texture map propagation without uv assignment.
67622 ----------------------------
67623 revision 1.91
67624 date: 1994/08/02 14:17:00;  author: mike;  state: Exp;
67625 Clean up dialog boxes, add one for Matt.
67626 ----------------------------
67627 revision 1.90
67628 date: 1994/07/30 17:04:47;  author: mike;  state: Exp;
67629 Bind key for max_depth on path testing.
67630 =============================================================================
67631 RCS file: f:/miner/source/main/editor/kfuncs.h,v
67632 Working file: main/editor/kfuncs.h
67633 head: 2.0
67634 branch:
67635 description: Header for kfuncs.c
67636 ----------------------------
67637 revision 2.0
67638 date: 1995/02/27 11:34:33;  author: john;  state: Exp;
67639 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67640 for bitmaps.tbl.
67641 ----------------------------
67642 revision 1.2
67643 date: 1994/05/14 17:18:18;  author: matt;  state: Exp;
67644 Got rid of externs in source (non-header) files
67645 ----------------------------
67646 revision 1.1
67647 date: 1994/05/14 16:37:14;  author: matt;  state: Exp;
67648 Initial revision
67649 =============================================================================
67650 RCS file: f:/miner/source/main/editor/kgame.c,v
67651 Working file: main/editor/kgame.c
67652 head: 2.0
67653 branch:
67654 description: Game Loading editor functions
67655 ----------------------------
67656 revision 2.0
67657 date: 1995/02/27 11:34:55;  author: john;  state: Exp;
67658 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67659 for bitmaps.tbl.
67660 ----------------------------
67661 revision 1.25
67662 date: 1995/02/23 10:18:05;  author: allender;  state: Exp;
67663 fixed parameter mismatch with compute_segment_center
67664 ----------------------------
67665 revision 1.24
67666 date: 1994/11/17 11:38:59;  author: matt;  state: Exp;
67667 Ripped out code to load old mines
67668 ----------------------------
67669 revision 1.23
67670 date: 1994/11/09 11:58:56;  author: matt;  state: Exp;
67671 Fixed small bug
67672 ----------------------------
67673 revision 1.22
67674 date: 1994/10/20 12:48:02;  author: matt;  state: Exp;
67675 Replaced old save files (MIN/SAV/HOT) with new LVL files
67676 ----------------------------
67677 revision 1.21
67678 date: 1994/10/15 19:08:47;  author: mike;  state: Exp;
67679 Fix bug if player object out of mine at save.
67680 ----------------------------
67681 revision 1.20
67682 date: 1994/10/13 13:15:43;  author: matt;  state: Exp;
67683 Properly relink player object when bashed for "permanant" position save
67684 ----------------------------
67685 revision 1.19
67686 date: 1994/10/11 17:07:23;  author: matt;  state: Exp;
67687 Fixed problem that sometimes caused bad player segnum after compress
67688 ----------------------------
67689 revision 1.18
67690 date: 1994/10/08 17:10:40;  author: matt;  state: Exp;
67691 Correctly set current_level_num when loading/creating mine in editor
67692 ----------------------------
67693 revision 1.17
67694 date: 1994/09/26 23:46:13;  author: matt;  state: Exp;
67695 Improved player position save code
67696 ----------------------------
67697 revision 1.16
67698 date: 1994/09/26 23:22:50;  author: matt;  state: Exp;
67699 Added functions to keep player's starting position from getting messed up
67700 ----------------------------
67701 revision 1.15
67702 date: 1994/09/14 16:50:51;  author: yuan;  state: Exp;
67703 Added load mine only function
67704 ----------------------------
67705 revision 1.14
67706 date: 1994/07/22 12:36:50;  author: matt;  state: Exp;
67707 Cleaned up editor/game interactions some more.
67708 ----------------------------
67709 revision 1.13
67710 date: 1994/07/21 17:26:26;  author: matt;  state: Exp;
67711 When new mine created, the default save filename is now reset
67712 ----------------------------
67713 revision 1.12
67714 date: 1994/06/03 12:27:05;  author: yuan;  state: Exp;
67715 Fixed restore game state.
67716 ----------------------------
67717 revision 1.11
67718 date: 1994/05/30 11:36:09;  author: yuan;  state: Exp;
67719 Do gamesave if new mine is loaded and game is entered...
67720 ----------------------------
67721 revision 1.10
67722 date: 1994/05/14 18:00:33;  author: matt;  state: Exp;
67723 Got rid of externs in source (non-header) files
67724 ----------------------------
67725 revision 1.9
67726 date: 1994/05/10 12:15:44;  author: yuan;  state: Exp;
67727 Fixed load_game functions to match prototype.
67728 ----------------------------
67729 revision 1.8
67730 date: 1994/05/06 12:52:15;  author: yuan;  state: Exp;
67731 Adding some gamesave checks...
67732 ----------------------------
67733 revision 1.7
67734 date: 1994/05/04 17:32:05;  author: yuan;  state: Exp;
67735 med_load_game changed to load_game
67736 med_save_game changed to save_game
67737 =============================================================================
67738 RCS file: f:/miner/source/main/editor/khelp.c,v
67739 Working file: main/editor/khelp.c
67740 head: 2.0
67741 branch:
67742 description: Functions for showing help.
67743 ----------------------------
67744 revision 2.0
67745 date: 1995/02/27 11:34:27;  author: john;  state: Exp;
67746 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67747 for bitmaps.tbl.
67748 ----------------------------
67749 revision 1.5
67750 date: 1993/12/02 12:39:30;  author: matt;  state: Exp;
67751 Removed extra includes
67752 ----------------------------
67753 revision 1.4
67754 date: 1993/11/05 17:32:57;  author: john;  state: Exp;
67755 added funcs
67756 .,
67757 ----------------------------
67758 revision 1.3
67759 date: 1993/11/03 13:42:41;  author: yuan;  state: Exp;
67760 Updated help commands
67761 ----------------------------
67762 revision 1.2
67763 date: 1993/10/22 19:48:07;  author: yuan;  state: Exp;
67764 added ctrl-shift-keypad comment in help.
67765 ----------------------------
67766 revision 1.1
67767 date: 1993/10/13 18:53:16;  author: john;  state: Exp;
67768 Initial revision
67769 =============================================================================
67770 RCS file: f:/miner/source/main/editor/kmine.c,v
67771 Working file: main/editor/kmine.c
67772 head: 2.0
67773 branch:
67774 description: Functions to change entire mines.
67775 ----------------------------
67776 revision 2.0
67777 date: 1995/02/27 11:34:22;  author: john;  state: Exp;
67778 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67779 for bitmaps.tbl.
67780 ----------------------------
67781 revision 1.53
67782 date: 1995/02/22 15:04:52;  author: allender;  state: Exp;
67783 remove anonymous unions from vecmat stuff
67784 ----------------------------
67785 revision 1.52
67786 date: 1994/11/27 23:17:13;  author: matt;  state: Exp;
67787 Made changes for new mprintf calling convention
67788 ----------------------------
67789 revision 1.51
67790 date: 1994/11/17 14:48:05;  author: mike;  state: Exp;
67791 validation functions moved from editor to game.
67792 ----------------------------
67793 revision 1.50
67794 date: 1994/11/17 11:38:49;  author: matt;  state: Exp;
67795 Ripped out code to load old mines
67796 ----------------------------
67797 revision 1.49
67798 date: 1994/10/08 17:10:22;  author: matt;  state: Exp;
67799 Correctly set current_level_num when loading/creating mine in editor
67800 ----------------------------
67801 revision 1.48
67802 date: 1994/10/03 11:30:45;  author: matt;  state: Exp;
67803 Fixed problem with permanant player position when creating a new mine
67804 ----------------------------
67805 revision 1.47
67806 date: 1994/09/29 17:42:19;  author: matt;  state: Exp;
67807 Cleaned up game_mode a little
67808 ----------------------------
67809 revision 1.46
67810 date: 1994/08/18 10:48:21;  author: john;  state: Exp;
67811 Cleaned up game sequencing.
67812 ----------------------------
67813 revision 1.45
67814 date: 1994/08/09 16:05:36;  author: john;  state: Exp;
67815 Added the ability to place players.  Made old
67816 Player variable be ConsoleObject.
67817 ----------------------------
67818 revision 1.44
67819 date: 1994/07/22 12:37:06;  author: matt;  state: Exp;
67820 Cleaned up editor/game interactions some more.
67821 ----------------------------
67822 revision 1.43
67823 date: 1994/07/21 17:26:50;  author: matt;  state: Exp;
67824 When new mine created, the default save filename is now reset
67825 ----------------------------
67826 revision 1.42
67827 date: 1994/06/08 14:29:25;  author: matt;  state: Exp;
67828 Took out support for old mine versions
67829 ----------------------------
67830 revision 1.41
67831 date: 1994/06/03 12:28:04;  author: yuan;  state: Exp;
67832 Fixed game restore state.
67833 ----------------------------
67834 revision 1.40
67835 date: 1994/05/19 12:10:29;  author: matt;  state: Exp;
67836 Use new vecmat macros and globals
67837 ----------------------------
67838 revision 1.39
67839 date: 1994/05/14 17:17:56;  author: matt;  state: Exp;
67840 Got rid of externs in source (non-header) files
67841 ----------------------------
67842 revision 1.38
67843 date: 1994/05/12 14:47:47;  author: mike;  state: Exp;
67844 New previous mine structure and object structure.
67845 ----------------------------
67846 revision 1.37
67847 date: 1994/05/06 12:52:12;  author: yuan;  state: Exp;
67848 Adding some gamesave checks...
67849 ----------------------------
67850 revision 1.36
67851 date: 1994/05/05 20:37:02;  author: yuan;  state: Exp;
67852 Added gamesave checks when entering and leaving the game.
67853 Removed Load Game Save Game functions...
67854 Now there is only Load/Save Mine... (equivalent to old Load/Save Game)
67855 ----------------------------
67856 revision 1.35
67857 date: 1994/04/27 22:57:54;  author: matt;  state: Exp;
67858 Made sit mine load from path of sit file
67859 ----------------------------
67860 revision 1.34
67861 date: 1994/04/21 18:29:55;  author: matt;  state: Exp;
67862 Don't use same variable for mine filename & sit filename
67863 ----------------------------
67864 revision 1.33
67865 date: 1994/04/21 18:21:43;  author: matt;  state: Exp;
67866 Strip path from mine filename in sit file
67867 ----------------------------
67868 revision 1.32
67869 date: 1994/04/18 10:54:35;  author: mike;  state: Exp;
67870 Add situation save/load
67871 ----------------------------
67872 revision 1.31
67873 date: 1994/02/16 16:47:54;  author: yuan;  state: Exp;
67874 Removed temp.min.
67875 ----------------------------
67876 revision 1.30
67877 date: 1994/02/16 15:22:51;  author: yuan;  state: Exp;
67878 Checking in for editor make.
67879 ----------------------------
67880 revision 1.29
67881 date: 1994/02/09 15:04:23;  author: yuan;  state: Exp;
67882 brought back save ability
67883 ----------------------------
67884 revision 1.28
67885 date: 1994/02/08 12:42:45;  author: yuan;  state: Exp;
67886 fixed log.
67887 ----------------------------
67888 revision 1.27
67889 date: 1994/02/08 12:41:47;  author: yuan;  state: Exp;
67890 ----------------------------
67891 revision 1.26
67892 date: 1994/01/13 13:26:05;  author: yuan;  state: Exp;
67893 Added med_compress_mine when creating new mine or
67894 when loading mine
67895 ----------------------------
67896 revision 1.25
67897 date: 1994/01/11 12:03:23;  author: yuan;  state: Exp;
67898 Fixed so that when old mine implementation not in,
67899 message is displayed when you try to load an old mine
67900 ----------------------------
67901 revision 1.24
67902 date: 1994/01/11 11:47:57;  author: yuan;  state: Exp;
67903 *** empty log message ***
67904 ----------------------------
67905 revision 1.23
67906 date: 1994/01/05 09:59:56;  author: yuan;  state: Exp;
67907 Added load old mine funciton
67908 ----------------------------
67909 revision 1.22
67910 date: 1993/12/16 15:58:08;  author: john;  state: Exp;
67911 moved texture selection page to texpage.c
67912 ,
67913 ----------------------------
67914 revision 1.21
67915 date: 1993/12/10 14:48:55;  author: mike;  state: Exp;
67916 Kill orthogonal views.
67917 ----------------------------
67918 revision 1.20
67919 date: 1993/12/03 16:44:06;  author: yuan;  state: Exp;
67920 Changed some 0.0 return values to 0
67921 ----------------------------
67922 revision 1.19
67923 date: 1993/12/02 12:39:34;  author: matt;  state: Exp;
67924 Removed extra includes
67925 ----------------------------
67926 revision 1.18
67927 date: 1993/11/17 13:14:48;  author: yuan;  state: Exp;
67928 Moved Save Group to group.c
67929 ----------------------------
67930 revision 1.17
67931 date: 1993/11/16 17:25:48;  author: yuan;  state: Exp;
67932 Unworking group function added... 
67933 ----------------------------
67934 revision 1.16
67935 date: 1993/11/15 14:46:25;  author: john;  state: Exp;
67936 Changed Menu to MenuX
67937 ----------------------------
67938 revision 1.15
67939 date: 1993/11/08 19:13:45;  author: yuan;  state: Exp;
67940 Added Undo command (not working yet)
67941 =============================================================================
67942 RCS file: f:/miner/source/main/editor/ksegmove.c,v
67943 Working file: main/editor/ksegmove.c
67944 head: 2.0
67945 branch:
67946 description: Functions for moving segments.
67947 ----------------------------
67948 revision 2.0
67949 date: 1995/02/27 11:33:37;  author: john;  state: Exp;
67950 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67951 for bitmaps.tbl.
67952 ----------------------------
67953 revision 1.5
67954 date: 1993/12/02 12:39:36;  author: matt;  state: Exp;
67955 Removed extra includes
67956 ----------------------------
67957 revision 1.4
67958 date: 1993/11/12 16:40:23;  author: mike;  state: Exp;
67959 Use rotate_segment_new in place of med_rotate_segment_ang.
67960 ----------------------------
67961 revision 1.3
67962 date: 1993/11/05 17:32:54;  author: john;  state: Exp;
67963 added funcs
67964 .,
67965 ----------------------------
67966 revision 1.2
67967 date: 1993/10/26 11:28:41;  author: mike;  state: Exp;
67968 Write common routine SegOrientCommon so all movement can pass
67969 through the same routine to check for concavity, among other things.
67970 ----------------------------
67971 revision 1.1
67972 date: 1993/10/13 18:53:21;  author: john;  state: Exp;
67973 Initial revision
67974 =============================================================================
67975 RCS file: f:/miner/source/main/editor/ksegsel.c,v
67976 Working file: main/editor/ksegsel.c
67977 head: 2.0
67978 branch:
67979 description: Functions for selecting segments
67980 ----------------------------
67981 revision 2.0
67982 date: 1995/02/27 11:35:33;  author: john;  state: Exp;
67983 Version 2.0! No anonymous unions, Watcom 10.0, with no need
67984 for bitmaps.tbl.
67985 ----------------------------
67986 revision 1.12
67987 date: 1994/08/25 21:57:02;  author: mike;  state: Exp;
67988 IS_CHILD stuff.
67989 ----------------------------
67990 revision 1.11
67991 date: 1994/05/23 14:48:35;  author: mike;  state: Exp;
67992 make current segment be add segment.
67993 ----------------------------
67994 revision 1.10
67995 date: 1993/12/06 19:33:43;  author: yuan;  state: Exp;
67996 Fixed autosave stuff so that undo restores Cursegp and
67997 Markedsegp
67998 ----------------------------
67999 revision 1.9
68000 date: 1993/12/02 12:39:37;  author: matt;  state: Exp;
68001 Removed extra includes
68002 ----------------------------
68003 revision 1.8
68004 date: 1993/11/12 13:08:17;  author: yuan;  state: Exp;
68005 Fixed warning for concave segment so it appears after any
68006 "less important" diagnostic messages.
68007 ----------------------------
68008 revision 1.7
68009 date: 1993/11/05 17:32:49;  author: john;  state: Exp;
68010 added funcs
68011 .,
68012 ----------------------------
68013 revision 1.6
68014 date: 1993/11/01 09:53:18;  author: mike;  state: Exp;
68015 Write functions get_next_segment and get_previous_segment.
68016 ----------------------------
68017 revision 1.5
68018 date: 1993/10/31 18:06:56;  author: mike;  state: Exp;
68019 Only set_view_target_from_segment if in that mode.
68020 ----------------------------
68021 revision 1.4
68022 date: 1993/10/28 15:01:09;  author: matt;  state: Exp;
68023 Mucked with update flags
68024 ----------------------------
68025 revision 1.3
68026 date: 1993/10/14 18:07:47;  author: mike;  state: Exp;
68027 Change use of CONNECTIVITY to MAX_SIDES_PER_SEGMENT
68028 ----------------------------
68029 revision 1.2
68030 date: 1993/10/14 11:47:34;  author: john;  state: Exp;
68031 *** empty log message ***
68032 ----------------------------
68033 revision 1.1
68034 date: 1993/10/13 18:53:39;  author: john;  state: Exp;
68035 Initial revision
68036 =============================================================================
68037 RCS file: f:/miner/source/main/editor/ksegsize.c,v
68038 Working file: main/editor/ksegsize.c
68039 head: 2.1
68040 branch:
68041 description: Functions for sizing segments
68042 ----------------------------
68043 revision 2.1
68044 date: 1995/03/08 16:07:21;  author: yuan;  state: Exp;
68045 Added segment sizing default functions.
68046 ----------------------------
68047 revision 2.0
68048 date: 1995/02/27 11:35:46;  author: john;  state: Exp;
68049 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68050 for bitmaps.tbl.
68051 ----------------------------
68052 revision 1.15
68053 date: 1994/11/17 14:47:42;  author: mike;  state: Exp;
68054 validation functions moved from editor to game.
68055 ----------------------------
68056 revision 1.14
68057 date: 1994/08/25 21:57:45;  author: mike;  state: Exp;
68058 IS_CHILD stuff.
68059 ----------------------------
68060 revision 1.13
68061 date: 1994/07/18 10:44:43;  author: mike;  state: Exp;
68062 Fix uv propagation after segment sizing.
68063 ----------------------------
68064 revision 1.12
68065 date: 1994/05/04 19:16:34;  author: mike;  state: Exp;
68066 *** empty log message ***
68067 ----------------------------
68068 revision 1.11
68069 date: 1994/05/03 18:31:00;  author: mike;  state: Exp;
68070 Add PerturbCurside.
68071 ----------------------------
68072 revision 1.10
68073 date: 1994/05/03 11:05:14;  author: mike;  state: Exp;
68074 Overhaul segment sizing system to allow sizing of non-free vertices,
68075 and also sizing of vertices on a side, edge or a single vertex.
68076 ----------------------------
68077 revision 1.9
68078 date: 1993/12/12 17:16:00;  author: mike;  state: Exp;
68079 Kill some mprintf code.
68080 ----------------------------
68081 revision 1.8
68082 date: 1993/12/10 11:10:53;  author: mike;  state: Exp;
68083 Fix bugs in tmap propagation in segment sizing.
68084 ----------------------------
68085 revision 1.7
68086 date: 1993/12/06 13:25:30;  author: mike;  state: Exp;
68087 Fix bug in setting size of New_segment after segment scale.
68088 ----------------------------
68089 revision 1.6
68090 date: 1993/11/17 18:57:52;  author: mike;  state: Exp;
68091 Change scaling to be additive.
68092 ----------------------------
68093 revision 1.5
68094 date: 1993/11/12 16:52:57;  author: mike;  state: Exp;
68095 *** empty log message ***
68096 ----------------------------
68097 revision 1.4
68098 date: 1993/11/05 17:32:47;  author: john;  state: Exp;
68099 added funcs
68100 .,
68101 ----------------------------
68102 revision 1.3
68103 date: 1993/10/19 11:22:11;  author: matt;  state: Exp;
68104 Removed extra includes
68105 ----------------------------
68106 revision 1.2
68107 date: 1993/10/17 14:17:52;  author: mike;  state: Exp;
68108 Add big scale changes for segment.
68109 ----------------------------
68110 revision 1.1
68111 date: 1993/10/13 18:53:01;  author: john;  state: Exp;
68112 Initial revision
68113 =============================================================================
68114 RCS file: f:/miner/source/main/editor/ktmap.c,v
68115 Working file: main/editor/ktmap.c
68116 head: 2.0
68117 branch:
68118 description: Texture map key bindings.
68119 ----------------------------
68120 revision 2.0
68121 date: 1995/02/27 11:35:37;  author: john;  state: Exp;
68122 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68123 for bitmaps.tbl.
68124 ----------------------------
68125 revision 1.26
68126 date: 1994/08/25 21:57:12;  author: mike;  state: Exp;
68127 IS_CHILD stuff.
68128 ----------------------------
68129 revision 1.25
68130 date: 1994/08/03 10:32:41;  author: mike;  state: Exp;
68131 Texture map stretching.
68132 ----------------------------
68133 revision 1.24
68134 date: 1994/05/14 17:17:35;  author: matt;  state: Exp;
68135 Got rid of externs in source (non-header) files
68136 ----------------------------
68137 revision 1.23
68138 date: 1994/04/28 10:48:38;  author: yuan;  state: Exp;
68139 Fixed undo message for Clear Texture.
68140 ----------------------------
68141 revision 1.22
68142 date: 1994/04/22 17:45:42;  author: john;  state: Exp;
68143 MAde top 2 bits of paste-ons pick the 
68144 orientation of the bitmap.
68145 ----------------------------
68146 revision 1.21
68147 date: 1994/04/01 14:36:08;  author: yuan;  state: Exp;
68148 Fixed propogate function so you can propogate and move.
68149 ----------------------------
68150 revision 1.20
68151 date: 1994/03/19 17:22:08;  author: yuan;  state: Exp;
68152 Wall system implemented until specific features need to be added...
68153 (Needs to be hammered on though.)
68154 ----------------------------
68155 revision 1.19
68156 date: 1994/02/14 12:06:12;  author: mike;  state: Exp;
68157 change segment data structure.
68158 ----------------------------
68159 revision 1.18
68160 date: 1994/01/25 17:58:47;  author: yuan;  state: Exp;
68161 Added ambient lighting, and also added fixing bogus segments
68162 functions to the editor... (they don't work fully... need to
68163 check out seguvs.c
68164 ----------------------------
68165 revision 1.17
68166 date: 1994/01/24 11:54:52;  author: yuan;  state: Exp;
68167 Checking everything in
68168 ----------------------------
68169 revision 1.16
68170 date: 1994/01/18 16:05:57;  author: yuan;  state: Exp;
68171 Added clear texture 2 function (shift 0)
68172 ----------------------------
68173 revision 1.15
68174 date: 1994/01/18 10:15:01;  author: yuan;  state: Exp;
68175 added texture stuff
68176 ----------------------------
68177 revision 1.14
68178 date: 1993/12/06 19:33:57;  author: yuan;  state: Exp;
68179 Fixed autosave stuff so that undo restores Cursegp and
68180 Markedsegp
68181 ----------------------------
68182 revision 1.13
68183 date: 1993/12/02 12:39:39;  author: matt;  state: Exp;
68184 Removed extra includes
68185 ----------------------------
68186 revision 1.12
68187 date: 1993/11/28 17:31:34;  author: mike;  state: Exp;
68188 Use new segment data structure.
68189 ----------------------------
68190 revision 1.11
68191 date: 1993/11/12 16:38:37;  author: mike;  state: Exp;
68192 Change call to med_propagate_tmaps_to_segments to include new uv_only_flag parameter.
68193 ----------------------------
68194 revision 1.10
68195 date: 1993/11/11 15:53:30;  author: yuan;  state: Exp;
68196 Fixed undo display message
68197 ----------------------------
68198 revision 1.9
68199 date: 1993/11/08 19:13:46;  author: yuan;  state: Exp;
68200 Added Undo command (not working yet)
68201 ----------------------------
68202 revision 1.8
68203 date: 1993/11/05 17:32:48;  author: john;  state: Exp;
68204 added funcs
68205 .,
68206 ----------------------------
68207 revision 1.7
68208 date: 1993/11/02 10:31:08;  author: mike;  state: Exp;
68209 Add PropagateTexturesSelected.
68210 ----------------------------
68211 revision 1.6
68212 date: 1993/10/29 11:43:15;  author: mike;  state: Exp;
68213 Write PropagateTextures
68214 ----------------------------
68215 revision 1.5
68216 date: 1993/10/25 13:26:39;  author: mike;  state: Exp;
68217 Force redraw whenever a texture map is assigned.
68218 ----------------------------
68219 revision 1.4
68220 date: 1993/10/15 17:42:53;  author: mike;  state: Exp;
68221 Make AssignTexture also assign texture maps to New_segment.
68222 ----------------------------
68223 revision 1.3
68224 date: 1993/10/15 13:10:24;  author: mike;  state: Exp;
68225 Adapt AssignTexture to new segment structure.
68226 ----------------------------
68227 revision 1.2
68228 date: 1993/10/14 18:09:17;  author: mike;  state: Exp;
68229 Debug code for AssignTexture and comment out code.
68230 ----------------------------
68231 revision 1.1
68232 date: 1993/10/14 14:01:49;  author: mike;  state: Exp;
68233 Initial revision
68234 =============================================================================
68235 RCS file: f:/miner/source/main/editor/kview.c,v
68236 Working file: main/editor/kview.c
68237 head: 2.0
68238 branch:
68239 description: Functions for changing viewer's position
68240 ----------------------------
68241 revision 2.0
68242 date: 1995/02/27 11:34:21;  author: john;  state: Exp;
68243 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68244 for bitmaps.tbl.
68245 ----------------------------
68246 revision 1.11
68247 date: 1993/12/02 12:39:41;  author: matt;  state: Exp;
68248 Removed extra includes
68249 ----------------------------
68250 revision 1.10
68251 date: 1993/11/16 13:47:54;  author: john;  state: Exp;
68252 Xchanged move away/closer
68253 ----------------------------
68254 revision 1.9
68255 date: 1993/11/16 13:45:32;  author: john;  state: Exp;
68256 Exchanged zoom in/out.
68257 ----------------------------
68258 revision 1.8
68259 date: 1993/11/05 17:32:56;  author: john;  state: Exp;
68260 added funcs
68261 .,
68262 ----------------------------
68263 revision 1.7
68264 date: 1993/11/03 12:10:21;  author: yuan;  state: Exp;
68265 No keypress associated with chase mode
68266 ----------------------------
68267 revision 1.6
68268 date: 1993/11/02 17:06:55;  author: yuan;  state: Exp;
68269 Icon stuff added.
68270 ----------------------------
68271 revision 1.5
68272 date: 1993/11/01 12:48:59;  author: yuan;  state: Exp;
68273 Added Chase mode icon to status bar.
68274 ----------------------------
68275 revision 1.4
68276 date: 1993/10/29 19:12:55;  author: yuan;  state: Exp;
68277 Added diagnostic messages
68278 ----------------------------
68279 revision 1.3
68280 date: 1993/10/27 18:26:16;  author: matt;  state: Exp;
68281 Made zoom & related keys not do anything if no current view
68282 ----------------------------
68283 revision 1.2
68284 date: 1993/10/19 20:54:33;  author: matt;  state: Exp;
68285 Changed/cleaned up window updates
68286 ----------------------------
68287 revision 1.1
68288 date: 1993/10/13 18:53:34;  author: john;  state: Exp;
68289 Initial revision
68290 =============================================================================
68291 RCS file: f:/miner/source/main/editor/texpage.c,v
68292 Working file: main/editor/texpage.c
68293 head: 1.13
68294 branch:
68295 description: Routines for displaying texture pages
68296 ----------------------------
68297 revision 1.13
68298 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
68299 Made changes for new mprintf calling convention
68300 ----------------------------
68301 revision 1.12
68302 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
68303 fix bug in tmapnum == 0 always getting reassigned.
68304 ----------------------------
68305 revision 1.11
68306 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
68307 changing texture maps in all mines.
68308 ----------------------------
68309 revision 1.10
68310 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
68311 Changed some shorts to ints.
68312 ----------------------------
68313 revision 1.9
68314 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
68315 Fixed bug with writing to canvas before initing it.
68316 ----------------------------
68317 revision 1.8
68318 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
68319 Fixed grab bug, and cleaned up code
68320 ----------------------------
68321 revision 1.7
68322 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
68323 Fixed overplot problem with texture names
68324 ----------------------------
68325 revision 1.6
68326 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
68327 Fixed resetting to first texture on page annoyance.
68328 ----------------------------
68329 revision 1.5
68330 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
68331 Added objects to objpage. Added buttons for easier tmap scrolling.
68332 Objects are selected fully from objpage and add object menu or pad.
68333 ----------------------------
68334 revision 1.4
68335 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
68336 Fixed bm loader (might have some changes in walls and switches)
68337 ----------------------------
68338 revision 1.3
68339 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
68340 Moved texture and object selection to texpage and objpage
68341 ----------------------------
68342 revision 1.2
68343 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
68344 moved texture selection stuff to texpage.c
68345 ----------------------------
68346 revision 1.1
68347 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
68348 Initial revision
68349 =============================================================================
68350 RCS file: f:/miner/source/main/editor/texpage.c,v
68351 Working file: main/editor/texpage.c
68352 head: 1.13
68353 branch:
68354 description: Routines for displaying texture pages
68355 ----------------------------
68356 revision 1.13
68357 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
68358 Made changes for new mprintf calling convention
68359 ----------------------------
68360 revision 1.12
68361 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
68362 fix bug in tmapnum == 0 always getting reassigned.
68363 ----------------------------
68364 revision 1.11
68365 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
68366 changing texture maps in all mines.
68367 ----------------------------
68368 revision 1.10
68369 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
68370 Changed some shorts to ints.
68371 ----------------------------
68372 revision 1.9
68373 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
68374 Fixed bug with writing to canvas before initing it.
68375 ----------------------------
68376 revision 1.8
68377 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
68378 Fixed grab bug, and cleaned up code
68379 ----------------------------
68380 revision 1.7
68381 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
68382 Fixed overplot problem with texture names
68383 ----------------------------
68384 revision 1.6
68385 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
68386 Fixed resetting to first texture on page annoyance.
68387 ----------------------------
68388 revision 1.5
68389 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
68390 Added objects to objpage. Added buttons for easier tmap scrolling.
68391 Objects are selected fully from objpage and add object menu or pad.
68392 ----------------------------
68393 revision 1.4
68394 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
68395 Fixed bm loader (might have some changes in walls and switches)
68396 ----------------------------
68397 revision 1.3
68398 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
68399 Moved texture and object selection to texpage and objpage
68400 ----------------------------
68401 revision 1.2
68402 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
68403 moved texture selection stuff to texpage.c
68404 ----------------------------
68405 revision 1.1
68406 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
68407 Initial revision
68408 =============================================================================
68409 RCS file: f:/miner/source/main/editor/texpage.c,v
68410 Working file: main/editor/texpage.c
68411 head: 1.14
68412 branch:
68413 description: Routines for displaying texture pages
68414 ----------------------------
68415 revision 1.14
68416 date: 1995/01/14 19:18:02;  author: john;  state: Exp;
68417 First version of object paging.
68418 ----------------------------
68419 revision 1.13
68420 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
68421 Made changes for new mprintf calling convention
68422 ----------------------------
68423 revision 1.12
68424 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
68425 fix bug in tmapnum == 0 always getting reassigned.
68426 ----------------------------
68427 revision 1.11
68428 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
68429 changing texture maps in all mines.
68430 ----------------------------
68431 revision 1.10
68432 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
68433 Changed some shorts to ints.
68434 ----------------------------
68435 revision 1.9
68436 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
68437 Fixed bug with writing to canvas before initing it.
68438 ----------------------------
68439 revision 1.8
68440 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
68441 Fixed grab bug, and cleaned up code
68442 ----------------------------
68443 revision 1.7
68444 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
68445 Fixed overplot problem with texture names
68446 ----------------------------
68447 revision 1.6
68448 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
68449 Fixed resetting to first texture on page annoyance.
68450 ----------------------------
68451 revision 1.5
68452 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
68453 Added objects to objpage. Added buttons for easier tmap scrolling.
68454 Objects are selected fully from objpage and add object menu or pad.
68455 ----------------------------
68456 revision 1.4
68457 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
68458 Fixed bm loader (might have some changes in walls and switches)
68459 ----------------------------
68460 revision 1.3
68461 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
68462 Moved texture and object selection to texpage and objpage
68463 ----------------------------
68464 revision 1.2
68465 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
68466 moved texture selection stuff to texpage.c
68467 ----------------------------
68468 revision 1.1
68469 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
68470 Initial revision
68471 =============================================================================
68472 RCS file: f:/miner/source/main/editor/macro.c,v
68473 Working file: main/editor/macro.c
68474 head: 2.0
68475 branch:
68476 description: Routines for recording/playing/saving macros
68477 ----------------------------
68478 revision 2.0
68479 date: 1995/02/27 11:35:09;  author: john;  state: Exp;
68480 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68481 for bitmaps.tbl.
68482 ----------------------------
68483 revision 1.12
68484 date: 1993/11/15 14:46:37;  author: john;  state: Exp;
68485 Changed Menu to MenuX
68486 ----------------------------
68487 revision 1.11
68488 date: 1993/11/05 17:32:44;  author: john;  state: Exp;
68489 added funcs
68490 .,
68491 ----------------------------
68492 revision 1.10
68493 date: 1993/10/28 16:23:20;  author: john;  state: Exp;
68494 *** empty log message ***
68495 ----------------------------
68496 revision 1.9
68497 date: 1993/10/28 13:03:12;  author: john;  state: Exp;
68498 ..
68499 ----------------------------
68500 revision 1.8
68501 date: 1993/10/25 16:02:35;  author: john;  state: Exp;
68502 *** empty log message ***
68503 ----------------------------
68504 revision 1.7
68505 date: 1993/10/22 13:35:29;  author: john;  state: Exp;
68506 *** empty log message ***
68507 ----------------------------
68508 revision 1.6
68509 date: 1993/10/21 17:10:09;  author: john;  state: Exp;
68510 Fixed bug w/ load macro.
68511 ----------------------------
68512 revision 1.5
68513 date: 1993/10/19 12:58:47;  author: john;  state: Exp;
68514 *** empty log message ***
68515 ----------------------------
68516 revision 1.4
68517 date: 1993/10/19 12:55:02;  author: john;  state: Exp;
68518 *** empty log message ***
68519 ----------------------------
68520 revision 1.3
68521 date: 1993/10/19 12:49:49;  author: john;  state: Exp;
68522 made EventBuffer dynamic, use ReadFile, WriteFile
68523 ----------------------------
68524 revision 1.2
68525 date: 1993/10/15 17:42:20;  author: john;  state: Exp;
68526 *** empty log message ***
68527 ----------------------------
68528 revision 1.1
68529 date: 1993/10/15 17:28:06;  author: john;  state: Exp;
68530 Initial revision
68531 =============================================================================
68532 RCS file: f:/miner/source/main/editor/macro.h,v
68533 Working file: main/editor/macro.h
68534 head: 2.0
68535 branch:
68536 description: Header for macro.c
68537 ----------------------------
68538 revision 2.0
68539 date: 1995/02/27 11:34:32;  author: john;  state: Exp;
68540 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68541 for bitmaps.tbl.
68542 ----------------------------
68543 revision 1.2
68544 date: 1994/05/14 17:18:19;  author: matt;  state: Exp;
68545 Got rid of externs in source (non-header) files
68546 ----------------------------
68547 revision 1.1
68548 date: 1994/05/14 16:38:50;  author: matt;  state: Exp;
68549 Initial revision
68550 =============================================================================
68551 RCS file: f:/miner/source/main/editor/med.c,v
68552 Working file: main/editor/med.c
68553 head: 2.3
68554 branch:
68555 description: Editor loop for Inferno
68556 ----------------------------
68557 revision 2.3
68558 date: 1995/03/06 18:23:52;  author: john;  state: Exp;
68559 Fixed bug with font screwing up.
68560 ----------------------------
68561 revision 2.2
68562 date: 1995/03/06 16:34:55;  author: john;  state: Exp;
68563 Fixed bug with previous.
68564 ----------------------------
68565 revision 2.1
68566 date: 1995/03/06 15:20:57;  author: john;  state: Exp;
68567 New screen mode method.
68568 ----------------------------
68569 revision 2.0
68570 date: 1995/02/27 11:35:54;  author: john;  state: Exp;
68571 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68572 for bitmaps.tbl.
68573 ----------------------------
68574 revision 1.192
68575 date: 1994/11/30 12:33:55;  author: mike;  state: Exp;
68576 set window clearing mode for editor.
68577 ----------------------------
68578 revision 1.191
68579 date: 1994/11/27 23:17:02;  author: matt;  state: Exp;
68580 Made changes for new mprintf calling convention
68581 ----------------------------
68582 revision 1.190
68583 date: 1994/11/19 00:04:33;  author: john;  state: Exp;
68584 Changed some shorts to ints.
68585 ----------------------------
68586 revision 1.189
68587 date: 1994/11/17 14:47:57;  author: mike;  state: Exp;
68588 validation functions moved from editor to game.
68589 ----------------------------
68590 revision 1.188
68591 date: 1994/11/14 11:41:38;  author: john;  state: Exp;
68592 Fixed bug with editor/game sequencing.
68593 ----------------------------
68594 revision 1.187
68595 date: 1994/11/13 15:36:44;  author: john;  state: Exp;
68596 Changed game sequencing with editor.
68597 ----------------------------
68598 revision 1.186
68599 date: 1994/11/10 16:49:12;  author: matt;  state: Exp;
68600 Don't sort seg list if no segs in list
68601 ----------------------------
68602 revision 1.185
68603 date: 1994/11/08 09:28:39;  author: mike;  state: Exp;
68604 reset ai paths on going to game.
68605 ----------------------------
68606 revision 1.184
68607 date: 1994/10/30 14:13:05;  author: mike;  state: Exp;
68608 rip out repair center stuff.
68609 ----------------------------
68610 revision 1.183
68611 date: 1994/10/27 10:07:06;  author: mike;  state: Exp;
68612 adapt to no inverse table.
68613 ----------------------------
68614 revision 1.182
68615 date: 1994/10/20 12:48:03;  author: matt;  state: Exp;
68616 Replaced old save files (MIN/SAV/HOT) with new LVL files
68617 ----------------------------
68618 revision 1.181
68619 date: 1994/10/13 11:39:22;  author: john;  state: Exp;
68620 Took out network stuff/.
68621 ----------------------------
68622 revision 1.180
68623 date: 1994/10/07 22:21:38;  author: mike;  state: Exp;
68624 Stop Delete-{whatever} from hanging you!
68625 ----------------------------
68626 revision 1.179
68627 date: 1994/10/03 23:39:37;  author: mike;  state: Exp;
68628 Adapt to newer, better, fuelcen_activate function.
68629 ----------------------------
68630 revision 1.178
68631 date: 1994/09/30 00:38:05;  author: mike;  state: Exp;
68632 Shorten diagnostic message erase -- was erasing outside canvas.
68633 ----------------------------
68634 revision 1.177
68635 date: 1994/09/28 17:31:37;  author: mike;  state: Exp;
68636 Add call to check_wall_validity();
68637 ----------------------------
68638 revision 1.176
68639 date: 1994/08/19 10:57:42;  author: mike;  state: Exp;
68640 Fix status message erase bug.
68641 ----------------------------
68642 revision 1.175
68643 date: 1994/08/18 10:48:12;  author: john;  state: Exp;
68644 Cleaned up game sequencing.
68645 ----------------------------
68646 revision 1.174
68647 date: 1994/08/16 18:11:04;  author: yuan;  state: Exp;
68648 Maded C place you in the center of a segment.
68649 ----------------------------
68650 revision 1.173
68651 date: 1994/08/10 19:55:05;  author: john;  state: Exp;
68652 Changed font stuff.
68653 ----------------------------
68654 revision 1.172
68655 date: 1994/08/09 16:06:06;  author: john;  state: Exp;
68656 Added the ability to place players.  Made old
68657 Player variable be ConsoleObject.
68658 ----------------------------
68659 revision 1.171
68660 date: 1994/08/04 09:14:11;  author: matt;  state: Exp;
68661 Fixed problem I said I fixed last time
68662 ----------------------------
68663 revision 1.170
68664 date: 1994/08/04 00:27:57;  author: matt;  state: Exp;
68665 When viewing a wall, update the objects segnum if moved out of the segment
68666 ----------------------------
68667 revision 1.169
68668 date: 1994/08/02 14:18:12;  author: mike;  state: Exp;
68669 Clean up dialog boxes.
68670 ----------------------------
68671 revision 1.168
68672 date: 1994/07/29 15:34:35;  author: mike;  state: Exp;
68673 Kill some mprintfs.
68674 ----------------------------
68675 revision 1.167
68676 date: 1994/07/29 14:56:46;  author: yuan;  state: Exp;
68677 Close centers window, when you go into game.
68678 ----------------------------
68679 revision 1.166
68680 date: 1994/07/28 17:16:20;  author: john;  state: Exp;
68681 MAde editor use Network stuff.
68682 ----------------------------
68683 revision 1.165
68684 date: 1994/07/28 16:59:10;  author: mike;  state: Exp;
68685 objects containing objects.
68686 ----------------------------
68687 revision 1.164
68688 date: 1994/07/22 12:37:07;  author: matt;  state: Exp;
68689 Cleaned up editor/game interactions some more.
68690 ----------------------------
68691 revision 1.163
68692 date: 1994/07/21 19:35:11;  author: yuan;  state: Exp;
68693 Fixed #include problem
68694 ----------------------------
68695 revision 1.162
68696 date: 1994/07/21 18:02:09;  author: matt;  state: Exp;
68697 Don't re-init player stats when going from editor -> game
68698 ----------------------------
68699 revision 1.161
68700 date: 1994/07/21 12:47:53;  author: mike;  state: Exp;
68701 Add tilde key functionality for object movement.
68702 ----------------------------
68703 revision 1.160
68704 date: 1994/07/18 10:44:55;  author: mike;  state: Exp;
68705 One-click access to keypads.
68706 ----------------------------
68707 revision 1.159
68708 date: 1994/07/01 18:05:54;  author: john;  state: Exp;
68709 *** empty log message ***
68710 ----------------------------
68711 revision 1.158
68712 date: 1994/07/01 17:57:06;  author: john;  state: Exp;
68713 First version of not-working hostage system
68714 ----------------------------
68715 revision 1.157
68716 date: 1994/07/01 11:32:29;  author: john;  state: Exp;
68717 *** empty log message ***
68718 ----------------------------
68719 revision 1.156
68720 date: 1994/06/24 17:04:36;  author: john;  state: Exp;
68721 *** empty log message ***
68722 ----------------------------
68723 revision 1.155
68724 date: 1994/06/23 15:53:47;  author: matt;  state: Exp;
68725 Finished hacking in 3d rendering in big window
68726 ----------------------------
68727 revision 1.154
68728 date: 1994/06/21 16:17:54;  author: yuan;  state: Exp;
68729 Init stats when you go to game from editor
68730 ----------------------------
68731 revision 1.153
68732 date: 1994/06/21 12:57:14;  author: yuan;  state: Exp;
68733 Remove center from segment function added to menu.
68734 =============================================================================
68735 RCS file: f:/miner/source/main/editor/meddraw.c,v
68736 Working file: main/editor/meddraw.c
68737 head: 2.0
68738 branch:
68739 description: Med drawing functions.
68740 ----------------------------
68741 revision 2.0
68742 date: 1995/02/27 11:34:42;  author: john;  state: Exp;
68743 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68744 for bitmaps.tbl.
68745 ----------------------------
68746 revision 1.34
68747 date: 1994/11/09 11:46:30;  author: matt;  state: Exp;
68748 Don't draw non-existant special segments
68749 ----------------------------
68750 revision 1.33
68751 date: 1994/10/27 10:06:38;  author: mike;  state: Exp;
68752 adapt to no inverse table.
68753 ----------------------------
68754 revision 1.32
68755 date: 1994/10/17 18:06:23;  author: john;  state: Exp;
68756 Made net player objects draw in dark green.
68757 ----------------------------
68758 revision 1.31
68759 date: 1994/09/26 16:44:33;  author: yuan;  state: Exp;
68760 Colored special segments.
68761 ----------------------------
68762 revision 1.30
68763 date: 1994/09/01 17:02:41;  author: matt;  state: Exp;
68764 Redraw pointer after world draw
68765 ----------------------------
68766 revision 1.29
68767 date: 1994/08/25 21:56:21;  author: mike;  state: Exp;
68768 IS_CHILD stuff.
68769 ----------------------------
68770 revision 1.28
68771 date: 1994/08/11 18:59:46;  author: mike;  state: Exp;
68772 Adapt to new int (vs short) version of gameseg functions.
68773 ----------------------------
68774 revision 1.27
68775 date: 1994/08/09 16:06:03;  author: john;  state: Exp;
68776 Added the ability to place players.  Made old
68777 Player variable be ConsoleObject.
68778 ----------------------------
68779 revision 1.26
68780 date: 1994/07/25 00:03:05;  author: matt;  state: Exp;
68781 Various changes to accomodate new 3d, which no longer takes point numbers
68782 as parms, and now only takes pointers to points.
68783 ----------------------------
68784 revision 1.25
68785 date: 1994/07/09 17:38:13;  author: mike;  state: Exp;
68786 comment out mprintf(0, "\n");
68787 ----------------------------
68788 revision 1.24
68789 date: 1994/07/07 19:34:47;  author: matt;  state: Exp;
68790 These changes are mostly Mike's, but I fixed a little bug that caused
68791 some edges to think they were never used.
68792 ----------------------------
68793 revision 1.23
68794 date: 1994/07/06 16:36:18;  author: mike;  state: Exp;
68795 Optionally only draw segment lines which are in only one segment.
68796 ----------------------------
68797 revision 1.22
68798 date: 1994/05/27 10:34:28;  author: yuan;  state: Exp;
68799 Added new Dialog boxes for Walls and Triggers.
68800 ----------------------------
68801 revision 1.21
68802 date: 1994/05/14 18:00:56;  author: matt;  state: Exp;
68803 Got rid of externs in source (non-header) files
68804 ----------------------------
68805 revision 1.20
68806 date: 1994/05/09 23:35:21;  author: mike;  state: Exp;
68807 Change order of drawing found and selected segments.
68808 ----------------------------
68809 revision 1.19
68810 date: 1994/05/05 12:55:38;  author: yuan;  state: Exp;
68811 Fixed a bunch of group bugs.
68812 ----------------------------
68813 revision 1.18
68814 date: 1994/05/04 13:07:52;  author: matt;  state: Exp;
68815 Made current edge draw in green in wire-frame window
68816 Also, moved a bunch of color constants here from editor.h
68817 =============================================================================
68818 RCS file: f:/miner/source/main/editor/meddraw.h,v
68819 Working file: main/editor/meddraw.h
68820 head: 2.0
68821 branch:
68822 description: Defnts for med drawing stuff
68823 ----------------------------
68824 revision 2.0
68825 date: 1995/02/27 11:35:12;  author: john;  state: Exp;
68826 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68827 for bitmaps.tbl.
68828 ----------------------------
68829 revision 1.3
68830 date: 1994/07/06 16:36:54;  author: mike;  state: Exp;
68831 Prototype for draw_mine_all.
68832 ----------------------------
68833 revision 1.2
68834 date: 1993/12/17 12:05:09;  author: john;  state: Exp;
68835 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
68836 ----------------------------
68837 revision 1.1
68838 date: 1993/12/17 08:55:14;  author: john;  state: Exp;
68839 Initial revision
68840 =============================================================================
68841 RCS file: f:/miner/source/main/editor/medmisc.c,v
68842 Working file: main/editor/medmisc.c
68843 head: 2.1
68844 branch:
68845 description: Miscellaneous functions stripped out of med.c
68846 ----------------------------
68847 revision 2.1
68848 date: 1995/03/06 15:20:50;  author: john;  state: Exp;
68849 New screen mode method.
68850 ----------------------------
68851 revision 2.0
68852 date: 1995/02/27 11:36:40;  author: john;  state: Exp;
68853 Version 2.0. Ansi-fied.
68854 ----------------------------
68855 revision 1.31
68856 date: 1994/11/27 23:17:20;  author: matt;  state: Exp;
68857 Made changes for new mprintf calling convention
68858 ----------------------------
68859 revision 1.30
68860 date: 1994/11/17 14:48:11;  author: mike;  state: Exp;
68861 validation functions moved from editor to game.
68862 ----------------------------
68863 revision 1.29
68864 date: 1994/08/25 21:56:15;  author: mike;  state: Exp;
68865 IS_CHILD stuff.
68866 ----------------------------
68867 revision 1.28
68868 date: 1994/08/09 16:06:00;  author: john;  state: Exp;
68869 Added the ability to place players.  Made old
68870 Player variable be ConsoleObject.
68871 ----------------------------
68872 revision 1.27
68873 date: 1994/07/21 17:25:43;  author: matt;  state: Exp;
68874 Took out unused func medlisp_create_new_mine() and its prototype
68875 ----------------------------
68876 revision 1.26
68877 date: 1994/07/21 13:27:01;  author: matt;  state: Exp;
68878 Cleaned up render code and added error checking
68879 ----------------------------
68880 revision 1.25
68881 date: 1994/07/20 15:32:52;  author: matt;  state: Exp;
68882 Added func to call g3_point_2_vec() for texture-mapped window
68883 ----------------------------
68884 revision 1.24
68885 date: 1994/07/15 15:26:53;  author: yuan;  state: Exp;
68886 Fixed warning
68887 ----------------------------
68888 revision 1.23
68889 date: 1994/07/14 14:45:16;  author: yuan;  state: Exp;
68890 Added function to set default segment and attach.
68891 ----------------------------
68892 revision 1.22
68893 date: 1994/07/14 09:46:34;  author: yuan;  state: Exp;
68894 Make E attach segment as well as make default.
68895 ----------------------------
68896 revision 1.21
68897 date: 1994/07/11 18:39:17;  author: john;  state: Exp;
68898 Reversed y axis roll.
68899 ----------------------------
68900 revision 1.20
68901 date: 1994/07/06 16:36:32;  author: mike;  state: Exp;
68902 Add hook for game to render wireframe view: draw_world_from_game.
68903 ----------------------------
68904 revision 1.19
68905 date: 1994/06/24 14:08:31;  author: john;  state: Exp;
68906 Changed calling params for render_frame.
68907 ----------------------------
68908 revision 1.18
68909 date: 1994/06/23 15:54:02;  author: matt;  state: Exp;
68910 Finished hacking in 3d rendering in big window
68911 ----------------------------
68912 revision 1.17
68913 date: 1994/06/22 00:32:56;  author: matt;  state: Exp;
68914 New version, without all the errors of the last version. Sorry.
68915 ----------------------------
68916 revision 1.15
68917 date: 1994/05/23 14:48:54;  author: mike;  state: Exp;
68918 make current segment be add segment.
68919 ----------------------------
68920 revision 1.14
68921 date: 1994/05/19 12:09:35;  author: matt;  state: Exp;
68922 Use new vecmat macros and globals
68923 ----------------------------
68924 revision 1.13
68925 date: 1994/05/14 17:17:55;  author: matt;  state: Exp;
68926 Got rid of externs in source (non-header) files
68927 ----------------------------
68928 revision 1.12
68929 date: 1994/05/09 23:35:06;  author: mike;  state: Exp;
68930 Add ClearFoundList, which is probably no longer being called.
68931 ----------------------------
68932 revision 1.11
68933 date: 1994/05/04 14:11:40;  author: mike;  state: Exp;
68934 Increase render depth from 4 to 6 by default.
68935 ----------------------------
68936 revision 1.10
68937 date: 1994/04/27 21:00:25;  author: matt;  state: Exp;
68938 Made texture-mapped window redraw when editor state variables (such as
68939 current object) have changed.
68940 ----------------------------
68941 revision 1.9
68942 date: 1994/03/31 12:03:38;  author: matt;  state: Exp;
68943 Cleaned up includes
68944 ----------------------------
68945 revision 1.8
68946 date: 1994/02/17 11:31:21;  author: matt;  state: Exp;
68947 Changes in object system
68948 ----------------------------
68949 revision 1.7
68950 date: 1994/02/11 11:05:14;  author: yuan;  state: Exp;
68951 Make chase mode unsettable... Gives a warning on the mono.
68952 ----------------------------
68953 revision 1.6
68954 date: 1994/01/21 17:37:24;  author: matt;  state: Exp;
68955 Moved code from render_frame() to caller, making code cleaner
68956 ----------------------------
68957 revision 1.5
68958 date: 1994/01/11 18:12:43;  author: yuan;  state: Exp;
68959 compress_mines removed.  Now it is called within
68960 the gamesave.min save whenever we go into the game.
68961 ----------------------------
68962 revision 1.4
68963 date: 1994/01/05 10:54:15;  author: john;  state: Exp;
68964 New object code by John
68965 ----------------------------
68966 revision 1.3
68967 date: 1993/12/29 16:15:27;  author: mike;  state: Exp;
68968 Kill scale field from segment struct.
68969 ----------------------------
68970 revision 1.2
68971 date: 1993/12/17 12:05:00;  author: john;  state: Exp;
68972 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
68973 ----------------------------
68974 revision 1.1
68975 date: 1993/12/17 08:35:47;  author: john;  state: Exp;
68976 Initial revision
68977 =============================================================================
68978 RCS file: f:/miner/source/main/editor/medmisc.h,v
68979 Working file: main/editor/medmisc.h
68980 head: 2.0
68981 branch:
68982 description: Defn'tns for medmisc.c
68983 ----------------------------
68984 revision 2.0
68985 date: 1995/02/27 11:34:40;  author: john;  state: Exp;
68986 Version 2.0! No anonymous unions, Watcom 10.0, with no need
68987 for bitmaps.tbl.
68988 ----------------------------
68989 revision 1.3
68990 date: 1994/07/21 17:25:28;  author: matt;  state: Exp;
68991 Took out unused func medlisp_create_new_mine() and its prototype
68992 ----------------------------
68993 revision 1.2
68994 date: 1993/12/17 12:05:04;  author: john;  state: Exp;
68995 Took stuff out of med.c; moved into medsel.c, meddraw.c, medmisc.c
68996 ----------------------------
68997 revision 1.1
68998 date: 1993/12/17 08:45:23;  author: john;  state: Exp;
68999 Initial revision
69000 =============================================================================
69001 RCS file: f:/miner/source/main/editor/medrobot.c,v
69002 Working file: main/editor/medrobot.c
69003 head: 2.0
69004 branch:
69005 description: Dialog box to edit robot properties.
69006 ----------------------------
69007 revision 2.0
69008 date: 1995/02/27 11:35:59;  author: john;  state: Exp;
69009 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69010 for bitmaps.tbl.
69011 ----------------------------
69012 revision 1.46
69013 date: 1995/02/22 15:22:03;  author: allender;  state: Exp;
69014 remove anonyous unions from object structure
69015 ----------------------------
69016 revision 1.45
69017 date: 1994/11/27 23:17:32;  author: matt;  state: Exp;
69018 Made changes for new mprintf calling convention
69019 ----------------------------
69020 revision 1.44
69021 date: 1994/11/14 11:39:57;  author: mike;  state: Exp;
69022 fix default robot behavior
69023 ----------------------------
69024 revision 1.43
69025 date: 1994/11/02 16:18:47;  author: matt;  state: Exp;
69026 Moved draw_model_picture() out of editor, and cleaned up code
69027 ----------------------------
69028 revision 1.42
69029 date: 1994/10/10 17:23:23;  author: mike;  state: Exp;
69030 Verify that not placing too many player objects.
69031 ----------------------------
69032 revision 1.41
69033 date: 1994/10/09 22:04:38;  author: mike;  state: Exp;
69034 Maybe improve, maybe not, robot selection in shift-R menu.
69035 ----------------------------
69036 revision 1.40
69037 date: 1994/09/30 21:49:01;  author: mike;  state: Exp;
69038 Fix stupid shift-R dialog bug which caused lots of mprintf and selecting of object and frustration.
69039 ----------------------------
69040 revision 1.39
69041 date: 1994/09/30 11:51:33;  author: mike;  state: Exp;
69042 Fix boolean logic on an error trap.
69043 ----------------------------
69044 revision 1.38
69045 date: 1994/09/20 14:36:32;  author: mike;  state: Exp;
69046 Clean up Robot dialog.
69047 ----------------------------
69048 revision 1.37
69049 date: 1994/09/12 19:11:56;  author: mike;  state: Exp;
69050 Fix stupid bugs in selecting objects.
69051 ----------------------------
69052 revision 1.36
69053 date: 1994/09/01 17:05:51;  author: matt;  state: Exp;
69054 Don't force redraw if object select fails
69055 ----------------------------
69056 revision 1.35
69057 date: 1994/08/31 19:24:40;  author: mike;  state: Exp;
69058 Fix hang bug when only objects in mine are not robots.
69059 ----------------------------
69060 revision 1.34
69061 date: 1994/08/25 21:56:38;  author: mike;  state: Exp;
69062 IS_CHILD stuff.
69063 ----------------------------
69064 revision 1.33
69065 date: 1994/08/23 16:39:29;  author: mike;  state: Exp;
69066 mode replaced by behavior in ai_info.
69067 ----------------------------
69068 revision 1.32
69069 date: 1994/08/15 23:47:16;  author: mike;  state: Exp;
69070 fix bugs.
69071 ----------------------------
69072 revision 1.31
69073 date: 1994/08/13 17:32:45;  author: mike;  state: Exp;
69074 set to still function.
69075 ----------------------------
69076 revision 1.30
69077 date: 1994/08/09 16:06:02;  author: john;  state: Exp;
69078 Added the ability to place players.  Made old
69079 Player variable be ConsoleObject.
69080 ----------------------------
69081 revision 1.29
69082 date: 1994/08/02 16:22:48;  author: matt;  state: Exp;
69083 Finished object editor dialog
69084 =============================================================================
69085 RCS file: f:/miner/source/main/editor/medrobot.h,v
69086 Working file: main/editor/medrobot.h
69087 head: 2.0
69088 branch:
69089 description: Header for robot.c
69090 ----------------------------
69091 revision 2.0
69092 date: 1995/02/27 11:35:04;  author: john;  state: Exp;
69093 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69094 for bitmaps.tbl.
69095 ----------------------------
69096 revision 1.4
69097 date: 1994/08/02 14:17:56;  author: mike;  state: Exp;
69098 Clean up dialog boxes.
69099 ----------------------------
69100 revision 1.3
69101 date: 1994/07/21 19:34:58;  author: yuan;  state: Exp;
69102 Fixed #include problem
69103 ----------------------------
69104 revision 1.2
69105 date: 1994/04/27 21:01:16;  author: matt;  state: Exp;
69106 Added prototypes for robot functions
69107 ----------------------------
69108 revision 1.1
69109 date: 1994/04/27 20:28:59;  author: matt;  state: Exp;
69110 Initial revision
69111 =============================================================================
69112 RCS file: f:/miner/source/main/editor/medsel.c,v
69113 Working file: main/editor/medsel.c
69114 head: 2.0
69115 branch:
69116 description: Routines stripped from med.c for segment selection
69117 ----------------------------
69118 revision 2.0
69119 date: 1995/02/27 11:35:20;  author: john;  state: Exp;
69120 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69121 for bitmaps.tbl.
69122 ----------------------------
69123 revision 1.10
69124 date: 1994/08/09 16:05:59;  author: john;  state: Exp;
69125 Added the ability to place players.  Made old
69126 Player variable be ConsoleObject.
69127 ----------------------------
69128 revision 1.9
69129 date: 1994/05/23 14:56:27;  author: mike;  state: Exp;
69130 make current segment be add segment.
69131 ----------------------------
69132 revision 1.8
69133 date: 1994/05/14 18:00:50;  author: matt;  state: Exp;
69134 Got rid of externs in source (non-header) files
69135 ----------------------------
69136 revision 1.7
69137 date: 1994/03/31 12:03:33;  author: matt;  state: Exp;
69138 Cleaned up includes
69139 ----------------------------
69140 revision 1.6
69141 date: 1994/02/17 12:52:13;  author: yuan;  state: Exp;
69142 Unbackdated
69143 y
69144 ----------------------------
69145 revision 1.4
69146 date: 1994/02/17 09:46:53;  author: matt;  state: Exp;
69147 Removed include of slew.h
69148 ----------------------------
69149 revision 1.3
69150 date: 1994/01/05 10:54:23;  author: john;  state: Exp;
69151 New object code by John
69152 ----------------------------
69153 revision 1.2
69154 date: 1993/12/17 12:18:22;  author: john;  state: Exp;
69155 Moved selection stuff out of med.c
69156 ----------------------------
69157 revision 1.1
69158 date: 1993/12/17 09:29:34;  author: john;  state: Exp;
69159 Initial revision
69160 =============================================================================
69161 RCS file: f:/miner/source/main/editor/medsel.h,v
69162 Working file: main/editor/medsel.h
69163 head: 2.0
69164 branch:
69165 description: rountines stipped from med.c for segment selection
69166 ----------------------------
69167 revision 2.0
69168 date: 1995/02/27 11:34:28;  author: john;  state: Exp;
69169 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69170 for bitmaps.tbl.
69171 ----------------------------
69172 revision 1.2
69173 date: 1993/12/17 12:18:35;  author: john;  state: Exp;
69174 Moved selection stuff out of med.c
69175 ----------------------------
69176 revision 1.1
69177 date: 1993/12/17 09:29:51;  author: john;  state: Exp;
69178 Initial revision
69179 =============================================================================
69180 RCS file: f:/miner/source/main/editor/medwall.c,v
69181 Working file: main/editor/medwall.c
69182 head: 2.0
69183 branch:
69184 description: Created from version 1.11 of main\wall.c
69185 ----------------------------
69186 revision 2.0
69187 date: 1995/02/27 11:35:47;  author: john;  state: Exp;
69188 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69189 for bitmaps.tbl.
69190 ----------------------------
69191 revision 1.71
69192 date: 1995/02/01 16:30:03;  author: yuan;  state: Exp;
69193 Stabilizing triggers and matcens.
69194 ----------------------------
69195 revision 1.70
69196 date: 1995/01/28 15:28:08;  author: yuan;  state: Exp;
69197 Return proper bug description.
69198 ----------------------------
69199 revision 1.69
69200 date: 1995/01/14 19:18:07;  author: john;  state: Exp;
69201 First version of object paging.
69202 ----------------------------
69203 revision 1.68
69204 date: 1995/01/12 12:10:44;  author: yuan;  state: Exp;
69205 Added delete trigger function
69206 ----------------------------
69207 revision 1.67
69208 date: 1994/11/29 16:51:53;  author: yuan;  state: Exp;
69209 Fixed false bogus trigger info.
69210 ----------------------------
69211 revision 1.66
69212 date: 1994/11/27 23:17:29;  author: matt;  state: Exp;
69213 Made changes for new mprintf calling convention
69214 ----------------------------
69215 revision 1.65
69216 date: 1994/11/15 11:59:42;  author: john;  state: Exp;
69217 Changed timing for door to use fixed seconds instead of milliseconds.
69218 ----------------------------
69219 revision 1.64
69220 date: 1994/11/03 10:41:17;  author: yuan;  state: Exp;
69221 Made walls add whichever the previous type was.
69222 ----------------------------
69223 revision 1.63
69224 date: 1994/10/13 13:14:59;  author: yuan;  state: Exp;
69225 Fixed trigger removal bug.
69226 ----------------------------
69227 revision 1.62
69228 date: 1994/10/07 17:43:39;  author: yuan;  state: Exp;
69229 Make validate walls default to 1.
69230 ----------------------------
69231 revision 1.61
69232 date: 1994/10/03 23:40:20;  author: mike;  state: Exp;
69233 Fix hosedness in walls in group copying.
69234 ----------------------------
69235 revision 1.60
69236 date: 1994/09/29 00:20:36;  author: matt;  state: Exp;
69237 Took out reference to unused external wall type
69238 ----------------------------
69239 revision 1.59
69240 date: 1994/09/28 17:32:24;  author: mike;  state: Exp;
69241 Functions to copy walls withing groups.
69242 ----------------------------
69243 revision 1.58
69244 date: 1994/09/28 13:40:46;  author: yuan;  state: Exp;
69245 Fixed control center trigger bug.
69246 ----------------------------
69247 revision 1.57
69248 date: 1994/09/24 12:41:52;  author: matt;  state: Exp;
69249 Took out references to obsolete constants
69250 ----------------------------
69251 revision 1.56
69252 date: 1994/09/23 18:03:55;  author: yuan;  state: Exp;
69253 Finished wall checking code.
69254 ----------------------------
69255 revision 1.55
69256 date: 1994/09/22 14:35:25;  author: matt;  state: Exp;
69257 Made blastable walls work again
69258 ----------------------------
69259 revision 1.54
69260 date: 1994/09/21 16:46:07;  author: yuan;  state: Exp;
69261 Fixed bug that reset wall slot which was just deleted.
69262 ----------------------------
69263 revision 1.53
69264 date: 1994/09/20 18:31:21;  author: yuan;  state: Exp;
69265 Output right Wallnum
69266 ----------------------------
69267 revision 1.52
69268 date: 1994/09/20 18:23:24;  author: yuan;  state: Exp;
69269 Killed the BOGIFYING WALL DRAGON...
69270 There was a problem with triggers being created that had bogus
69271 pointers back to their segments.
69272 ----------------------------
69273 revision 1.51
69274 date: 1994/09/20 11:13:11;  author: yuan;  state: Exp;
69275 Delete all bogus walls when checking walls.
69276 ----------------------------
69277 revision 1.50
69278 date: 1994/09/19 23:31:14;  author: yuan;  state: Exp;
69279 Adding wall checking stuff.
69280 ----------------------------
69281 revision 1.49
69282 date: 1994/09/13 21:11:20;  author: matt;  state: Exp;
69283 Added wclips that use tmap1 instead of tmap2, saving lots of merging
69284 ----------------------------
69285 revision 1.48
69286 date: 1994/09/10 13:32:08;  author: matt;  state: Exp;
69287 Made exploding walls a type of blastable walls.
69288 Cleaned up blastable walls, making them tmap2 bitmaps.
69289 ----------------------------
69290 revision 1.47
69291 date: 1994/09/10 09:47:47;  author: yuan;  state: Exp;
69292 Added wall checking function.
69293 ----------------------------
69294 revision 1.46
69295 date: 1994/08/26 14:14:56;  author: yuan;  state: Exp;
69296 Fixed wall clip being set to -2 bug.
69297 ----------------------------
69298 revision 1.45
69299 date: 1994/08/25 21:56:26;  author: mike;  state: Exp;
69300 IS_CHILD stuff.
69301 ----------------------------
69302 revision 1.44
69303 date: 1994/08/19 19:30:27;  author: matt;  state: Exp;
69304 Added informative message if wall is already external when making it so.
69305 ----------------------------
69306 revision 1.43
69307 date: 1994/08/17 11:13:46;  author: matt;  state: Exp;
69308 Changed way external walls work
69309 ----------------------------
69310 revision 1.42
69311 date: 1994/08/15 17:47:29;  author: yuan;  state: Exp;
69312 Added external walls
69313 ----------------------------
69314 revision 1.41
69315 date: 1994/08/05 21:18:09;  author: matt;  state: Exp;
69316 Allow two doors to be linked together
69317 ----------------------------
69318 revision 1.40
69319 date: 1994/08/02 14:18:06;  author: mike;  state: Exp;
69320 Clean up dialog boxes.
69321 ----------------------------
69322 revision 1.39
69323 date: 1994/08/01 11:04:33;  author: yuan;  state: Exp;
69324 New materialization centers.
69325 ----------------------------
69326 revision 1.38
69327 date: 1994/07/22 17:19:11;  author: yuan;  state: Exp;
69328 Working on dialog box for refuel/repair/material/control centers.
69329 ----------------------------
69330 revision 1.37
69331 date: 1994/07/20 17:35:33;  author: yuan;  state: Exp;
69332 Added new gold key.
69333 ----------------------------
69334 revision 1.36
69335 date: 1994/07/19 14:31:44;  author: yuan;  state: Exp;
69336 Fixed keys bug.
69337 ----------------------------
69338 revision 1.35
69339 date: 1994/07/18 15:58:31;  author: yuan;  state: Exp;
69340 Hopefully prevent any "Adam door bombouts"
69341 ----------------------------
69342 revision 1.34
69343 date: 1994/07/18 15:48:40;  author: yuan;  state: Exp;
69344 Made minor cosmetic change.
69345 ----------------------------
69346 revision 1.33
69347 date: 1994/07/15 16:09:22;  author: yuan;  state: Exp;
69348 Error checking
69349 ----------------------------
69350 revision 1.32
69351 date: 1994/07/14 16:47:05;  author: yuan;  state: Exp;
69352 Fixed wall dialog for selected dooranims.
69353 ----------------------------
69354 revision 1.31
69355 date: 1994/07/11 15:09:16;  author: yuan;  state: Exp;
69356 Wall anim filenames stored in wclip structure.
69357 ----------------------------
69358 revision 1.30
69359 date: 1994/07/06 10:56:01;  author: john;  state: Exp;
69360 New structures for hostages.
69361 ----------------------------
69362 revision 1.29
69363 date: 1994/07/01 16:35:54;  author: yuan;  state: Exp;
69364 Added key system
69365 ----------------------------
69366 revision 1.28
69367 date: 1994/06/21 18:50:12;  author: john;  state: Exp;
69368 Made ESC key exit dialog.
69369 ----------------------------
69370 revision 1.27
69371 date: 1994/06/20 22:29:59;  author: yuan;  state: Exp;
69372 Fixed crazy runaway trigger bug that Adam found
69373 ----------------------------
69374 revision 1.26
69375 date: 1994/06/01 15:50:25;  author: yuan;  state: Exp;
69376 Added one more door... Needs to be set by bm.c in the future.
69377 ----------------------------
69378 revision 1.25
69379 date: 1994/05/30 20:22:34;  author: yuan;  state: Exp;
69380 New triggers.
69381 ----------------------------
69382 revision 1.24
69383 date: 1994/05/27 10:34:31;  author: yuan;  state: Exp;
69384 Added new Dialog boxes for Walls and Triggers.
69385 ----------------------------
69386 revision 1.23
69387 date: 1994/05/25 18:08:45;  author: yuan;  state: Exp;
69388 Revamping walls and triggers interface.
69389 Wall interface complete, but triggers are still in progress.
69390 ----------------------------
69391 revision 1.22
69392 date: 1994/05/18 18:21:56;  author: yuan;  state: Exp;
69393 Fixed delete segment and walls bug.
69394 ----------------------------
69395 revision 1.21
69396 date: 1994/05/11 18:24:29;  author: yuan;  state: Exp;
69397 Oops.. trigger not triggers..
69398 ----------------------------
69399 revision 1.20
69400 date: 1994/05/11 18:23:53;  author: yuan;  state: Exp;
69401 Fixed trigger not set to -1 bug.
69402 =============================================================================
69403 RCS file: f:/miner/source/main/editor/medwall.h,v
69404 Working file: main/editor/medwall.h
69405 head: 2.0
69406 branch:
69407 description: Created from version 1.6 of main\wall.h
69408 ----------------------------
69409 revision 2.0
69410 date: 1995/02/27 11:35:10;  author: john;  state: Exp;
69411 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69412 for bitmaps.tbl.
69413 ----------------------------
69414 revision 1.9
69415 date: 1994/09/28 17:31:51;  author: mike;  state: Exp;
69416 Prototype copy_group_walls().
69417 ----------------------------
69418 revision 1.8
69419 date: 1994/08/05 21:18:16;  author: matt;  state: Exp;
69420 Allow two doors to be linked together
69421 ----------------------------
69422 revision 1.7
69423 date: 1994/06/20 22:30:10;  author: yuan;  state: Exp;
69424 Fixed crazy runaway trigger bug that Adam found
69425 ----------------------------
69426 revision 1.6
69427 date: 1994/05/30 20:22:58;  author: yuan;  state: Exp;
69428 New triggers.
69429 ----------------------------
69430 revision 1.5
69431 date: 1994/05/25 18:08:37;  author: yuan;  state: Exp;
69432 Revamping walls and triggers interface.
69433 Wall interface complete, but triggers are still in progress.
69434 ----------------------------
69435 revision 1.4
69436 date: 1994/05/18 18:22:04;  author: yuan;  state: Exp;
69437 Fixed delete segment and walls bug.
69438 ----------------------------
69439 revision 1.3
69440 date: 1994/03/17 18:08:41;  author: yuan;  state: Exp;
69441 New wall stuff... Cut out switches....
69442 ----------------------------
69443 revision 1.2
69444 date: 1994/03/15 16:34:10;  author: yuan;  state: Exp;
69445 Fixed bm loader (might have some changes in walls and switches)
69446 ----------------------------
69447 revision 1.1
69448 date: 1994/02/10 17:52:01;  author: matt;  state: Exp;
69449 Initial revision
69450 =============================================================================
69451 RCS file: f:/miner/source/main/editor/mine.c,v
69452 Working file: main/editor/mine.c
69453 head: 2.0
69454 branch:
69455 description: Mine specific editing functions, such as load_mine, save_mine
69456 ----------------------------
69457 revision 2.0
69458 date: 1995/02/27 11:34:38;  author: john;  state: Exp;
69459 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69460 for bitmaps.tbl.
69461 ----------------------------
69462 revision 1.82
69463 date: 1995/01/19 15:19:42;  author: mike;  state: Exp;
69464 New super-compressed registered file format.
69465 ----------------------------
69466 revision 1.81
69467 date: 1994/12/15 16:51:39;  author: mike;  state: Exp;
69468 fix error message.
69469 ----------------------------
69470 revision 1.80
69471 date: 1994/12/09 22:52:27;  author: yuan;  state: Exp;
69472 *** empty log message ***
69473 ----------------------------
69474 revision 1.79
69475 date: 1994/11/27 23:17:14;  author: matt;  state: Exp;
69476 Made changes for new mprintf calling convention
69477 ----------------------------
69478 revision 1.78
69479 date: 1994/11/26 21:48:24;  author: matt;  state: Exp;
69480 Fixed saturation in short light value
69481 ----------------------------
69482 revision 1.77
69483 date: 1994/11/18 09:43:22;  author: mike;  state: Exp;
69484 mprintf and clean up instead of Assert on values which don't fit in a short.
69485 ----------------------------
69486 revision 1.76
69487 date: 1994/11/17 20:37:37;  author: john;  state: Exp;
69488 Added comment to get mike or john.
69489 ----------------------------
69490 revision 1.75
69491 date: 1994/11/17 20:08:51;  author: john;  state: Exp;
69492 Added new compiled level format.
69493 ----------------------------
69494 revision 1.74
69495 date: 1994/11/17 11:39:00;  author: matt;  state: Exp;
69496 Ripped out code to load old mines
69497 ----------------------------
69498 revision 1.73
69499 date: 1994/10/20 12:47:47;  author: matt;  state: Exp;
69500 Replaced old save files (MIN/SAV/HOT) with new LVL files
69501 ----------------------------
69502 revision 1.72
69503 date: 1994/09/23 22:13:58;  author: matt;  state: Exp;
69504 Tooks out references to obsolete structure fields
69505 ----------------------------
69506 revision 1.71
69507 date: 1994/09/22 18:39:40;  author: john;  state: Exp;
69508 *** empty log message ***
69509 ----------------------------
69510 revision 1.70
69511 date: 1994/09/22 18:38:09;  author: john;  state: Exp;
69512 Added better help for locked files.
69513 ----------------------------
69514 revision 1.69
69515 date: 1994/08/01 11:04:44;  author: yuan;  state: Exp;
69516 New materialization centers.
69517 ----------------------------
69518 revision 1.68
69519 date: 1994/06/08 14:29:35;  author: matt;  state: Exp;
69520 Took out support for old mine versions
69521 ----------------------------
69522 revision 1.67
69523 date: 1994/05/27 10:34:37;  author: yuan;  state: Exp;
69524 Added new Dialog boxes for Walls and Triggers.
69525 ----------------------------
69526 revision 1.66
69527 date: 1994/05/23 14:48:08;  author: mike;  state: Exp;
69528 make current segment be add segment.
69529 ----------------------------
69530 revision 1.65
69531 date: 1994/05/17 10:34:52;  author: matt;  state: Exp;
69532 New parm to reset_objects; Num_objects no longer global
69533 ----------------------------
69534 revision 1.64
69535 date: 1994/05/12 14:46:46;  author: mike;  state: Exp;
69536 Load previous mine type.
69537 ----------------------------
69538 revision 1.63
69539 date: 1994/05/06 12:52:13;  author: yuan;  state: Exp;
69540 Adding some gamesave checks...
69541 ----------------------------
69542 revision 1.62
69543 date: 1994/05/05 12:56:32;  author: yuan;  state: Exp;
69544 Fixed a bunch of group bugs.
69545 ----------------------------
69546 revision 1.61
69547 date: 1994/05/03 11:36:55;  author: yuan;  state: Exp;
69548 Fixing mine save.
69549 ----------------------------
69550 revision 1.60
69551 date: 1994/03/19 17:22:14;  author: yuan;  state: Exp;
69552 Wall system implemented until specific features need to be added...
69553 (Needs to be hammered on though.)
69554 ----------------------------
69555 revision 1.59
69556 date: 1994/03/17 18:08:32;  author: yuan;  state: Exp;
69557 New wall stuff... Cut out switches....
69558 ----------------------------
69559 revision 1.58
69560 date: 1994/03/15 16:34:15;  author: yuan;  state: Exp;
69561 Fixed bm loader (might have some changes in walls and switches)
69562 ----------------------------
69563 revision 1.57
69564 date: 1994/03/01 18:14:09;  author: yuan;  state: Exp;
69565 Added new walls, switches, and triggers.
69566 =============================================================================
69567 RCS file: f:/miner/source/main/editor/objpage.c,v
69568 Working file: main/editor/objpage.c
69569 head: 2.0
69570 branch:
69571 description: object selection stuff.
69572 ----------------------------
69573 revision 2.0
69574 date: 1995/02/27 11:34:43;  author: john;  state: Exp;
69575 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69576 for bitmaps.tbl.
69577 ----------------------------
69578 revision 1.37
69579 date: 1995/01/14 19:17:55;  author: john;  state: Exp;
69580 First version of object paging.
69581 ----------------------------
69582 revision 1.36
69583 date: 1995/01/05 16:20:13;  author: mike;  state: Exp;
69584 bah, remove the int3.
69585 ----------------------------
69586 revision 1.35
69587 date: 1995/01/05 12:47:13;  author: mike;  state: Exp;
69588 Move code about to prevent compiler warning.
69589 ----------------------------
69590 revision 1.34
69591 date: 1994/11/18 15:23:55;  author: john;  state: Exp;
69592 Made so the int3 for drawing an invalib object just returns.
69593 ----------------------------
69594 revision 1.33
69595 date: 1994/11/02 16:19:18;  author: matt;  state: Exp;
69596 Moved draw_model_picture() out of editor, and cleaned up code
69597 ----------------------------
69598 revision 1.32
69599 date: 1994/10/23 02:11:18;  author: matt;  state: Exp;
69600 Got rid of obsolete hostage_info stuff
69601 ----------------------------
69602 revision 1.31
69603 date: 1994/09/09 14:41:35;  author: matt;  state: Exp;
69604 New parms for draw_polygon_model()
69605 ----------------------------
69606 revision 1.30
69607 date: 1994/08/29 19:26:53;  author: matt;  state: Exp;
69608 Fixed botches change from yesterday
69609 ----------------------------
69610 revision 1.29
69611 date: 1994/08/28 23:40:35;  author: matt;  state: Exp;
69612 ----------------------------
69613 revision 1.28
69614 date: 1994/08/14 23:15:32;  author: matt;  state: Exp;
69615 Added animating bitmap hostages, and cleaned up vclips a bit
69616 ----------------------------
69617 revision 1.27
69618 date: 1994/08/13 14:59:02;  author: matt;  state: Exp;
69619 Finished adding support for miscellaneous objects
69620 ----------------------------
69621 revision 1.26
69622 date: 1994/08/09 16:06:15;  author: john;  state: Exp;
69623 Added the ability to place players.  Made old
69624 Player variable be ConsoleObject.
69625 ----------------------------
69626 revision 1.25
69627 date: 1994/07/28 16:59:23;  author: mike;  state: Exp;
69628 objects containing objects.
69629 ----------------------------
69630 revision 1.24
69631 date: 1994/06/08 18:17:25;  author: john;  state: Exp;
69632 Changed the way object types and id's work for hostages
69633 and powerups.
69634 ----------------------------
69635 revision 1.23
69636 date: 1994/06/07 16:52:30;  author: matt;  state: Exp;
69637 Made object lighting work correctly; changed name of Ambient_light to
69638 Dynamic_light; cleaned up polygobj object rendering a little.
69639 ----------------------------
69640 revision 1.22
69641 date: 1994/05/31 18:42:07;  author: matt;  state: Exp;
69642 Made robot photos unlighted
69643 ----------------------------
69644 revision 1.21
69645 date: 1994/05/26 21:09:34;  author: matt;  state: Exp;
69646 Moved robot stuff out of polygon model and into robot_info struct
69647 Made new file, robot.c, to deal with robots
69648 ----------------------------
69649 revision 1.20
69650 date: 1994/05/19 12:10:11;  author: matt;  state: Exp;
69651 Use new vecmat macros and globals
69652 ----------------------------
69653 revision 1.19
69654 date: 1994/05/17 14:45:27;  author: mike;  state: Exp;
69655 Get object type and id from ObjType and ObjId.
69656 ----------------------------
69657 revision 1.18
69658 date: 1994/05/17 12:03:36;  author: mike;  state: Exp;
69659 Deal with little known fact that polygon object != robot.
69660 ----------------------------
69661 revision 1.17
69662 date: 1994/04/29 09:16:56;  author: matt;  state: Exp;
69663 Added support for multiple-piece explosions
69664 ----------------------------
69665 revision 1.16
69666 date: 1994/04/18 14:15:00;  author: john;  state: Exp;
69667 Initial version of robot dialog box.
69668 ----------------------------
69669 revision 1.15
69670 date: 1994/04/11 12:01:36;  author: yuan;  state: Exp;
69671 Fixed resetting to first object on page annoyance.
69672 ----------------------------
69673 revision 1.14
69674 date: 1994/04/01 14:35:50;  author: yuan;  state: Exp;
69675 Removed debug "id %d\n" for placing objects
69676 ----------------------------
69677 revision 1.13
69678 date: 1994/04/01 11:17:04;  author: yuan;  state: Exp;
69679 Added objects to objpage. Added buttons for easier tmap scrolling.
69680 Objects are selected fully from objpage and add object menu or pad.
69681 ----------------------------
69682 revision 1.12
69683 date: 1994/03/25 18:42:26;  author: matt;  state: Exp;
69684 Adjusted constant to make robot pictures more correct size
69685 ----------------------------
69686 revision 1.11
69687 date: 1994/03/25 16:57:17;  author: matt;  state: Exp;
69688 New parm to draw_polygon_object(), and draw object "snapshots" in
69689 correct size (although this probably doesn't work yet).
69690 ----------------------------
69691 revision 1.10
69692 date: 1994/03/25 14:23:01;  author: matt;  state: Exp;
69693 Disabled lighting when taking "snapshots" of robots
69694 ----------------------------
69695 revision 1.9
69696 date: 1994/03/17 10:47:24;  author: john;  state: Exp;
69697 Corrected all kinds of problems associated with N_polygon_objects.
69698 ----------------------------
69699 revision 1.8
69700 date: 1994/03/16 11:07:31;  author: john;  state: Exp;
69701 Made zoom work a bit better.
69702 ----------------------------
69703 revision 1.7
69704 date: 1994/03/16 10:50:32;  author: john;  state: Exp;
69705 fixed warning with constant length.
69706 ----------------------------
69707 revision 1.6
69708 date: 1994/03/16 10:43:18;  author: john;  state: Exp;
69709 Added controls to rotate/zoom object.
69710 ----------------------------
69711 revision 1.5
69712 date: 1994/03/15 22:23:24;  author: matt;  state: Exp;
69713 Render little bitmap pictures of robots for display on editor page
69714 ----------------------------
69715 revision 1.4
69716 date: 1994/02/01 11:27:14;  author: john;  state: Exp;
69717 Hacked in 8 object types for demo.
69718 ----------------------------
69719 revision 1.3
69720 date: 1994/01/26 16:42:19;  author: john;  state: Exp;
69721 Display numbers instead of bitmaps... made 
69722 Num_robot_types or whatever be set to 4
69723 in init_object_page... this is a hack!!!
69724 ----------------------------
69725 revision 1.2
69726 date: 1993/12/16 17:26:24;  author: john;  state: Exp;
69727 Moved texture and object selection to texpage and objpage
69728 ----------------------------
69729 revision 1.1
69730 date: 1993/12/16 16:12:57;  author: john;  state: Exp;
69731 Initial revision
69732 =============================================================================
69733 RCS file: f:/miner/source/main/editor/objpage.h,v
69734 Working file: main/editor/objpage.h
69735 head: 2.0
69736 branch:
69737 description: object selection stuff.
69738 ----------------------------
69739 revision 2.0
69740 date: 1995/02/27 11:35:32;  author: john;  state: Exp;
69741 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69742 for bitmaps.tbl.
69743 ----------------------------
69744 revision 1.8
69745 date: 1994/11/02 16:19:20;  author: matt;  state: Exp;
69746 Moved draw_model_picture() out of editor, and cleaned up code
69747 ----------------------------
69748 revision 1.7
69749 date: 1994/07/28 16:59:36;  author: mike;  state: Exp;
69750 objects containing objects.
69751 ----------------------------
69752 revision 1.6
69753 date: 1994/05/17 14:45:48;  author: mike;  state: Exp;
69754 Get object type and id from ObjectType and ObjectId.
69755 ----------------------------
69756 revision 1.5
69757 date: 1994/05/17 12:03:55;  author: mike;  state: Exp;
69758 Deal with little known fact that polygon object != robot.
69759 ----------------------------
69760 revision 1.4
69761 date: 1994/05/14 18:00:33;  author: matt;  state: Exp;
69762 Got rid of externs in source (non-header) files
69763 ----------------------------
69764 revision 1.3
69765 date: 1994/04/01 11:17:06;  author: yuan;  state: Exp;
69766 Added objects to objpage. Added buttons for easier tmap scrolling.
69767 Objects are selected fully from objpage and add object menu or pad.
69768 ----------------------------
69769 revision 1.2
69770 date: 1993/12/16 17:26:27;  author: john;  state: Exp;
69771 Moved texture and object selection to texpage and objpage
69772 ----------------------------
69773 revision 1.1
69774 date: 1993/12/16 16:13:08;  author: john;  state: Exp;
69775 Initial revision
69776 =============================================================================
69777 RCS file: f:/miner/source/main/robot.h,v
69778 Working file: main/robot.h
69779 head: 2.1
69780 branch:
69781 description: Header for robot.c
69782 ----------------------------
69783 revision 2.1
69784 date: 1995/03/07 16:52:00;  author: john;  state: Exp;
69785 Fixed robots not moving without edtiro bug.
69786 ----------------------------
69787 revision 2.0
69788 date: 1995/02/27 11:30:59;  author: john;  state: Exp;
69789 New version 2.0, which has no anonymous unions, builds with
69790 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
69791 ----------------------------
69792 revision 1.25
69793 date: 1994/11/30 14:02:44;  author: mike;  state: Exp;
69794 fields for see/attack/claw sounds.
69795 ----------------------------
69796 revision 1.24
69797 date: 1994/10/27 15:55:41;  author: adam;  state: Exp;
69798 *** empty log message ***
69799 ----------------------------
69800 revision 1.23
69801 date: 1994/10/20 15:17:03;  author: mike;  state: Exp;
69802 Add boss flag.
69803 ----------------------------
69804 revision 1.22
69805 date: 1994/10/20 09:51:00;  author: adam;  state: Exp;
69806 *** empty log message ***
69807 ----------------------------
69808 revision 1.21
69809 date: 1994/10/18 10:52:54;  author: mike;  state: Exp;
69810 Support robots lunging as an attack_type.
69811 ----------------------------
69812 revision 1.20
69813 date: 1994/10/17 21:19:02;  author: mike;  state: Exp;
69814 robot cloaking.
69815 ----------------------------
69816 revision 1.19
69817 date: 1994/09/27 00:03:39;  author: mike;  state: Exp;
69818 Add score_value to robot_info struct.
69819 ----------------------------
69820 revision 1.18
69821 date: 1994/09/22 19:01:12;  author: mike;  state: Exp;
69822 Move NDL from here to game.h
69823 ----------------------------
69824 revision 1.17
69825 date: 1994/09/22 15:46:55;  author: mike;  state: Exp;
69826 Add default contained objects for robots.
69827 ----------------------------
69828 revision 1.16
69829 date: 1994/09/22 10:46:57;  author: mike;  state: Exp;
69830 Add difficulty levels.
69831 ----------------------------
69832 revision 1.15
69833 date: 1994/09/15 16:34:16;  author: mike;  state: Exp;
69834 Change rapidfire_count to a byte, add evade_speed, dum1, dum2.
69835 ----------------------------
69836 revision 1.14
69837 date: 1994/09/09 14:21:58;  author: matt;  state: Exp;
69838 Increased maximum number of games
69839 ----------------------------
69840 revision 1.13
69841 date: 1994/08/25 18:12:13;  author: matt;  state: Exp;
69842 Made player's weapons and flares fire from the positions on the 3d model.
69843 Also added support for quad lasers.
69844 ----------------------------
69845 revision 1.12
69846 date: 1994/08/23 16:37:24;  author: mike;  state: Exp;
69847 Add rapidfire_count to robot_info.
69848 ----------------------------
69849 revision 1.11
69850 date: 1994/07/27 19:45:01;  author: mike;  state: Exp;
69851 Objects containing objects.
69852 ----------------------------
69853 revision 1.10
69854 date: 1994/07/12 12:40:01;  author: matt;  state: Exp;
69855 Revamped physics system
69856 ----------------------------
69857 revision 1.9
69858 date: 1994/06/21 12:17:12;  author: mike;  state: Exp;
69859 Add circle_distance to robot_info.
69860 ----------------------------
69861 revision 1.8
69862 date: 1994/06/09 16:22:28;  author: matt;  state: Exp;
69863 Moved header for calc_gun_point() here, where it belongs
69864 ----------------------------
69865 revision 1.7
69866 date: 1994/06/08 18:16:23;  author: john;  state: Exp;
69867 Bunch of new stuff that basically takes constants out of the code
69868 and puts them into bitmaps.tbl.
69869 ----------------------------
69870 revision 1.6
69871 date: 1994/06/03 11:38:09;  author: john;  state: Exp;
69872 Made robots get their strength for RobotInfo->strength, which
69873 is read in from bitmaps.tbl
69874 ----------------------------
69875 revision 1.5
69876 date: 1994/05/30 19:43:31;  author: mike;  state: Exp;
69877 Add voluminous comment for robot_get_anim_state.
69878 ----------------------------
69879 revision 1.4
69880 date: 1994/05/30 00:03:18;  author: matt;  state: Exp;
69881 Got rid of robot render type, and generally cleaned up polygon model
69882 render objects.
69883 ----------------------------
69884 revision 1.3
69885 date: 1994/05/29 18:46:37;  author: matt;  state: Exp;
69886 Added stuff for getting robot animation info for different states
69887 ----------------------------
69888 revision 1.2
69889 date: 1994/05/26 21:09:18;  author: matt;  state: Exp;
69890 Moved robot stuff out of polygon model and into robot_info struct
69891 Made new file, robot.c, to deal with robots
69892 ----------------------------
69893 revision 1.1
69894 date: 1994/05/26 18:02:12;  author: matt;  state: Exp;
69895 Initial revision
69896 =============================================================================
69897 RCS file: f:/miner/source/main/editor/segment.c,v
69898 Working file: main/editor/segment.c
69899 head: 2.0
69900 branch:
69901 description: Interrogation functions for segment data structure.
69902 ----------------------------
69903 revision 2.0
69904 date: 1995/02/27 11:35:21;  author: john;  state: Exp;
69905 Version 2.0! No anonymous unions, Watcom 10.0, with no need
69906 for bitmaps.tbl.
69907 ----------------------------
69908 revision 1.191
69909 date: 1995/02/22 15:28:30;  author: allender;  state: Exp;
69910 remove anonymous unions from object structure
69911 ----------------------------
69912 revision 1.190
69913 date: 1995/02/02 02:59:40;  author: yuan;  state: Exp;
69914 Working on exterminating bogus matcen_nums... (harmless though)
69915 ----------------------------
69916 revision 1.189
69917 date: 1995/02/01 16:29:51;  author: yuan;  state: Exp;
69918 Stabilizing triggers and matcens.
69919 ----------------------------
69920 revision 1.188
69921 date: 1995/02/01 11:31:47;  author: yuan;  state: Exp;
69922 Trigger bug fixed.
69923 ----------------------------
69924 revision 1.187
69925 date: 1994/11/27 23:17:24;  author: matt;  state: Exp;
69926 Made changes for new mprintf calling convention
69927 ----------------------------
69928 revision 1.186
69929 date: 1994/11/17 14:48:12;  author: mike;  state: Exp;
69930 validation functions moved from editor to game.
69931 ----------------------------
69932 revision 1.185
69933 date: 1994/10/30 14:13:17;  author: mike;  state: Exp;
69934 rip out local segment stuff.
69935 ----------------------------
69936 revision 1.184
69937 date: 1994/10/27 10:04:24;  author: matt;  state: Exp;
69938 When triangulating, don't use WID() to see if connected, look at children
69939 ----------------------------
69940 revision 1.183
69941 date: 1994/10/26 13:40:23;  author: mike;  state: Exp;
69942 debug code for matt.
69943 ----------------------------
69944 revision 1.182
69945 date: 1994/10/24 16:34:00;  author: mike;  state: Exp;
69946 Force render after mine compress to prevent bugs in segment selection via clicking in 3d window.
69947 ----------------------------
69948 revision 1.181
69949 date: 1994/10/20 18:16:15;  author: mike;  state: Exp;
69950 Initialize ControlCenterTriggers.num_links in create_new_mine.
69951 ----------------------------
69952 revision 1.180
69953 date: 1994/10/18 16:29:14;  author: mike;  state: Exp;
69954 Write function to automatically fix bogus segnums in segment array.
69955 ----------------------------
69956 revision 1.179
69957 date: 1994/10/08 17:10:41;  author: matt;  state: Exp;
69958 Correctly set current_level_num when loading/creating mine in editor
69959 ----------------------------
69960 revision 1.178
69961 date: 1994/09/25 14:17:51;  author: mike;  state: Exp;
69962 Initialize (to 0) Num_robot_centers and Num_open_doors at mine creation.
69963 ----------------------------
69964 revision 1.177
69965 date: 1994/09/20 14:36:06;  author: mike;  state: Exp;
69966 Write function to find overlapping segments.
69967 ----------------------------
69968 revision 1.176
69969 date: 1994/08/25 21:55:57;  author: mike;  state: Exp;
69970 IS_CHILD stuff.
69971 ----------------------------
69972 revision 1.175
69973 date: 1994/08/23 15:28:03;  author: mike;  state: Exp;
69974 Fix peculiarity in med_combine_duplicate_vertices.
69975 ----------------------------
69976 revision 1.174
69977 date: 1994/08/09 16:06:17;  author: john;  state: Exp;
69978 Added the ability to place players.  Made old
69979 Player variable be ConsoleObject.
69980 ----------------------------
69981 revision 1.173
69982 date: 1994/08/05 21:18:10;  author: matt;  state: Exp;
69983 Allow two doors to be linked together
69984 ----------------------------
69985 revision 1.172
69986 date: 1994/08/04 19:13:16;  author: matt;  state: Exp;
69987 Changed a bunch of vecmat calls to use multiple-function routines, and to
69988 allow the use of C macros for some functions
69989 ----------------------------
69990 revision 1.171
69991 date: 1994/07/22 12:37:00;  author: matt;  state: Exp;
69992 Cleaned up editor/game interactions some more.
69993 ----------------------------
69994 revision 1.170
69995 date: 1994/07/22 11:20:08;  author: mike;  state: Exp;
69996 Set Lsegments validity.
69997 ----------------------------
69998 revision 1.169
69999 date: 1994/07/21 19:02:49;  author: mike;  state: Exp;
70000 lsegment stuff.
70001 ----------------------------
70002 revision 1.168
70003 date: 1994/07/21 13:27:17;  author: matt;  state: Exp;
70004 Ripped out remants of old demo system, and added demo
70005 disables object movement and game options from menu.
70006 ----------------------------
70007 revision 1.167
70008 date: 1994/07/19 20:15:48;  author: matt;  state: Exp;
70009 Name for each level now saved in the .SAV file & stored in Current_level_name
70010 ----------------------------
70011 revision 1.166
70012 date: 1994/07/06 12:42:45;  author: john;  state: Exp;
70013 Made generic messages for hostages.
70014 ----------------------------
70015 revision 1.165
70016 date: 1994/06/24 17:04:29;  author: john;  state: Exp;
70017 *** empty log message ***
70018 ----------------------------
70019 revision 1.164
70020 date: 1994/06/15 15:42:40;  author: mike;  state: Exp;
70021 Initialize static_light field in new segments.
70022 ----------------------------
70023 revision 1.163
70024 date: 1994/06/13 17:49:19;  author: mike;  state: Exp;
70025 Fix bug in med_validate_side which was toasting lighting for removable walls.
70026 ----------------------------
70027 revision 1.162
70028 date: 1994/06/13 10:52:20;  author: mike;  state: Exp;
70029 Fix bug in triangulation of sides between connected segments.
70030 Was assigning SIDE_IS_02 regardless of how triangulated, was
70031 causing physics bugs.
70032 ----------------------------
70033 revision 1.161
70034 date: 1994/06/08 18:14:16;  author: mike;  state: Exp;
70035 Fix triangulation of sides in hallways (ie, where there is no wall),
70036 so they get triangulated the same way, so find_new_seg doesn't get
70037 stuck in an infinite recursion.
70038 ----------------------------
70039 revision 1.160
70040 date: 1994/06/08 11:44:31;  author: mike;  state: Exp;
70041 Fix bug in normals not being opposite on opposite sides of a segment.
70042 Problem occurred due to difference in handling of remainder in signed divide.
70043 ----------------------------
70044 revision 1.159
70045 date: 1994/05/31 19:00:15;  author: yuan;  state: Exp;
70046 Fixed gamestate restore.
70047 ----------------------------
70048 revision 1.158
70049 date: 1994/05/30 20:22:36;  author: yuan;  state: Exp;
70050 New triggers.
70051 ----------------------------
70052 revision 1.157
70053 date: 1994/05/26 19:32:51;  author: mike;  state: Exp;
70054 Add bfs_parse.
70055 ----------------------------
70056 revision 1.156
70057 date: 1994/05/23 14:56:46;  author: mike;  state: Exp;
70058 make current segment be add segment.,
70059 =============================================================================
70060 RCS file: f:/miner/source/main/editor/seguvs.c,v
70061 Working file: main/editor/seguvs.c
70062 head: 2.1
70063 branch:
70064 description: u,v coordinate computation for segment faces
70065 ----------------------------
70066 revision 2.1
70067 date: 1995/05/08 10:49:34;  author: mike;  state: Exp;
70068 fix lighting bug: oblong segments could be very dark.
70069 ----------------------------
70070 revision 2.0
70071 date: 1995/02/27 11:36:37;  author: john;  state: Exp;
70072 Version 2.0. Ansi-fied.
70073 ----------------------------
70074 revision 1.84
70075 date: 1994/11/27 23:17:18;  author: matt;  state: Exp;
70076 Made changes for new mprintf calling convention
70077 ----------------------------
70078 revision 1.83
70079 date: 1994/11/17 14:48:02;  author: mike;  state: Exp;
70080 validation functions moved from editor to game.
70081 ----------------------------
70082 revision 1.82
70083 date: 1994/10/15 19:08:26;  author: mike;  state: Exp;
70084 Disable exhaustive search mprintfs in find_point_seg during lighting.
70085 ----------------------------
70086 revision 1.81
70087 date: 1994/08/25 21:55:50;  author: mike;  state: Exp;
70088 IS_CHILD stuff.
70089 ----------------------------
70090 revision 1.80
70091 date: 1994/08/04 19:13:22;  author: matt;  state: Exp;
70092 Changed a bunch of vecmat calls to use multiple-function routines, and to
70093 allow the use of C macros for some functions
70094 ----------------------------
70095 revision 1.79
70096 date: 1994/08/03 10:31:33;  author: mike;  state: Exp;
70097 Texture map propagation without uv assignment.
70098 ----------------------------
70099 revision 1.78
70100 date: 1994/08/01 13:31:12;  author: matt;  state: Exp;
70101 Made fvi() check holes in transparent walls, and changed fvi() calling
70102 parms to take all input data in query structure.
70103 ----------------------------
70104 revision 1.77
70105 date: 1994/07/08 14:31:24;  author: matt;  state: Exp;
70106 New parms for FVI
70107 ----------------------------
70108 revision 1.76
70109 date: 1994/06/23 14:01:04;  author: mike;  state: Exp;
70110 Fix cache bug which caused some vertices to not get light, mainly
70111 noticeable at joints which had doors.
70112 ----------------------------
70113 revision 1.75
70114 date: 1994/06/22 17:33:11;  author: mike;  state: Exp;
70115 Make position of light (which is always towards center of segment from
70116 actual light panel) constant, not dependent on segment size, which fixes
70117 bug of dark light panels in very large segments.
70118 ----------------------------
70119 revision 1.74
70120 date: 1994/06/21 18:58:18;  author: mike;  state: Exp;
70121 Fix stupid bug in light propagation, was using wrong vector in fvi caching.
70122 ----------------------------
70123 revision 1.73
70124 date: 1994/06/20 11:20:24;  author: mike;  state: Exp;
70125 Fix stupid lighting bug introduced when I went to cached fvi results.
70126 ----------------------------
70127 revision 1.72
70128 date: 1994/06/19 16:26:37;  author: mike;  state: Exp;
70129 Speed up lighting by storing and hashing fvi results.
70130 ----------------------------
70131 revision 1.71
70132 date: 1994/06/17 16:05:56;  author: mike;  state: Exp;
70133 Support optional quick lighting propagation: no find_vector_intersection.
70134 ----------------------------
70135 revision 1.70
70136 date: 1994/06/15 15:42:30;  author: mike;  state: Exp;
70137 Propagate static_light.
70138 ----------------------------
70139 revision 1.69
70140 date: 1994/06/14 16:59:37;  author: mike;  state: Exp;
70141 Fix references to tmap_num2, must strip off orientation bits.
70142 ----------------------------
70143 revision 1.68
70144 date: 1994/06/09 09:58:58;  author: matt;  state: Exp;
70145 Moved find_vector_intersection() from physics.c to new file fvi.c
70146 ----------------------------
70147 revision 1.67
70148 date: 1994/06/08 18:14:02;  author: mike;  state: Exp;
70149 mprintf a dot in light casting.
70150 ----------------------------
70151 revision 1.66
70152 date: 1994/06/08 14:37:45;  author: mike;  state: Exp;
70153 double static light value in going from value (a short) to static_light (a fix).
70154 ----------------------------
70155 revision 1.65
70156 date: 1994/06/08 14:29:44;  author: matt;  state: Exp;
70157 Added static_light field to segment structure, and padded side struct
70158 to be longword aligned.
70159 ----------------------------
70160 revision 1.64
70161 date: 1994/06/08 11:45:24;  author: mike;  state: Exp;
70162 New, supercool, superslow lighting function.
70163 ----------------------------
70164 revision 1.63
70165 date: 1994/06/07 09:38:11;  author: mike;  state: Exp;
70166 Make lighting function yet better by calling find_vector_intersection.
70167 ----------------------------
70168 revision 1.62
70169 date: 1994/06/06 13:14:33;  author: mike;  state: Exp;
70170 Make illusory walls cast light.
70171 ----------------------------
70172 revision 1.61
70173 date: 1994/06/05 20:39:47;  author: mike;  state: Exp;
70174 Add new distance and dot product based lighting function.
70175 ----------------------------
70176 revision 1.60
70177 date: 1994/05/31 12:31:18;  author: mike;  state: Exp;
70178 fix bugs in lighting, though it's not perfect, will be changing all
70179 lighting to be distance based.  Bug had to do with not handling one
70180 of the return values from WALL_IS_DOORWAY, so assuming light couldn't
70181 be recursively propagated almost all the time.
70182 ----------------------------
70183 revision 1.59
70184 date: 1994/05/19 23:35:26;  author: mike;  state: Exp;
70185 Support uv coordinates in range 0..1.0.
70186 ----------------------------
70187 revision 1.58
70188 date: 1994/05/19 12:10:21;  author: matt;  state: Exp;
70189 Use new vecmat macros and globals
70190 ----------------------------
70191 revision 1.57
70192 date: 1994/05/04 19:15:53;  author: mike;  state: Exp;
70193 Error checking for degenerate segments.
70194 ----------------------------
70195 revision 1.56
70196 date: 1994/05/03 11:02:34;  author: mike;  state: Exp;
70197 Change how default texture map assignment works; now pixels are constant size.
70198 ----------------------------
70199 revision 1.55
70200 date: 1994/04/28 23:25:26;  author: yuan;  state: Exp;
70201 Obliterated warnings.
70202 =============================================================================
70203 RCS file: f:/miner/source/main/editor/seguvs.h,v
70204 Working file: main/editor/seguvs.h
70205 head: 2.0
70206 branch:
70207 description: Header for seguvs.c
70208 ----------------------------
70209 revision 2.0
70210 date: 1995/02/27 11:34:58;  author: john;  state: Exp;
70211 Version 2.0! No anonymous unions, Watcom 10.0, with no need
70212 for bitmaps.tbl.
70213 ----------------------------
70214 revision 1.3
70215 date: 1994/08/03 10:32:28;  author: mike;  state: Exp;
70216 Add stretch_uvs_from_curedge.
70217 ----------------------------
70218 revision 1.2
70219 date: 1994/05/14 18:00:58;  author: matt;  state: Exp;
70220 Got rid of externs in source (non-header) files
70221 ----------------------------
70222 revision 1.1
70223 date: 1994/05/14 17:27:26;  author: matt;  state: Exp;
70224 Initial revision
70225 =============================================================================
70226 RCS file: f:/miner/source/main/editor/texpage.c,v
70227 Working file: main/editor/texpage.c
70228 head: 2.0
70229 branch:
70230 description: Routines for displaying texture pages
70231 ----------------------------
70232 revision 2.0
70233 date: 1995/02/27 11:34:51;  author: john;  state: Exp;
70234 Version 2.0! No anonymous unions, Watcom 10.0, with no need
70235 for bitmaps.tbl.
70236 ----------------------------
70237 revision 1.14
70238 date: 1995/01/14 19:18:02;  author: john;  state: Exp;
70239 First version of object paging.
70240 ----------------------------
70241 revision 1.13
70242 date: 1994/11/27 23:17:15;  author: matt;  state: Exp;
70243 Made changes for new mprintf calling convention
70244 ----------------------------
70245 revision 1.12
70246 date: 1994/11/23 15:49:00;  author: mike;  state: Exp;
70247 fix bug in tmapnum == 0 always getting reassigned.
70248 ----------------------------
70249 revision 1.11
70250 date: 1994/11/23 12:17:34;  author: mike;  state: Exp;
70251 changing texture maps in all mines.
70252 ----------------------------
70253 revision 1.10
70254 date: 1994/11/19 00:04:42;  author: john;  state: Exp;
70255 Changed some shorts to ints.
70256 ----------------------------
70257 revision 1.9
70258 date: 1994/11/16 17:59:36;  author: john;  state: Exp;
70259 Fixed bug with writing to canvas before initing it.
70260 ----------------------------
70261 revision 1.8
70262 date: 1994/11/16 13:15:21;  author: matt;  state: Exp;
70263 Fixed grab bug, and cleaned up code
70264 ----------------------------
70265 revision 1.7
70266 date: 1994/08/05 12:26:37;  author: matt;  state: Exp;
70267 Fixed overplot problem with texture names
70268 ----------------------------
70269 revision 1.6
70270 date: 1994/04/11 12:01:58;  author: yuan;  state: Exp;
70271 Fixed resetting to first texture on page annoyance.
70272 ----------------------------
70273 revision 1.5
70274 date: 1994/04/01 11:15:53;  author: yuan;  state: Exp;
70275 Added objects to objpage. Added buttons for easier tmap scrolling.
70276 Objects are selected fully from objpage and add object menu or pad.
70277 ----------------------------
70278 revision 1.4
70279 date: 1994/03/15 16:33:37;  author: yuan;  state: Exp;
70280 Fixed bm loader (might have some changes in walls and switches)
70281 ----------------------------
70282 revision 1.3
70283 date: 1993/12/16 17:25:46;  author: john;  state: Exp;
70284 Moved texture and object selection to texpage and objpage
70285 ----------------------------
70286 revision 1.2
70287 date: 1993/12/16 15:57:39;  author: john;  state: Exp;
70288 moved texture selection stuff to texpage.c
70289 ----------------------------
70290 revision 1.1
70291 date: 1993/12/16 15:06:56;  author: john;  state: Exp;
70292 Initial revision
70293 =============================================================================
70294 RCS file: f:/miner/source/main/editor/texpage.h,v
70295 Working file: main/editor/texpage.h
70296 head: 2.0
70297 branch:
70298 description: Definitions for texpage.c
70299 ----------------------------
70300 revision 2.0
70301 date: 1995/02/27 11:34:31;  author: john;  state: Exp;
70302 Version 2.0! No anonymous unions, Watcom 10.0, with no need
70303 for bitmaps.tbl.
70304 ----------------------------
70305 revision 1.3
70306 date: 1994/05/14 17:17:53;  author: matt;  state: Exp;
70307 Got rid of externs in source (non-header) files
70308 ----------------------------
70309 revision 1.2
70310 date: 1993/12/16 15:57:54;  author: john;  state: Exp;
70311 moved texture selection stuff to texpage.c
70312 ----------------------------
70313 revision 1.1
70314 date: 1993/12/16 15:22:34;  author: john;  state: Exp;
70315 Initial revision
70316 =============================================================================
70317 RCS file: f:/miner/source/main/editor/texture.c,v
70318 Working file: main/editor/texture.c
70319 head: 2.0
70320 branch:
70321 description: Texture map assignment.
70322 ----------------------------
70323 revision 2.0
70324 date: 1995/02/27 11:34:50;  author: john;  state: Exp;
70325 Version 2.0! No anonymous unions, Watcom 10.0, with no need
70326 for bitmaps.tbl.
70327 ----------------------------
70328 revision 1.13
70329 date: 1994/08/04 19:13:15;  author: matt;  state: Exp;
70330 Changed a bunch of vecmat calls to use multiple-function routines, and to
70331 allow the use of C macros for some functions
70332 ----------------------------
70333 revision 1.12
70334 date: 1994/08/03 10:31:56;  author: mike;  state: Exp;
70335 Texture map propagation without uv assignment.
70336 ----------------------------
70337 revision 1.11
70338 date: 1994/07/14 19:36:34;  author: yuan;  state: Exp;
70339 Tuning texture slides.
70340 ----------------------------
70341 revision 1.10
70342 date: 1994/07/14 19:29:08;  author: yuan;  state: Exp;
70343 Fixed sliding.
70344 ----------------------------
70345 revision 1.9
70346 date: 1994/07/14 14:43:06;  author: yuan;  state: Exp;
70347 Added 3x rotation.
70348 ----------------------------
70349 revision 1.8
70350 date: 1994/07/14 11:12:42;  author: yuan;  state: Exp;
70351 Made sliding 3x more sensitive
70352 ----------------------------
70353 revision 1.7
70354 date: 1994/07/14 10:49:56;  author: yuan;  state: Exp;
70355 Made texture rotation 3x finer
70356 ----------------------------
70357 revision 1.6
70358 date: 1994/02/14 12:06:00;  author: mike;  state: Exp;
70359 change segment data structure.
70360 ----------------------------
70361 revision 1.5
70362 date: 1993/12/06 13:26:52;  author: mike;  state: Exp;
70363 Make rotation and sliding work for triangulated sides.
70364 ----------------------------
70365 revision 1.4
70366 date: 1993/12/04 17:18:46;  author: mike;  state: Exp;
70367 Add tiling functions, set_default.
70368 ----------------------------
70369 revision 1.3
70370 date: 1993/12/03 18:39:12;  author: unknown;  state: Exp;
70371 Add texture map sliding, allow to work on triangulated sides.
70372 ----------------------------
70373 revision 1.2
70374 date: 1993/11/30 17:06:09;  author: mike;  state: Exp;
70375 Texture map functions.
70376 ----------------------------
70377 revision 1.1
70378 date: 1993/11/29 16:00:57;  author: mike;  state: Exp;
70379 Initial revision
70380 =============================================================================
70381 RCS file: f:/miner/source/main/editor/autosave.c,v
70382 Working file: main/editor/autosave.c
70383 head: 2.0
70384 branch:
70385 description: Autosave system: 
70386 Saves current mine to disk to prevent loss of work, and support undo.
70387 ----------------------------
70388 revision 2.0
70389 date: 1995/02/27 11:34:53;  author: john;  state: Exp;
70390 Version 2.0! No anonymous unions, Watcom 10.0, with no need
70391 for bitmaps.tbl.
70392 ----------------------------
70393 revision 1.25
70394 date: 1994/11/19 00:04:40;  author: john;  state: Exp;
70395 Changed some shorts to ints.
70396 ----------------------------
70397 revision 1.24
70398 date: 1994/11/17 11:38:59;  author: matt;  state: Exp;
70399 Ripped out code to load old mines
70400 ----------------------------
70401 revision 1.23
70402 date: 1994/07/28 17:00:01;  author: mike;  state: Exp;
70403 fix diagnostic_message erasing.
70404 ----------------------------
70405 revision 1.22
70406 date: 1994/07/21 12:48:28;  author: mike;  state: Exp;
70407 Make time of day a global, fix clock so it doesn't show 10:2 instead of 10:02
70408 ----------------------------
70409 revision 1.21
70410 date: 1994/05/14 17:17:58;  author: matt;  state: Exp;
70411 Got rid of externs in source (non-header) files
70412 ----------------------------
70413 revision 1.20
70414 date: 1994/05/02 18:04:14;  author: yuan;  state: Exp;
70415 Fixed warning.
70416 ----------------------------
70417 revision 1.19
70418 date: 1994/05/02 17:59:04;  author: yuan;  state: Exp;
70419 Changed undo_status into an array rather than malloced pointers.
70420 ----------------------------
70421 revision 1.18
70422 date: 1994/03/16 09:55:48;  author: mike;  state: Exp;
70423 Flashing : in time.
70424 ----------------------------
70425 revision 1.17
70426 date: 1994/02/11 10:27:36;  author: matt;  state: Exp;
70427 Changed 'if !DEMO' to 'ifndef DEMO'
70428 ----------------------------
70429 revision 1.16
70430 date: 1994/02/08 12:43:18;  author: yuan;  state: Exp;
70431 Crippled save game function from demo version
70432 ----------------------------
70433 revision 1.15
70434 date: 1994/02/01 13:27:26;  author: yuan;  state: Exp;
70435 autosave default off.
70436 ----------------------------
70437 revision 1.14
70438 date: 1994/01/05 09:57:37;  author: yuan;  state: Exp;
70439 Fixed calendar/clock problem.
70440 ----------------------------
70441 revision 1.13
70442 date: 1993/12/17 16:09:59;  author: yuan;  state: Exp;
70443 Changed clock font from Red to Black.
70444 ----------------------------
70445 revision 1.12
70446 date: 1993/12/15 13:08:38;  author: yuan;  state: Exp;
70447 Fixed :0x times, so that the 0 shows up.
70448 ----------------------------
70449 revision 1.11
70450 date: 1993/12/15 11:19:52;  author: yuan;  state: Exp;
70451 Added code to display clock in upper right.
70452 ----------------------------
70453 revision 1.10
70454 date: 1993/12/14 21:18:51;  author: yuan;  state: Exp;
70455 Added diagnostic message to display
70456 ----------------------------
70457 revision 1.9
70458 date: 1993/12/14 18:32:59;  author: yuan;  state: Exp;
70459 Added timed autosave code
70460 ----------------------------
70461 revision 1.8
70462 date: 1993/12/13 17:23:25;  author: yuan;  state: Exp;
70463 Fixed bugs with undo.
70464 They were caused by badly changed extensions.
70465 ----------------------------
70466 revision 1.7
70467 date: 1993/12/09 16:42:32;  author: yuan;  state: Exp;
70468 Changed extension of temp mines from .mi? -> .mn? 
70469 and now to .m? (So it doesn't interfere with .mnu)
70470 ----------------------------
70471 revision 1.6
70472 date: 1993/12/09 16:27:06;  author: yuan;  state: Exp;
70473 Added toggle for autosave
70474 ----------------------------
70475 revision 1.5
70476 date: 1993/11/29 19:46:32;  author: matt;  state: Exp;
70477 Changed includes
70478 ----------------------------
70479 revision 1.4
70480 date: 1993/11/11 15:54:11;  author: yuan;  state: Exp;
70481 Added display message for Undo...
70482 Eg. Attach Segment UNDONE.
70483 ----------------------------
70484 revision 1.3
70485 date: 1993/11/09 18:53:11;  author: yuan;  state: Exp;
70486 Autosave/Undo works up to 10 moves.
70487 ----------------------------
70488 revision 1.2
70489 date: 1993/11/08 19:14:03;  author: yuan;  state: Exp;
70490 Added Undo command (not working yet)
70491 ----------------------------
70492 revision 1.1
70493 date: 1993/11/08 16:57:59;  author: yuan;  state: Exp;
70494 Initial revision
70495 =============================================================================
70496 RCS file: f:/miner/source/main/effects.c,v
70497 Working file: main/effects.c
70498 head: 2.0
70499 branch:
70500 description: Special effects, such as rotating fans, electrical walls, and
70501 other cool animations. 
70502 ----------------------------
70503 revision 2.0
70504 date: 1995/02/27 11:32:49;  author: john;  state: Exp;
70505 New version 2.0, which has no anonymous unions, builds with
70506 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
70507 ----------------------------
70508 revision 1.21
70509 date: 1995/02/13 20:35:06;  author: john;  state: Exp;
70510 Lintized
70511 ----------------------------
70512 revision 1.20
70513 date: 1994/12/10 16:44:50;  author: matt;  state: Exp;
70514 Added debugging code to track down door that turns into rock
70515 ----------------------------
70516 revision 1.19
70517 date: 1994/12/06 16:27:14;  author: matt;  state: Exp;
70518 Fixed horrible bug that was referencing segment -1
70519 ----------------------------
70520 revision 1.18
70521 date: 1994/12/02 23:20:51;  author: matt;  state: Exp;
70522 Reset bitmaps possibly changed by crit clips
70523 ----------------------------
70524 revision 1.17
70525 date: 1994/11/14 14:00:19;  author: matt;  state: Exp;
70526 Fixed stupid bug
70527 ----------------------------
70528 revision 1.16
70529 date: 1994/11/14 12:42:43;  author: matt;  state: Exp;
70530 Allow holes in effects list
70531 ----------------------------
70532 revision 1.15
70533 date: 1994/11/08 21:11:52;  author: matt;  state: Exp;
70534 Added functions to stop & start effects
70535 ----------------------------
70536 revision 1.14
70537 date: 1994/10/04 18:59:08;  author: matt;  state: Exp;
70538 Exploding eclips now play eclip while exploding, then switch to static bm
70539 ----------------------------
70540 revision 1.13
70541 date: 1994/10/04 15:17:42;  author: matt;  state: Exp;
70542 Took out references to unused constant
70543 ----------------------------
70544 revision 1.12
70545 date: 1994/09/29 11:00:01;  author: matt;  state: Exp;
70546 Made eclips (wall animations) not frame-rate dependent (for now)
70547 ----------------------------
70548 revision 1.11
70549 date: 1994/09/25 00:40:24;  author: matt;  state: Exp;
70550 Added the ability to make eclips (monitors, fans) which can be blown up
70551 ----------------------------
70552 revision 1.10
70553 date: 1994/08/14 23:15:14;  author: matt;  state: Exp;
70554 Added animating bitmap hostages, and cleaned up vclips a bit
70555 ----------------------------
70556 revision 1.9
70557 date: 1994/08/05 15:56:04;  author: matt;  state: Exp;
70558 Cleaned up effects system, and added alternate effects for after mine
70559 destruction.
70560 ----------------------------
70561 revision 1.8
70562 date: 1994/08/01 23:17:21;  author: matt;  state: Exp;
70563 Add support for animating textures on robots
70564 ----------------------------
70565 revision 1.7
70566 date: 1994/05/23 15:10:46;  author: yuan;  state: Exp;
70567 Make Eclips read directly... 
70568 No more need for $EFFECTS list.
70569 ----------------------------
70570 revision 1.6
70571 date: 1994/04/06 14:42:44;  author: yuan;  state: Exp;
70572 Adding new powerups.
70573 ----------------------------
70574 revision 1.5
70575 date: 1994/03/15 16:31:54;  author: yuan;  state: Exp;
70576 Cleaned up bm-loading code.
70577 (And structures)
70578 ----------------------------
70579 revision 1.4
70580 date: 1994/03/04 17:09:09;  author: yuan;  state: Exp;
70581 New door stuff.
70582 ----------------------------
70583 revision 1.3
70584 date: 1994/01/11 11:18:50;  author: yuan;  state: Exp;
70585 Fixed frame_count
70586 ----------------------------
70587 revision 1.2
70588 date: 1994/01/11 10:38:55;  author: yuan;  state: Exp;
70589 Special effects new implementation
70590 ----------------------------
70591 revision 1.1
70592 date: 1994/01/10 09:45:29;  author: yuan;  state: Exp;
70593 Initial revision
70594 =============================================================================
70595 RCS file: f:/miner/source/mem/mem.c,v
70596 Working file: mem/mem.c
70597 head: 1.18
70598 branch:
70599 description: Files for debugging memory allocator
70600 ----------------------------
70601 revision 1.18
70602 date: 1995/01/24 20:49:18;  author: matt;  state: Exp;
70603 Made some stuff return when get errors
70604 ----------------------------
70605 revision 1.17
70606 date: 1994/11/29 15:40:38;  author: matt;  state: Exp;
70607 Added extra newline after message
70608 ----------------------------
70609 revision 1.16
70610 date: 1994/11/15 18:27:56;  author: john;  state: Exp;
70611 Took away show mem info by default.
70612 ----------------------------
70613 revision 1.15
70614 date: 1994/11/10 10:00:37;  author: john;  state: Exp;
70615 Made it show_mem_info by default.
70616 ----------------------------
70617 revision 1.14
70618 date: 1994/11/10 09:53:06;  author: john;  state: Exp;
70619 Put in more efficient, but less debugging info version.
70620 ----------------------------
70621 revision 1.13
70622 date: 1994/10/27 00:56:45;  author: john;  state: Exp;
70623 Reduced number of blocks; made show mem usage by default.
70624 ----------------------------
70625 revision 1.12
70626 date: 1994/10/06 19:15:17;  author: john;  state: Exp;
70627 Upped the number of blocks.
70628 ----------------------------
70629 revision 1.11
70630 date: 1994/07/27 20:04:22;  author: john;  state: Exp;
70631 Neatend printed output.
70632 ----------------------------
70633 revision 1.10
70634 date: 1994/07/20 10:22:17;  author: yuan;  state: Exp;
70635 Added overwrite error
70636 ----------------------------
70637 revision 1.9
70638 date: 1994/03/23 12:58:43;  author: john;  state: Exp;
70639 Made message global.
70640 ----------------------------
70641 revision 1.8
70642 date: 1994/03/15 11:12:59;  author: john;  state: Exp;
70643 Made calloc fill block with zeros like it's
70644 supposed to.
70645 ----------------------------
70646 revision 1.7
70647 date: 1994/02/18 12:43:21;  author: john;  state: Exp;
70648 Only print mem debugging info if show_mem_info
70649 is true. Need to set in debugger, btw.
70650 ----------------------------
70651 revision 1.6
70652 date: 1994/02/17 17:01:34;  author: john;  state: Exp;
70653 Took out MEM_LEAKAGE warning!
70654 ----------------------------
70655 revision 1.5
70656 date: 1994/01/24 16:04:47;  author: john;  state: Exp;
70657 Added mem_print_all function to dump all
70658 allocated memory to inferno.mem file.
70659 ----------------------------
70660 revision 1.4
70661 date: 1994/01/18 11:01:41;  author: john;  state: Exp;
70662 *** empty log message ***
70663 ----------------------------
70664 revision 1.3
70665 date: 1993/12/10 12:20:50;  author: john;  state: Exp;
70666 Speed up by replacing mem_find_unused_id with a table lookup.
70667 ----------------------------
70668 revision 1.2
70669 date: 1993/12/08 12:38:22;  author: mike;  state: Exp;
70670 Change 10000 to MAX_INDEX
70671 Use LargestIndex in place of MAX_INDEX as appropriate.
70672 ----------------------------
70673 revision 1.1
70674 date: 1993/11/02 17:45:28;  author: john;  state: Exp;
70675 Initial revision
70676 =============================================================================
70677 RCS file: f:/miner/source/mem/mem.h,v
70678 Working file: mem/mem.h
70679 head: 1.6
70680 branch:
70681 description: Headers for safe malloc stuff.
70682 ----------------------------
70683 revision 1.6
70684 date: 1995/02/12 18:40:50;  author: matt;  state: Exp;
70685 Made free() work the way it used to when debugging is on
70686 ----------------------------
70687 revision 1.5
70688 date: 1995/02/12 04:07:36;  author: matt;  state: Exp;
70689 Made free() set ptrs to NULL even when no debugging
70690 ----------------------------
70691 revision 1.4
70692 date: 1994/11/27 21:10:58;  author: matt;  state: Exp;
70693 Now supports NDEBUG to turn off all special mem checking
70694 ----------------------------
70695 revision 1.3
70696 date: 1994/03/15 11:12:40;  author: john;  state: Exp;
70697 Made calloc fill block with zeros like it's
70698 supposed to.
70699 ----------------------------
70700 revision 1.2
70701 date: 1993/11/04 14:02:39;  author: matt;  state: Exp;
70702 Added calloc() macro
70703 ----------------------------
70704 revision 1.1
70705 date: 1993/11/02 17:45:33;  author: john;  state: Exp;
70706 Initial revision
70707 =============================================================================
70708 RCS file: f:/miner/source/misc/error.h,v
70709 Working file: misc/error.h
70710 head: 1.12
70711 branch:
70712 description: Header for error handling/printing/exiting code
70713 ----------------------------
70714 revision 1.12
70715 date: 1994/06/17 15:22:46;  author: matt;  state: Exp;
70716 Added pragma for Error() for when NDEBUG
70717 ----------------------------
70718 revision 1.11
70719 date: 1994/03/07 13:22:14;  author: matt;  state: Exp;
70720 Since the Error() function has 'aborts' set in pragma, we do a jmp
70721 to the function rather than call.
70722 ----------------------------
70723 revision 1.10
70724 date: 1994/02/17 12:37:15;  author: matt;  state: Exp;
70725 Combined two pragma's for Error(), since second superseded the first
70726 ----------------------------
70727 revision 1.9
70728 date: 1994/02/10 18:02:53;  author: matt;  state: Exp;
70729 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
70730 ----------------------------
70731 revision 1.8
70732 date: 1994/02/09 15:18:29;  author: matt;  state: Exp;
70733 Added pragma saying that Error() never returns
70734 ----------------------------
70735 revision 1.7
70736 date: 1993/10/19 12:57:53;  author: matt;  state: Exp;
70737 If DEBUG_ON not defined, define it to be 1
70738 ----------------------------
70739 revision 1.6
70740 date: 1993/10/15 21:40:39;  author: matt;  state: Exp;
70741 Made error functions generate int3's if debugging on
70742 ----------------------------
70743 revision 1.5
70744 date: 1993/10/14 15:29:22;  author: matt;  state: Exp;
70745 Added new function clear_warn_func()
70746 ----------------------------
70747 revision 1.4
70748 date: 1993/10/08 16:16:47;  author: matt;  state: Exp;
70749 Made Assert() call function _Assert(), rather to do 'if...' inline.
70750 ----------------------------
70751 revision 1.3
70752 date: 1993/09/29 11:39:07;  author: matt;  state: Exp;
70753 Added Assert() macro, like the system one, but calls Error()
70754 ----------------------------
70755 revision 1.2
70756 date: 1993/09/27 11:47:03;  author: matt;  state: Exp;
70757 Added function set_warn_func()
70758 ----------------------------
70759 revision 1.1
70760 date: 1993/09/23 20:17:46;  author: matt;  state: Exp;
70761 Initial revision
70762 =============================================================================
70763 RCS file: f:/miner/source/misc/parsarg.h,v
70764 Working file: misc/parsarg.h
70765 head: 1.1
70766 branch:
70767 description: Header for parse_args() function
70768 ----------------------------
70769 revision 1.1
70770 date: 1993/09/09 17:32:14;  author: matt;  state: Exp;
70771 Initial revision
70772 =============================================================================
70773 RCS file: f:/miner/source/misc/error.c,v
70774 Working file: misc/error.c
70775 head: 1.12
70776 branch:
70777 description: Error handling/printing/exiting code
70778 ----------------------------
70779 revision 1.12
70780 date: 1994/12/07 18:49:39;  author: matt;  state: Exp;
70781 error_init() can now take NULL as parm
70782 ----------------------------
70783 revision 1.11
70784 date: 1994/11/29 15:42:07;  author: matt;  state: Exp;
70785 Added newline before error message
70786 ----------------------------
70787 revision 1.10
70788 date: 1994/11/27 23:20:39;  author: matt;  state: Exp;
70789 Made changes for new mprintf calling convention
70790 ----------------------------
70791 revision 1.9
70792 date: 1994/06/20 21:20:56;  author: matt;  state: Exp;
70793 Allow NULL for warn func, to kill warnings
70794 ----------------------------
70795 revision 1.8
70796 date: 1994/05/20 15:11:35;  author: mike;  state: Exp;
70797 mprintf Warning message so you can actually see it.
70798 ----------------------------
70799 revision 1.7
70800 date: 1994/02/10 18:02:38;  author: matt;  state: Exp;
70801 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
70802 ----------------------------
70803 revision 1.6
70804 date: 1993/10/17 18:19:10;  author: matt;  state: Exp;
70805 If error_init() not called, Error() now prints the error message before
70806 calling exit()
70807 ----------------------------
70808 revision 1.5
70809 date: 1993/10/14 15:29:11;  author: matt;  state: Exp;
70810 Added new function clear_warn_func()
70811 ----------------------------
70812 revision 1.4
70813 date: 1993/10/08 16:17:19;  author: matt;  state: Exp;
70814 Made Assert() call function _Assert(), rather to do 'if...' inline.
70815 ----------------------------
70816 revision 1.3
70817 date: 1993/09/28 12:45:25;  author: matt;  state: Exp;
70818 Fixed wrong print call, and made Warning() not append a CR to string
70819 ----------------------------
70820 revision 1.2
70821 date: 1993/09/27 11:46:35;  author: matt;  state: Exp;
70822 Added function set_warn_func()
70823 ----------------------------
70824 revision 1.1
70825 date: 1993/09/23 20:17:33;  author: matt;  state: Exp;
70826 Initial revision
70827 =============================================================================
70828 RCS file: f:/miner/source/misc/parsarg.c,v
70829 Working file: misc/parsarg.c
70830 head: 1.1
70831 branch:
70832 description: Source for parse_args() function.  See header file (parsarg.h) for info
70833 ----------------------------
70834 revision 1.1
70835 date: 1993/09/09 17:32:03;  author: matt;  state: Exp;
70836 Initial revision
70837 =============================================================================
70838 RCS file: f:/miner/source/pslib/cflib.h,v
70839 Working file: pslib/cflib.h
70840 head: 1.13
70841 branch:
70842 description: Sample setup for RCS header
70843 ----------------------------
70844 revision 1.13
70845 date: 1994/02/15 12:53:06;  author: john;  state: Exp;
70846 Made numfiles stored in library be a short instead of char.
70847 ----------------------------
70848 revision 1.12
70849 date: 1993/12/08 17:06:34;  author: yuan;  state: Exp;
70850 Added CheckFile.
70851 ----------------------------
70852 revision 1.11
70853 date: 1993/10/28 15:16:54;  author: yuan;  state: Exp;
70854 Added WriteFile and AppendFile prototypes.
70855 ----------------------------
70856 revision 1.10
70857 date: 1993/10/28 14:41:13;  author: yuan;  state: Exp;
70858 New cfread functions added to cflib.
70859 ----------------------------
70860 revision 1.9
70861 date: 1993/10/27 12:41:58;  author: yuan;  state: Exp;
70862 Added prototype for ReadFileBuf.
70863 ----------------------------
70864 revision 1.8
70865 date: 1993/10/19 12:39:13;  author: matt;  state: Exp;
70866 Added '#ifndef' around body of file
70867 Added new error codes
70868 Included readfile.h
70869 ----------------------------
70870 revision 1.7
70871 date: 1993/09/29 17:53:38;  author: yuan;  state: Exp;
70872 lzw_compression and lzw_expand documented more clearly (hopefully)
70873 some error flags added.
70874 ----------------------------
70875 revision 1.6
70876 date: 1993/09/27 17:12:21;  author: yuan;  state: Exp;
70877 Documentation for using lib_init(), lib_close(), and LibReadFile() added.
70878 ----------------------------
70879 revision 1.5
70880 date: 1993/09/21 17:22:22;  author: yuan;  state: Exp;
70881 *** empty log message ***
70882 ----------------------------
70883 revision 1.4
70884 date: 1993/09/21 17:16:56;  author: yuan;  state: Exp;
70885 cleaning up
70886 ----------------------------
70887 revision 1.3
70888 date: 1993/09/21 17:07:01;  author: yuan;  state: Exp;
70889 broken and unbroken
70890 ----------------------------
70891 revision 1.2
70892 date: 1993/09/20 12:26:25;  author: yuan;  state: Exp;
70893 ReadFile, WriteFile, AppendFile removed to readfile.h
70894 ----------------------------
70895 revision 1.1
70896 date: 1993/09/14 13:15:30;  author: yuan;  state: Exp;
70897 Initial revision
70898 ----------------------------
70899 revision 1.3
70900 date: 1993/09/09 15:41:22;  author: yuan;  state: Exp;
70901 pslib.exe docs removed.
70902 ----------------------------
70903 revision 1.2
70904 date: 1993/09/09 12:40:03;  author: yuan;  state: Exp;
70905 compression routine prototypes from library.h added.
70906 ----------------------------
70907 revision 1.1
70908 date: 1993/09/08 16:16:57;  author: yuan;  state: Exp;
70909 Initial revision
70910 =============================================================================
70911 RCS file: f:/miner/source/pslib/library.h,v
70912 Working file: pslib/library.h
70913 head: 1.12
70914 branch:
70915 description: PSLIB and library generation tool header file.
70916 ----------------------------
70917 revision 1.12
70918 date: 1994/02/15 12:53:23;  author: john;  state: Exp;
70919 Made numfiles stored in library be a short instead of char.
70920 ----------------------------
70921 revision 1.11
70922 date: 1993/12/08 16:07:37;  author: yuan;  state: Exp;
70923 Changed MAX_FILES from 100 to 250. 
70924 Incorporated the constant into FileList[MAX_FILES]
70925 ----------------------------
70926 revision 1.10
70927 date: 1993/10/27 12:42:50;  author: yuan;  state: Exp;
70928 Added prototype for ReadFileBuf.
70929 ----------------------------
70930 revision 1.9
70931 date: 1993/09/29 17:54:09;  author: yuan;  state: Exp;
70932 ReadFileRaw, etc. prototypes imported.
70933 ----------------------------
70934 revision 1.8
70935 date: 1993/09/27 17:12:48;  author: yuan;  state: Exp;
70936 Cleaned up... function prototypes internal to pslib.c removed.
70937 ----------------------------
70938 revision 1.7
70939 date: 1993/09/21 17:22:14;  author: yuan;  state: Exp;
70940 *** empty log message ***
70941 ----------------------------
70942 revision 1.6
70943 date: 1993/09/21 17:16:50;  author: yuan;  state: Exp;
70944 cleaning up
70945 ----------------------------
70946 revision 1.5
70947 date: 1993/09/21 17:07:11;  author: yuan;  state: Exp;
70948 broken and unbroken
70949 ----------------------------
70950 revision 1.4
70951 date: 1993/09/14 14:19:08;  author: yuan;  state: Exp;
70952 header fixed.
70953 ----------------------------
70954 revision 1.3
70955 date: 1993/09/14 13:16:37;  author: yuan;  state: Exp;
70956 Minor function prototype modifications were made.
70957 ----------------------------
70958 revision 1.2
70959 date: 1993/09/09 12:39:19;  author: yuan;  state: Exp;
70960 compression routine prototypes moved to pslib.h
70961 ----------------------------
70962 revision 1.1
70963 date: 1993/09/08 16:16:07;  author: yuan;  state: Exp;
70964 Initial revision
70965 =============================================================================
70966 RCS file: f:/miner/source/pslib/lzw.c,v
70967 Working file: pslib/lzw.c
70968 head: 1.8
70969 branch:
70970 description: Based on lzw15v.c from Data Compression book.
70971 CompressFile and Expandfile have been replaced by cfread and cfwrite.
70972 ----------------------------
70973 revision 1.8
70974 date: 1994/02/01 13:23:51;  author: john;  state: Exp;
70975 *** empty log message ***
70976 ----------------------------
70977 revision 1.7
70978 date: 1993/10/22 17:50:43;  author: yuan;  state: Exp;
70979 Fixed the hard to track down bug
70980 ----------------------------
70981 revision 1.6
70982 date: 1993/10/18 18:00:13;  author: yuan;  state: Exp;
70983 Fixed memory alloc errors.
70984 ----------------------------
70985 revision 1.5
70986 date: 1993/09/21 17:22:24;  author: yuan;  state: Exp;
70987 *** empty log message ***
70988 ----------------------------
70989 revision 1.4
70990 date: 1993/09/21 17:16:25;  author: yuan;  state: Exp;
70991 cleaning up
70992 ----------------------------
70993 revision 1.3
70994 date: 1993/09/14 13:11:57;  author: yuan;  state: Exp;
70995 cfread and cfwrite have been changed into lzw_expand and lzw_compress.
70996 the new cfread and cfwrite functions are now in library.c
70997 lzw_compress returns the compressed buffer and a parameter *size.
70998 ----------------------------
70999 revision 1.2
71000 date: 1993/09/09 17:45:56;  author: yuan;  state: Exp;
71001 tab added to ERROR messages
71002 ----------------------------
71003 revision 1.1
71004 date: 1993/09/08 16:15:03;  author: yuan;  state: Exp;
71005 Initial revision
71006 ----------------------------
71007 revision 1.3
71008 date: 1993/07/24 19:05:22;  author: yuan;  state: Exp;
71009 *** empty log message ***
71010 ----------------------------
71011 revision 1.2
71012 date: 1993/07/22 11:27:29;  author: yuan;  state: Exp;
71013 No change
71014 ----------------------------
71015 revision 1.1
71016 date: 1993/07/21 15:28:48;  author: matt;  state: Exp;
71017 Initial revision
71018 =============================================================================
71019 RCS file: f:/miner/source/pslib/pslib.c,v
71020 Working file: pslib/pslib.c
71021 head: 1.18
71022 branch:
71023 description: Main program for pslib.exe
71024 ----------------------------
71025 revision 1.18
71026 date: 1994/02/15 12:53:20;  author: john;  state: Exp;
71027 Made numfiles stored in library be a short instead of char.
71028 ----------------------------
71029 revision 1.17
71030 date: 1994/02/14 20:11:27;  author: john;  state: Exp;
71031 First version working with new cfile stuff.
71032 ----------------------------
71033 revision 1.16
71034 date: 1993/12/17 16:17:49;  author: yuan;  state: Exp;
71035 Fixed file not found message if library file doesn't exist.
71036 ----------------------------
71037 revision 1.15
71038 date: 1993/12/08 16:08:17;  author: yuan;  state: Exp;
71039 Fixed MAX_FILES bug.
71040 ----------------------------
71041 revision 1.14
71042 date: 1993/10/28 14:39:54;  author: yuan;  state: Exp;
71043 old cfread changed to cfreadfile
71044 ----------------------------
71045 revision 1.13
71046 date: 1993/10/27 18:30:27;  author: yuan;  state: Exp;
71047 Added free for lib_name when error occurs.
71048 Added file sizes and overall compression ratios
71049 during listing.
71050 ----------------------------
71051 revision 1.12
71052 date: 1993/10/22 18:00:25;  author: yuan;  state: Exp;
71053 fixed 0 file size problem
71054 ----------------------------
71055 revision 1.11
71056 date: 1993/10/22 17:51:29;  author: yuan;  state: Exp;
71057 Fixed some network generated flaky problems
71058 ----------------------------
71059 revision 1.10
71060 date: 1993/10/19 14:10:53;  author: yuan;  state: Exp;
71061 Fixed a minor free(lib_name) problem.
71062 ----------------------------
71063 revision 1.9
71064 date: 1993/10/18 17:59:36;  author: yuan;  state: Exp;
71065 Fixed memory alloc errors
71066 ----------------------------
71067 revision 1.8
71068 date: 1993/09/29 17:50:06;  author: yuan;  state: Exp;
71069 No major changes were made to pslib.c
71070 However, all printf error messages and exits
71071 were removed from the library.  Now error
71072 codes are returned back to the caller.  If
71073 a buffer has an error, NULL is returned.
71074 ----------------------------
71075 revision 1.7
71076 date: 1993/09/27 17:13:58;  author: yuan;  state: Exp;
71077 lib_read_test function added.  All test functions moved
71078 from library.c over to pslib.c
71079 ----------------------------
71080 revision 1.6
71081 date: 1993/09/21 17:31:51;  author: yuan;  state: Exp;
71082 Minor formatting in listing function fixed.
71083 ----------------------------
71084 revision 1.5
71085 date: 1993/09/21 17:22:31;  author: yuan;  state: Exp;
71086 *** empty log message ***
71087 ----------------------------
71088 revision 1.4
71089 date: 1993/09/21 17:16:04;  author: yua\7f;  state: Exp;
71090 clganing up
71091 ----------------------------
71092 revision 1.3
71093 date: 1993/09/14 13:13:30;  author: yuan;  state: Exp;
71094 additional test functions -cfr & -cfw added to test cfread and cfwrite.
71095 ----------------------------
71096 revision 1.2
71097 date: 1993/09/09 17:46:08;  author: yuan;  state: Exp;
71098 malloc problem with long paths removed.
71099 make sure that 'libname' is not a flag.
71100 ----------------------------
71101 revision 1.1
71102 date: 1993/09/08 16:15:42;  author: yuan;  state: Exp;
71103 Initial revision
71104 =============================================================================
71105 RCS file: f:/miner/source/pslib/readfile.c,v
71106 Working file: pslib/readfile.c
71107 head: 1.8
71108 branch:
71109 description: ReadFileRaw, WriteFile, AppendFile, ReadFileBuf
71110 File and buffer i/o routines.
71111 =============================================================================
71112 RCS file: f:/miner/source/pslib/readfile.h,v
71113 Working file: pslib/readfile.h
71114 head: 1.5
71115 branch:
71116 description: =============================================================================
71117 RCS file: f:/miner/source/pslib/bitio.c,v
71118 Working file: pslib/bitio.c
71119 head: 1.9
71120 branch:
71121 description: Contains all the necessary bit routines.
71122 The file handling has been optimized and the pacifier has been removed.
71123 ----------------------------
71124 revision 1.9
71125 date: 1993/10/22 17:51:09;  author: yuan;  state: Exp;
71126 No major revisions
71127 ----------------------------
71128 revision 1.8
71129 date: 1993/10/18 17:59:55;  author: yuan;  state: Exp;
71130 Fixed memory alloc errors
71131 ----------------------------
71132 revision 1.7
71133 date: 1993/09/21 17:22:17;  author: yuan;  state: Exp;
71134 *** empty log message ***
71135 ----------------------------
71136 revision 1.6
71137 date: 1993/09/21 17:16:19;  author: yuan;  state: Exp;
71138 cleaning up
71139 ----------------------------
71140 revision 1.5
71141 date: 1993/09/20 12:25:39;  author: yuan;  state: Exp;
71142 ReadFile, WriteFile, AppendFile removed to readfile.lib
71143 ----------------------------
71144 revision 1.4
71145 date: 1993/09/14 13:06:25;  author: yuan;  state: Exp;
71146 CloseOutputBitFile no longer frees the buffer.
71147 ----------------------------
71148 revision 1.3
71149 date: 1993/09/09 17:42:02;  author: yuan;  state: Exp;
71150 tab added to ERROR messages
71151 ----------------------------
71152 revision 1.2
71153 date: 1993/09/09 12:38:28;  author: yuan;  state: Exp;
71154 WriteFile and AppendFile fixed.
71155 ----------------------------
71156 revision 1.1
71157 date: 1993/09/08 16:14:04;  author: yuan;  state: Exp;
71158 Initial revision
71159 ----------------------------
71160 revision 1.3
71161 date: 1993/07/24 19:04:52;  author: yuan;  state: Exp;
71162 *** empty log message ***
71163 ----------------------------
71164 revision 1.2
71165 date: 1993/07/22 11:25:35;  author: yuan;  state: Exp;
71166 No change
71167 ----------------------------
71168 revision 1.1
71169 date: 1993/07/21 15:28:13;  author: matt;  state: Exp;
71170 Initial revision
71171 =============================================================================
71172 RCS file: f:/miner/source/pslib/library.c,v
71173 Working file: pslib/library.c
71174 head: 1.30
71175 branch:
71176 description: Sample setup for RCS header
71177 ----------------------------
71178 revision 1.30
71179 date: 1994/03/23 13:55:30;  author: matt;  state: Exp;
71180 Set others_use in library get info routine
71181 ----------------------------
71182 revision 1.29
71183 date: 1994/02/15 12:53:25;  author: john;  state: Exp;
71184 Made numfiles stored in library be a short instead of char.
71185 ----------------------------
71186 revision 1.28
71187 date: 1994/02/14 20:11:38;  author: john;  state: Exp;
71188 First version working with new cfile stuff.
71189 ----------------------------
71190 revision 1.27
71191 date: 1994/01/17 11:01:23;  author: john;  state: Exp;
71192 Made cfopen return NULL when file not found instead
71193 of doing an Error inside ReadFile.
71194 ----------------------------
71195 revision 1.26
71196 date: 1994/01/07 12:02:41;  author: yuan;  state: Exp;
71197 fixed problem with checkfile.
71198 CheckFile now checks the directory first, rather
71199 than the library
71200 ----------------------------
71201 revision 1.25
71202 date: 1994/01/07 11:45:24;  author: yuan;  state: Exp;
71203 cleaned up some code.
71204 ----------------------------
71205 revision 1.24
71206 date: 1994/01/07 10:24:29;  author: yuan;  state: Exp;
71207 Makes it so ReadFile reads from directory before
71208 it checks the library file.
71209 ----------------------------
71210 revision 1.23
71211 date: 1993/12/15 11:18:45;  author: yuan;  state: Exp;
71212 Fixed calloc in lib_init... Changed it to MALLOC
71213 ----------------------------
71214 revision 1.22
71215 date: 1993/12/10 19:26:13;  author: matt;  state: Exp;
71216 Made more functions call Error() instead of returning error codes
71217 ----------------------------
71218 revision 1.21
71219 date: 1993/12/08 17:06:47;  author: yuan;  state: Exp;
71220 Added CheckFile();
71221 ----------------------------
71222 revision 1.20
71223 date: 1993/12/08 16:07:05;  author: yuan;  state: Exp;
71224 Changed MAX_FILES for FileList[]
71225 ----------------------------
71226 revision 1.19
71227 date: 1993/10/28 14:40:55;  author: yuan;  state: Exp;
71228 cfread changed to cfreadfile.
71229 ----------------------------
71230 revision 1.18
71231 date: 1993/10/27 12:42:29;  author: yuan;  state: Exp;
71232 Added ReadFileBuf to read into a buffer (compressed)
71233 ----------------------------
71234 revision 1.17
71235 date: 1993/10/19 14:11:09;  author: yuan;  state: Exp;
71236 Fixed uncompress reading/writing problem
71237 ----------------------------
71238 revision 1.16
71239 date: 1993/10/19 13:55:44;  author: matt;  state: Exp;
71240 Made ReadFile() call Error() on file error
71241 ----------------------------
71242 revision 1.15
71243 date: 1993/10/19 12:38:53;  author: matt;  state: Exp;
71244 Cleaned up error handling in lib_init() a little
71245 ----------------------------
71246 revision 1.14
71247 date: 1993/10/19 11:33:33;  author: yuan;  state: Exp;
71248 Fixed cfread free problem.
71249 ----------------------------
71250 revision 1.13
71251 date: 1993/10/18 18:00:27;  author: yuan;  state: Exp;
71252 Fixed memory alloc errors.
71253 ----------------------------
71254 revision 1.12
71255 date: 1993/10/17 18:01:48;  author: yuan;  state: Exp;
71256 Fixed the first file counting problem.
71257 ----------------------------
71258 revision 1.11
71259 date: 1993/09/29 17:52:59;  author: yuan;  state: Exp;
71260 *** empty log message ***
71261 ----------------------------
71262 revision 1.10
71263 date: 1993/09/29 17:46:54;  author: yuan;  state: Exp;
71264 ReadFile, etc. I/O functions moved back into library.c
71265 ReadFile was renamed to ReadFileRaw which just reads
71266 a file into a buffer... LibReadFile was renamed to
71267 ReadFile, and it reads from either a library or a buffer
71268 depending on lib_init and if the file is found in the
71269 library.
71270 Also, printfs and exits for errors were removed.
71271 In this version, ReadFile should be completely transparent
71272 to the user.
71273 ----------------------------
71274 revision 1.9
71275 date: 1993/09/27 17:13:20;  author: yuan;  state: Exp;
71276 LibReadFile, lib_init, and lib_close functions added.
71277 Documented in library.h.  
71278 ----------------------------
71279 revision 1.8
71280 date: 1993/09/21 17:22:26;  author: yuan;  state: Exp;
71281 *** empty log message ***
71282 ----------------------------
71283 revision 1.7
71284 date: 1993/09/21 17:16:37;  author: yuan;  state: Exp;
71285 cleaning up
71286 ----------------------------
71287 revision 1.6
71288 date: 1993/09/21 17:06:14;  author: yuan;  state: Exp;
71289 broken and then unbroken version.
71290 need to restart the cflib_init stuff from scratch.
71291 ----------------------------
71292 revision 1.5
71293 date: 1993/09/14 13:14:23;  author: yuan;  state: Exp;
71294 additional change which was made in 1.4:
71295 If lzw_compress returns a size overflow (*size = -1) then it
71296 means that the compression ratio is negative, thus we will
71297 store the file rather than compress it.
71298 ----------------------------
71299 revision 1.4
71300 date: 1993/09/14 13:06:41;  author: yuan;  state: Exp;
71301 Major changes made.
71302 1) cfread and cfwrite have been changed into lzw_expand and lzw_compress.
71303         these functions now manipulate buffers rather than files.
71304 2) cfread, cfwrite, cfr_test, and cfw_test have been added.
71305         cfread takes a file and returns a buffer.
71306         cfwrite takes a buffer and writes to a file.
71307         cfr_test and cfw_test are test programs for the previous two
71308         programs and read and write files.
71309 3) extract now returns a buffer rather than passing a buffer as a
71310         parameter.
71311 4) switches are allowed anywhere on the command line now.
71312 5) -a switch added in order to add files to a library.
71313 6) Help message lists available options.
71314 7) Date & Time added to library file headers.
71315 ----------------------------
71316 revision 1.3
71317 date: 1993/09/09 17:42:21;  author: yuan;  state: Exp;
71318 parsarg running off of library
71319 parsarg passes full path, so filename is extracted from path
71320   for library.
71321 checks to make sure library is not added to itself.
71322 checks to make sure '-l' is not called in the middle of a build.
71323 ----------------------------
71324 revision 1.2
71325 date: 1993/09/09 12:38:48;  author: yuan;  state: Exp;
71326 WriteFile and AppendFile fixed.
71327 ----------------------------
71328 revision 1.1
71329 date: 1993/09/08 16:14:46;  author: yuan;  state: Exp;
71330 Initial revision
71331 =============================================================================
71332 RCS file: f:/miner/source/texmap/ntmap.c,v
71333 Working file: texmap/ntmap.c
71334 head: 1.52
71335 branch:
71336 description: Start of conversion to new texture mapper.
71337 ----------------------------
71338 revision 1.52
71339 date: 1995/03/14 15:13:06;  author: john;  state: Exp;
71340 Increased MAX_Y_Pointers to 480.
71341 ----------------------------
71342 revision 1.51
71343 date: 1995/02/23 14:25:09;  author: john;  state: Exp;
71344 Added editor tmap.
71345 ----------------------------
71346 revision 1.50
71347 date: 1995/02/20 18:22:58;  author: john;  state: Exp;
71348 Put all the externs in the assembly modules into tmap_inc.asm.
71349 Also, moved all the C versions of the inner loops into a new module, 
71350 scanline.c.
71351 ----------------------------
71352 revision 1.49
71353 date: 1995/02/20 17:09:11;  author: john;  state: Exp;
71354 Added code so that you can build the tmapper with no assembly!
71355 ----------------------------
71356 revision 1.48
71357 date: 1995/01/06 11:11:30;  author: mike;  state: Exp;
71358 even when not in editor, have 400 lines in texture map scanline table.
71359 ----------------------------
71360 revision 1.47
71361 date: 1994/12/15 16:43:25;  author: matt;  state: Exp;
71362 Took out code only needed by editor
71363 ----------------------------
71364 revision 1.46
71365 date: 1994/12/09 22:35:37;  author: mike;  state: Exp;
71366 fix bug in before call to asm_tmap_scanline_per causing write of pixel onto past right border onto left.
71367 ----------------------------
71368 revision 1.45
71369 date: 1994/12/06 16:31:06;  author: mike;  state: Exp;
71370 fix bug in asm_tmap_scanline_matt interface.
71371 ----------------------------
71372 revision 1.44
71373 date: 1994/12/04 20:37:18;  author: mike;  state: Exp;
71374 *** empty log message ***
71375 ----------------------------
71376 revision 1.43
71377 date: 1994/12/02 23:30:04;  author: mike;  state: Exp;
71378 optimizations.
71379 ----------------------------
71380 revision 1.42
71381 date: 1994/11/30 00:57:43;  author: mike;  state: Exp;
71382 optimizations.
71383 ----------------------------
71384 revision 1.41
71385 date: 1994/11/28 13:34:27;  author: mike;  state: Exp;
71386 optimizations.
71387 ----------------------------
71388 revision 1.40
71389 date: 1994/11/28 01:30:01;  author: mike;  state: Exp;
71390 kill warning.
71391 ----------------------------
71392 revision 1.39
71393 date: 1994/11/28 01:28:59;  author: mike;  state: Exp;
71394 optimizations.
71395 ----------------------------
71396 revision 1.38
71397 date: 1994/11/21 14:08:07;  author: john;  state: Exp;
71398 Took out all multiple instead of divide code.
71399 ----------------------------
71400 revision 1.37
71401 date: 1994/11/19 15:21:52;  author: mike;  state: Exp;
71402 rip out unused code.
71403 ----------------------------
71404 revision 1.36
71405 date: 1994/11/14 11:42:51;  author: mike;  state: Exp;
71406 optimization.
71407 ----------------------------
71408 revision 1.35
71409 date: 1994/11/12 16:41:36;  author: mike;  state: Exp;
71410 *** empty log message ***
71411 ----------------------------
71412 revision 1.34
71413 date: 1994/11/10 21:28:41;  author: mike;  state: Exp;
71414 remove call to init_interface_vars_to_assembler.
71415 ----------------------------
71416 revision 1.33
71417 date: 1994/11/10 11:08:59;  author: mike;  state: Exp;
71418 detail level stuff.
71419 ----------------------------
71420 revision 1.32
71421 date: 1994/11/09 22:55:52;  author: matt;  state: Exp;
71422 Added variable Current_seg_depth for detail level optimization
71423 ----------------------------
71424 revision 1.31
71425 date: 1994/11/09 19:57:31;  author: john;  state: Exp;
71426 Added texture rle caching.
71427 ----------------------------
71428 revision 1.30
71429 date: 1994/11/09 19:54:48;  author: mike;  state: Exp;
71430 Call flat shader if Tmap_flat_flag set.
71431 ----------------------------
71432 revision 1.29
71433 date: 1994/11/02 21:33:31;  author: john;  state: Exp;
71434 Added Burger Bill's optimization, ie.. 2 muls per 8 pixels.
71435 ----------------------------
71436 revision 1.28
71437 date: 1994/11/02 11:32:16;  author: john;  state: Exp;
71438 Added code for c callable inner loop and code to 
71439 test dividing out z0.
71440 ----------------------------
71441 revision 1.27
71442 date: 1994/10/28 20:54:32;  author: matt;  state: Exp;
71443 Added error checking
71444 ----------------------------
71445 revision 1.26
71446 date: 1994/10/25 11:20:20;  author: mike;  state: Exp;
71447 fix bug in lighting overflow checking for one scanline tall linear texture maps.
71448 ----------------------------
71449 revision 1.25
71450 date: 1994/08/03 15:40:33;  author: mike;  state: Exp;
71451 Prevent divide overflows, decrease occurrence of precision-caused glitches.
71452 ----------------------------
71453 revision 1.24
71454 date: 1994/07/27 09:31:16;  author: mike;  state: Exp;
71455 Fix concave texture map problem, decrease occurrence of unimportant int 3.
71456 ----------------------------
71457 revision 1.23
71458 date: 1994/06/17 12:23:31;  author: mike;  state: Exp;
71459 Support non-lighted texture maps.
71460 ----------------------------
71461 revision 1.22
71462 date: 1994/06/11 08:10:24;  author: mike;  state: Exp;
71463 Fix mysterious hang bug, lighting value was out of range.
71464 ----------------------------
71465 revision 1.21
71466 date: 1994/06/09 16:10:16;  author: mike;  state: Exp;
71467 Change SC2000 from constant to variable.
71468 =============================================================================
71469 RCS file: f:/miner/source/texmap/scanline.c,v
71470 Working file: texmap/scanline.c
71471 head: 1.2
71472 branch:
71473 description: Routines to draw the texture mapped scanlines.
71474 ----------------------------
71475 revision 1.2
71476 date: 1995/02/20 18:23:39;  author: john;  state: Exp;
71477 Added new module for C versions of inner loops.
71478 ----------------------------
71479 revision 1.1
71480 date: 1995/02/20 17:42:27;  author: john;  state: Exp;
71481 Initial revision
71482 =============================================================================
71483 RCS file: f:/miner/source/texmap/scanline.h,v
71484 Working file: texmap/scanline.h
71485 head: 1.2
71486 branch:
71487 description: Prototypes for C versions of texture mapped scanlines.
71488 ----------------------------
71489 revision 1.2
71490 date: 1995/02/20 18:23:40;  author: john;  state: Exp;
71491 Added new module for C versions of inner loops.
71492 ----------------------------
71493 revision 1.1
71494 date: 1995/02/20 17:44:16;  author: john;  state: Exp;
71495 Initial revision
71496 =============================================================================
71497 RCS file: f:/miner/source/texmap/texmap.h,v
71498 Working file: texmap/texmap.h
71499 head: 1.17
71500 branch:
71501 description: Include file for entities using texture mapper library.
71502 ----------------------------
71503 revision 1.17
71504 date: 1994/11/10 11:09:16;  author: mike;  state: Exp;
71505 detail level stuff.
71506 ----------------------------
71507 revision 1.16
71508 date: 1994/11/09 22:55:32;  author: matt;  state: Exp;
71509 Added variable Current_seg_depth for detail level optimization
71510 ----------------------------
71511 revision 1.15
71512 date: 1994/06/09 16:10:04;  author: mike;  state: Exp;
71513 Add prototype for SC2000
71514 ----------------------------
71515 revision 1.14
71516 date: 1994/05/25 18:46:16;  author: matt;  state: Exp;
71517 Added gr_upoly_tmap_ylr(), which generates ylr's for a polygon
71518 ----------------------------
71519 revision 1.13
71520 date: 1994/05/25 09:47:12;  author: mike;  state: Exp;
71521 Added interface support for linear texture mapper (Mike change, Matt commnet)
71522 ----------------------------
71523 revision 1.12
71524 date: 1994/05/24 17:30:43;  author: mike;  state: Exp;
71525 Prototype a bunch of linear, vertical scanning functions.
71526 ----------------------------
71527 revision 1.11
71528 date: 1994/05/19 23:26:14;  author: mike;  state: Exp;
71529 Add constants NUM_LIGHTING_VALUES, MAX_LIGHTING_VALUE, MIN_LIGHTING_VALUE,
71530 all part of new lighting_values_in_0_to_1 system.
71531 ----------------------------
71532 revision 1.10
71533 date: 1994/05/14 17:19:21;  author: matt;  state: Exp;
71534 Added externs
71535 ----------------------------
71536 revision 1.9
71537 date: 1994/04/13 23:55:44;  author: matt;  state: Exp;
71538 Increased max_tmap_verts from 16 to 25
71539 ----------------------------
71540 revision 1.8
71541 date: 1994/03/31 08:35:43;  author: mike;  state: Exp;
71542 Prototype for gr_upoly_tmap.
71543 ----------------------------
71544 revision 1.7
71545 date: 1994/02/08 15:17:54;  author: mike;  state: Exp;
71546 define label for MAX_TMAP_VERTS
71547 ----------------------------
71548 revision 1.6
71549 date: 1994/01/31 15:41:51;  author: mike;  state: Exp;
71550 Add texture_map_lin_lin_sky_v
71551 ----------------------------
71552 revision 1.5
71553 date: 1994/01/18 10:49:40;  author: mike;  state: Exp;
71554 prototype for texture_map_lin_lin_sky
71555 ----------------------------
71556 revision 1.4
71557 date: 1993/11/30 17:09:46;  author: mike;  state: Exp;
71558 prototype for compute_lighting_value.
71559 ----------------------------
71560 revision 1.3
71561 date: 1993/11/22 10:50:38;  author: matt;  state: Exp;
71562 Add ifndef around body of file
71563 ----------------------------
71564 revision 1.2
71565 date: 1993/10/06 12:41:25;  author: mike;  state: Exp;
71566 Change prototype for draw_tmap.
71567 ----------------------------
71568 revision 1.1
71569 date: 1993/09/08 17:29:11;  author: mike;  state: Exp;
71570 Initial revision
71571 =============================================================================
71572 RCS file: f:/miner/source/texmap/texmapl.h,v
71573 Working file: texmap/texmapl.h
71574 head: 1.14
71575 branch:
71576 description: Local include file for texture mapper library -- NOT to be included by users.
71577 ----------------------------
71578 revision 1.14
71579 date: 1995/02/20 18:23:02;  author: john;  state: Exp;
71580 Put all the externs in the assembly modules into tmap_inc.asm.
71581 Also, moved all the C versions of the inner loops into a new module, 
71582 scanline.c.
71583 ----------------------------
71584 revision 1.13
71585 date: 1995/02/20 17:09:16;  author: john;  state: Exp;
71586 Added code so that you can build the tmapper with no assembly!
71587 ----------------------------
71588 revision 1.12
71589 date: 1994/11/28 13:34:34;  author: mike;  state: Exp;
71590 optimizations.
71591 ----------------------------
71592 revision 1.11
71593 date: 1994/11/12 16:41:27;  author: mike;  state: Exp;
71594 function prototype.
71595 ----------------------------
71596 revision 1.10
71597 date: 1994/05/24 17:30:00;  author: mike;  state: Exp;
71598 Prototype fix_recip, asm_tmap_scanline_lin_v.
71599 ----------------------------
71600 revision 1.9
71601 date: 1994/04/21 15:04:26;  author: mike;  state: Exp;
71602 Add prototype for texmapl.h
71603 ----------------------------
71604 revision 1.8
71605 date: 1994/03/31 08:34:53;  author: mike;  state: Exp;
71606 *** empty log message ***
71607 ----------------------------
71608 revision 1.7
71609 date: 1994/03/22 20:37:04;  author: mike;  state: Exp;
71610 *** empty log message ***
71611 ----------------------------
71612 revision 1.6
71613 date: 1994/03/14 15:43:03;  author: mike;  state: Exp;
71614 streamline code.
71615 ----------------------------
71616 revision 1.5
71617 date: 1994/01/31 15:43:18;  author: mike;  state: Exp;
71618 window_height, asm_tmap_scanline_lin_sky_v
71619 ----------------------------
71620 revision 1.4
71621 date: 1994/01/21 21:12:27;  author: mike;  state: Exp;
71622 Prototype asm_tmap_scanline_lin_sky
71623 ----------------------------
71624 revision 1.3
71625 date: 1994/01/14 14:01:45;  author: mike;  state: Exp;
71626 Add a bunch of variables.
71627 ----------------------------
71628 revision 1.2
71629 date: 1993/11/22 10:25:11;  author: mike;  state: Exp;
71630 *** empty log message ***
71631 ----------------------------
71632 revision 1.1
71633 date: 1993/09/08 17:29:13;  author: mike;  state: Exp;
71634 Initial revision
71635 =============================================================================
71636 RCS file: f:/miner/source/texmap/tmap.c,v
71637 Working file: texmap/tmap.c
71638 head: 1.19
71639 branch:
71640 description: Texture mapper
71641 ----------------------------
71642 revision 1.19
71643 date: 1994/03/14 15:44:27;  author: mike;  state: Exp;
71644 Streamline code, rendering this file obsolete, replaced by ntmap.c
71645 ----------------------------
71646 revision 1.18
71647 date: 1994/02/10 18:35:15;  author: matt;  state: Exp;
71648 Got rid of DEBUG_ON define, now replaced by NDEBUG system
71649 ----------------------------
71650 revision 1.17
71651 date: 1994/02/08 15:21:28;  author: mike;  state: Exp;
71652 sc2000 stuff.
71653 ----------------------------
71654 revision 1.16
71655 date: 1994/01/31 15:43:01;  author: mike;  state: Exp;
71656 who knows, probably a lot of stuff...
71657 ----------------------------
71658 revision 1.15
71659 date: 1994/01/26 11:50:28;  author: mike;  state: Exp;
71660 Don't make dark textures not plot.
71661 ----------------------------
71662 revision 1.14
71663 date: 1994/01/21 21:12:53;  author: mike;  state: Exp;
71664 sky stuff.
71665 ----------------------------
71666 revision 1.13
71667 date: 1994/01/21 11:58:47;  author: john;  state: Exp;
71668 Changed lighting.
71669 ----------------------------
71670 revision 1.12
71671 date: 1994/01/18 10:51:11;  author: mike;  state: Exp;
71672 Interface to sky texture mapper.
71673 ----------------------------
71674 revision 1.11
71675 date: 1994/01/14 14:02:43;  author: mike;  state: Exp;
71676 *** empty log message ***
71677 ----------------------------
71678 revision 1.10
71679 date: 1993/12/20 13:56:45;  author: mike;  state: Exp;
71680 Remove "negative lighting value" message.
71681 ----------------------------
71682 revision 1.9
71683 date: 1993/12/17 19:59:58;  author: mike;  state: Exp;
71684 Change lighting.
71685 ----------------------------
71686 revision 1.8
71687 date: 1993/12/07 12:28:01;  author: john;  state: Exp;
71688 Moved bmd_palette to gr_palette
71689 ----------------------------
71690 revision 1.7
71691 date: 1993/12/06 13:28:11;  author: mike;  state: Exp;
71692 Prevent divide overflow.
71693 ----------------------------
71694 revision 1.6
71695 date: 1993/11/30 17:17:11;  author: john;  state: Exp;
71696 *** empty log message ***
71697 ----------------------------
71698 revision 1.5
71699 date: 1993/11/23 18:08:13;  author: mike;  state: Exp;
71700 Put in check for under/over flowing lighting values.
71701 ----------------------------
71702 revision 1.4
71703 date: 1993/11/23 15:09:19;  author: mike;  state: Exp;
71704 Added lighting to perspective tmapper
71705 ----------------------------
71706 revision 1.3
71707 date: 1993/11/22 10:24:04;  author: mike;  state: Exp;
71708 *** empty log message ***
71709 ----------------------------
71710 revision 1.2
71711 date: 1993/10/06 12:41:45;  author: mike;  state: Exp;
71712 Change draw_tmap to conform to Matt's new interface.
71713 ----------------------------
71714 revision 1.1
71715 date: 1993/09/08 17:29:09;  author: mike;  state: Exp;
71716 Initial revision
71717 =============================================================================
71718 RCS file: f:/miner/source/texmap/tmapflat.c,v
71719 Working file: texmap/tmapflat.c
71720 head: 1.13
71721 branch:
71722 description: Flat shader derived from texture mapper (a little slow)
71723 ----------------------------
71724 revision 1.13
71725 date: 1995/02/20 18:23:24;  author: john;  state: Exp;
71726 Added new module for C versions of inner loops.
71727 ----------------------------
71728 revision 1.12
71729 date: 1995/02/20 17:09:17;  author: john;  state: Exp;
71730 Added code so that you can build the tmapper with no assembly!
71731 ----------------------------
71732 revision 1.11
71733 date: 1994/11/30 00:58:01;  author: mike;  state: Exp;
71734 optimizations.
71735 ----------------------------
71736 revision 1.10
71737 date: 1994/11/28 13:34:32;  author: mike;  state: Exp;
71738 optimizations.
71739 ----------------------------
71740 revision 1.9
71741 date: 1994/11/19 15:21:46;  author: mike;  state: Exp;
71742 rip out unused code.
71743 ----------------------------
71744 revision 1.8
71745 date: 1994/11/12 16:41:41;  author: mike;  state: Exp;
71746 *** empty log message ***
71747 ----------------------------
71748 revision 1.7
71749 date: 1994/11/09 23:05:12;  author: mike;  state: Exp;
71750 do lighting on texture maps which get flat shaded instead.
71751 ----------------------------
71752 revision 1.6
71753 date: 1994/10/06 19:53:07;  author: matt;  state: Exp;
71754 Added function that takes same parms as draw_tmap(), but renders flat
71755 ----------------------------
71756 revision 1.5
71757 date: 1994/10/06 18:38:12;  author: john;  state: Exp;
71758 Added the ability to fade a scanline by calling gr_upoly_tmap
71759 with Gr_scanline_darkening_level with a value < MAX_FADE_LEVELS.
71760 ----------------------------
71761 revision 1.4
71762 date: 1994/05/25 18:46:32;  author: matt;  state: Exp;
71763 Added gr_upoly_tmap_ylr(), which generates ylr's for a polygon
71764 ----------------------------
71765 revision 1.3
71766 date: 1994/04/08 16:25:58;  author: mike;  state: Exp;
71767 Comment out some includes (of header files)
71768 call init_interface_vars_to_assembler.
71769 ----------------------------
71770 revision 1.2
71771 date: 1994/03/31 08:33:44;  author: mike;  state: Exp;
71772 Fixup flat shading version of texture mapper (get it?)
71773 (Or maybe not, I admit to not testing my code...hahahah!)
71774 ----------------------------
71775 revision 1.1
71776 date: 1993/09/08 17:29:10;  author: mike;  state: Exp;
71777 Initial revision
71778 =============================================================================
71779 RCS file: f:/miner/source/texmap/tmapsky.c,v
71780 Working file: texmap/tmapsky.c
71781 head: 1.4
71782 branch:
71783 description: Sky texture mapper for Sim City 2000 Drive Through
71784 ----------------------------
71785 revision 1.4
71786 date: 1994/11/28 13:34:33;  author: mike;  state: Exp;
71787 optimizations.
71788 ----------------------------
71789 revision 1.3
71790 date: 1994/06/09 16:10:10;  author: mike;  state: Exp;
71791 Kill definition of SC2000.
71792 ----------------------------
71793 revision 1.2
71794 date: 1994/03/15 14:49:58;  author: mike;  state: Exp;
71795 *** empty log message ***
71796 ----------------------------
71797 revision 1.1
71798 date: 1994/03/15 10:30:53;  author: mike;  state: Exp;
71799 Initial revision
71800 =============================================================================
71801 RCS file: f:/miner/source/texmap/tmapv.c,v
71802 Working file: texmap/tmapv.c
71803 head: 1.5
71804 branch:
71805 description: Vertical scanning in inner loop analogue to tmap.c
71806 ----------------------------
71807 revision 1.5
71808 date: 1994/11/28 13:34:30;  author: mike;  state: Exp;
71809 optimizations.
71810 ----------------------------
71811 revision 1.4
71812 date: 1994/05/24 17:31:01;  author: mike;  state: Exp;
71813 Vertical scanning texture mapper, hyperbolic in outer loop, linear in inner.
71814 ----------------------------
71815 revision 1.3
71816 date: 1994/05/24 11:02:54;  author: mike;  state: Exp;
71817 Fix bugs in vertically scanning texture mapper, hack in Do_vertical_scan.
71818 ----------------------------
71819 revision 1.2
71820 date: 1994/01/31 15:42:02;  author: mike;  state: Exp;
71821 Vertical scanning version of texture mapper.
71822 ----------------------------
71823 revision 1.1
71824 date: 1994/01/30 13:56:44;  author: mike;  state: Exp;
71825 Initial revision
71826 =============================================================================
71827 RCS file: f:/miner/source/texmap/tmapz.c,v
71828 Working file: texmap/tmapz.c
71829 head: 1.3
71830 branch:
71831 description: .
71832 ----------------------------
71833 revision 1.3
71834 date: 1994/11/28 13:34:26;  author: mike;  state: Exp;
71835 optimizations.
71836 ----------------------------
71837 revision 1.2
71838 date: 1994/07/08 17:43:13;  author: john;  state: Exp;
71839 Added flat-shaded-zbuffered polygon.
71840 ----------------------------
71841 revision 1.1
71842 date: 1994/07/08 10:45:13;  author: john;  state: Exp;
71843 Initial revision
71844 =============================================================================
71845 RCS file: f:/miner/source/texmap/ntmap.c,v
71846 Working file: texmap/ntmap.c
71847 head: 1.52
71848 branch:
71849 description: Start of conversion to new texture mapper.
71850 ----------------------------
71851 revision 1.52
71852 date: 1995/03/14 15:13:06;  author: john;  state: Exp;
71853 Increased MAX_Y_Pointers to 480.
71854 ----------------------------
71855 revision 1.51
71856 date: 1995/02/23 14:25:09;  author: john;  state: Exp;
71857 Added editor tmap.
71858 ----------------------------
71859 revision 1.50
71860 date: 1995/02/20 18:22:58;  author: john;  state: Exp;
71861 Put all the externs in the assembly modules into tmap_inc.asm.
71862 Also, moved all the C versions of the inner loops into a new module, 
71863 scanline.c.
71864 ----------------------------
71865 revision 1.49
71866 date: 1995/02/20 17:09:11;  author: john;  state: Exp;
71867 Added code so that you can build the tmapper with no assembly!
71868 ----------------------------
71869 revision 1.48
71870 date: 1995/01/06 11:11:30;  author: mike;  state: Exp;
71871 even when not in editor, have 400 lines in texture map scanline table.
71872 ----------------------------
71873 revision 1.47
71874 date: 1994/12/15 16:43:25;  author: matt;  state: Exp;
71875 Took out code only needed by editor
71876 ----------------------------
71877 revision 1.46
71878 date: 1994/12/09 22:35:37;  author: mike;  state: Exp;
71879 fix bug in before call to asm_tmap_scanline_per causing write of pixel onto past right border onto left.
71880 ----------------------------
71881 revision 1.45
71882 date: 1994/12/06 16:31:06;  author: mike;  state: Exp;
71883 fix bug in asm_tmap_scanline_matt interface.
71884 ----------------------------
71885 revision 1.44
71886 date: 1994/12/04 20:37:18;  author: mike;  state: Exp;
71887 *** empty log message ***
71888 ----------------------------
71889 revision 1.43
71890 date: 1994/12/02 23:30:04;  author: mike;  state: Exp;
71891 optimizations.
71892 ----------------------------
71893 revision 1.42
71894 date: 1994/11/30 00:57:43;  author: mike;  state: Exp;
71895 optimizations.
71896 ----------------------------
71897 revision 1.41
71898 date: 1994/11/28 13:34:27;  author: mike;  state: Exp;
71899 optimizations.
71900 ----------------------------
71901 revision 1.40
71902 date: 1994/11/28 01:30:01;  author: mike;  state: Exp;
71903 kill warning.
71904 ----------------------------
71905 revision 1.39
71906 date: 1994/11/28 01:28:59;  author: mike;  state: Exp;
71907 optimizations.
71908 ----------------------------
71909 revision 1.38
71910 date: 1994/11/21 14:08:07;  author: john;  state: Exp;
71911 Took out all multiple instead of divide code.
71912 ----------------------------
71913 revision 1.37
71914 date: 1994/11/19 15:21:52;  author: mike;  state: Exp;
71915 rip out unused code.
71916 ----------------------------
71917 revision 1.36
71918 date: 1994/11/14 11:42:51;  author: mike;  state: Exp;
71919 optimization.
71920 ----------------------------
71921 revision 1.35
71922 date: 1994/11/12 16:41:36;  author: mike;  state: Exp;
71923 *** empty log message ***
71924 ----------------------------
71925 revision 1.34
71926 date: 1994/11/10 21:28:41;  author: mike;  state: Exp;
71927 remove call to init_interface_vars_to_assembler.
71928 ----------------------------
71929 revision 1.33
71930 date: 1994/11/10 11:08:59;  author: mike;  state: Exp;
71931 detail level stuff.
71932 ----------------------------
71933 revision 1.32
71934 date: 1994/11/09 22:55:52;  author: matt;  state: Exp;
71935 Added variable Current_seg_depth for detail level optimization
71936 ----------------------------
71937 revision 1.31
71938 date: 1994/11/09 19:57:31;  author: john;  state: Exp;
71939 Added texture rle caching.
71940 ----------------------------
71941 revision 1.30
71942 date: 1994/11/09 19:54:48;  author: mike;  state: Exp;
71943 Call flat shader if Tmap_flat_flag set.
71944 ----------------------------
71945 revision 1.29
71946 date: 1994/11/02 21:33:31;  author: john;  state: Exp;
71947 Added Burger Bill's optimization, ie.. 2 muls per 8 pixels.
71948 ----------------------------
71949 revision 1.28
71950 date: 1994/11/02 11:32:16;  author: john;  state: Exp;
71951 Added code for c callable inner loop and code to 
71952 test dividing out z0.
71953 ----------------------------
71954 revision 1.27
71955 date: 1994/10/28 20:54:32;  author: matt;  state: Exp;
71956 Added error checking
71957 ----------------------------
71958 revision 1.26
71959 date: 1994/10/25 11:20:20;  author: mike;  state: Exp;
71960 fix bug in lighting overflow checking for one scanline tall linear texture maps.
71961 ----------------------------
71962 revision 1.25
71963 date: 1994/08/03 15:40:33;  author: mike;  state: Exp;
71964 Prevent divide overflows, decrease occurrence of precision-caused glitches.
71965 ----------------------------
71966 revision 1.24
71967 date: 1994/07/27 09:31:16;  author: mike;  state: Exp;
71968 Fix concave texture map problem, decrease occurrence of unimportant int 3.
71969 ----------------------------
71970 revision 1.23
71971 date: 1994/06/17 12:23:31;  author: mike;  state: Exp;
71972 Support non-lighted texture maps.
71973 ----------------------------
71974 revision 1.22
71975 date: 1994/06/11 08:10:24;  author: mike;  state: Exp;
71976 Fix mysterious hang bug, lighting value was out of range.
71977 ----------------------------
71978 revision 1.21
71979 date: 1994/06/09 16:10:16;  author: mike;  state: Exp;
71980 Change SC2000 from constant to variable.
71981 =============================================================================
71982 RCS file: f:/miner/source/ui/button.c,v
71983 Working file: ui/button.c
71984 head: 1.10
71985 branch:
71986 description: Routines for manipulating the button gadgets.
71987 ----------------------------
71988 revision 1.10
71989 date: 1994/11/18 23:07:32;  author: john;  state: Exp;
71990 Changed a bunch of shorts to ints.
71991 ----------------------------
71992 revision 1.9
71993 date: 1994/09/22 18:18:42;  author: john;  state: Exp;
71994 Fixed bug with Enter being pressed when a window opens.
71995 ----------------------------
71996 revision 1.8
71997 date: 1994/06/09 12:18:28;  author: john;  state: Exp;
71998 Took out keyboard flushes.
71999 ----------------------------
72000 revision 1.7
72001 date: 1994/04/22 11:10:11;  author: john;  state: Exp;
72002 *** empty log message ***
72003 ----------------------------
72004 revision 1.6
72005 date: 1993/12/10 14:16:29;  author: john;  state: Exp;
72006 made buttons have 2 user-functions.
72007 ----------------------------
72008 revision 1.5
72009 date: 1993/12/07 12:31:18;  author: john;  state: Exp;
72010 new version.
72011 ----------------------------
72012 revision 1.4
72013 date: 1993/10/26 13:45:56;  author: john;  state: Exp;
72014 *** empty log message ***
72015 ----------------------------
72016 revision 1.3
72017 date: 1993/10/05 17:30:21;  author: john;  state: Exp;
72018 *** empty log message ***
72019 ----------------------------
72020 revision 1.2
72021 date: 1993/09/20 10:34:49;  author: john;  state: Exp;
72022 *** empty log message ***
72023 ----------------------------
72024 revision 1.1
72025 date: 1993/09/20 10:27:15;  author: john;  state: Exp;
72026 Initial revision
72027 =============================================================================
72028 RCS file: f:/miner/source/ui/file.c,v
72029 Working file: ui/file.c
72030 head: 1.6
72031 branch:
72032 description: File dialog box stuff.
72033 ----------------------------
72034 revision 1.6
72035 date: 1994/06/09 12:18:29;  author: john;  state: Exp;
72036 Took out keyboard flushes.
72037 ----------------------------
72038 revision 1.5
72039 date: 1994/04/27 18:30:49;  author: john;  state: Exp;
72040 Fixed bug with enter a directory without a slash on
72041 the end not working.
72042  .
72043 ----------------------------
72044 revision 1.4
72045 date: 1994/04/22 11:09:47;  author: john;  state: Exp;
72046 Speed up directory loading by only searching for *. instead of *.*
72047 ----------------------------
72048 revision 1.3
72049 date: 1993/12/07 12:30:18;  author: john;  state: Exp;
72050 new version.
72051 ----------------------------
72052 revision 1.2
72053 date: 1993/10/26 13:46:22;  author: john;  state: Exp;
72054 *** empty log message ***
72055 ----------------------------
72056 revision 1.1
72057 date: 1993/10/06 11:10:23;  author: john;  state: Exp;
72058 Initial revision
72059 =============================================================================
72060 RCS file: f:/miner/source/ui/func.h,v
72061 Working file: ui/func.h
72062 head: 1.1
72063 branch:
72064 description: .
72065 ----------------------------
72066 revision 1.1
72067 date: 1994/11/27 14:52:03;  author: matt;  state: Exp;
72068 Initial revision
72069 ----------------------------
72070 revision 1.1
72071 date: 1994/11/21 14:13:31;  author: matt;  state: Exp;
72072 Initial revision
72073 ----------------------------
72074 revision 1.1
72075 date: 1993/11/15 12:28:13;  author: john;  state: Exp;
72076 Initial revision
72077 =============================================================================
72078 RCS file: f:/miner/source/ui/gadget.c,v
72079 Working file: ui/gadget.c
72080 head: 1.6
72081 branch:
72082 description: General routines for all the low-level gadgets.
72083 ----------------------------
72084 revision 1.6
72085 date: 1994/08/09 09:56:48;  author: matt;  state: Exp;
72086 Save & restore curwindow around button processing
72087 ----------------------------
72088 revision 1.5
72089 date: 1994/04/22 11:10:13;  author: john;  state: Exp;
72090 *** empty log message ***
72091 ----------------------------
72092 revision 1.4
72093 date: 1993/12/07 12:31:11;  author: john;  state: Exp;
72094 new version.
72095 ----------------------------
72096 revision 1.3
72097 date: 1993/10/26 13:46:19;  author: john;  state: Exp;
72098 *** empty log message ***
72099 ----------------------------
72100 revision 1.2
72101 date: 1993/10/05 17:30:06;  author: john;  state: Exp;
72102 ,
72103 ----------------------------
72104 revision 1.1
72105 date: 1993/09/20 10:34:54;  author: john;  state: Exp;
72106 Initial revision
72107 =============================================================================
72108 RCS file: f:/miner/source/ui/harderr.c,v
72109 Working file: ui/harderr.c
72110 head: 1.3
72111 branch:
72112 description: A graphical dos critical error handler.
72113 ----------------------------
72114 revision 1.3
72115 date: 1993/10/26 13:45:57;  author: john;  state: Exp;
72116 *** empty log message ***
72117 ----------------------------
72118 revision 1.2
72119 date: 1993/10/05 17:30:28;  author: john;  state: Exp;
72120 *** empty log message ***
72121 ----------------------------
72122 revision 1.1
72123 date: 1993/09/20 10:34:58;  author: john;  state: Exp;
72124 Initial revision
72125 =============================================================================
72126 RCS file: f:/miner/source/ui/icon.c,v
72127 Working file: ui/icon.c
72128 head: 1.2
72129 branch:
72130 description: An icon class.
72131 ----------------------------
72132 revision 1.2
72133 date: 1994/11/18 23:07:33;  author: john;  state: Exp;
72134 Changed a bunch of shorts to ints.
72135 ----------------------------
72136 revision 1.1
72137 date: 1993/12/07 12:30:23;  author: john;  state: Exp;
72138 Initial revision
72139 =============================================================================
72140 RCS file: f:/miner/source/ui/inputbox.c,v
72141 Working file: ui/inputbox.c
72142 head: 1.6
72143 branch:
72144 description: Routines for doing inputbox gadgets.
72145 ----------------------------
72146 revision 1.6
72147 date: 1994/11/18 23:07:30;  author: john;  state: Exp;
72148 Changed a bunch of shorts to ints.
72149 ----------------------------
72150 revision 1.5
72151 date: 1994/07/22 17:02:17;  author: john;  state: Exp;
72152 fixed bug with inputbox not sucking up its keypresses.
72153 ----------------------------
72154 revision 1.4
72155 date: 1993/12/07 12:30:55;  author: john;  state: Exp;
72156 new version.
72157 ----------------------------
72158 revision 1.3
72159 date: 1993/10/26 13:45:59;  author: john;  state: Exp;
72160 *** empty log message ***
72161 ----------------------------
72162 revision 1.2
72163 date: 1993/10/05 17:30:50;  author: john;  state: Exp;
72164 *** empty log message ***
72165 ----------------------------
72166 revision 1.1
72167 date: 1993/09/20 10:35:12;  author: john;  state: Exp;
72168 Initial revision
72169 =============================================================================
72170 RCS file: f:/miner/source/ui/keypress.c,v
72171 Working file: ui/keypress.c
72172 head: 1.2
72173 branch:
72174 description: ----------------------------
72175 revision 1.2
72176 date: 1994/06/09 12:18:27;  author: john;  state: Exp;
72177 Took out keyboard flushes.
72178 ----------------------------
72179 revision 1.1
72180 date: 1993/12/07 12:30:14;  author: john;  state: Exp;
72181 Initial revision
72182 =============================================================================
72183 RCS file: f:/miner/source/ui/listbox.c,v
72184 Working file: ui/listbox.c
72185 head: 1.5
72186 branch:
72187 description: Routines for doing listbox gadgets.
72188 ----------------------------
72189 revision 1.5
72190 date: 1994/11/18 23:07:32;  author: john;  state: Exp;
72191 Changed a bunch of shorts to ints.
72192 ----------------------------
72193 revision 1.4
72194 date: 1993/12/07 12:31:02;  author: john;  state: Exp;
72195 new version.
72196 ----------------------------
72197 revision 1.3
72198 date: 1993/10/26 13:46:16;  author: john;  state: Exp;
72199 *** empty log message ***
72200 ----------------------------
72201 revision 1.2
72202 date: 1993/10/05 17:30:15;  author: john;  state: Exp;
72203 *** empty log message ***
72204 ----------------------------
72205 revision 1.1
72206 date: 1993/09/20 10:34:45;  author: john;  state: Exp;
72207 Initial revision
72208 =============================================================================
72209 RCS file: f:/miner/source/ui/medfunc.c,v
72210 Working file: ui/medfunc.c
72211 head: 1.1
72212 branch:
72213 description: A list of MED functions.
72214 ----------------------------
72215 revision 1.1
72216 date: 1993/12/07 12:31:18;  author: john;  state: Exp;
72217 Initial revision
72218 =============================================================================
72219 RCS file: f:/miner/source/ui/menu.c,v
72220 Working file: ui/menu.c
72221 head: 1.5
72222 branch:
72223 description: Routines for doing popup menus.
72224 ----------------------------
72225 revision 1.5
72226 date: 1994/11/18 23:07:19;  author: john;  state: Exp;
72227 Changed a bunch of shorts to ints.
72228 ----------------------------
72229 revision 1.4
72230 date: 1993/12/07 12:30:24;  author: john;  state: Exp;
72231 new version.
72232 ----------------------------
72233 revision 1.3
72234 date: 1993/10/26 13:46:18;  author: john;  state: Exp;
72235 *** empty log message ***
72236 ----------------------------
72237 revision 1.2
72238 date: 1993/10/05 17:31:25;  author: john;  state: Exp;
72239 *** empty log message ***
72240 ----------------------------
72241 revision 1.1
72242 date: 1993/09/20 10:35:16;  author: john;  state: Exp;
72243 Initial revision
72244 =============================================================================
72245 RCS file: f:/miner/source/ui/menubar.c,v
72246 Working file: ui/menubar.c
72247 head: 1.10
72248 branch:
72249 description: .
72250 ----------------------------
72251 revision 1.10
72252 date: 1994/11/27 14:53:11;  author: matt;  state: Exp;
72253 Took out include of medlisp.h
72254 ----------------------------
72255 revision 1.9
72256 date: 1994/11/18 23:07:28;  author: john;  state: Exp;
72257 Changed a bunch of shorts to ints.
72258 ----------------------------
72259 revision 1.8
72260 date: 1994/05/31 18:18:41;  author: john;  state: Exp;
72261 Fixed bug with F pulling up file menu,
72262 ----------------------------
72263 revision 1.7
72264 date: 1994/05/30 12:03:37;  author: john;  state: Exp;
72265 Fixed bug with Alt+F not getting accepted in state 0.
72266 ----------------------------
72267 revision 1.6
72268 date: 1994/05/25 10:05:54;  author: yuan;  state: Exp;
72269 Tracking down strange bug with do-wall-dialog.
72270 ----------------------------
72271 revision 1.5
72272 date: 1994/05/24 17:52:22;  author: yuan;  state: Exp;
72273 Testing.
72274 ----------------------------
72275 revision 1.4
72276 date: 1994/02/01 13:29:53;  author: john;  state: Exp;
72277 *** empty log message ***
72278 ----------------------------
72279 revision 1.3
72280 date: 1993/12/22 17:26:49;  author: john;  state: Exp;
72281 made it so that you can hold down Alt key and 
72282 type menu letters to select an item.
72283 ----------------------------
72284 revision 1.2
72285 date: 1993/12/15 11:18:15;  author: yuan;  state: Exp;
72286 Changed width of menubar to 700 so that we could squeeze
72287 in the clock
72288 ----------------------------
72289 revision 1.1
72290 date: 1993/12/07 12:31:09;  author: john;  state: Exp;
72291 Initial revision
72292 =============================================================================
72293 RCS file: f:/miner/source/ui/message.c,v
72294 Working file: ui/message.c
72295 head: 1.8
72296 branch:
72297 description: Routines for doing a popup messagebox
72298 ----------------------------
72299 revision 1.8
72300 date: 1994/11/18 23:07:31;  author: john;  state: Exp;
72301 Changed a bunch of shorts to ints.
72302 ----------------------------
72303 revision 1.7
72304 date: 1994/06/09 12:18:31;  author: john;  state: Exp;
72305 Took out keyboard flushes.
72306 ----------------------------
72307 revision 1.6
72308 date: 1994/01/10 16:24:37;  author: john;  state: Exp;
72309 Fixed bug in 800x600 mode with restoring
72310 bogus font.
72311 ----------------------------
72312 revision 1.5
72313 date: 1994/01/10 15:10:34;  author: john;  state: Exp;
72314 made messagebox use smallfont in modes with
72315 with < 640.
72316 ----------------------------
72317 revision 1.4
72318 date: 1993/12/07 12:30:00;  author: john;  state: Exp;
72319 new version.
72320 ----------------------------
72321 revision 1.3
72322 date: 1993/10/26 13:46:01;  author: john;  state: Exp;
72323 *** empty log message ***
72324 ----------------------------
72325 revision 1.2
72326 date: 1993/10/05 17:31:29;  author: john;  state: Exp;
72327 *** empty log message ***
72328 ----------------------------
72329 revision 1.1
72330 date: 1993/09/20 10:35:22;  author: john;  state: Exp;
72331 Initial revision
72332 =============================================================================
72333 RCS file: f:/miner/source/ui/mouse.c,v
72334 Working file: ui/mouse.c
72335 head: 1.8
72336 branch:
72337 description: Mouse interface routines.
72338 ----------------------------
72339 revision 1.8
72340 date: 1995/03/06 17:54:17;  author: john;  state: Exp;
72341 fixed bug with mouse color being wrong.
72342 ----------------------------
72343 revision 1.7
72344 date: 1994/09/23 14:57:52;  author: john;  state: Exp;
72345 Took out calls to init_mouse and init_keyboard.
72346 ----------------------------
72347 revision 1.6
72348 date: 1994/04/22 11:10:06;  author: john;  state: Exp;
72349 *** empty log message ***
72350 ----------------------------
72351 revision 1.5
72352 date: 1993/12/07 12:30:44;  author: john;  state: Exp;
72353 new version.
72354 ----------------------------
72355 revision 1.4
72356 date: 1993/10/26 13:46:04;  author: john;  state: Exp;
72357 *** empty log message ***
72358 ----------------------------
72359 revision 1.3
72360 date: 1993/10/05 17:55:27;  author: matt;  state: Exp;
72361 Changed default pointer
72362 ----------------------------
72363 revision 1.2
72364 date: 1993/10/05 17:31:33;  author: john;  state: Exp;
72365 *** empty log message ***
72366 ----------------------------
72367 revision 1.1
72368 date: 1993/09/20 10:35:25;  author: john;  state: Exp;
72369 Initial revision
72370 =============================================================================
72371 RCS file: f:/miner/source/ui/number.c,v
72372 Working file: ui/number.c
72373 head: 1.2
72374 branch:
72375 description: Routine to input a number
72376 ----------------------------
72377 revision 1.2
72378 date: 1994/06/09 12:18:25;  author: john;  state: Exp;
72379 Took out keyboard flushes.
72380 ----------------------------
72381 revision 1.1
72382 date: 1993/12/07 12:31:18;  author: john;  state: Exp;
72383 Initial revision
72384 =============================================================================
72385 RCS file: f:/miner/source/ui/popup.c,v
72386 Working file: ui/popup.c
72387 head: 1.5
72388 branch:
72389 description: Routines for a popup menu.
72390 ----------------------------
72391 revision 1.5
72392 date: 1994/11/18 23:07:31;  author: john;  state: Exp;
72393 Changed a bunch of shorts to ints.
72394 ----------------------------
72395 revision 1.4
72396 date: 1993/12/07 12:30:03;  author: john;  state: Exp;
72397 new version.
72398 ----------------------------
72399 revision 1.3
72400 date: 1993/10/26 13:45:58;  author: john;  state: Exp;
72401 *** empty log message ***
72402 ----------------------------
72403 revision 1.2
72404 date: 1993/10/05 17:30:36;  author: john;  state: Exp;
72405 *** empty log message ***
72406 ----------------------------
72407 revision 1.1
72408 date: 1993/09/20 10:34:41;  author: john;  state: Exp;
72409 Initial revision
72410 =============================================================================
72411 RCS file: f:/miner/source/ui/radio.c,v
72412 Working file: ui/radio.c
72413 head: 1.5
72414 branch:
72415 description: Radio box gadget stuff.
72416 ----------------------------
72417 revision 1.5
72418 date: 1994/04/22 11:10:15;  author: john;  state: Exp;
72419 *** empty log message ***
72420 ----------------------------
72421 revision 1.4
72422 date: 1993/12/07 12:29:40;  author: john;  state: Exp;
72423 new version.
72424 ----------------------------
72425 revision 1.3
72426 date: 1993/10/26 13:46:39;  author: john;  state: Exp;
72427 *** empty log message ***
72428 ----------------------------
72429 revision 1.2
72430 date: 1993/10/05 17:31:42;  author: john;  state: Exp;
72431 *** empty log message ***
72432 ----------------------------
72433 revision 1.1
72434 date: 1993/09/20 10:35:36;  author: john;  state: Exp;
72435 Initial revision
72436 =============================================================================
72437 RCS file: f:/miner/source/ui/scroll.c,v
72438 Working file: ui/scroll.c
72439 head: 1.5
72440 branch:
72441 description: Routines for doing vertical scroll bars.
72442 ----------------------------
72443 revision 1.5
72444 date: 1994/11/18 23:07:33;  author: john;  state: Exp;
72445 Changed a bunch of shorts to ints.
72446 ----------------------------
72447 revision 1.4
72448 date: 1993/12/07 12:30:35;  author: john;  state: Exp;
72449 new version.
72450 ----------------------------
72451 revision 1.3
72452 date: 1993/10/26 13:46:10;  author: john;  state: Exp;
72453 *** empty log message ***
72454 ----------------------------
72455 revision 1.2
72456 date: 1993/10/05 17:31:04;  author: john;  state: Exp;
72457 *** empty log message ***
72458 ----------------------------
72459 revision 1.1
72460 date: 1993/09/20 10:35:29;  author: john;  state: Exp;
72461 Initial revision
72462 =============================================================================
72463 RCS file: f:/miner/source/ui/ui.c,v
72464 Working file: ui/ui.c
72465 head: 1.9
72466 branch:
72467 description: UI init and close functions.
72468 ----------------------------
72469 revision 1.9
72470 date: 1994/11/13 15:37:18;  author: john;  state: Exp;
72471 Made ui_close not close key and mouse.
72472 ----------------------------
72473 revision 1.8
72474 date: 1994/10/27 09:58:53;  author: john;  state: Exp;
72475 *** empty log message ***
72476 ----------------------------
72477 revision 1.7
72478 date: 1994/10/27 09:43:00;  author: john;  state: Exp;
72479 Fixed colors after removing gr_inverse_table.
72480 ----------------------------
72481 revision 1.6
72482 date: 1994/09/23 14:57:41;  author: john;  state: Exp;
72483 Took out calls to init_mouse and init_keyboard.
72484 ----------------------------
72485 revision 1.5
72486 date: 1993/12/10 14:16:45;  author: john;  state: Exp;
72487 made buttons have 2 user-functions.
72488 ----------------------------
72489 revision 1.4
72490 date: 1993/12/07 12:31:32;  author: john;  state: Exp;
72491 new version.
72492 ----------------------------
72493 revision 1.3
72494 date: 1993/10/26 13:46:12;  author: john;  state: Exp;
72495 *** empty log message ***
72496 ----------------------------
72497 revision 1.2
72498 date: 1993/10/05 17:31:55;  author: john;  state: Exp;
72499 *** empty log message ***
72500 ----------------------------
72501 revision 1.1
72502 date: 1993/09/20 10:35:49;  author: john;  state: Exp;
72503 Initial revision
72504 =============================================================================
72505 RCS file: f:/miner/source/ui/ui.h,v
72506 Working file: ui/ui.h
72507 head: 1.11
72508 branch:
72509 description: Header file for user interface
72510 ----------------------------
72511 revision 1.11
72512 date: 1994/11/18 23:07:33;  author: john;  state: Exp;
72513 Changed a bunch of shorts to ints.
72514 ----------------------------
72515 revision 1.10
72516 date: 1994/05/14 17:44:36;  author: matt;  state: Exp;
72517 Added extern.
72518 ----------------------------
72519 revision 1.9
72520 date: 1994/05/14 17:20:33;  author: matt;  state: Exp;
72521 Added externs
72522 ----------------------------
72523 revision 1.8
72524 date: 1994/02/01 13:29:56;  author: john;  state: Exp;
72525 *** empty log message ***
72526 ----------------------------
72527 revision 1.7
72528 date: 1994/01/10 16:25:03;  author: john;  state: Exp;
72529 Fixed bug in 800x600 mode with restoring
72530 bogus font.
72531 ----------------------------
72532 revision 1.6
72533 date: 1993/12/10 14:22:30;  author: john;  state: Exp;
72534 Made buttons have up to 2 keys/functions.
72535 ----------------------------
72536 revision 1.5
72537 date: 1993/12/07 12:30:11;  author: john;  state: Exp;
72538 new version.
72539 ----------------------------
72540 revision 1.4
72541 date: 1993/10/26 13:46:15;  author: john;  state: Exp;
72542 *** empty log message ***
72543 ----------------------------
72544 revision 1.3
72545 date: 1993/10/07 11:23:30;  author: john;  state: Exp;
72546 *** empty log message ***
72547 ----------------------------
72548 revision 1.2
72549 date: 1993/10/05 17:31:15;  author: john;  state: Exp;
72550 *** empty log message ***
72551 ----------------------------
72552 revision 1.1
72553 date: 1993/09/20 10:36:36;  author: john;  state: Exp;
72554 Initial revision
72555 =============================================================================
72556 RCS file: f:/miner/source/ui/ui.h,v
72557 Working file: ui/ui.h
72558 head: 1.5
72559 branch:
72560 description: Header file for user interface
72561 ----------------------------
72562 revision 1.5
72563 date: 1993/12/07 12:30:11;  author: john;  state: Exp;
72564 new version.
72565 ----------------------------
72566 revision 1.4
72567 date: 1993/10/26 13:46:15;  author: john;  state: Exp;
72568 *** empty log message ***
72569 ----------------------------
72570 revision 1.3
72571 date: 1993/10/07 11:23:30;  author: john;  state: Exp;
72572 *** empty log message ***
72573 ----------------------------
72574 revision 1.2
72575 date: 1993/10/05 17:31:15;  author: john;  state: Exp;
72576 *** empty log message ***
72577 ----------------------------
72578 revision 1.1
72579 date: 1993/09/20 10:36:36;  author: john;  state: Exp;
72580 Initial revision
72581 =============================================================================
72582 RCS file: f:/miner/source/ui/uidraw.c,v
72583 Working file: ui/uidraw.c
72584 head: 1.5
72585 branch:
72586 description: Graphics primatives for the ui gadgets and windows.
72587 ----------------------------
72588 revision 1.5
72589 date: 1994/11/18 23:07:34;  author: john;  state: Exp;
72590 Changed a bunch of shorts to ints.
72591 ----------------------------
72592 revision 1.4
72593 date: 1994/09/13 11:20:22;  author: john;  state: Exp;
72594 Made ui_string_centered not clip.
72595 ----------------------------
72596 revision 1.3
72597 date: 1993/10/26 13:46:33;  author: john;  state: Exp;
72598 *** empty log message ***
72599 ----------------------------
72600 revision 1.2
72601 date: 1993/10/05 17:31:00;  author: john;  state: Exp;
72602 *** empty log message ***
72603 ----------------------------
72604 revision 1.1
72605 date: 1993/09/20 10:35:41;  author: john;  state: Exp;
72606 Initial revision
72607 =============================================================================
72608 RCS file: f:/miner/source/ui/userbox.c,v
72609 Working file: ui/userbox.c
72610 head: 1.4
72611 branch:
72612 description: Routines for user-boxes.
72613 ----------------------------
72614 revision 1.4
72615 date: 1993/12/07 12:30:05;  author: john;  state: Exp;
72616 new version.
72617 ----------------------------
72618 revision 1.3
72619 date: 1993/10/26 13:46:13;  author: john;  state: Exp;
72620 *** empty log message ***
72621 ----------------------------
72622 revision 1.2
72623 date: 1993/10/05 17:32:01;  author: john;  state: Exp;
72624 *** empty log message ***
72625 ----------------------------
72626 revision 1.1
72627 date: 1993/09/20 10:35:53;  author: john;  state: Exp;
72628 Initial revision
72629 =============================================================================
72630 RCS file: f:/miner/source/ui/window.c,v
72631 Working file: ui/window.c
72632 head: 1.8
72633 branch:
72634 description: Windowing functions and controller.
72635 ----------------------------
72636 revision 1.8
72637 date: 1994/11/18 23:21:46;  author: john;  state: Exp;
72638 Fixed big with prev.
72639 ----------------------------
72640 revision 1.7
72641 date: 1994/11/18 23:21:06;  author: john;  state: Exp;
72642 Changed some shorts to int.
72643 ----------------------------
72644 revision 1.6
72645 date: 1994/06/09 12:18:12;  author: john;  state: Exp;
72646 Took out keyboard flushes.
72647 ----------------------------
72648 revision 1.5
72649 date: 1994/01/18 11:00:36;  author: john;  state: Exp;
72650 added ui_get_idle_seconds.
72651 ----------------------------
72652 revision 1.4
72653 date: 1993/12/07 12:30:33;  author: john;  state: Exp;
72654 new version.
72655 ----------------------------
72656 revision 1.3
72657 date: 1993/10/26 13:46:08;  author: john;  state: Exp;
72658 *** empty log message ***
72659 ----------------------------
72660 revision 1.2
72661 date: 1993/10/05 17:31:46;  author: john;  state: Exp;
72662 *** empty log message ***
72663 ----------------------------
72664 revision 1.1
72665 date: 1993/09/20 10:35:44;  author: john;  state: Exp;
72666 Initial revision
72667 =============================================================================
72668 RCS file: f:/miner/source/ui/barbox.c,v
72669 Working file: ui/barbox.c
72670 head: 1.2
72671 branch:
72672 description: File for creating a barbox...
72673 ----------------------------
72674 revision 1.2
72675 date: 1994/01/18 11:07:45;  author: john;  state: Exp;
72676 *** empty log message ***
72677 ----------------------------
72678 revision 1.1
72679 date: 1994/01/10 15:24:32;  author: john;  state: Exp;
72680 Initial revision
72681 =============================================================================
72682 RCS file: f:/miner/source/ui/checkbox.c,v
72683 Working file: ui/checkbox.c
72684 head: 1.4
72685 branch:
72686 description: Routines for doing checkbox gadgets.
72687 ----------------------------
72688 revision 1.4
72689 date: 1993/12/07 12:30:47;  author: john;  state: Exp;
72690 new version.
72691 ----------------------------
72692 revision 1.3
72693 date: 1993/10/26 13:46:20;  author: john;  state: Exp;
72694 *** empty log message ***
72695 ----------------------------
72696 revision 1.2
72697 date: 1993/10/05 17:30:42;  author: john;  state: Exp;
72698 *** empty log message ***
72699 ----------------------------
72700 revision 1.1
72701 date: 1993/09/20 10:35:07;  author: john;  state: Exp;
72702 Initial revision
72703 =============================================================================
72704 RCS file: f:/miner/source/2d/bitmap.c,v
72705 Working file: 2d/bitmap.c
72706 head: 1.17
72707 branch:
72708 description: Graphical routines for manipulating grs_bitmaps.
72709 ----------------------------
72710 revision 1.17
72711 date: 1994/11/18 22:50:25;  author: john;  state: Exp;
72712 Changed shorts to ints in parameters.
72713 ----------------------------
72714 revision 1.16
72715 date: 1994/11/10 15:59:46;  author: john;  state: Exp;
72716 Fixed bugs with canvas's being created with bogus bm_flags.
72717 ----------------------------
72718 revision 1.15
72719 date: 1994/10/26 23:55:53;  author: john;  state: Exp;
72720 Took out roller; Took out inverse table.
72721 ----------------------------
72722 revision 1.14
72723 date: 1994/09/19 14:40:21;  author: john;  state: Exp;
72724 Changed dpmi stuff.
72725 ----------------------------
72726 revision 1.13
72727 date: 1994/09/19 11:44:04;  author: john;  state: Exp;
72728 Changed call to allocate selector to the dpmi module.
72729 ----------------------------
72730 revision 1.12
72731 date: 1994/06/09 13:14:57;  author: john;  state: Exp;
72732 Made selectors zero our
72733 out, I meant.
72734 ----------------------------
72735 revision 1.11
72736 date: 1994/05/06 12:50:07;  author: john;  state: Exp;
72737 Added supertransparency; neatend things up; took out warnings.
72738 ----------------------------
72739 revision 1.10
72740 date: 1994/04/08 16:59:39;  author: john;  state: Exp;
72741 Add fading poly's; Made palette fade 32 instead of 16.
72742 ----------------------------
72743 revision 1.9
72744 date: 1994/03/16 17:21:09;  author: john;  state: Exp;
72745 Added slow palette searching options.
72746 ----------------------------
72747 revision 1.8
72748 date: 1994/03/14 17:59:35;  author: john;  state: Exp;
72749 Added function to check bitmap's transparency.
72750 ----------------------------
72751 revision 1.7
72752 date: 1994/03/14 17:16:21;  author: john;  state: Exp;
72753 fixed bug with counting freq of pixels.
72754 ----------------------------
72755 revision 1.6
72756 date: 1994/03/14 16:55:47;  author: john;  state: Exp;
72757 Changed grs_bitmap structure to include bm_flags.
72758 ----------------------------
72759 revision 1.5
72760 date: 1994/02/18 15:32:22;  author: john;  state: Exp;
72761 *** empty log message ***
72762 ----------------------------
72763 revision 1.4
72764 date: 1993/10/15 16:22:49;  author: john;  state: Exp;
72765 *** empty log message ***
72766 ----------------------------
72767 revision 1.3
72768 date: 1993/09/08 17:37:11;  author: john;  state: Exp;
72769 Checking for errors with Yuan...
72770 ----------------------------
72771 revision 1.2
72772 date: 1993/09/08 14:46:27;  author: john;  state: Exp;
72773 looking for possible bugs...
72774 ----------------------------
72775 revision 1.1
72776 date: 1993/09/08 11:43:05;  author: john;  state: Exp;
72777 Initial revision
72778 =============================================================================
72779 RCS file: f:/miner/source/2d/box.c,v
72780 Working file: 2d/box.c
72781 head: 1.3
72782 branch:
72783 description: Graphical routines for drawing boxes.
72784 ----------------------------
72785 revision 1.3
72786 date: 1994/11/18 22:50:19;  author: john;  state: Exp;
72787 Changed shorts to ints in parameters.
72788 ----------------------------
72789 revision 1.2
72790 date: 1993/10/15 16:23:31;  author: john;  state: Exp;
72791 y
72792 ----------------------------
72793 revision 1.1
72794 date: 1993/09/08 11:43:11;  author: john;  state: Exp;
72795 Initial revision
72796 =============================================================================
72797 RCS file: f:/miner/source/2d/canvas.c,v
72798 Working file: 2d/canvas.c
72799 head: 1.14
72800 branch:
72801 description: Graphical routines for manipulating grs_canvas's.
72802 ----------------------------
72803 revision 1.14
72804 date: 1995/03/06 09:18:45;  author: john;  state: Exp;
72805 Made modex page flipping wait for retrace be default.
72806 ----------------------------
72807 revision 1.13
72808 date: 1995/03/01 15:37:40;  author: john;  state: Exp;
72809 Better ModeX support.
72810 ----------------------------
72811 revision 1.12
72812 date: 1994/11/28 17:08:29;  author: john;  state: Exp;
72813 Took out some unused functions in linear.asm, moved
72814 gr_linear_movsd from linear.asm to bitblt.c, made sure that
72815 the code in ibiblt.c sets the direction flags before rep movsing.
72816 ----------------------------
72817 revision 1.11
72818 date: 1994/11/18 22:50:24;  author: john;  state: Exp;
72819 Changed shorts to ints in parameters.
72820 ----------------------------
72821 revision 1.10
72822 date: 1994/11/10 15:59:33;  author: john;  state: Exp;
72823 Fixed bugs with canvas's being created with bogus bm_flags.
72824 ----------------------------
72825 revision 1.9
72826 date: 1994/06/24 17:26:34;  author: john;  state: Exp;
72827 Made rowsizes bigger than actual screen work with SVGA.
72828 ----------------------------
72829 revision 1.8
72830 date: 1994/05/06 12:50:41;  author: john;  state: Exp;
72831 Added supertransparency; neatend things up; took out warnings.
72832 ----------------------------
72833 revision 1.7
72834 date: 1993/12/08 16:41:26;  author: john;  state: Exp;
72835 fixed color = -1 bug
72836 ----------------------------
72837 revision 1.6
72838 date: 1993/10/15 16:22:25;  author: john;  state: Exp;
72839 *** empty log message ***
72840 ----------------------------
72841 revision 1.5
72842 date: 1993/09/29 16:14:07;  author: john;  state: Exp;
72843 added globol variables describing current canvas
72844 ----------------------------
72845 revision 1.4
72846 date: 1993/09/14 16:03:40;  author: matt;  state: Exp;
72847 Added new function, gr_clear_canvas()
72848 ----------------------------
72849 revision 1.3
72850 date: 1993/09/14 13:51:38;  author: matt;  state: Exp;
72851 in gr_init_sub_canvas(), copy bm_rowsize from source canvas
72852 ----------------------------
72853 revision 1.2
72854 date: 1993/09/08 17:37:34;  author: john;  state: Exp;
72855 Checking for potential errors
72856 ----------------------------
72857 revision 1.1
72858 date: 1993/09/08 11:43:18;  author: john;  state: Exp;
72859 Initial revision
72860 =============================================================================
72861 RCS file: f:/miner/source/2d/circle.c,v
72862 Working file: 2d/circle.c
72863 head: 1.3
72864 branch:
72865 description: .
72866 ----------------------------
72867 revision 1.3
72868 date: 1994/11/18 22:51:01;  author: john;  state: Exp;
72869 Changed a bunch of shorts to ints in calls.
72870 ----------------------------
72871 revision 1.2
72872 date: 1994/05/12 17:33:18;  author: john;  state: Exp;
72873 Added circle code.
72874 ----------------------------
72875 revision 1.1
72876 date: 1994/05/12 17:21:49;  author: john;  state: Exp;
72877 Initial revision
72878 =============================================================================
72879 RCS file: f:/miner/source/2d/clip.h,v
72880 Working file: 2d/clip.h
72881 head: 1.3
72882 branch:
72883 description: Macros used for clipping
72884 ----------------------------
72885 revision 1.3
72886 date: 1993/10/15 16:22:28;  author: john;  state: Exp;
72887 *** empty log message ***
72888 ----------------------------
72889 revision 1.2
72890 date: 1993/09/29 16:14:31;  author: john;  state: Exp;
72891 made work with fix point
72892 ----------------------------
72893 revision 1.1
72894 date: 1993/09/08 11:40:53;  author: john;  state: Exp;
72895 Initial revision
72896 =============================================================================
72897 RCS file: f:/miner/source/2d/cursor.c,v
72898 Working file: 2d/cursor.c
72899 head: 1.2
72900 branch:
72901 description: Functions for cursor stuff.
72902 ----------------------------
72903 revision 1.2
72904 date: 1994/02/18 15:32:24;  author: john;  state: Exp;
72905 *** empty log message ***
72906 ----------------------------
72907 revision 1.1
72908 date: 1994/02/07 12:33:04;  author: john;  state: Exp;
72909 Initial revision
72910 =============================================================================
72911 RCS file: f:/miner/source/2d/disc.c,v
72912 Working file: 2d/disc.c
72913 head: 1.5
72914 branch:
72915 description: Graphical routines for drawing a disk.
72916 ----------------------------
72917 revision 1.5
72918 date: 1994/11/18 22:50:16;  author: john;  state: Exp;
72919 Changed shorts to ints in parameters.
72920 ----------------------------
72921 revision 1.4
72922 date: 1994/05/06 12:50:12;  author: john;  state: Exp;
72923 Added supertransparency; neatend things up; took out warnings.
72924 ----------------------------
72925 revision 1.3
72926 date: 1994/04/22 11:16:04;  author: john;  state: Exp;
72927 *** empty log message ***
72928 ----------------------------
72929 revision 1.2
72930 date: 1993/10/15 16:22:24;  author: john;  state: Exp;
72931 *** empty log message ***
72932 ----------------------------
72933 revision 1.1
72934 date: 1993/09/08 11:43:24;  author: john;  state: Exp;
72935 Initial revision
72936 =============================================================================
72937 RCS file: f:/miner/source/2d/effect2d.h,v
72938 Working file: 2d/effect2d.h
72939 head: 1.2
72940 branch:
72941 description: .
72942 ----------------------------
72943 revision 1.2
72944 date: 1994/02/01 13:18:47;  author: john;  state: Exp;
72945 *** empty log message ***
72946 ----------------------------
72947 revision 1.1
72948 date: 1994/01/28 11:59:37;  author: john;  state: Exp;
72949 Initial revision
72950 =============================================================================
72951 RCS file: f:/miner/source/2d/effects.c,v
72952 Working file: 2d/effects.c
72953 head: 1.5
72954 branch:
72955 description: special effects stuff
72956 ----------------------------
72957 revision 1.5
72958 date: 1994/11/18 22:51:04;  author: john;  state: Exp;
72959 Changed a bunch of shorts to ints in calls.
72960 ----------------------------
72961 revision 1.4
72962 date: 1994/04/22 11:16:00;  author: john;  state: Exp;
72963 *** empty log message ***
72964 ----------------------------
72965 revision 1.3
72966 date: 1994/02/01 13:18:45;  author: john;  state: Exp;
72967 *** empty log message ***
72968 ----------------------------
72969 revision 1.2
72970 date: 1993/10/26 13:18:15;  author: john;  state: Exp;
72971 *** empty log message ***
72972 ----------------------------
72973 revision 1.1
72974 date: 1993/10/25 14:56:56;  author: john;  state: Exp;
72975 Initial revision
72976 head: 1.30
72977 branch:
72978 description: Graphical routines for drawing fonts.
72979 ----------------------------
72980 revision 1.30
72981 date: 1995/01/25 20:02:03;  author: john;  state: Exp;
72982 Fixed bug with mono clipped fonts only drawing 1 row.
72983 ----------------------------
72984 revision 1.29
72985 date: 1994/12/08 19:03:54;  author: john;  state: Exp;
72986 Made functions use cfile.
72987 ----------------------------
72988 revision 1.28
72989 date: 1994/11/27 23:08:22;  author: matt;  state: Exp;
72990 Changes for new mprintf calling convention
72991 ----------------------------
72992 revision 1.27
72993 date: 1994/11/18 23:54:50;  author: john;  state: Exp;
72994 Made centering work on x = 0x8000 not -0x8000.
72995 ----------------------------
72996 revision 1.26
72997 date: 1994/11/18 22:50:23;  author: john;  state: Exp;
72998 Changed shorts to ints in parameters.
72999 ----------------------------
73000 revision 1.25
73001 date: 1994/11/04 11:10:31;  author: john;  state: Exp;
73002 Took the & out of string sizing.
73003 ----------------------------
73004 revision 1.24
73005 date: 1994/11/04 10:06:36;  author: john;  state: Exp;
73006 Added fade table for fading fonts. Made font that partially clips
73007 not print a warning message.
73008 ----------------------------
73009 revision 1.23
73010 date: 1994/09/29 10:09:06;  author: john;  state: Exp;
73011 Added real clipping to text.
73012 ----------------------------
73013 revision 1.22
73014 date: 1994/09/12 19:27:51;  author: john;  state: Exp;
73015 Fixed bug with unclipped fonts clipping.
73016 ----------------------------
73017 revision 1.21
73018 date: 1994/09/12 17:16:59;  author: john;  state: Exp;
73019 Added clipping.
73020 ----------------------------
73021 revision 1.20
73022 date: 1994/08/28 16:43:01;  author: matt;  state: Exp;
73023 Added centering if x==0x8000
73024 ----------------------------
73025 revision 1.19
73026 date: 1994/08/15 15:01:11;  author: matt;  state: Exp;
73027 Close font file after reading
73028 ----------------------------
73029 revision 1.18
73030 date: 1994/08/12 18:17:42;  author: matt;  state: Exp;
73031 Fixed stupid bug that cause first char in font not to print
73032 ----------------------------
73033 revision 1.17
73034 date: 1994/08/11 18:00:17;  author: matt;  state: Exp;
73035 Cleaned up code, fixed string width bug.
73036 ----------------------------
73037 revision 1.16
73038 date: 1994/08/10 18:46:11;  author: matt;  state: Exp;
73039 Fixed a couple of little things
73040 ----------------------------
73041 revision 1.15
73042 date: 1994/08/10 18:36:20;  author: matt;  state: Exp;
73043 Changed font file format.  Made chars not in font plot as spaces.  Font file
73044 now stores palette for color font & remaps on load.
73045 ----------------------------
73046 revision 1.14
73047 date: 1994/08/10 12:27:27;  author: matt;  state: Exp;
73048 Took out unneeded int3
73049 ----------------------------
73050 revision 1.13
73051 date: 1994/08/10 12:25:26;  author: matt;  state: Exp;
73052 Added support for colors fonts & kerned fonts
73053 Made our own font file format
73054 ----------------------------
73055 revision 1.12
73056 date: 1994/07/22 17:19:00;  author: john;  state: Exp;
73057 made proportional font width be the max width.
73058 ----------------------------
73059 revision 1.11
73060 date: 1994/05/06 12:50:26;  author: john;  state: Exp;
73061 Added supertransparency; neatend things up; took out warnings.
73062 ----------------------------
73063 revision 1.10
73064 date: 1994/01/31 11:08:12;  author: john;  state: Exp;
73065 fixed bug with order of frees.
73066 ----------------------------
73067 revision 1.9
73068 date: 1994/01/31 10:36:40;  author: john;  state: Exp;
73069 Free'd variable size font data.
73070 ----------------------------
73071 revision 1.8
73072 date: 1994/01/27 17:17:40;  author: john;  state: Exp;
73073 Made error if font file doesn't exist.
73074 ----------------------------
73075 revision 1.7
73076 date: 1993/10/26 13:17:48;  author: john;  state: Exp;
73077 *** empty log message ***
73078 ----------------------------
73079 revision 1.6
73080 date: 1993/10/15 16:23:25;  author: john;  state: Exp;
73081 y
73082 ----------------------------
73083 revision 1.5
73084 date: 1993/09/28 19:05:50;  author: john;  state: Exp;
73085 added support for \n in gr_string and gr_get_string_size
73086 ----------------------------
73087 revision 1.4
73088 date: 1993/09/28 12:46:49;  author: matt;  state: Exp;
73089 On error, now call Error() instead of exit().
73090 ----------------------------
73091 revision 1.3
73092 date: 1993/09/20 11:35:31;  author: john;  state: Exp;
73093 *** empty log message ***
73094 ----------------------------
73095 revision 1.2
73096 date: 1993/09/08 15:54:39;  author: john;  state: Exp;
73097 renamed ReadFile to readfontfile to prevent conflicts with others.
73098 ----------------------------
73099 revision 1.1
73100 date: 1993/09/08 11:43:34;  author: john;  state: Exp;
73101 Initial revision
73102 =============================================================================
73103 RCS file: f:/miner/source/2d/gpixel.c,v
73104 Working file: 2d/gpixel.c
73105 head: 1.5
73106 branch:
73107 description: Graphical routines for getting a pixel's value.
73108 ----------------------------
73109 revision 1.5
73110 date: 1994/11/18 22:50:20;  author: john;  state: Exp;
73111 Changed shorts to ints in parameters.
73112 ----------------------------
73113 revision 1.4
73114 date: 1994/05/06 12:50:08;  author: john;  state: Exp;
73115 Added supertransparency; neatend things up; took out warnings.
73116 ----------------------------
73117 revision 1.3
73118 date: 1993/10/15 16:22:50;  author: john;  state: Exp;
73119 y
73120 ----------------------------
73121 revision 1.2
73122 date: 1993/09/29 16:15:00;  author: john;  state: Exp;
73123 optimized
73124 ----------------------------
73125 revision 1.1
73126 date: 1993/09/08 11:43:40;  author: john;  state: Exp;
73127 Initial revision
73128 =============================================================================
73129 RCS file: f:/miner/source/2d/gr.c,v
73130 Working file: 2d/gr.c
73131 head: 1.56
73132 branch:
73133 description: Graphical routines for setting video modes, etc.
73134 ----------------------------
73135 revision 1.56
73136 date: 1995/05/08 11:22:47;  author: john;  state: Exp;
73137 Added 320x400 3dbios mode.
73138 ----------------------------
73139 revision 1.55
73140 date: 1995/02/02 16:44:05;  author: john;  state: Exp;
73141 Again with prev.
73142 ----------------------------
73143 revision 1.54
73144 date: 1995/02/02 16:42:18;  author: john;  state: Exp;
73145 Fixed palette with text fading out.
73146 ----------------------------
73147 revision 1.53
73148 date: 1995/02/02 14:26:20;  author: john;  state: Exp;
73149 Made palette fades work better with gamma thingy..
73150 ----------------------------
73151 revision 1.52
73152 date: 1995/02/02 14:08:59;  author: john;  state: Exp;
73153 Made palette gamma reset to 0 before exiting to Dos.
73154 ----------------------------
73155 revision 1.51
73156 date: 1995/01/30 18:06:35;  author: john;  state: Exp;
73157 Added text screen fade in/out, and restored video mode properly.
73158 ----------------------------
73159 revision 1.50
73160 date: 1995/01/24 17:58:16;  author: john;  state: Exp;
73161 Added code to return to 80x25 when graphics close.
73162 ----------------------------
73163 revision 1.49
73164 date: 1994/11/30 20:16:05;  author: john;  state: Exp;
73165 Fixed bug that the grd_curscreen flags were never initialized.
73166 ----------------------------
73167 revision 1.48
73168 date: 1994/11/24 13:24:43;  author: john;  state: Exp;
73169 Made sure that some rep movs had the cld set first.
73170 Took some unused functions out.
73171 ----------------------------
73172 revision 1.47
73173 date: 1994/11/18 22:50:20;  author: john;  state: Exp;
73174 Changed shorts to ints in parameters.
73175 ----------------------------
73176 revision 1.46
73177 date: 1994/11/15 18:28:36;  author: john;  state: Exp;
73178 Made text screen fade in.
73179 ----------------------------
73180 revision 1.45
73181 date: 1994/11/15 17:55:11;  author: john;  state: Exp;
73182 Made text palette fade in when game over.
73183 ----------------------------
73184 revision 1.44
73185 date: 1994/11/07 12:07:30;  author: john;  state: Exp;
73186 Made save/restore cursor work a bit better.
73187 ----------------------------
73188 revision 1.43
73189 date: 1994/11/05 12:46:44;  author: john;  state: Exp;
73190 Changed palette stuff a bit.
73191 ----------------------------
73192 revision 1.42
73193 date: 1994/10/26 23:55:50;  author: john;  state: Exp;
73194 Took out roller; Took out inverse table.
73195 ----------------------------
73196 revision 1.41
73197 date: 1994/10/10 13:59:50;  author: john;  state: Exp;
73198 *** empty log message ***
73199 ----------------------------
73200 revision 1.40
73201 date: 1994/10/10 13:58:50;  author: john;  state: Exp;
73202 Added better VGA detection scheme.
73203 ----------------------------
73204 revision 1.39
73205 date: 1994/09/29 10:09:15;  author: john;  state: Exp;
73206 Hacked out VGA card detection for now.
73207 ----------------------------
73208 revision 1.38
73209 date: 1994/09/22 17:35:35;  author: john;  state: Exp;
73210 Fixed bug with palette not reloading in
73211 gr_set_mode
73212 ----------------------------
73213 revision 1.37
73214 date: 1994/09/22 16:08:42;  author: john;  state: Exp;
73215 Fixed some palette stuff.
73216 ----------------------------
73217 revision 1.36
73218 date: 1994/09/19 11:44:23;  author: john;  state: Exp;
73219 Changed call to allocate selector to the dpmi module.
73220 ----------------------------
73221 revision 1.35
73222 date: 1994/09/12 19:28:11;  author: john;  state: Exp;
73223 Fixed bug with unclipped fonts clipping.
73224 ----------------------------
73225 revision 1.34
73226 date: 1994/09/12 18:20:18;  author: john;  state: Exp;
73227 Made text fade out
73228 ----------------------------
73229 revision 1.33
73230 date: 1994/09/12 14:40:15;  author: john;  state: Exp;
73231 Neatend.
73232 ----------------------------
73233 revision 1.32
73234 date: 1994/08/15 15:01:01;  author: matt;  state: Exp;
73235 Set ptr to NULL after freeing
73236 ----------------------------
73237 revision 1.31
73238 date: 1994/07/27 18:30:28;  author: john;  state: Exp;
73239 Took away the blending table.
73240 ----------------------------
73241 revision 1.30
73242 date: 1994/06/24 17:26:59;  author: john;  state: Exp;
73243 Made rowsizes bigger than actual screen work with SVGA.
73244 ----------------------------
73245 revision 1.29
73246 date: 1994/05/12 17:33:16;  author: john;  state: Exp;
73247 Added circle code.
73248 ----------------------------
73249 revision 1.28
73250 date: 1994/05/10 19:51:49;  author: john;  state: Exp;
73251 Added 320x100 mode.
73252 ----------------------------
73253 revision 1.27
73254 date: 1994/05/06 12:50:23;  author: john;  state: Exp;
73255 Added supertransparency; neatend things up; took out warnings.
73256 ----------------------------
73257 revision 1.26
73258 date: 1994/05/03 19:39:00;  author: john;  state: Exp;
73259 *** empty log message ***
73260 ----------------------------
73261 revision 1.25
73262 date: 1994/04/08 16:59:34;  author: john;  state: Exp;
73263 Add fading poly's; Made palette fade 32 instead of 16.
73264 ----------------------------
73265 revision 1.24
73266 date: 1994/03/14 16:56:16;  author: john;  state: Exp;
73267 Changed grs_bitmap structure to include bm_flags.
73268 ----------------------------
73269 revision 1.23
73270 date: 1994/02/18 15:32:27;  author: john;  state: Exp;
73271 *** empty log message ***
73272 ----------------------------
73273 revision 1.22
73274 date: 1994/01/25 11:40:44;  author: john;  state: Exp;
73275 Added gr_check_mode function.
73276 ----------------------------
73277 revision 1.21
73278 date: 1993/12/21 19:57:48;  author: john;  state: Exp;
73279 added selector stuff.
73280 ----------------------------
73281 revision 1.20
73282 date: 1993/12/21 11:40:32;  author: john;  state: Exp;
73283 *** empty log message ***
73284 ----------------------------
73285 revision 1.19
73286 date: 1993/12/09 15:02:13;  author: john;  state: Exp;
73287 Changed palette stuff majorly
73288 ----------------------------
73289 revision 1.18
73290 date: 1993/11/16 11:28:36;  author: john;  state: Exp;
73291 *** empty log message ***
73292 ----------------------------
73293 revision 1.17
73294 date: 1993/10/26 13:17:53;  author: john;  state: Exp;
73295 *** empty log message ***
73296 ----------------------------
73297 revision 1.16
73298 date: 1993/10/15 16:23:42;  author: john;  state: Exp;
73299 y
73300 ----------------------------
73301 revision 1.15
73302 date: 1993/09/29 16:15:21;  author: john;  state: Exp;
73303 optimized
73304 ----------------------------
73305 revision 1.14
73306 date: 1993/09/28 19:06:51;  author: john;  state: Exp;
73307 made gr_set_mode change the grd_cursreen->sc_mode variable.
73308 ----------------------------
73309 revision 1.13
73310 date: 1993/09/28 12:52:12;  author: matt;  state: Exp;
73311 Set aspect ratio of current screen in gr_init() and gr_set_mode().
73312 ----------------------------
73313 revision 1.12
73314 date: 1993/09/27 13:00:24;  author: john;  state: Exp;
73315 made gr_set_mode not call mode_reset on fail
73316 ----------------------------
73317 revision 1.11
73318 date: 1993/09/27 12:51:27;  author: john;  state: Exp;
73319 fixed gr_set_mode to return values
73320 ----------------------------
73321 revision 1.10
73322 date: 1993/09/26 18:59:12;  author: john;  state: Exp;
73323 fade in/out stuff
73324 ----------------------------
73325 revision 1.9
73326 date: 1993/09/21 14:00:41;  author: john;  state: Exp;
73327 added code to save 43/50 line modes.
73328 ----------------------------
73329 revision 1.8
73330 date: 1993/09/20 14:48:48;  author: john;  state: Exp;
73331 *** empty log message ***
73332 ----------------------------
73333 revision 1.7
73334 date: 1993/09/16 17:27:48;  author: john;  state: Exp;
73335 Added code to save/restore video mode.
73336 ----------------------------
73337 revision 1.6
73338 date: 1993/09/16 16:30:15;  author: john;  state: Exp;
73339 Made gr_close retore Mode 3 always.
73340 ----------------------------
73341 revision 1.5
73342 date: 1993/09/14 18:40:07;  author: john;  state: Exp;
73343 Made it so that gr_setmode doesn't change curcanv font and colors.
73344 ----------------------------
73345 revision 1.4
73346 date: 1993/09/14 16:27:01;  author: matt;  state: Exp;
73347 Changes gr_change_mode() to be gr_set_mode()
73348 After gr_set_mode(), grd_curcanv is the canvas of the new screen
73349 Made gr_set_mode() work with the new grd_curcanv, not the old one
73350 ----------------------------
73351 revision 1.3
73352 date: 1993/09/14 13:08:37;  author: john;  state: Exp;
73353 Added gr_changemode
73354 ----------------------------
73355 revision 1.2
73356 date: 1993/09/08 17:36:37;  author: john;  state: Exp;
73357 Looking for error for Yuan... Neatened the nested ifs in setmode.
73358 ----------------------------
73359 revision 1.1
73360 date: 1993/09/08 11:43:51;  author: john;  state: Exp;
73361 Initial revision
73362 =============================================================================
73363 RCS file: f:/miner/source/2d/gr.h,v
73364 Working file: 2d/gr.h
73365 head: 1.45
73366 branch:
73367 description: Definitions for graphics lib.
73368 ----------------------------
73369 revision 1.45
73370 date: 1994/11/18 22:50:21;  author: john;  state: Exp;
73371 Changed shorts to ints in parameters.
73372 ----------------------------
73373 revision 1.44
73374 date: 1994/11/13 13:04:07;  author: john;  state: Exp;
73375 Added paged out bit in bitmap structure.  Commented out the
73376 poly code that is never used.
73377 ----------------------------
73378 revision 1.43
73379 date: 1994/11/09 23:04:56;  author: mike;  state: Exp;
73380 Add avg_color field.
73381 ----------------------------
73382 revision 1.42
73383 date: 1994/10/27 00:53:35;  author: john;  state: Exp;
73384 Added RLE Flag to bitmap structere.
73385 ----------------------------
73386 revision 1.41
73387 date: 1994/10/26 23:55:52;  author: john;  state: Exp;
73388 Took out roller; Took out inverse table.
73389 ----------------------------
73390 revision 1.40
73391 date: 1994/08/11 17:59:12;  author: mike;  state: Exp;
73392 Assembler merge functions written for 3 rotations of bitmaps.
73393 ----------------------------
73394 revision 1.39
73395 date: 1994/08/10 12:24:56;  author: matt;  state: Exp;
73396 Added support for colors fonts & kerned fonts
73397 Made our own font file format
73398 ----------------------------
73399 revision 1.38
73400 date: 1994/07/27 18:30:18;  author: john;  state: Exp;
73401 Took away the blending table.
73402 ----------------------------
73403 revision 1.37
73404 date: 1994/06/16 15:25:06;  author: mike;  state: Exp;
73405 Add flag BM_FLAG_NO_LIGHTING.
73406 ----------------------------
73407 revision 1.36
73408 date: 1994/05/31 10:01:22;  author: john;  state: Exp;
73409 *** empty log message ***
73410 ----------------------------
73411 revision 1.35
73412 date: 1994/05/31 07:53:34;  author: john;  state: Exp;
73413 *** empty log message ***
73414 ----------------------------
73415 revision 1.34
73416 date: 1994/05/14 17:19:41;  author: matt;  state: Exp;
73417 Added externs
73418 ----------------------------
73419 revision 1.33
73420 date: 1994/05/12 17:33:09;  author: john;  state: Exp;
73421 Added circle code.
73422 ----------------------------
73423 revision 1.32
73424 date: 1994/05/06 12:50:16;  author: john;  state: Exp;
73425 Added supertransparency; neatend things up; took out warnings.
73426 ----------------------------
73427 revision 1.31
73428 date: 1994/05/04 10:06:06;  author: john;  state: Exp;
73429 Added flag for bitmap super-transparency.
73430 ----------------------------
73431 revision 1.30
73432 date: 1994/05/03 19:38:56;  author: john;  state: Exp;
73433 *** empty log message ***
73434 ----------------------------
73435 revision 1.29
73436 date: 1994/04/22 11:16:05;  author: john;  state: Exp;
73437 *** empty log message ***
73438 ----------------------------
73439 revision 1.28
73440 date: 1994/04/08 16:59:32;  author: john;  state: Exp;
73441 Add fading poly's; Made palette fade 32 instead of 16.
73442 ----------------------------
73443 revision 1.27
73444 date: 1994/03/16 17:29:52;  author: john;  state: Exp;
73445 *** empty log message ***
73446 ----------------------------
73447 revision 1.26
73448 date: 1994/03/16 17:20:51;  author: john;  state: Exp;
73449 Added slow palette searching options.
73450 ----------------------------
73451 revision 1.25
73452 date: 1994/03/14 17:59:20;  author: john;  state: Exp;
73453 Added function to check bitmap's transparency.
73454 ----------------------------
73455 revision 1.24
73456 date: 1994/03/14 16:56:26;  author: john;  state: Exp;
73457 Changed grs_bitmap structure to include bm_flags.
73458 ----------------------------
73459 revision 1.23
73460 date: 1994/02/18 15:32:30;  author: john;  state: Exp;
73461 *** empty log message ***
73462 ----------------------------
73463 revision 1.22
73464 date: 1994/01/25 11:40:48;  author: john;  state: Exp;
73465 Added gr_check_mode function.
73466 ----------------------------
73467 revision 1.21
73468 date: 1994/01/12 13:45:24;  author: john;  state: Exp;
73469 Added scaler.
73470 ----------------------------
73471 revision 1.20
73472 date: 1993/12/21 19:58:24;  author: john;  state: Exp;
73473 added selector stuff
73474 ----------------------------
73475 revision 1.19
73476 date: 1993/12/21 11:40:40;  author: john;  state: Exp;
73477 *** empty log message ***
73478 ----------------------------
73479 revision 1.18
73480 date: 1993/12/09 15:02:08;  author: john;  state: Exp;
73481 Changed palette stuff majorly
73482 ----------------------------
73483 revision 1.17
73484 date: 1993/12/07 12:32:05;  author: john;  state: Exp;
73485 moved bmd_palette to gr_palette
73486 ----------------------------
73487 revision 1.16
73488 date: 1993/11/28 12:08:06;  author: mike;  state: Exp;
73489 Change prototype for rotate_bitmap.
73490 ----------------------------
73491 revision 1.15
73492 date: 1993/11/18 14:22:51;  author: mike;  state: Exp;
73493 Add prototype for rotate_bitmap.
73494 ----------------------------
73495 revision 1.14
73496 date: 1993/11/17 19:00:59;  author: mike;  state: Exp;
73497 Add prototype for test_rotate_bitmap
73498 ----------------------------
73499 revision 1.13
73500 date: 1993/11/16 11:28:58;  author: john;  state: Exp;
73501 *** empty log message ***
73502 ----------------------------
73503 revision 1.12
73504 date: 1993/10/26 13:17:43;  author: john;  state: Exp;
73505 *** empty log message ***
73506 ----------------------------
73507 revision 1.11
73508 date: 1993/10/15 16:23:37;  author: john;  state: Exp;
73509 y
73510 ----------------------------
73511 revision 1.10
73512 date: 1993/09/28 15:32:33;  author: john;  state: Exp;
73513 added def for save/restore vidmode
73514 ----------------------------
73515 revision 1.9
73516 date: 1993/09/28 12:51:46;  author: matt;  state: Exp;
73517 Added aspect ratio to grs_screen structure
73518 ----------------------------
73519 revision 1.8
73520 date: 1993/09/26 22:45:12;  author: matt;  state: Exp;
73521 Changed prototypes for line functions to take fixes, not ints.
73522 ----------------------------
73523 revision 1.7
73524 date: 1993/09/26 18:58:16;  author: john;  state: Exp;
73525 fadein/out stuff
73526 ----------------------------
73527 revision 1.6
73528 date: 1993/09/14 16:26:44;  author: matt;  state: Exp;
73529 Changed gr_change_mode() to be gr_set_mode()
73530 ----------------------------
73531 revision 1.4
73532 date: 1993/09/14 13:08:45;  author: john;  state: Exp;
73533 added gr_change_mode
73534 ----------------------------
73535 revision 1.3
73536 date: 1993/09/08 13:56:03;  author: matt;  state: Exp;
73537 Put 'if' block around body of file; added bitmap type BM_RGB15
73538 ----------------------------
73539 revision 1.2
73540 date: 1993/09/08 13:02:14;  author: john;  state: Exp;
73541 Changed structure definitions a bit.
73542 ----------------------------
73543 revision 1.1
73544 date: 1993/09/08 11:25:15;  author: john;  state: Exp;
73545 Initial revision
73546 =============================================================================
73547 RCS file: f:/miner/source/2d/grdef.h,v
73548 Working file: 2d/grdef.h
73549 head: 1.9
73550 branch:
73551 description: Internal definitions for graphics lib.
73552 ----------------------------
73553 revision 1.9
73554 date: 1995/03/01 12:31:13;  author: john;  state: Exp;
73555 Added wait for retrace thingy in modex setstart.
73556 ----------------------------
73557 revision 1.8
73558 date: 1994/05/06 12:50:09;  author: john;  state: Exp;
73559 Added supertransparency; neatend things up; took out warnings.
73560 ----------------------------
73561 revision 1.7
73562 date: 1994/01/25 11:40:29;  author: john;  state: Exp;
73563 Added gr_check_mode function.
73564 ----------------------------
73565 revision 1.6
73566 date: 1993/10/15 16:22:53;  author: john;  state: Exp;
73567 y
73568 ----------------------------
73569 revision 1.5
73570 date: 1993/09/29 17:31:00;  author: john;  state: Exp;
73571 added gr_vesa_pixel
73572 ----------------------------
73573 revision 1.4
73574 date: 1993/09/29 16:14:43;  author: john;  state: Exp;
73575 added global canvas descriptors.
73576 ----------------------------
73577 revision 1.3
73578 date: 1993/09/08 17:38:02;  author: john;  state: Exp;
73579 Looking for errors
73580 ----------------------------
73581 revision 1.2
73582 date: 1993/09/08 15:54:29;  author: john;  state: Exp;
73583 *** empty log message ***
73584 ----------------------------
73585 revision 1.1
73586 date: 1993/09/08 11:37:57;  author: john;  state: Exp;
73587 Initial revision
73588 =============================================================================
73589 RCS file: f:/miner/source/2d/ibitblt.c,v
73590 Working file: 2d/ibitblt.c
73591 head: 1.6
73592 branch:
73593 description: Rountines to copy a bitmap on top of another bitmap, but
73594 only copying to pixels that are transparent.
73595 ----------------------------
73596 revision 1.6
73597 date: 1994/11/28 17:07:29;  author: john;  state: Exp;
73598 Took out some unused functions in linear.asm, moved
73599 gr_linear_movsd from linear.asm to bitblt.c, made sure that
73600 the code in ibiblt.c sets the direction flags before rep movsing.
73601 ----------------------------
73602 revision 1.5
73603 date: 1994/11/18 22:50:22;  author: john;  state: Exp;
73604 Changed shorts to ints in parameters.
73605 ----------------------------
73606 revision 1.4
73607 date: 1994/11/09 16:35:16;  author: john;  state: Exp;
73608 First version with working RLE bitmaps.
73609 ----------------------------
73610 revision 1.3
73611 date: 1994/10/03 17:18:05;  author: john;  state: Exp;
73612 Fixed bug with edi not getting intialized to zero
73613 in create_mask.
73614 ----------------------------
73615 revision 1.2
73616 date: 1994/05/31 11:10:55;  author: john;  state: Exp;
73617 *** empty log message ***
73618 ----------------------------
73619 revision 1.1
73620 date: 1994/05/30 16:08:27;  author: john;  state: Exp;
73621 Initial revision
73622 =============================================================================
73623 RCS file: f:/miner/source/2d/ibitblt.h,v
73624 Working file: 2d/ibitblt.h
73625 head: 1.2
73626 branch:
73627 description: Prototypes for the ibitblt functions.
73628 ----------------------------
73629 revision 1.2
73630 date: 1994/05/31 11:10:56;  author: john;  state: Exp;
73631 *** empty log message ***
73632 ----------------------------
73633 revision 1.1
73634 date: 1994/05/30 16:08:46;  author: john;  state: Exp;
73635 Initial revision
73636 =============================================================================
73637 RCS file: f:/miner/source/2d/line.c,v
73638 Working file: 2d/line.c
73639 head: 1.10
73640 branch:
73641 description: Graphical routines for drawing lines.
73642 ----------------------------
73643 revision 1.10
73644 date: 1994/11/18 22:50:02;  author: john;  state: Exp;
73645 Changed shorts to ints in parameters.
73646 ----------------------------
73647 revision 1.9
73648 date: 1994/07/13 12:03:04;  author: john;  state: Exp;
73649 Added assembly modex line-drawer.
73650 ----------------------------
73651 revision 1.8
73652 date: 1993/12/06 18:18:03;  author: john;  state: Exp;
73653 took out aaline.
73654 ----------------------------
73655 revision 1.7
73656 date: 1993/12/03 12:11:17;  author: john;  state: Exp;
73657 ,
73658 ----------------------------
73659 revision 1.6
73660 date: 1993/11/18 09:40:22;  author: john;  state: Exp;
73661 Added laser-line
73662 ----------------------------
73663 revision 1.5
73664 date: 1993/10/15 16:23:36;  author: john;  state: Exp;
73665 y
73666 ----------------------------
73667 revision 1.4
73668 date: 1993/09/29 16:13:58;  author: john;  state: Exp;
73669 optimized
73670 ----------------------------
73671 revision 1.3
73672 date: 1993/09/26 18:44:12;  author: matt;  state: Exp;
73673 Added gr_uline(), which just calls gr_line(), and made both take
73674 fixes, and shift down themselves.
73675 ----------------------------
73676 revision 1.2
73677 date: 1993/09/11 19:50:15;  author: matt;  state: Exp;
73678 In gr_vline() & gr_hline(), check for start > end, and EXCHG if so
73679 ----------------------------
73680 revision 1.1
73681 date: 1993/09/08 11:43:54;  author: john;  state: Exp;
73682 Initial revision
73683 =============================================================================
73684 RCS file: f:/miner/source/2d/bitblt.c,v
73685 Working file: 2d/bitblt.c
73686 head: 1.29
73687 branch:
73688 description: Routines for bitblt's.
73689 ----------------------------
73690 revision 1.29
73691 date: 1995/03/14 12:14:28;  author: john;  state: Exp;
73692 Added code to double horz/vert bitblts.
73693 ----------------------------
73694 revision 1.28
73695 date: 1995/03/13 09:01:48;  author: john;  state: Exp;
73696 Fixed bug with VFX1 screen not tall enough.
73697 ----------------------------
73698 revision 1.27
73699 date: 1995/03/01 15:38:10;  author: john;  state: Exp;
73700 Better ModeX support.
73701 ----------------------------
73702 revision 1.26
73703 date: 1994/12/15 12:19:00;  author: john;  state: Exp;
73704 Added gr_bm_bitblt (clipped!) function.
73705 ----------------------------
73706 revision 1.25
73707 date: 1994/12/09 18:58:42;  author: matt;  state: Exp;
73708 Took out include of 3d.h
73709 ----------------------------
73710 revision 1.24
73711 date: 1994/11/28 17:08:32;  author: john;  state: Exp;
73712 Took out some unused functions in linear.asm, moved
73713 gr_linear_movsd from linear.asm to bitblt.c, made sure that
73714 the code in ibiblt.c sets the direction flags before rep movsing.
73715 ----------------------------
73716 revision 1.22
73717 date: 1994/11/23 16:04:00;  author: john;  state: Exp;
73718 Fixed generic rle'ing to use new bit method.
73719 ----------------------------
73720 revision 1.21
73721 date: 1994/11/18 22:51:03;  author: john;  state: Exp;
73722 Changed a bunch of shorts to ints in calls.
73723 ----------------------------
73724 revision 1.20
73725 date: 1994/11/10 15:59:48;  author: john;  state: Exp;
73726 Fixed bugs with canvas's being created with bogus bm_flags.
73727 ----------------------------
73728 revision 1.19
73729 date: 1994/11/09 21:03:35;  author: john;  state: Exp;
73730 Added RLE for svga gr_ubitmap.
73731 ----------------------------
73732 revision 1.18
73733 date: 1994/11/09 17:41:29;  author: john;  state: Exp;
73734 Made a slow version of rle bitblt to svga, modex.
73735 ----------------------------
73736 revision 1.17
73737 date: 1994/11/09 16:35:15;  author: john;  state: Exp;
73738 First version with working RLE bitmaps.
73739 ----------------------------
73740 revision 1.16
73741 date: 1994/11/04 10:06:58;  author: john;  state: Exp;
73742 Added fade table for fading fonts. Made font that partially clips
73743 not print a warning message.
73744 ----------------------------
73745 revision 1.15
73746 date: 1994/09/22 16:08:38;  author: john;  state: Exp;
73747 Fixed some palette stuff.
73748 ----------------------------
73749 revision 1.14
73750 date: 1994/09/19 11:44:27;  author: john;  state: Exp;
73751 Changed call to allocate selector to the dpmi module.
73752 ----------------------------
73753 revision 1.13
73754 date: 1994/08/08 13:03:00;  author: john;  state: Exp;
73755 Fixed bug in gr_bitmap in modex 
73756 ----------------------------
73757 revision 1.12
73758 date: 1994/07/13 19:47:23;  author: john;  state: Exp;
73759 Fixed bug with modex bitblt to page 2 not working.
73760 ----------------------------
73761 revision 1.11
73762 date: 1994/05/31 11:10:52;  author: john;  state: Exp;
73763 *** empty log message ***
73764 ----------------------------
73765 revision 1.10
73766 date: 1994/03/18 15:24:34;  author: matt;  state: Exp;
73767 Removed interlace stuff
73768 ----------------------------
73769 revision 1.9
73770 date: 1994/02/18 15:32:20;  author: john;  state: Exp;
73771 *** empty log message ***
73772 ----------------------------
73773 revision 1.8
73774 date: 1994/02/01 13:22:54;  author: john;  state: Exp;
73775 *** empty log message ***
73776 ----------------------------
73777 revision 1.7
73778 date: 1994/01/13 08:28:25;  author: mike;  state: Exp;
73779 Modify rect copy to copy alternate scanlines when in interlaced mode.
73780 ----------------------------
73781 revision 1.6
73782 date: 1993/12/28 12:09:46;  author: john;  state: Exp;
73783 added lbitblt.asm
73784 ----------------------------
73785 revision 1.5
73786 date: 1993/10/26 13:18:09;  author: john;  state: Exp;
73787 *** empty log message ***
73788 ----------------------------
73789 revision 1.4
73790 date: 1993/10/15 16:23:30;  author: john;  state: Exp;
73791 y
73792 ----------------------------
73793 revision 1.3
73794 date: 1993/09/13 17:52:58;  author: john;  state: Exp;
73795 Fixed bug in BitBlt linear to SVGA
73796 ----------------------------
73797 revision 1.2
73798 date: 1993/09/08 14:47:00;  author: john;  state: Exp;
73799 Made bitmap00 add rowsize instead of bitmap width.
73800 Other routines might have this problem too.
73801 ----------------------------
73802 revision 1.1
73803 date: 1993/09/08 11:43:01;  author: john;  state: Exp;
73804 Initial revision
73805 =============================================================================
73806 RCS file: f:/miner/source/2d/mspeed.c,v
73807 Working file: 2d/mspeed.c
73808 head: 1.2
73809 branch:
73810 description: Program for testing video speed.
73811 ----------------------------
73812 revision 1.2
73813 date: 1993/10/15 16:23:32;  author: john;  state: Exp;
73814 y
73815 ----------------------------
73816 revision 1.1
73817 date: 1993/09/08 11:43:59;  author: john;  state: Exp;
73818 Initial revision
73819 =============================================================================
73820 RCS file: f:/miner/source/2d/palette.c,v
73821 Working file: 2d/palette.c
73822 head: 1.41
73823 branch:
73824 description: Graphical routines for setting the palette
73825 ----------------------------
73826 revision 1.41
73827 date: 1995/02/02 14:26:31;  author: john;  state: Exp;
73828 Made palette fades work better with gamma thingy..
73829 ----------------------------
73830 revision 1.40
73831 date: 1994/12/08 19:03:46;  author: john;  state: Exp;
73832 Made functions use cfile.
73833 ----------------------------
73834 revision 1.39
73835 date: 1994/12/01 11:23:27;  author: john;  state: Exp;
73836 Limited Gamma from 0-8.
73837 ----------------------------
73838 revision 1.38
73839 date: 1994/11/28 01:31:08;  author: mike;  state: Exp;
73840 optimize color lookup function, caching recently used colors.
73841 ----------------------------
73842 revision 1.37
73843 date: 1994/11/18 22:50:18;  author: john;  state: Exp;
73844 Changed shorts to ints in parameters.
73845 ----------------------------
73846 revision 1.36
73847 date: 1994/11/15 17:54:59;  author: john;  state: Exp;
73848 Made text palette fade in when game over.
73849 ----------------------------
73850 revision 1.35
73851 date: 1994/11/10 19:53:14;  author: matt;  state: Exp;
73852 Fixed error handling is gr_use_palette_table()
73853 ----------------------------
73854 revision 1.34
73855 date: 1994/11/07 13:53:48;  author: john;  state: Exp;
73856 Added better gamma stufff.
73857 ----------------------------
73858 revision 1.33
73859 date: 1994/11/07 13:37:56;  author: john;  state: Exp;
73860 Added gamma correction stuff.
73861 ----------------------------
73862 revision 1.32
73863 date: 1994/11/05 13:20:14;  author: john;  state: Exp;
73864 Fixed bug with find_closest_color_current not working.
73865 ----------------------------
73866 revision 1.31
73867 date: 1994/11/05 13:08:09;  author: john;  state: Exp;
73868 MAde it return 0 when palette already faded out.
73869 ----------------------------
73870 revision 1.30
73871 date: 1994/11/05 13:05:34;  author: john;  state: Exp;
73872 Added back in code to allow keys during fade.
73873 ----------------------------
73874 revision 1.29
73875 date: 1994/11/05 12:49:50;  author: john;  state: Exp;
73876 Fixed bug with previous comment..
73877 ----------------------------
73878 revision 1.28
73879 date: 1994/11/05 12:48:46;  author: john;  state: Exp;
73880 Made palette only fade in / out when its supposed to.
73881 ----------------------------
73882 revision 1.27
73883 date: 1994/11/05 12:46:43;  author: john;  state: Exp;
73884 Changed palette stuff a bit.
73885 ----------------------------
73886 revision 1.26
73887 date: 1994/11/01 12:59:35;  author: john;  state: Exp;
73888 Reduced palette.256 size.
73889 ----------------------------
73890 revision 1.25
73891 date: 1994/10/26 23:55:35;  author: john;  state: Exp;
73892 Took out roller; Took out inverse table.
73893 ----------------------------
73894 revision 1.24
73895 date: 1994/10/04 22:03:05;  author: matt;  state: Exp;
73896 Fixed bug: palette wasn't fading all the way out or in
73897 ----------------------------
73898 revision 1.23
73899 date: 1994/09/22 16:08:40;  author: john;  state: Exp;
73900 Fixed some palette stuff.
73901 ----------------------------
73902 revision 1.22
73903 date: 1994/09/19 11:44:31;  author: john;  state: Exp;
73904 Changed call to allocate selector to the dpmi module.
73905 ----------------------------
73906 revision 1.21
73907 date: 1994/09/12 19:28:09;  author: john;  state: Exp;
73908 Fixed bug with unclipped fonts clipping.
73909 ----------------------------
73910 revision 1.20
73911 date: 1994/09/12 18:18:39;  author: john;  state: Exp;
73912 Set 254 and 255 to fade to themselves in fadetable
73913 ----------------------------
73914 revision 1.19
73915 date: 1994/09/12 14:40:10;  author: john;  state: Exp;
73916 Neatend.
73917 ----------------------------
73918 revision 1.18
73919 date: 1994/09/09 09:31:55;  author: john;  state: Exp;
73920 Made find_closest_color not look at superx spot of 254
73921 ----------------------------
73922 revision 1.17
73923 date: 1994/08/09 11:27:08;  author: john;  state: Exp;
73924 Add cthru stuff.
73925 ----------------------------
73926 revision 1.16
73927 date: 1994/08/01 11:03:51;  author: john;  state: Exp;
73928 MAde it read in old/new palette.256
73929 ----------------------------
73930 revision 1.15
73931 date: 1994/07/27 18:30:27;  author: john;  state: Exp;
73932 Took away the blending table.
73933 ----------------------------
73934 revision 1.14
73935 date: 1994/06/09 10:39:52;  author: john;  state: Exp;
73936 In fade out.in functions, returned 1 if key was pressed...
73937 ----------------------------
73938 revision 1.13
73939 date: 1994/05/31 19:04:16;  author: john;  state: Exp;
73940 Added key to stop fade if desired.
73941 ----------------------------
73942 revision 1.12
73943 date: 1994/05/06 12:50:20;  author: john;  state: Exp;
73944 Added supertransparency; neatend things up; took out warnings.
73945 ----------------------------
73946 revision 1.11
73947 date: 1994/05/03 19:39:02;  author: john;  state: Exp;
73948 *** empty log message ***
73949 ----------------------------
73950 revision 1.10
73951 date: 1994/04/22 11:16:07;  author: john;  state: Exp;
73952 *** empty log message ***
73953 ----------------------------
73954 revision 1.9
73955 date: 1994/04/08 16:59:40;  author: john;  state: Exp;
73956 Add fading poly's; Made palette fade 32 instead of 16.
73957 ----------------------------
73958 revision 1.8
73959 date: 1994/03/16 17:21:17;  author: john;  state: Exp;
73960 Added slow palette searching options.
73961 ----------------------------
73962 revision 1.7
73963 date: 1994/01/07 11:47:33;  author: john;  state: Exp;
73964 made use cflib
73965 ----------------------------
73966 revision 1.6
73967 date: 1993/12/21 11:41:04;  author: john;  state: Exp;
73968 *** empty log message ***
73969 ----------------------------
73970 revision 1.5
73971 date: 1993/12/09 15:02:47;  author: john;  state: Exp;
73972 Changed palette stuff majorly
73973 ----------------------------
73974 revision 1.4
73975 date: 1993/12/07 12:31:41;  author: john;  state: Exp;
73976 moved bmd_palette to gr_palette
73977 ----------------------------
73978 revision 1.3
73979 date: 1993/10/15 16:22:23;  author: john;  state: Exp;
73980 *** empty log message ***
73981 ----------------------------
73982 revision 1.2
73983 date: 1993/09/26 18:59:46;  author: john;  state: Exp;
73984 fade stuff
73985 ----------------------------
73986 revision 1.1
73987 date: 1993/09/08 11:44:03;  author: john;  state: Exp;
73988 Initial revision
73989 =============================================================================
73990 RCS file: f:/miner/source/2d/palette.h,v
73991 Working file: 2d/palette.h
73992 head: 1.11
73993 branch:
73994 description: Protoypes for palette functions
73995 ----------------------------
73996 revision 1.11
73997 date: 1994/11/15 17:55:10;  author: john;  state: Exp;
73998 Made text palette fade in when game over.
73999 ----------------------------
74000 revision 1.10
74001 date: 1994/11/07 13:53:42;  author: john;  state: Exp;
74002 Added better gamma stufff.
74003 ----------------------------
74004 revision 1.9
74005 date: 1994/11/07 13:38:03;  author: john;  state: Exp;
74006 Added gamma correction stuff.
74007 ----------------------------
74008 revision 1.8
74009 date: 1994/11/05 13:05:59;  author: john;  state: Exp;
74010 Added back in code to allow keys during fade.
74011 ----------------------------
74012 revision 1.7
74013 date: 1994/11/05 12:46:37;  author: john;  state: Exp;
74014 Changed palette stuff a bit.
74015 ----------------------------
74016 revision 1.6
74017 date: 1994/09/22 16:08:37;  author: john;  state: Exp;
74018 Fixed some palette stuff.
74019 ----------------------------
74020 revision 1.5
74021 date: 1994/08/09 11:27:04;  author: john;  state: Exp;
74022 Add cthru stuff.
74023 ----------------------------
74024 revision 1.4
74025 date: 1994/06/09 10:39:33;  author: john;  state: Exp;
74026 In fade out.in functions, returned 1 if key was pressed...
74027 ----------------------------
74028 revision 1.3
74029 date: 1994/05/31 19:04:24;  author: john;  state: Exp;
74030 Added key to stop fade if desired.
74031 ----------------------------
74032 revision 1.2
74033 date: 1994/05/06 12:50:42;  author: john;  state: Exp;
74034 Added supertransparency; neatend things up; took out warnings.
74035 ----------------------------
74036 revision 1.1
74037 date: 1994/05/04 14:59:57;  author: john;  state: Exp;
74038 Initial revision
74039 =============================================================================
74040 RCS file: f:/miner/source/2d/pcx.c,v
74041 Working file: 2d/pcx.c
74042 head: 1.6
74043 branch:
74044 description: Routines to read/write pcx images.
74045 ----------------------------
74046 revision 1.6
74047 date: 1995/03/01 15:38:12;  author: john;  state: Exp;
74048 Better ModeX support.
74049 ----------------------------
74050 revision 1.5
74051 date: 1995/01/21 17:54:17;  author: john;  state: Exp;
74052 Added pcx reader for modes other than modex.
74053 ----------------------------
74054 revision 1.4
74055 date: 1994/12/08 19:03:56;  author: john;  state: Exp;
74056 Made functions use cfile.
74057 ----------------------------
74058 revision 1.3
74059 date: 1994/11/29 02:53:24;  author: john;  state: Exp;
74060 Added error messages; made call be more similiar to iff.
74061 ----------------------------
74062 revision 1.2
74063 date: 1994/11/28 20:03:50;  author: john;  state: Exp;
74064 Added PCX functions.
74065 ----------------------------
74066 revision 1.1
74067 date: 1994/11/28 19:57:56;  author: john;  state: Exp;
74068 Initial revision
74069 =============================================================================
74070 RCS file: f:/miner/source/2d/pcx.h,v
74071 Working file: 2d/pcx.h
74072 head: 1.4
74073 branch:
74074 description: Routines to read/write pcx images.
74075 ----------------------------
74076 revision 1.4
74077 date: 1995/01/21 17:07:34;  author: john;  state: Exp;
74078 Added out of memory error.
74079 ----------------------------
74080 revision 1.3
74081 date: 1994/11/29 02:53:10;  author: john;  state: Exp;
74082 Added error messages; made call be more similiar to iff.
74083 ----------------------------
74084 revision 1.2
74085 date: 1994/11/28 20:03:48;  author: john;  state: Exp;
74086 Added PCX functions.
74087 ----------------------------
74088 revision 1.1
74089 date: 1994/11/28 19:57:45;  author: john;  state: Exp;
74090 Initial revision
74091 =============================================================================
74092 RCS file: f:/miner/source/2d/phhandlr.h,v
74093 Working file: 2d/phhandlr.h
74094 head: 1.1
74095 branch:
74096 description: .
74097 ----------------------------
74098 revision 1.1
74099 date: 1994/07/21 13:57:18;  author: john;  state: Exp;
74100 Initial revision
74101 =============================================================================
74102 RCS file: f:/miner/source/2d/pixel.c,v
74103 Working file: 2d/pixel.c
74104 head: 1.5
74105 branch:
74106 description: Graphical routines for setting a pixel.
74107 ----------------------------
74108 revision 1.5
74109 date: 1994/11/18 22:50:26;  author: john;  state: Exp;
74110 Changed shorts to ints in parameters.
74111 ----------------------------
74112 revision 1.4
74113 date: 1993/10/15 16:22:26;  author: john;  state: Exp;
74114 *** empty log message ***
74115 ----------------------------
74116 revision 1.3
74117 date: 1993/09/29 17:31:27;  author: john;  state: Exp;
74118 optimized vesa pixel stuff
74119 ----------------------------
74120 revision 1.2
74121 date: 1993/09/29 16:15:15;  author: john;  state: Exp;
74122 optimized
74123 ----------------------------
74124 revision 1.1
74125 date: 1993/09/08 11:44:09;  author: john;  state: Exp;
74126 Initial revision
74127 =============================================================================
74128 RCS file: f:/miner/source/2d/poly.c,v
74129 Working file: 2d/poly.c
74130 head: 1.5
74131 branch:
74132 description: Graphical routines for drawing polygons.
74133 ----------------------------
74134 revision 1.5
74135 date: 1994/11/13 13:03:43;  author: john;  state: Exp;
74136 Added paged out bit in bitmap structure.  Commented out the
74137 poly code that is never used.
74138 ----------------------------
74139 revision 1.4
74140 date: 1994/03/14 16:56:13;  author: john;  state: Exp;
74141 Changed grs_bitmap structure to include bm_flags.
74142 ----------------------------
74143 revision 1.3
74144 date: 1993/10/15 16:23:14;  author: john;  state: Exp;
74145 y
74146 ----------------------------
74147 revision 1.2
74148 date: 1993/10/08 14:30:39;  author: john;  state: Exp;
74149 *** empty log message ***
74150 ----------------------------
74151 revision 1.1
74152 date: 1993/09/08 11:44:13;  author: john;  state: Exp;
74153 Initial revision
74154 =============================================================================
74155 RCS file: f:/miner/source/2d/rect.c,v
74156 Working file: 2d/rect.c
74157 head: 1.3
74158 branch:
74159 description: Graphical routines for drawing rectangles.
74160 ----------------------------
74161 revision 1.3
74162 date: 1994/11/18 22:50:19;  author: john;  state: Exp;
74163 Changed shorts to ints in parameters.
74164 ----------------------------
74165 revision 1.2
74166 date: 1993/10/15 16:23:27;  author: john;  state: Exp;
74167 y
74168 ----------------------------
74169 revision 1.1
74170 date: 1993/09/08 11:44:22;  author: john;  state: Exp;
74171 Initial revision
74172 =============================================================================
74173 RCS file: f:/miner/source/2d/rle.c,v
74174 Working file: 2d/rle.c
74175 head: 1.19
74176 branch:
74177 description: Routines to do run length encoding/decoding
74178 on bitmaps.
74179 ----------------------------
74180 revision 1.19
74181 date: 1995/01/14 19:18:31;  author: john;  state: Exp;
74182 Added assert to check for paged out bitmap.
74183 ----------------------------
74184 revision 1.18
74185 date: 1995/01/14 11:32:07;  author: john;  state: Exp;
74186 Added rle_cache_flush function.
74187 ----------------------------
74188 revision 1.17
74189 date: 1994/12/13 10:58:27;  author: john;  state: Exp;
74190 Fixed bug with 2 consecutive calls to get_expanded_Texture
74191 with 2 different bitmaps, returning the same rle texture, 
74192 causing doors to disapper.
74193 ----------------------------
74194 revision 1.16
74195 date: 1994/11/30 00:55:03;  author: mike;  state: Exp;
74196 optimization
74197 ----------------------------
74198 revision 1.15
74199 date: 1994/11/24 13:24:44;  author: john;  state: Exp;
74200 Made sure that some rep movs had the cld set first.
74201 Took some unused functions out.
74202 ----------------------------
74203 revision 1.14
74204 date: 1994/11/23 16:03:46;  author: john;  state: Exp;
74205 Fixed generic rle'ing to use new bit method.
74206 ----------------------------
74207 revision 1.13
74208 date: 1994/11/23 15:45:51;  author: john;  state: Exp;
74209 Changed to a 3 bit rle scheme.
74210 ----------------------------
74211 revision 1.12
74212 date: 1994/11/18 22:50:24;  author: john;  state: Exp;
74213 Changed shorts to ints in parameters.
74214 ----------------------------
74215 revision 1.11
74216 date: 1994/11/14 17:06:13;  author: john;  state: Exp;
74217 Took out Key_f12.
74218 ----------------------------
74219 revision 1.10
74220 date: 1994/11/14 15:54:09;  author: john;  state: Exp;
74221 Put code in for maybe checking bogus rle data.
74222 ----------------------------
74223 revision 1.9
74224 date: 1994/11/14 15:51:58;  author: john;  state: Exp;
74225 Added rle_disable_caching variable to prove the stability of my rle caching code
74226 to any non-believers.
74227 ----------------------------
74228 revision 1.8
74229 date: 1994/11/10 10:31:20;  author: john;  state: Exp;
74230 Reduce cache buffers to 16.
74231 ----------------------------
74232 revision 1.7
74233 date: 1994/11/09 19:53:43;  author: john;  state: Exp;
74234 Added texture rle caching.
74235 ----------------------------
74236 revision 1.6
74237 date: 1994/11/09 17:41:44;  author: john;  state: Exp;
74238 Made a slow version of rle bitblt to svga, modex.
74239 ----------------------------
74240 revision 1.5
74241 date: 1994/11/09 17:07:50;  author: john;  state: Exp;
74242 Fixed bug with bitmap that gets bigger with rle.
74243 ----------------------------
74244 revision 1.4
74245 date: 1994/11/09 16:35:17;  author: john;  state: Exp;
74246 First version with working RLE bitmaps.
74247 ----------------------------
74248 revision 1.3
74249 date: 1994/10/26 12:54:47;  author: john;  state: Exp;
74250 Fixed bug with decode that used rep movsd instead of 
74251 rep stosd.
74252 ----------------------------
74253 revision 1.2
74254 date: 1994/10/06 17:05:25;  author: john;  state: Exp;
74255 First version of rle stuff.
74256 ----------------------------
74257 revision 1.1
74258 date: 1994/10/06 16:53:34;  author: john;  state: Exp;
74259 Initial revision
74260 =============================================================================
74261 RCS file: f:/miner/source/2d/rle.h,v
74262 Working file: 2d/rle.h
74263 head: 1.5
74264 branch:
74265 description: Protypes for rle functions.
74266 ----------------------------
74267 revision 1.5
74268 date: 1995/01/14 11:32:20;  author: john;  state: Exp;
74269 Added rle_cache_flush function.
74270 ----------------------------
74271 revision 1.4
74272 date: 1994/11/10 13:16:01;  author: matt;  state: Exp;
74273 Added includes
74274 ----------------------------
74275 revision 1.3
74276 date: 1994/11/09 19:53:51;  author: john;  state: Exp;
74277 Added texture rle caching.
74278 ----------------------------
74279 revision 1.2
74280 date: 1994/11/09 16:35:18;  author: john;  state: Exp;
74281 First version with working RLE bitmaps.
74282 ----------------------------
74283 revision 1.1
74284 date: 1994/11/09 12:40:17;  author: john;  state: Exp;
74285 Initial revision
74286 =============================================================================
74287 RCS file: f:/miner/source/2d/roller.c,v
74288 Working file: 2d/roller.c
74289 head: 1.15
74290 branch:
74291 description: bitmap scaler, roller
74292 ----------------------------
74293 revision 1.15
74294 date: 1994/10/26 23:55:54;  author: john;  state: Exp;
74295 Took out roller; Took out inverse table.
74296 ----------------------------
74297 revision 1.14
74298 date: 1994/05/06 12:49:48;  author: john;  state: Exp;
74299 Added supertransparency; neatend things up; took out warnings.
74300 ----------------------------
74301 revision 1.13
74302 date: 1994/02/04 13:21:38;  author: matt;  state: Exp;
74303 Took out test code
74304 ----------------------------
74305 revision 1.12
74306 date: 1994/02/01 17:25:31;  author: john;  state: Exp;
74307 Made transparency color be 255 all the time.
74308 ----------------------------
74309 revision 1.11
74310 date: 1993/12/08 16:40:47;  author: mike;  state: Exp;
74311 Prevent blowup bug when xright < xleft.
74312 ----------------------------
74313 revision 1.10
74314 date: 1993/12/07 12:32:19;  author: john;  state: Exp;
74315 moved bmd_palette to gr_palette
74316 ----------------------------
74317 revision 1.9
74318 date: 1993/12/03 18:41:10;  author: unknown;  state: Exp;
74319 Put in check for trying to render_scanline wider than compiled code.
74320 ----------------------------
74321 revision 1.8
74322 date: 1993/12/03 15:13:49;  author: mike;  state: Exp;
74323 Fix transparency problem by moving setting of Transparency_color.
74324 ----------------------------
74325 revision 1.7
74326 date: 1993/12/03 12:05:13;  author: mike;  state: Exp;
74327 Make compiled code bitmaps clip.
74328 ----------------------------
74329 revision 1.6
74330 date: 1993/12/02 18:40:38;  author: mike;  state: Exp;
74331 Suppress "Too many compiled code pointers" Error.
74332 ----------------------------
74333 revision 1.5
74334 date: 1993/11/28 12:07:35;  author: mike;  state: Exp;
74335 Fix bugs in compiled code roller
74336 ----------------------------
74337 revision 1.4
74338 date: 1993/11/23 13:03:17;  author: mike;  state: Exp;
74339 Add compiled code roller.
74340 ----------------------------
74341 revision 1.3
74342 date: 1993/11/18 14:22:44;  author: mike;  state: Exp;
74343 fix bugs
74344 ----------------------------
74345 revision 1.2
74346 date: 1993/11/17 19:01:10;  author: mike;  state: Exp;
74347 Add roller.
74348 ----------------------------
74349 revision 1.1
74350 date: 1993/11/16 09:36:51;  author: mike;  state: Exp;
74351 Initial revision
74352 =============================================================================
74353 RCS file: f:/miner/source/2d/scale.c,v
74354 Working file: 2d/scale.c
74355 head: 1.12
74356 branch:
74357 description: Routines for scaling a bitmap.
74358 ----------------------------
74359 revision 1.12
74360 date: 1995/03/14 15:14:11;  author: john;  state: Exp;
74361 Increased max scanline length to 640.
74362 ..
74363 ----------------------------
74364 revision 1.11
74365 date: 1994/11/27 12:56:39;  author: matt;  state: Exp;
74366 Took out unneeded include of 3d.h
74367 ----------------------------
74368 revision 1.10
74369 date: 1994/11/18 22:50:25;  author: john;  state: Exp;
74370 Changed shorts to ints in parameters.
74371 ----------------------------
74372 revision 1.9
74373 date: 1994/11/09 16:35:02;  author: john;  state: Exp;
74374 First version with working RLE bitmaps.
74375 ----------------------------
74376 revision 1.8
74377 date: 1994/06/09 13:15:17;  author: john;  state: Exp;
74378 *** empty log message ***
74379 ----------------------------
74380 revision 1.7
74381 date: 1994/06/07 11:47:02;  author: john;  state: Exp;
74382 Added back in the fast code for scaling up bitmaps.
74383 ----------------------------
74384 revision 1.6
74385 date: 1994/02/18 15:32:36;  author: john;  state: Exp;
74386 *** empty log message ***
74387 ----------------------------
74388 revision 1.5
74389 date: 1994/01/22 14:35:01;  author: john;  state: Exp;
74390 Added transparency as color index 255.
74391 ----------------------------
74392 revision 1.4
74393 date: 1994/01/17 16:59:12;  author: john;  state: Exp;
74394 once again...
74395 ----------------------------
74396 revision 1.3
74397 date: 1994/01/17 16:51:17;  author: john;  state: Exp;
74398 Added check so we don't draw outsibe
74399 the source bitmap's v coordinate... kind
74400 of a hack, but works.
74401 ----------------------------
74402 revision 1.2
74403 date: 1994/01/12 18:03:26;  author: john;  state: Exp;
74404 The first iteration of fast scaler..
74405 ----------------------------
74406 revision 1.1
74407 date: 1994/01/11 14:48:42;  author: john;  state: Exp;
74408 Initial revision
74409 =============================================================================
74410 RCS file: f:/miner/source/2d/scanline.c,v
74411 Working file: 2d/scanline.c
74412 head: 1.7
74413 branch:
74414 description: Graphical routines for drawing solid scanlines.
74415 ----------------------------
74416 revision 1.7
74417 date: 1994/11/18 22:50:48;  author: john;  state: Exp;
74418 Changed a bunch of shorts to ints in calls.
74419 ----------------------------
74420 revision 1.6
74421 date: 1994/09/02 11:40:32;  author: john;  state: Exp;
74422 fixed bug with urect scanline drakening still
74423 only using 16 levels of fade.
74424 ----------------------------
74425 revision 1.5
74426 date: 1994/04/08 16:59:12;  author: john;  state: Exp;
74427 Add fading poly's; Made palette fade 32 instead of 16.
74428 ----------------------------
74429 revision 1.4
74430 date: 1994/03/22 18:36:27;  author: john;  state: Exp;
74431 Added darkening scanlines
74432 ----------------------------
74433 revision 1.3
74434 date: 1993/10/15 16:22:52;  author: john;  state: Exp;
74435 y
74436 ----------------------------
74437 revision 1.2
74438 date: 1993/09/08 11:56:29;  author: john;  state: Exp;
74439 neatened
74440 ----------------------------
74441 revision 1.1
74442 date: 1993/09/08 11:44:27;  author: john;  state: Exp;
74443 Initial revision
74444 =============================================================================
74445 RCS file: f:/miner/source/2d/testg.c,v
74446 Working file: 2d/testg.c
74447 head: 1.19
74448 branch:
74449 description: Program to test the graphics package.
74450 =============================================================================
74451 RCS file: f:/miner/source/2d/tmapbits.c,v
74452 Working file: 2d/tmapbits.c
74453 head: 1.2
74454 branch:
74455 description: A sample bitmap to test functions with.
74456 ----------------------------
74457 revision 1.2
74458 date: 1993/10/15 16:23:38;  author: john;  state: Exp;
74459 y
74460 ----------------------------
74461 revision 1.1
74462 date: 1993/09/08 11:44:36;  author: john;  state: Exp;
74463 Initial revision
74464 =============================================================================
74465 RCS file: f:/miner/source/2d/tpoly.c,v
74466 Working file: 2d/tpoly.c
74467 head: 1.2
74468 branch:
74469 description: Same as polygon, but darkens...
74470 ----------------------------
74471 revision 1.2
74472 date: 1994/04/08 16:59:42;  author: john;  state: Exp;
74473 Add fading poly's; Made palette fade 32 instead of 16.
74474 ----------------------------
74475 revision 1.1
74476 date: 1994/03/22 17:55:16;  author: john;  state: Exp;
74477 Initial revision
74478 =============================================================================
74479 RCS file: f:/miner/source/2d/vesalib.c,v
74480 Working file: 2d/vesalib.c
74481 head: 1.3
74482 branch:
74483 description: Routines to access VESA video modes.
74484 ----------------------------
74485 revision 1.3
74486 date: 1994/11/07 12:07:42;  author: john;  state: Exp;
74487 Made save/restore cursor work a bit better.
74488 ----------------------------
74489 revision 1.2
74490 date: 1994/09/29 10:09:26;  author: john;  state: Exp;
74491 Initial version, but not used.
74492 ----------------------------
74493 revision 1.1
74494 date: 1994/09/19 11:54:45;  author: john;  state: Exp;
74495 Initial revision
74496 =============================================================================
74497 RCS file: f:/miner/source/2d/vesalib.h,v
74498 Working file: 2d/vesalib.h
74499 head: 1.2
74500 branch:
74501 description: Prototypes for routines to access VESA video modes.
74502 ----------------------------
74503 revision 1.2
74504 date: 1994/09/29 10:09:38;  author: john;  state: Exp;
74505 Initial version, but not used.
74506 ----------------------------
74507 revision 1.1
74508 date: 1994/09/19 11:55:05;  author: john;  state: Exp;
74509 Initial revision
74510 =============================================================================
74511 RCS file: f:/miner/source/2d/vesatest.c,v
74512 Working file: 2d/vesatest.c
74513 head: 1.3
74514 branch:
74515 description: .
74516 ----------------------------
74517 revision 1.3
74518 date: 1993/12/21 11:40:47;  author: john;  state: Exp;
74519 *** empty log message ***
74520 ----------------------------
74521 revision 1.2
74522 date: 1993/12/09 17:14:14;  author: john;  state: Exp;
74523 VESA test program.
74524 ----------------------------
74525 revision 1.1
74526 date: 1993/12/09 16:53:01;  author: john;  state: Exp;
74527 Initial revision
74528 =============================================================================
74529 RCS file: f:/miner/source/2d/scale.c,v
74530 Working file: 2d/scale.c
74531 head: 1.12
74532 branch:
74533 description: Routines for scaling a bitmap.
74534 ----------------------------
74535 revision 1.12
74536 date: 1995/03/14 15:14:11;  author: john;  state: Exp;
74537 Increased max scanline length to 640.
74538 ..
74539 ----------------------------
74540 revision 1.11
74541 date: 1994/11/27 12:56:39;  author: matt;  state: Exp;
74542 Took out unneeded include of 3d.h
74543 ----------------------------
74544 revision 1.10
74545 date: 1994/11/18 22:50:25;  author: john;  state: Exp;
74546 Changed shorts to ints in parameters.
74547 ----------------------------
74548 revision 1.9
74549 date: 1994/11/09 16:35:02;  author: john;  state: Exp;
74550 First version with working RLE bitmaps.
74551 ----------------------------
74552 revision 1.8
74553 date: 1994/06/09 13:15:17;  author: john;  state: Exp;
74554 *** empty log message ***
74555 ----------------------------
74556 revision 1.7
74557 date: 1994/06/07 11:47:02;  author: john;  state: Exp;
74558 Added back in the fast code for scaling up bitmaps.
74559 ----------------------------
74560 revision 1.6
74561 date: 1994/02/18 15:32:36;  author: john;  state: Exp;
74562 *** empty log message ***
74563 ----------------------------
74564 revision 1.5
74565 date: 1994/01/22 14:35:01;  author: john;  state: Exp;
74566 Added transparency as color index 255.
74567 ----------------------------
74568 revision 1.4
74569 date: 1994/01/17 16:59:12;  author: john;  state: Exp;
74570 once again...
74571 ----------------------------
74572 revision 1.3
74573 date: 1994/01/17 16:51:17;  author: john;  state: Exp;
74574 Added check so we don't draw outsibe
74575 the source bitmap's v coordinate... kind
74576 of a hack, but works.
74577 ----------------------------
74578 revision 1.2
74579 date: 1994/01/12 18:03:26;  author: john;  state: Exp;
74580 The first iteration of fast scaler..
74581 ----------------------------
74582 revision 1.1
74583 date: 1994/01/11 14:48:42;  author: john;  state: Exp;
74584 Initial revision
74585 =============================================================================
74586 RCS file: f:/miner/source/vecmat/vecmat.h,v
74587 Working file: vecmat/vecmat.h
74588 head: 1.37
74589 branch:
74590 description: Header file for vector/matrix library
74591 ----------------------------
74592 revision 1.37
74593 date: 1995/02/22 13:23:22;  author: john;  state: Exp;
74594 Added the vms_vector_array structure, to access a vms_vector
74595 with an array.
74596 ----------------------------
74597 revision 1.36
74598 date: 1995/02/22 12:34:33;  author: john;  state: Exp;
74599 Took out anonymous unions.
74600 ----------------------------
74601 revision 1.35
74602 date: 1994/12/13 14:44:20;  author: matt;  state: Exp;
74603 Added vm_vector_2_matrix_norm()
74604 ----------------------------
74605 revision 1.34
74606 date: 1994/09/11 19:22:55;  author: matt;  state: Exp;
74607 Added vm_vec_normalized_dir_quick()
74608 ----------------------------
74609 revision 1.33
74610 date: 1994/08/04 19:45:38;  author: matt;  state: Exp;
74611 Added option to make a bunch of functions (add, sub, dotprod) inline
74612 ----------------------------
74613 revision 1.32
74614 date: 1994/07/19 18:52:36;  author: matt;  state: Exp;
74615 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
74616 ----------------------------
74617 revision 1.31
74618 date: 1994/06/16 18:24:30;  author: matt;  state: Exp;
74619 Added vm_vec_mag_quick()
74620 ----------------------------
74621 revision 1.30
74622 date: 1994/06/10 23:19:00;  author: matt;  state: Exp;
74623 New register usage for vm_vec_ang_2_matrix()
74624 ----------------------------
74625 revision 1.29
74626 date: 1994/06/01 17:32:06;  author: matt;  state: Exp;
74627 Fixed modify list for vm_vec_normalized_dir()
74628 ----------------------------
74629 revision 1.28
74630 date: 1994/05/19 12:07:20;  author: matt;  state: Exp;
74631 Fixed globals and macros and added a constant
74632 ----------------------------
74633 revision 1.27
74634 date: 1994/05/19 09:19:15;  author: matt;  state: Exp;
74635 Made vm_vec_normalized_dir() return mag of vector
74636 ----------------------------
74637 revision 1.26
74638 date: 1994/05/18 22:28:57;  author: matt;  state: Exp;
74639 Added function vm_vec_normalized_dir()
74640 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
74641 Added C global static vars vmd_zero_vector & vmd_identity_matrix
74642 ----------------------------
74643 revision 1.25
74644 date: 1994/05/18 21:45:06;  author: matt;  state: Exp;
74645 Added functions:
74646   vm_extract_angles_vector()
74647   vm_extract_angles_vector_normalized()
74648   vm_vec_copy_normalize()
74649 ----------------------------
74650 revision 1.24
74651 date: 1994/05/13 12:42:16;  author: matt;  state: Exp;
74652 Added new function, vm_vec_dist_quick(), which does an approximation.
74653 ----------------------------
74654 revision 1.23
74655 date: 1994/03/30 13:37:34;  author: matt;  state: Exp;
74656 Added prototype for vm_vec_scale_add(), and fixed typos
74657 ----------------------------
74658 revision 1.22
74659 date: 1994/03/30 13:29:42;  author: matt;  state: Exp;
74660 Header for vm_vec_scale_add2()
74661 ----------------------------
74662 revision 1.21
74663 date: 1994/01/31 19:45:13;  author: matt;  state: Exp;
74664 Added function vm_extract_angles_matrix()
74665 ----------------------------
74666 revision 1.20
74667 date: 1993/12/21 19:46:14;  author: matt;  state: Exp;
74668 Added function vm_dist_to_plane()
74669 ----------------------------
74670 revision 1.19
74671 date: 1993/12/13 17:26:41;  author: matt;  state: Exp;
74672 Added vm_vec_dist()
74673 ----------------------------
74674 revision 1.18
74675 date: 1993/12/02 12:45:11;  author: matt;  state: Exp;
74676 New functions: vm_vec_copy_scale(), vm_vec_scale2()
74677 Aliases: vm_transpose(), vm_vec_dot(), vm_vec_cross(), vm_copy_transpose()
74678 ----------------------------
74679 revision 1.17
74680 date: 1993/10/29 22:38:36;  author: matt;  state: Exp;
74681 Changed matrix order, making direction vectors the rows
74682 ----------------------------
74683 revision 1.16
74684 date: 1993/10/25 11:49:57;  author: matt;  state: Exp;
74685 Made vm_vec_delta_ang() take optional forward vector to return signed delta
74686 ----------------------------
74687 revision 1.15
74688 date: 1993/10/20 01:10:05;  author: matt;  state: Exp;
74689 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
74690 ----------------------------
74691 revision 1.14
74692 date: 1993/10/17 17:02:52;  author: matt;  state: Exp;
74693 vm_vector_2_matrix() now takes optional right vector
74694 ----------------------------
74695 revision 1.13
74696 date: 1993/10/12 19:31:39;  author: matt;  state: Exp;
74697 Added IDENTITY_MATRIX constant
74698 ----------------------------
74699 revision 1.12
74700 date: 1993/10/08 18:10:16;  author: matt;  state: Exp;
74701 Changed vm_vec_make() and vm_angvec_make() to be inline assembly 
74702 functions, to get rid of compiler warnings.  Did not change vm_mat_make(),
74703 which could still get warnings if the return value is unused.
74704 ----------------------------
74705 revision 1.11
74706 date: 1993/09/29 12:10:07;  author: matt;  state: Exp;
74707 Changed modified regs in pragmas to include return register
74708 ----------------------------
74709 revision 1.10
74710 date: 1993/09/28 12:15:41;  author: matt;  state: Exp;
74711 Added func vm_vector_2_matrix()
74712 ----------------------------
74713 revision 1.9
74714 date: 1993/09/24 21:18:38;  author: matt;  state: Exp;
74715 Added vm_vec_avg(), vm_vec_avg4(), and vm_angvec_make().
74716 Documented which functions could have dest==source
74717 ----------------------------
74718 revision 1.8
74719 date: 1993/09/20 14:56:11;  author: matt;  state: Exp;
74720 Added new function, vm_vec_perp()
74721 ----------------------------
74722 revision 1.7
74723 date: 1993/09/20 14:27:42;  author: mike;  state: Exp;
74724 unfix last fix which introduced a bug
74725 ----------------------------
74726 revision 1.6
74727 date: 1993/09/20 10:11:53;  author: mike;  state: Exp;
74728 no changes
74729 ----------------------------
74730 revision 1.5
74731 date: 1993/09/20 09:58:58;  author: mike;  state: Exp;
74732 Re-fix vm_vec_make
74733 ----------------------------
74734 revision 1.4
74735 date: 1993/09/20 09:41:21;  author: mike;  state: Exp;
74736 Correct vm_vec_make and vm_mat_make macros to return the destination
74737 as the value of the macro.
74738 ----------------------------
74739 revision 1.3
74740 date: 1993/09/17 11:23:47;  author: matt;  state: Exp;
74741 Added row access (via xrow,yrow,zrow) to vms_matrix
74742 Added macro vm_mat_make(), like vm_vec_make()
74743 ----------------------------
74744 revision 1.2
74745 date: 1993/09/17 11:10:32;  author: matt;  state: Exp;
74746 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
74747 ----------------------------
74748 revision 1.1
74749 date: 1993/09/16 20:10:01;  author: matt;  state: Exp;
74750 Initial revision
74751 =============================================================================
74752 RCS file: h:/miner/source/xcolor/xcolor.c,v
74753 head: 1.1
74754 branch:
74755 description: .
74756 ----------------------------
74757 revision 1.1
74758 date: 1994/01/24 11:09:24;  author: john;  state: Exp;
74759 Initial revision
74760 =============================================================================
74761 RCS file: f:/miner/source/cfile/cfile.h,v
74762 Working file: cfile/cfile.h
74763 head: 1.10
74764 branch:
74765 description: Prototypes for compressed file functions...
74766 ----------------------------
74767 revision 1.10
74768 date: 1995/03/13 15:16:47;  author: john;  state: Exp;
74769 Added alternate directory stuff.
74770 ----------------------------
74771 revision 1.9
74772 date: 1995/02/01 20:56:40;  author: john;  state: Exp;
74773 Added cfexist function
74774 ----------------------------
74775 revision 1.8
74776 date: 1995/01/21 17:53:41;  author: john;  state: Exp;
74777 Added alternate pig file thing.
74778 ----------------------------
74779 revision 1.7
74780 date: 1994/12/12 13:19:47;  author: john;  state: Exp;
74781 Made cfile work with fiellentth.
74782 ----------------------------
74783 revision 1.6
74784 date: 1994/12/08 19:02:52;  author: john;  state: Exp;
74785 Added cfgets.
74786 ----------------------------
74787 revision 1.5
74788 date: 1994/12/07 21:34:07;  author: john;  state: Exp;
74789 Stripped out compression stuff...
74790 ----------------------------
74791 revision 1.4
74792 date: 1994/07/13 00:16:53;  author: matt;  state: Exp;
74793 Added include
74794 ----------------------------
74795 revision 1.3
74796 date: 1994/02/17 17:36:19;  author: john;  state: Exp;
74797 Added CF_READ_MODE and CF_WRITE_MODE constants.
74798 ----------------------------
74799 revision 1.2
74800 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
74801 Crappy inbetween version
74802 ----------------------------
74803 revision 1.1
74804 date: 1994/02/15 10:54:23;  author: john;  state: Exp;
74805 Initial revision
74806 ----------------------------
74807 revision 1.1
74808 date: 1994/02/10 15:50:54;  author: john;  state: Exp;
74809 Initial revision
74810 =============================================================================
74811 RCS file: f:/miner/source/cfile/cfile.c,v
74812 Working file: cfile/cfile.c
74813 head: 1.7
74814 branch:
74815 description: Functions for accessing compressed files.
74816 ----------------------------
74817 revision 1.7
74818 date: 1994/04/13 23:44:59;  author: matt;  state: Exp;
74819 When file cannot be opened, free up the buffer for that file.
74820 ----------------------------
74821 revision 1.6
74822 date: 1994/02/18 12:38:20;  author: john;  state: Exp;
74823 Optimized a bit
74824 ----------------------------
74825 revision 1.5
74826 date: 1994/02/15 18:13:20;  author: john;  state: Exp;
74827 Fixed more bugs.
74828 ----------------------------
74829 revision 1.4
74830 date: 1994/02/15 13:27:58;  author: john;  state: Exp;
74831 Works ok...
74832 ----------------------------
74833 revision 1.3
74834 date: 1994/02/15 12:51:57;  author: john;  state: Exp;
74835 Crappy inbetween version
74836 ----------------------------
74837 revision 1.2
74838 date: 1994/02/14 20:12:29;  author: john;  state: Exp;
74839 First version working with new cfile stuff.
74840 ----------------------------
74841 revision 1.1
74842 date: 1994/02/14 15:51:33;  author: john;  state: Exp;
74843 Initial revision
74844 ----------------------------
74845 revision 1.1
74846 date: 1994/02/10 15:45:12;  author: john;  state: Exp;
74847 Initial revision
74848 =============================================================================
74849 RCS file: h:/miner/source/compress/test.c,v
74850 head: 1.1
74851 branch:
74852 description: Test program...
74853 ----------------------------
74854 revision 1.1
74855 date: 1994/02/10 15:54:38;  author: john;  state: Exp;
74856 Initial revision
74857 =============================================================================
74858 RCS file: f:/miner/source/cfile/cfile.c,v
74859 Working file: cfile/cfile.c
74860 head: 1.24
74861 branch:
74862 description: Functions for accessing compressed files.
74863 ----------------------------
74864 revision 1.24
74865 date: 1995/03/15 14:20:27;  author: john;  state: Exp;
74866 Added critical error checker.
74867 ----------------------------
74868 revision 1.23
74869 date: 1995/03/13 15:16:53;  author: john;  state: Exp;
74870 Added alternate directory stuff.
74871 ----------------------------
74872 revision 1.22
74873 date: 1995/02/09 23:08:47;  author: matt;  state: Exp;
74874 Increased the max number of files in hogfile to 250
74875 ----------------------------
74876 revision 1.21
74877 date: 1995/02/01 20:56:47;  author: john;  state: Exp;
74878 Added cfexist function
74879 ----------------------------
74880 revision 1.20
74881 date: 1995/01/21 17:53:48;  author: john;  state: Exp;
74882 Added alternate pig file thing.
74883 ----------------------------
74884 revision 1.19
74885 date: 1994/12/29 15:10:02;  author: john;  state: Exp;
74886 Increased hogfile max files to 200.
74887 ----------------------------
74888 revision 1.18
74889 date: 1994/12/12 13:20:57;  author: john;  state: Exp;
74890 Made cfile work with fiellentth.
74891 ----------------------------
74892 revision 1.17
74893 date: 1994/12/12 13:14:25;  author: john;  state: Exp;
74894 Made cfiles prefer non-hog files.
74895 ----------------------------
74896 revision 1.16
74897 date: 1994/12/09 18:53:26;  author: john;  state: Exp;
74898 *** empty log message ***
74899 ----------------------------
74900 revision 1.15
74901 date: 1994/12/09 18:52:56;  author: john;  state: Exp;
74902 Took out mem, error checking.
74903 ----------------------------
74904 revision 1.14
74905 date: 1994/12/09 18:10:31;  author: john;  state: Exp;
74906 Speed up cfgets, which was slowing down the reading of
74907 bitmaps.tbl, which was making POF loading look slow.
74908 ----------------------------
74909 revision 1.13
74910 date: 1994/12/09 17:53:51;  author: john;  state: Exp;
74911 Added error checking to number of hogfiles..
74912 ----------------------------
74913 revision 1.12
74914 date: 1994/12/08 19:02:55;  author: john;  state: Exp;
74915 Added cfgets.
74916 ----------------------------
74917 revision 1.11
74918 date: 1994/12/07 21:57:48;  author: john;  state: Exp;
74919 Took out data dir.
74920 ----------------------------
74921 revision 1.10
74922 date: 1994/12/07 21:38:02;  author: john;  state: Exp;
74923 Made cfile not return error..
74924 ----------------------------
74925 revision 1.9
74926 date: 1994/12/07 21:35:34;  author: john;  state: Exp;
74927 Made it read from data directory.
74928 ----------------------------
74929 revision 1.8
74930 date: 1994/12/07 21:33:55;  author: john;  state: Exp;
74931 Stripped out compression stuff...
74932 ----------------------------
74933 revision 1.7
74934 date: 1994/04/13 23:44:59;  author: matt;  state: Exp;
74935 When file cannot be opened, free up the buffer for that file.
74936 ----------------------------
74937 revision 1.6
74938 date: 1994/02/18 12:38:20;  author: john;  state: Exp;
74939 Optimized a bit
74940 ----------------------------
74941 revision 1.5
74942 date: 1994/02/15 18:13:20;  author: john;  state: Exp;
74943 Fixed more bugs.
74944 ----------------------------
74945 revision 1.4
74946 date: 1994/02/15 13:27:58;  author: john;  state: Exp;
74947 Works ok...
74948 ----------------------------
74949 revision 1.3
74950 date: 1994/02/15 12:51:57;  author: john;  state: Exp;
74951 Crappy inbetween version
74952 ----------------------------
74953 revision 1.2
74954 date: 1994/02/14 20:12:29;  author: john;  state: Exp;
74955 First version working with new cfile stuff.
74956 ----------------------------
74957 revision 1.1
74958 date: 1994/02/14 15:51:33;  author: john;  state: Exp;
74959 Initial revision
74960 ----------------------------
74961 revision 1.1
74962 date: 1994/02/10 15:45:12;  author: john;  state: Exp;
74963 Initial revision
74964 =============================================================================
74965 RCS file: f:/miner/source/cfile/nocfile.h,v
74966 Working file: cfile/nocfile.h
74967 head: 1.4
74968 branch:
74969 description: Prototypes to *NOT* use cfile, but use cfile calling parameters.
74970 For debugging.
74971 ----------------------------
74972 revision 1.4
74973 date: 1994/12/09 17:53:52;  author: john;  state: Exp;
74974 Added error checking to number of hogfiles..
74975 ----------------------------
74976 revision 1.3
74977 date: 1994/02/17 17:36:34;  author: john;  state: Exp;
74978 Added CF_READ_MODE and CF_WRITE_MODE constants.
74979 ----------------------------
74980 revision 1.2
74981 date: 1994/02/15 12:52:08;  author: john;  state: Exp;
74982 Crappy inbetween version
74983 ----------------------------
74984 revision 1.1
74985 date: 1994/02/15 09:51:00;  author: john;  state: Exp;
74986 Initial revision
74987 =============================================================================
74988 RCS file: f:/miner/source/3d/clipper.asm,v
74989 Working file: 3d/clipper.asm
74990 head: 1.6
74991 branch:
74992 description: Source for clipper
74993 ----------------------------
74994 revision 1.6
74995 date: 1994/07/25 00:00:02;  author: matt;  state: Exp;
74996 Made 3d no longer deal with point numbers, but only with pointers.
74997 ----------------------------
74998 revision 1.5
74999 date: 1994/02/10 18:00:38;  author: matt;  state: Exp;
75000 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75001 ----------------------------
75002 revision 1.4
75003 date: 1994/01/13 15:39:09;  author: mike;  state: Exp;
75004 Change usage of Frame_count to _Frame_count
75005 ----------------------------
75006 revision 1.3
75007 date: 1993/11/04 18:48:39;  author: matt;  state: Exp;
75008 Added system to only rotate points once per frame
75009 ----------------------------
75010 revision 1.2
75011 date: 1993/11/04 12:36:25;  author: mike;  state: Exp;
75012 Add clipping for lighting value.
75013 ----------------------------
75014 revision 1.1
75015 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75016 Initial revision
75017 =============================================================================
75018 RCS file: f:/miner/source/3d/draw.asm,v
75019 Working file: 3d/draw.asm
75020 head: 1.30
75021 branch:
75022 description: Source for drawing routines
75023 ----------------------------
75024 revision 1.30
75025 date: 1995/02/15 02:26:52;  author: matt;  state: Exp;
75026 Put in added handling for odd clipping error
75027 ----------------------------
75028 revision 1.29
75029 date: 1995/02/10 16:41:41;  author: matt;  state: Exp;
75030 Put in check for bad points after clip
75031 ----------------------------
75032 revision 1.28
75033 date: 1995/02/09 22:00:52;  author: matt;  state: Exp;
75034 Removed dependence on divide overflow handler; we now check for overflow
75035 before dividing.  This fixed problems on some TI chips.
75036 ----------------------------
75037 revision 1.27
75038 date: 1994/11/30 00:59:32;  author: mike;  state: Exp;
75039 optimizations.
75040 ----------------------------
75041 revision 1.26
75042 date: 1994/10/03 12:52:04;  author: matt;  state: Exp;
75043 Fixed typo
75044 ----------------------------
75045 revision 1.25
75046 date: 1994/10/03 12:49:56;  author: matt;  state: Exp;
75047 Took out unused routines & data
75048 ----------------------------
75049 revision 1.24
75050 date: 1994/07/24 23:59:34;  author: matt;  state: Exp;
75051 Made 3d no longer deal with point numbers, but only with pointers.
75052 ----------------------------
75053 revision 1.23
75054 date: 1994/05/30 11:36:26;  author: matt;  state: Exp;
75055 Added g3_set_special_render() to allow a user to specify functions to
75056 call for 2d draws.
75057 ----------------------------
75058 revision 1.22
75059 date: 1994/05/19 21:46:13;  author: matt;  state: Exp;
75060 Moved texture lighting out of 3d and into the game
75061 ----------------------------
75062 revision 1.21
75063 date: 1994/05/13 17:06:18;  author: matt;  state: Exp;
75064 Finished ripping out intersected side lighting code
75065 ----------------------------
75066 revision 1.20
75067 date: 1994/05/13 17:02:58;  author: matt;  state: Exp;
75068 Took our special side lighting code
75069 ----------------------------
75070 revision 1.19
75071 date: 1994/04/19 18:45:19;  author: matt;  state: Exp;
75072 Now call the clipped disk, which it should have done all along, but
75073 John had only implemented the unclipped disk, and it clipped anyway.
75074 ----------------------------
75075 revision 1.18
75076 date: 1994/04/19 18:26:42;  author: matt;  state: Exp;
75077 Added g3_draw_sphere() function.
75078 ----------------------------
75079 revision 1.17
75080 date: 1994/04/19 17:03:40;  author: matt;  state: Exp;
75081 For polygons, call the texture-mapper's flat shader
75082 ----------------------------
75083 revision 1.16
75084 date: 1994/03/18 15:58:37;  author: matt;  state: Exp;
75085 Fixed bug that caused light vals to be screwed up
75086 ----------------------------
75087 revision 1.15
75088 date: 1994/03/14 12:37:31;  author: matt;  state: Exp;
75089 Made draw routines check for rotated points
75090 ----------------------------
75091 revision 1.14
75092 date: 1994/02/10 18:00:39;  author: matt;  state: Exp;
75093 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75094 ----------------------------
75095 revision 1.13
75096 date: 1994/02/09 11:48:16;  author: matt;  state: Exp;
75097 Changes return codes for drawing functions
75098 ----------------------------
75099 revision 1.12
75100 date: 1994/02/01 13:23:05;  author: matt;  state: Exp;
75101 Added use_beam var to turn off beam lighting
75102 ----------------------------
75103 revision 1.11
75104 date: 1994/01/26 20:27:18;  author: mike;  state: Exp;
75105 bright light on very near side.
75106 ----------------------------
75107 revision 1.10
75108 date: 1994/01/26 12:49:26;  author: matt;  state: Exp;
75109 Made lighting computation a seperate function, g3_compute_lighting_value.
75110 Note the unwieldy function name, courtesy of Mike.
75111 ----------------------------
75112 revision 1.9
75113 date: 1994/01/25 16:38:02;  author: yuan;  state: Exp;
75114 Fixed beam_brightness
75115 ----------------------------
75116 revision 1.8
75117 date: 1994/01/24 11:08:49;  author: matt;  state: Exp;
75118 Added beam_brightness variable
75119 ----------------------------
75120 revision 1.7
75121 date: 1994/01/22 18:22:09;  author: matt;  state: Exp;
75122 New lighting stuff now done in 3d; g3_draw_tmap() takes lighting parm
75123 ----------------------------
75124 revision 1.6
75125 date: 1993/12/05 23:47:14;  author: matt;  state: Exp;
75126 Added function g3_draw_line_ptrs()
75127 ----------------------------
75128 revision 1.5
75129 date: 1993/11/22 10:51:29;  author: matt;  state: Exp;
75130 Changed texture map function comments to reflect uvl (not just uv) struct
75131 ----------------------------
75132 revision 1.4
75133 date: 1993/11/17 10:40:02;  author: matt;  state: Exp;
75134 Added check for zero-length normal in do_facing_check
75135 ----------------------------
75136 revision 1.3
75137 date: 1993/11/04 18:49:14;  author: matt;  state: Exp;
75138 Added system to only rotate points once per frame
75139 ----------------------------
75140 revision 1.2
75141 date: 1993/11/04 12:36:36;  author: mike;  state: Exp;
75142 Add support for static lighting value.
75143 ----------------------------
75144 revision 1.1
75145 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75146 Initial revision
75147 =============================================================================
75148 RCS file: f:/miner/source/3d/globvars.asm,v
75149 Working file: 3d/globvars.asm
75150 head: 1.6
75151 branch:
75152 description: Global variables for 3d system
75153 ----------------------------
75154 revision 1.6
75155 date: 1994/11/19 17:25:27;  author: matt;  state: Exp;
75156 Took out unneeded var define
75157 ----------------------------
75158 revision 1.5
75159 date: 1994/07/25 00:00:03;  author: matt;  state: Exp;
75160 Made 3d no longer deal with point numbers, but only with pointers.
75161 ----------------------------
75162 revision 1.4
75163 date: 1994/01/28 15:23:23;  author: matt;  state: Exp;
75164 Added _Matrix_scale so C can get at those vars
75165 ----------------------------
75166 revision 1.3
75167 date: 1994/01/13 15:38:29;  author: mike;  state: Exp;
75168 rename Frame_count to _Frame_count, can you guess why?
75169 ----------------------------
75170 revision 1.2
75171 date: 1993/11/04 18:49:16;  author: matt;  state: Exp;
75172 Added system to only rotate points once per frame
75173 ----------------------------
75174 revision 1.1
75175 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75176 Initial revision
75177 =============================================================================
75178 RCS file: f:/miner/source/3d/horizon.asm,v
75179 Working file: 3d/horizon.asm
75180 head: 1.5
75181 branch:
75182 description: Source for horizon drawer
75183 ----------------------------
75184 revision 1.5
75185 date: 1994/06/14 18:14:40;  author: matt;  state: Exp;
75186 Use texture-mapper flat shader
75187 ----------------------------
75188 revision 1.4
75189 date: 1994/02/10 18:00:42;  author: matt;  state: Exp;
75190 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75191 ----------------------------
75192 revision 1.3
75193 date: 1994/01/22 18:22:16;  author: matt;  state: Exp;
75194 Fixed bug in horizon bitmap code
75195 ----------------------------
75196 revision 1.2
75197 date: 1994/01/20 17:21:47;  author: matt;  state: Exp;
75198 New function g3_compute_sky_polygon()
75199 ----------------------------
75200 revision 1.1
75201 date: 1994/01/14 17:22:08;  author: matt;  state: Exp;
75202 Initial revision
75203 =============================================================================
75204 RCS file: f:/miner/source/3d/instance.asm,v
75205 Working file: 3d/instance.asm
75206 head: 1.8
75207 branch:
75208 description: Code for handling instanced 3d objects
75209 ----------------------------
75210 revision 1.8
75211 date: 1994/07/29 18:16:16;  author: matt;  state: Exp;
75212 Added instance by angles, and corrected parms for g3_init()
75213 ----------------------------
75214 revision 1.7
75215 date: 1994/07/25 00:00:02;  author: matt;  state: Exp;
75216 Made 3d no longer deal with point numbers, but only with pointers.
75217 ----------------------------
75218 revision 1.6
75219 date: 1994/06/16 17:52:31;  author: matt;  state: Exp;
75220 If NULL passed for instance matrix, don't rotate (just do offset)
75221 ----------------------------
75222 revision 1.5
75223 date: 1994/06/01 18:10:22;  author: matt;  state: Exp;
75224 Fixed register trash in g3_start_instance_matrix()
75225 ----------------------------
75226 revision 1.4
75227 date: 1994/03/25 17:09:20;  author: matt;  state: Exp;
75228 Increase MAX_INSTANCE_DEPTH to 5 (from 3)
75229 ----------------------------
75230 revision 1.3
75231 date: 1994/02/10 18:00:43;  author: matt;  state: Exp;
75232 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75233 ----------------------------
75234 revision 1.2
75235 date: 1994/01/24 14:08:45;  author: matt;  state: Exp;
75236 Added code to this previously dull file
75237 ----------------------------
75238 revision 1.1
75239 date: 1994/01/23 15:22:52;  author: matt;  state: Exp;
75240 Initial revision
75241 =============================================================================
75242 RCS file: f:/miner/source/3d/interp.asm,v
75243 Working file: 3d/interp.asm
75244 head: 1.21
75245 branch:
75246 description: Polygon object interpreter
75247 ----------------------------
75248 revision 1.21
75249 date: 1994/10/26 23:57:49;  author: john;  state: Exp;
75250 Took out gr_inverse_table
75251 ----------------------------
75252 revision 1.20
75253 date: 1994/09/26 14:43:31;  author: matt;  state: Exp;
75254 Put in checks for faces with fewer than 3 vertices
75255 ----------------------------
75256 revision 1.19
75257 date: 1994/09/09 14:24:14;  author: matt;  state: Exp;
75258 Added support for glowing textures, to add engine glow to Descent.
75259 ----------------------------
75260 revision 1.18
75261 date: 1994/08/26 16:42:03;  author: matt;  state: Exp;
75262 Added check for how many textures used in an object
75263 ----------------------------
75264 revision 1.17
75265 date: 1994/07/29 18:29:17;  author: matt;  state: Exp;
75266 Use instance-by-angles code, instead of building matrix here
75267 ----------------------------
75268 revision 1.16
75269 date: 1994/07/25 10:58:28;  author: matt;  state: Exp;
75270 Fixed morph effect for new 3d point handling
75271 ----------------------------
75272 revision 1.15
75273 date: 1994/07/25 00:00:07;  author: matt;  state: Exp;
75274 Made 3d no longer deal with point numbers, but only with pointers.
75275 ----------------------------
75276 revision 1.14
75277 date: 1994/07/22 17:57:59;  author: matt;  state: Exp;
75278 Changed the name of the rod functions, and took out some debugging code
75279 ----------------------------
75280 revision 1.13
75281 date: 1994/06/07 16:49:36;  author: matt;  state: Exp;
75282 Made interpreter take lighting value as parm, rather than in global var
75283 ----------------------------
75284 revision 1.12
75285 date: 1994/05/31 22:11:52;  author: matt;  state: Exp;
75286 Fixed morphing object lighting
75287 ----------------------------
75288 revision 1.11
75289 date: 1994/05/31 18:35:52;  author: matt;  state: Exp;
75290 Added lighting back to polygon objects
75291 ----------------------------
75292 revision 1.10
75293 date: 1994/05/31 16:03:55;  author: matt;  state: Exp;
75294 Made uvls right for triangulated faces in morphing objects
75295 ----------------------------
75296 revision 1.9
75297 date: 1994/05/30 22:48:34;  author: matt;  state: Exp;
75298 Added support for morph effect
75299 ----------------------------
75300 revision 1.8
75301 date: 1994/05/19 23:12:04;  author: matt;  state: Exp;
75302 Support new uvl value ranges
75303 ----------------------------
75304 revision 1.7
75305 date: 1994/04/29 15:39:46;  author: matt;  state: Exp;
75306 Use ebx in one place because the assembler seemed to be using it anyway
75307 even though I typed just bx.
75308 ----------------------------
75309 revision 1.6
75310 date: 1994/04/19 17:02:32;  author: matt;  state: Exp;
75311 Made g3d_interp_outline var accessible by C
75312 ----------------------------
75313 revision 1.5
75314 date: 1994/03/30 10:22:40;  author: matt;  state: Exp;
75315 Added outline option for polygon models
75316 ----------------------------
75317 revision 1.4
75318 date: 1994/03/25 18:23:51;  author: matt;  state: Exp;
75319 Fixed a couple of subobject problems, and made g3_draw_polygon_model
75320 take a pointer to a list of angvecs for subobj animation.
75321 ----------------------------
75322 revision 1.3
75323 date: 1994/03/18 16:07:57;  author: matt;  state: Exp;
75324 Added subobject and rod bitmap opcodes
75325 ----------------------------
75326 revision 1.2
75327 date: 1994/03/15 21:23:04;  author: matt;  state: Exp;
75328 Added code
75329 ----------------------------
75330 revision 1.1
75331 date: 1994/03/14 21:26:56;  author: matt;  state: Exp;
75332 Initial revision
75333 =============================================================================
75334 RCS file: f:/miner/source/3d/matrix.asm,v
75335 Working file: 3d/matrix.asm
75336 head: 1.4
75337 branch:
75338 description: Source for matrix setup & manipulation routines
75339 ----------------------------
75340 revision 1.4
75341 date: 1994/11/20 15:59:34;  author: matt;  state: Exp;
75342 instance functions were trashing eax
75343 ----------------------------
75344 revision 1.3
75345 date: 1994/01/04 12:06:17;  author: matt;  state: Exp;
75346 Made scale_matrix save and restore ecx, which it was trashing.
75347 ----------------------------
75348 revision 1.2
75349 date: 1993/11/04 18:49:16;  author: matt;  state: Exp;
75350 Added system to only rotate points once per frame
75351 ----------------------------
75352 revision 1.1
75353 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75354 Initial revision
75355 =============================================================================
75356 RCS file: f:/miner/source/3d/objects.asm,v
75357 Working file: 3d/objects.asm
75358 head: 1.5
75359 branch:
75360 description: Code to draw objects
75361 ----------------------------
75362 revision 1.5
75363 date: 1993/12/07 23:04:47;  author: matt;  state: Exp;
75364 Misc changes.
75365 NOTE: This file will not be used anymore.  See object.c in main.
75366 ----------------------------
75367 revision 1.4
75368 date: 1993/12/02 16:09:50;  author: matt;  state: Exp;
75369 Removed debugging print to mono screen
75370 ----------------------------
75371 revision 1.3
75372 date: 1993/11/24 16:58:49;  author: matt;  state: Exp;
75373 Changed bitmap number of cube object
75374 ----------------------------
75375 revision 1.2
75376 date: 1993/11/23 14:29:53;  author: matt;  state: Exp;
75377 Fixed bitmap objects, hopefully.
75378 ----------------------------
75379 revision 1.1
75380 date: 1993/11/21 20:09:02;  author: matt;  state: Exp;
75381 Initial revision
75382 =============================================================================
75383 RCS file: f:/miner/source/3d/points.asm,v
75384 Working file: 3d/points.asm
75385 head: 1.13
75386 branch:
75387 description: Source for point definition, rotation, etc.
75388 ----------------------------
75389 revision 1.13
75390 date: 1995/02/09 22:00:05;  author: matt;  state: Exp;
75391 Removed dependence on divide overflow handler; we now check for overflow
75392 before dividing.  This fixed problems on some TI chips.
75393 ----------------------------
75394 revision 1.12
75395 date: 1994/11/11 19:22:06;  author: matt;  state: Exp;
75396 Added new function, g3_calc_point_depth()
75397 ----------------------------
75398 revision 1.11
75399 date: 1994/07/25 00:00:04;  author: matt;  state: Exp;
75400 Made 3d no longer deal with point numbers, but only with pointers.
75401 ----------------------------
75402 revision 1.10
75403 date: 1994/07/21 09:53:32;  author: matt;  state: Exp;
75404 Made g3_point_2_vec() take 2d coords relative to upper left, not center
75405 ----------------------------
75406 revision 1.9
75407 date: 1994/02/10 18:00:41;  author: matt;  state: Exp;
75408 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75409 ----------------------------
75410 revision 1.8
75411 date: 1994/02/09 11:48:55;  author: matt;  state: Exp;
75412 Added delta rotation functions
75413 ----------------------------
75414 revision 1.7
75415 date: 1994/01/13 15:39:39;  author: mike;  state: Exp;
75416 Change usage of Frame_count to _Frame_count.
75417 ----------------------------
75418 revision 1.6
75419 date: 1993/12/21 20:35:35;  author: matt;  state: Exp;
75420 Fixed bug that left register pushed if point was already projected in
75421 g3_project_list()
75422 ----------------------------
75423 revision 1.5
75424 date: 1993/12/21 11:45:37;  author: matt;  state: Exp;
75425 Fixed negative y bug in g3_point_2_vec()
75426 ----------------------------
75427 revision 1.4
75428 date: 1993/12/20 20:21:51;  author: matt;  state: Exp;
75429 Added g3_point_2_vec()
75430 ----------------------------
75431 revision 1.3
75432 date: 1993/11/21 20:08:41;  author: matt;  state: Exp;
75433 Added function g3_rotate_point()
75434 ----------------------------
75435 revision 1.2
75436 date: 1993/11/04 18:49:17;  author: matt;  state: Exp;
75437 Added system to only rotate points once per frame
75438 ----------------------------
75439 revision 1.1
75440 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75441 Initial revision
75442 =============================================================================
75443 RCS file: f:/miner/source/3d/rod.asm,v
75444 Working file: 3d/rod.asm
75445 head: 1.22
75446 branch:
75447 description: Code to draw rods (facing bitmaps).
75448 ----------------------------
75449 revision 1.22
75450 date: 1995/02/09 22:00:51;  author: matt;  state: Exp;
75451 Removed dependence on divide overflow handler; we now check for overflow
75452 before dividing.  This fixed problems on some TI chips.
75453 ----------------------------
75454 revision 1.21
75455 date: 1994/11/27 12:55:14;  author: matt;  state: Exp;
75456 Tooks out some unused code
75457 ----------------------------
75458 revision 1.20
75459 date: 1994/09/01 15:34:49;  author: matt;  state: Exp;
75460 Fixed stack mess-up when rod projection overflows
75461 ----------------------------
75462 revision 1.19
75463 date: 1994/09/01 10:41:46;  author: matt;  state: Exp;
75464 Blob routine, renamed g3_draw_bitmap(), now takes seperate 3d width & height.
75465 ----------------------------
75466 revision 1.18
75467 date: 1994/08/01 17:23:27;  author: matt;  state: Exp;
75468 Check for overflow after project in blob code
75469 ----------------------------
75470 revision 1.17
75471 date: 1994/07/25 15:47:13;  author: matt;  state: Exp;
75472 Cleaned up code, and made long-broken flat-shaded rods work.
75473 ----------------------------
75474 revision 1.16
75475 date: 1994/07/25 00:00:05;  author: matt;  state: Exp;
75476 Made 3d no longer deal with point numbers, but only with pointers.
75477 ----------------------------
75478 revision 1.15
75479 date: 1994/07/22 17:58:01;  author: matt;  state: Exp;
75480 Changed the name of the rod functions, and took out some debugging code
75481 ----------------------------
75482 revision 1.14
75483 date: 1994/07/21 12:49:41;  author: mike;  state: Exp;
75484 Create _blob_vertices so powerups can be outlined when selected in editor.
75485 ----------------------------
75486 revision 1.13
75487 date: 1994/06/16 09:07:29;  author: matt;  state: Exp;
75488 Move in UV values for rods to prevent the texture mapper from reading
75489 past the edges of the bitmaps.
75490 ----------------------------
75491 revision 1.12
75492 date: 1994/05/31 18:35:29;  author: matt;  state: Exp;
75493 Added light value to g3_draw_facing_bitmap()
75494 ----------------------------
75495 revision 1.11
75496 date: 1994/05/19 23:11:54;  author: matt;  state: Exp;
75497 Support new uvl value ranges
75498 ----------------------------
75499 revision 1.10
75500 date: 1994/05/13 10:18:07;  author: matt;  state: Exp;
75501 Fixed bug introduced last time
75502 ----------------------------
75503 revision 1.9
75504 date: 1994/05/11 10:10:35;  author: matt;  state: Exp;
75505 Changed a little code in attempt to avoid overflows
75506 ----------------------------
75507 revision 1.8
75508 date: 1994/05/07 16:43:26;  author: matt;  state: Exp;
75509 Made rods work right, maybe.
75510 ----------------------------
75511 revision 1.7
75512 date: 1994/03/23 10:25:04;  author: matt;  state: Exp;
75513 Fixed stack messup with blob overflow, and removed debug_brk
75514 ----------------------------
75515 revision 1.6
75516 date: 1994/03/15 21:22:11;  author: matt;  state: Exp;
75517 Put in check for div overflow in blob code
75518 ----------------------------
75519 revision 1.5
75520 date: 1994/02/21 11:04:15;  author: matt;  state: Exp;
75521 Added check for zero-length vector
75522 ----------------------------
75523 revision 1.4
75524 date: 1994/02/15 17:37:23;  author: matt;  state: Exp;
75525 New function, g3_draw_blob()
75526 ----------------------------
75527 revision 1.3
75528 date: 1994/02/11 20:15:04;  author: matt;  state: Exp;
75529 Fixed matrix scale problem, removed unneeded debug_brk
75530 ----------------------------
75531 revision 1.2
75532 date: 1994/02/09 11:49:32;  author: matt;  state: Exp;
75533 Added code for texture-mapped and flat-shaded rods
75534 ----------------------------
75535 revision 1.1
75536 date: 1994/02/02 11:27:21;  author: matt;  state: Exp;
75537 Initial revision
75538 =============================================================================
75539 RCS file: f:/miner/source/3d/setup.asm,v
75540 Working file: 3d/setup.asm
75541 head: 1.13
75542 branch:
75543 description: Source for setup,close,start & end frame routines
75544 ----------------------------
75545 revision 1.13
75546 date: 1995/02/09 22:00:53;  author: matt;  state: Exp;
75547 Removed dependence on divide overflow handler; we now check for overflow
75548 before dividing.  This fixed problems on some TI chips.
75549 ----------------------------
75550 revision 1.12
75551 date: 1994/11/10 21:29:48;  author: mike;  state: Exp;
75552 call init_interface_vars_to_assembler.
75553 ----------------------------
75554 revision 1.11
75555 date: 1994/10/03 12:50:54;  author: matt;  state: Exp;
75556 Fixed stupid mistake
75557 ----------------------------
75558 revision 1.10
75559 date: 1994/10/03 12:50:12;  author: matt;  state: Exp;
75560 Took out unused routines & data
75561 ----------------------------
75562 revision 1.9
75563 date: 1994/07/25 00:00:05;  author: matt;  state: Exp;
75564 Made 3d no longer deal with point numbers, but only with pointers.
75565 ----------------------------
75566 revision 1.8
75567 date: 1994/04/19 18:26:43;  author: matt;  state: Exp;
75568 Added g3_draw_sphere() function.
75569 ----------------------------
75570 revision 1.7
75571 date: 1994/03/15 21:21:58;  author: matt;  state: Exp;
75572 Put in check for div overflow in blob code
75573 ----------------------------
75574 revision 1.6
75575 date: 1994/02/10 18:00:43;  author: matt;  state: Exp;
75576 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75577 ----------------------------
75578 revision 1.5
75579 date: 1994/01/28 13:07:50;  author: matt;  state: Exp;
75580 Added func, g3_get_view_pos_ptr_, sortof a hack, for the polygon objects.
75581 ----------------------------
75582 revision 1.4
75583 date: 1994/01/14 17:19:50;  author: matt;  state: Exp;
75584 Added check for no points in start_frame()
75585 ----------------------------
75586 revision 1.2
75587 date: 1993/11/04 18:49:18;  author: matt;  state: Exp;
75588 Added system to only rotate points once per frame
75589 ----------------------------
75590 revision 1.1
75591 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75592 Initial revision
75593 =============================================================================
75594 RCS file: f:/miner/source/3d/3d.inc,v
75595 Working file: 3d/3d.inc
75596 head: 1.30
75597 branch:
75598 description: Header file for 3d library
75599 ----------------------------
75600 revision 1.30
75601 date: 1995/02/09 22:00:50;  author: matt;  state: Exp;
75602 Removed dependence on divide overflow handler; we now check for overflow
75603 before dividing.  This fixed problems on some TI chips.
75604 ----------------------------
75605 revision 1.29
75606 date: 1994/11/11 19:22:15;  author: matt;  state: Exp;
75607 Added new function, g3_calc_point_depth()
75608 ----------------------------
75609 revision 1.28
75610 date: 1994/09/09 14:24:13;  author: matt;  state: Exp;
75611 Added support for glowing textures, to add engine glow to Descent.
75612 ----------------------------
75613 revision 1.27
75614 date: 1994/09/01 10:42:26;  author: matt;  state: Exp;
75615 Blob routine, renamed g3_draw_bitmap(), now takes seperate 3d width & height.
75616 ----------------------------
75617 revision 1.26
75618 date: 1994/07/29 18:15:53;  author: matt;  state: Exp;
75619 Added instance by angles, and corrected parms for g3_init()
75620 ----------------------------
75621 revision 1.25
75622 date: 1994/07/25 00:00:01;  author: matt;  state: Exp;
75623 Made 3d no longer deal with point numbers, but only with pointers.
75624 ----------------------------
75625 revision 1.24
75626 date: 1994/07/22 17:57:57;  author: matt;  state: Exp;
75627 Changed the name of the rod functions, and took out some debugging code
75628 ----------------------------
75629 revision 1.23
75630 date: 1994/06/07 16:49:35;  author: matt;  state: Exp;
75631 Made interpreter take lighting value as parm, rather than in global var
75632 ----------------------------
75633 revision 1.22
75634 date: 1994/05/31 18:35:19;  author: matt;  state: Exp;
75635 Added light value to g3_draw_facing_bitmap()
75636 ----------------------------
75637 revision 1.21
75638 date: 1994/05/30 22:48:15;  author: matt;  state: Exp;
75639 Added support for morph effect
75640 ----------------------------
75641 revision 1.20
75642 date: 1994/05/30 11:36:25;  author: matt;  state: Exp;
75643 Added g3_set_special_render() to allow a user to specify functions to
75644 call for 2d draws.
75645 ----------------------------
75646 revision 1.19
75647 date: 1994/05/19 21:46:30;  author: matt;  state: Exp;
75648 Moved texture lighting out of 3d and into the game
75649 ----------------------------
75650 revision 1.18
75651 date: 1994/04/19 18:26:41;  author: matt;  state: Exp;
75652 Added g3_draw_sphere() function.
75653 ----------------------------
75654 revision 1.17
75655 date: 1994/03/25 18:22:39;  author: matt;  state: Exp;
75656 g3_draw_polygon_model() now takes ptr to list of angles
75657 ----------------------------
75658 revision 1.16
75659 date: 1994/03/15 21:23:14;  author: matt;  state: Exp;
75660 Added interpreter functions
75661 ----------------------------
75662 revision 1.15
75663 date: 1994/02/15 17:37:35;  author: matt;  state: Exp;
75664 New function, g3_draw_blob()
75665 ----------------------------
75666 revision 1.14
75667 date: 1994/02/10 18:00:10;  author: matt;  state: Exp;
75668 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
75669 ----------------------------
75670 revision 1.13
75671 date: 1994/02/09 11:47:34;  author: matt;  state: Exp;
75672 Added rod & delta point functions
75673 ----------------------------
75674 revision 1.12
75675 date: 1994/01/26 12:38:20;  author: matt;  state: Exp;
75676 Added function g3_compute_lighting_value()
75677 ----------------------------
75678 revision 1.11
75679 date: 1994/01/24 14:08:24;  author: matt;  state: Exp;
75680 Added instancing functions
75681 ----------------------------
75682 revision 1.10
75683 date: 1994/01/22 18:22:07;  author: matt;  state: Exp;
75684 New lighting stuff now done in 3d; g3_draw_tmap() takes lighting parm
75685 ----------------------------
75686 revision 1.9
75687 date: 1994/01/20 17:21:46;  author: matt;  state: Exp;
75688 New function g3_compute_sky_polygon()
75689 ----------------------------
75690 revision 1.8
75691 date: 1994/01/14 17:21:02;  author: matt;  state: Exp;
75692 Added new function g3_draw_horizon()
75693 ----------------------------
75694 revision 1.6
75695 date: 1993/12/20 20:21:43;  author: matt;  state: Exp;
75696 Added g3_point_2_vec()
75697 ----------------------------
75698 revision 1.5
75699 date: 1993/12/05 23:47:13;  author: matt;  state: Exp;
75700 Added function g3_draw_line_ptrs()
75701 ----------------------------
75702 revision 1.4
75703 date: 1993/11/21 20:08:16;  author: matt;  state: Exp;
75704 Added functions g3_rotate_point & g3_draw_object
75705 ----------------------------
75706 revision 1.3
75707 date: 1993/11/04 18:49:42;  author: matt;  state: Exp;
75708 Made g3_init() have functionality of g3_set_points(), which I killed
75709 ----------------------------
75710 revision 1.2
75711 date: 1993/11/04 12:38:29;  author: mike;  state: Exp;
75712 Add PF_LVS, flag for lighting value
75713 ----------------------------
75714 revision 1.1
75715 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
75716 Initial revision
75717 =============================================================================
75718 RCS file: f:/miner/source/bios/joy.asm,v
75719 Working file: bios/joy.asm
75720 head: 1.17
75721 branch:
75722 description: Contains routines for joystick interface.
75723 ----------------------------
75724 revision 1.17
75725 date: 1995/10/07 13:22:11;  author: john;  state: Exp;
75726 Added new method of reading joystick that allows higher-priority
75727 interrupts to go off.
75728 ----------------------------
75729 revision 1.16
75730 date: 1995/03/30 11:03:30;  author: john;  state: Exp;
75731 Made -JoyBios read buttons using BIOS.
75732 ----------------------------
75733 revision 1.15
75734 date: 1995/02/14 11:39:36;  author: john;  state: Exp;
75735 Added polled/bios joystick readers..
75736 ----------------------------
75737 revision 1.14
75738 date: 1995/01/29 18:36:00;  author: john;  state: Exp;
75739 Made timer count in mode 2 instead of mode 3.
75740 ----------------------------
75741 revision 1.13
75742 date: 1994/12/28 15:32:21;  author: john;  state: Exp;
75743 Added code to read joystick axis not all at one time.
75744 ----------------------------
75745 revision 1.12
75746 date: 1994/12/27 15:44:59;  author: john;  state: Exp;
75747 Made the joystick timeout be at 1/100th of a second, 
75748 regardless of CPU speed.
75749 ----------------------------
75750 revision 1.11
75751 date: 1994/11/15 12:04:40;  author: john;  state: Exp;
75752 Cleaned up timer code a bit... took out unused functions
75753 like timer_get_milliseconds, etc.
75754 ----------------------------
75755 revision 1.10
75756 date: 1994/07/01 10:55:54;  author: john;  state: Exp;
75757 Fixed some bugs... added support for 4 axis.
75758 ----------------------------
75759 revision 1.9
75760 date: 1994/06/30 20:36:54;  author: john;  state: Exp;
75761 Revamped joystick code.
75762 ----------------------------
75763 revision 1.8
75764 date: 1994/04/22 12:52:06;  author: john;  state: Exp;
75765 =============================================================================
75766 RCS file: f:/miner/source/bios/key.asm,v
75767 Working file: bios/key.asm
75768 head: 1.20
75769 branch:
75770 description: Contains routines to get, buffer, and check key presses.
75771 ----------------------------
75772 revision 1.20
75773 date: 1994/01/18 10:58:55;  author: john;  state: Exp;
75774 *** empty log message ***
75775 ----------------------------
75776 revision 1.19
75777 date: 1993/12/22 13:28:40;  author: john;  state: Exp;
75778 Added back changes Matt made in r1.14
75779 ----------------------------
75780 revision 1.18
75781 date: 1993/12/22 13:18:32;  author: john;  state: Exp;
75782 *** empty log message ***
75783 ----------------------------
75784 revision 1.17
75785 date: 1993/12/20 16:48:47;  author: john;  state: Exp;
75786 Put cli/sti around clear keybuffer in key_close
75787 ----------------------------
75788 revision 1.16
75789 date: 1993/12/20 15:39:13;  author: john;  state: Exp;
75790 Tried to neaten handler code... also, moved some cli's and sti's around
75791 trying to find bug.  Made the code call key_get_milliseconds instead
75792 of timer_get_milliseconds, because we don't want the cli and sti
75793 stuff in the interrupt handler.  
75794 ----------------------------
75795 revision 1.15
75796 date: 1993/12/02 10:54:48;  author: john;  state: Exp;
75797 Made the Ctrl,Shift,Alt keys buffer like all the other keys.
75798 ----------------------------
75799 revision 1.14
75800 date: 1993/10/29 11:25:18;  author: matt;  state: Exp;
75801 Made key_down_time() not accumulate time if shift,alt,ctrl down
75802 ----------------------------
75803 revision 1.13
75804 date: 1993/10/29 10:47:00;  author: john;  state: Exp;
75805 *** empty log message ***
75806 ----------------------------
75807 revision 1.12
75808 date: 1993/10/16 19:24:16;  author: matt;  state: Exp;
75809 Added new function key_clear_times() & key_clear_counts()
75810 ----------------------------
75811 revision 1.11
75812 date: 1993/10/15 10:16:49;  author: john;  state: Exp;
75813 bunch of stuff, mainly with detecting debugger.
75814 ----------------------------
75815 revision 1.10
75816 date: 1993/10/04 13:25:57;  author: john;  state: Exp;
75817 Changed the way extended keys are processed.
75818 ----------------------------
75819 revision 1.9
75820 date: 1993/09/28 11:35:32;  author: john;  state: Exp;
75821 added key_peekkey
75822 ----------------------------
75823 revision 1.8
75824 date: 1993/09/23 18:09:23;  author: john;  state: Exp;
75825 fixed bug checking for DBG
75826 ----------------------------
75827 revision 1.7
75828 date: 1993/09/23 17:28:01;  author: john;  state: Exp;
75829 made debug check look for DBG> instead of CONTROL
75830 ----------------------------
75831 revision 1.6
75832 date: 1993/09/20 17:08:19;  author: john;  state: Exp;
75833 Made so that keys pressed in debugger don't get passed through to
75834 the keyboard handler. I also discovered, but didn't fix a error
75835 (page fault) caused by jumping back and forth between the debugger
75836 and the program...
75837 ----------------------------
75838 revision 1.5
75839 date: 1993/09/17 09:58:12;  author: john;  state: Exp;
75840 Added checks for already installed, not installed, etc.
75841 ----------------------------
75842 revision 1.4
75843 date: 1993/09/15 17:28:00;  author: john;  state: Exp;
75844 Fixed bug in FlushBuffer that used CX before a REP instead of ECX.
75845 ----------------------------
75846 revision 1.3
75847 date: 1993/09/08 14:48:00;  author: john;  state: Exp;
75848 made getch() return an int instead of a char that has shift states, etc.
75849 ----------------------------
75850 revision 1.2
75851 date: 1993/07/22 13:12:23;  author: john;  state: Exp;
75852 fixed comment
75853 ,.
75854 ----------------------------
75855 revision 1.1
75856 date: 1993/07/10 13:10:42;  author: matt;  state: Exp;
75857 Initial revision
75858 =============================================================================
75859 RCS file: f:/miner/source/bios/key.asm,v
75860 Working file: bios/key.asm
75861 head: 1.20
75862 branch:
75863 description: Contains routines to get, buffer, and check key presses.
75864 ----------------------------
75865 revision 1.20
75866 date: 1994/01/18 10:58:55;  author: john;  state: Exp;
75867 *** empty log message ***
75868 ----------------------------
75869 revision 1.19
75870 date: 1993/12/22 13:28:40;  author: john;  state: Exp;
75871 Added back changes Matt made in r1.14
75872 ----------------------------
75873 revision 1.18
75874 date: 1993/12/22 13:18:32;  author: john;  state: Exp;
75875 *** empty log message ***
75876 ----------------------------
75877 revision 1.17
75878 date: 1993/12/20 16:48:47;  author: john;  state: Exp;
75879 Put cli/sti around clear keybuffer in key_close
75880 ----------------------------
75881 revision 1.16
75882 date: 1993/12/20 15:39:13;  author: john;  state: Exp;
75883 Tried to neaten handler code... also, moved some cli's and sti's around
75884 trying to find bug.  Made the code call key_get_milliseconds instead
75885 of timer_get_milliseconds, because we don't want the cli and sti
75886 stuff in the interrupt handler.  
75887 ----------------------------
75888 revision 1.15
75889 date: 1993/12/02 10:54:48;  author: john;  state: Exp;
75890 Made the Ctrl,Shift,Alt keys buffer like all the other keys.
75891 ----------------------------
75892 revision 1.14
75893 date: 1993/10/29 11:25:18;  author: matt;  state: Exp;
75894 Made key_down_time() not accumulate time if shift,alt,ctrl down
75895 ----------------------------
75896 revision 1.13
75897 date: 1993/10/29 10:47:00;  author: john;  state: Exp;
75898 *** empty log message ***
75899 ----------------------------
75900 revision 1.12
75901 date: 1993/10/16 19:24:16;  author: matt;  state: Exp;
75902 Added new function key_clear_times() & key_clear_counts()
75903 ----------------------------
75904 revision 1.11
75905 date: 1993/10/15 10:16:49;  author: john;  state: Exp;
75906 bunch of stuff, mainly with detecting debugger.
75907 ----------------------------
75908 revision 1.10
75909 date: 1993/10/04 13:25:57;  author: john;  state: Exp;
75910 Changed the way extended keys are processed.
75911 ----------------------------
75912 revision 1.9
75913 date: 1993/09/28 11:35:32;  author: john;  state: Exp;
75914 added key_peekkey
75915 ----------------------------
75916 revision 1.8
75917 date: 1993/09/23 18:09:23;  author: john;  state: Exp;
75918 fixed bug checking for DBG
75919 ----------------------------
75920 revision 1.7
75921 date: 1993/09/23 17:28:01;  author: john;  state: Exp;
75922 made debug check look for DBG> instead of CONTROL
75923 ----------------------------
75924 revision 1.6
75925 date: 1993/09/20 17:08:19;  author: john;  state: Exp;
75926 Made so that keys pressed in debugger don't get passed through to
75927 the keyboard handler. I also discovered, but didn't fix a error
75928 (page fault) caused by jumping back and forth between the debugger
75929 and the program...
75930 ----------------------------
75931 revision 1.5
75932 date: 1993/09/17 09:58:12;  author: john;  state: Exp;
75933 Added checks for already installed, not installed, etc.
75934 ----------------------------
75935 revision 1.4
75936 date: 1993/09/15 17:28:00;  author: john;  state: Exp;
75937 Fixed bug in FlushBuffer that used CX before a REP instead of ECX.
75938 ----------------------------
75939 revision 1.3
75940 date: 1993/09/08 14:48:00;  author: john;  state: Exp;
75941 made getch() return an int instead of a char that has shift states, etc.
75942 ----------------------------
75943 revision 1.2
75944 date: 1993/07/22 13:12:23;  author: john;  state: Exp;
75945 fixed comment
75946 ,.
75947 ----------------------------
75948 revision 1.1
75949 date: 1993/07/10 13:10:42;  author: matt;  state: Exp;
75950 Initial revision
75951 =============================================================================
75952 RCS file: f:/miner/source/bios/keys.inc,v
75953 Working file: bios/keys.inc
75954 head: 1.2
75955 branch:
75956 description: Scan code to ASCII conversions
75957 ----------------------------
75958 revision 1.2
75959 date: 1993/10/04 13:26:19;  author: john;  state: Exp;
75960 changed the key def's.
75961 ----------------------------
75962 revision 1.1
75963 date: 1993/09/08 14:50:36;  author: john;  state: Exp;
75964 Initial revision
75965 =============================================================================
75966 RCS file: f:/miner/source/bios/mouse.asm,v
75967 Working file: bios/mouse.asm
75968 head: 1.5
75969 branch:
75970 description: Contains routines for a mouse interface.
75971 ----------------------------
75972 revision 1.5
75973 date: 1994/04/29 12:14:12;  author: john;  state: Exp;
75974 Locked all memory used during interrupts so that program
75975 won't hang when using virtual memory.
75976 ----------------------------
75977 revision 1.4
75978 date: 1993/07/26 10:47:03;  author: john;  state: Exp;
75979 added sub mouse_set_pos
75980 ----------------------------
75981 revision 1.3
75982 date: 1993/07/22 13:57:13;  author: john;  state: Exp;
75983 aligned push/pops in mouse_set_limits
75984 ----------------------------
75985 revision 1.2
75986 date: 1993/07/22 13:14:43;  author: john;  state: Exp;
75987 added mouse set limts sub
75988 ----------------------------
75989 revision 1.1
75990 date: 1993/07/10 13:10:43;  author: matt;  state: Exp;
75991 Initial revision
75992 =============================================================================
75993 RCS file: f:/miner/source/bios/oldkey.asm,v
75994 Working file: bios/oldkey.asm
75995 head: 1.2
75996 branch:
75997 description: Old assembly key stuff...
75998 ----------------------------
75999 revision 1.2
76000 date: 1994/02/17 15:55:59;  author: john;  state: Exp;
76001 Initial version
76002 ----------------------------
76003 revision 1.1
76004 date: 1994/02/17 15:55:11;  author: john;  state: Exp;
76005 Initial revision
76006 ----------------------------
76007 revision 1.2
76008 date: 1994/02/17 15:55:59;  author: john;  state: Exp;
76009 Initial version
76010 ----------------------------
76011 revision 1.20
76012 date: 1994/01/18 10:58:55;  author: john;  state: Exp;
76013 *** empty log message ***
76014 ----------------------------
76015 revision 1.19
76016 date: 1993/12/22 13:28:40;  author: john;  state: Exp;
76017 Added back changes Matt made in r1.14
76018 ----------------------------
76019 revision 1.18
76020 date: 1993/12/22 13:18:32;  author: john;  state: Exp;
76021 *** empty log message ***
76022 ----------------------------
76023 revision 1.17
76024 date: 1993/12/20 16:48:47;  author: john;  state: Exp;
76025 Put cli/sti around clear keybuffer in key_close
76026 ----------------------------
76027 revision 1.16
76028 date: 1993/12/20 15:39:13;  author: john;  state: Exp;
76029 Tried to neaten handler code... also, moved some cli's and sti's around
76030 trying to find bug.  Made the code call key_get_milliseconds instead
76031 of timer_get_milliseconds, because we don't want the cli and sti
76032 stuff in the interrupt handler.  
76033 ----------------------------
76034 revision 1.15
76035 date: 1993/12/02 10:54:48;  author: john;  state: Exp;
76036 Made the Ctrl,Shift,Alt keys buffer like all the other keys.
76037 ----------------------------
76038 revision 1.14
76039 date: 1993/10/29 11:25:18;  author: matt;  state: Exp;
76040 Made key_down_time() not accumulate time if shift,alt,ctrl down
76041 ----------------------------
76042 revision 1.13
76043 date: 1993/10/29 10:47:00;  author: john;  state: Exp;
76044 *** empty log message ***
76045 ----------------------------
76046 revision 1.12
76047 date: 1993/10/16 19:24:16;  author: matt;  state: Exp;
76048 Added new function key_clear_times() & key_clear_counts()
76049 ----------------------------
76050 revision 1.11
76051 date: 1993/10/15 10:16:49;  author: john;  state: Exp;
76052 bunch of stuff, mainly with detecting debugger.
76053 ----------------------------
76054 revision 1.10
76055 date: 1993/10/04 13:25:57;  author: john;  state: Exp;
76056 Changed the way extended keys are processed.
76057 ----------------------------
76058 revision 1.9
76059 date: 1993/09/28 11:35:32;  author: john;  state: Exp;
76060 added key_peekkey
76061 ----------------------------
76062 revision 1.8
76063 date: 1993/09/23 18:09:23;  author: john;  state: Exp;
76064 fixed bug checking for DBG
76065 ----------------------------
76066 revision 1.7
76067 date: 1993/09/23 17:28:01;  author: john;  state: Exp;
76068 made debug check look for DBG> instead of CONTROL
76069 ----------------------------
76070 revision 1.6
76071 date: 1993/09/20 17:08:19;  author: john;  state: Exp;
76072 Made so that keys pressed in debugger don't get passed through to
76073 the keyboard handler. I also discovered, but didn't fix a error
76074 (page fault) caused by jumping back and forth between the debugger
76075 and the program...
76076 ----------------------------
76077 revision 1.5
76078 date: 1993/09/17 09:58:12;  author: john;  state: Exp;
76079 Added checks for already installed, not installed, etc.
76080 ----------------------------
76081 revision 1.4
76082 date: 1993/09/15 17:28:00;  author: john;  state: Exp;
76083 Fixed bug in FlushBuffer that used CX before a REP instead of ECX.
76084 ----------------------------
76085 revision 1.3
76086 date: 1993/09/08 14:48:00;  author: john;  state: Exp;
76087 made getch() return an int instead of a char that has shift states, etc.
76088 ----------------------------
76089 revision 1.2
76090 date: 1993/07/22 13:12:23;  author: john;  state: Exp;
76091 fixed comment
76092 ,.
76093 ----------------------------
76094 revision 1.1
76095 date: 1993/07/10 13:10:42;  author: matt;  state: Exp;
76096 Initial revision
76097 =============================================================================
76098 RCS file: f:/miner/source/bios/timer.asm,v
76099 Working file: bios/timer.asm
76100 head: 1.28
76101 branch:
76102 description: Routines for setting and using system timers
76103 ----------------------------
76104 revision 1.28
76105 date: 1995/02/15 01:36:56;  author: matt;  state: Exp;
76106 Cleaned up code to avoid doing out 20,20 more than once
76107 ----------------------------
76108 revision 1.27
76109 date: 1995/02/14 11:39:37;  author: john;  state: Exp;
76110 Fixed bug with joystick handler not having enough
76111 stack space under Windows.
76112 ----------------------------
76113 revision 1.26
76114 date: 1995/02/09 21:51:39;  author: john;  state: Exp;
76115 Made so that DOS timer interrupt gets called before interrupts are
76116 enabled in timer interpt because not doing this cause conflicts with
76117 ps2 style mice and smartdrv with write caching enabled that hangs the
76118 program and trashes the FAT.
76119 ----------------------------
76120 revision 1.25
76121 date: 1995/02/04 15:39:33;  author: john;  state: Exp;
76122 More time interrupt changes.
76123 ----------------------------
76124 revision 1.24
76125 date: 1995/02/03 23:25:21;  author: john;  state: Exp;
76126 Made so that when interrupts are nested, the time interrupt still
76127 calls the DOS one.
76128 ----------------------------
76129 revision 1.23
76130 date: 1995/01/29 19:00:42;  author: john;  state: Exp;
76131 Made latching timer value more readable.
76132 ----------------------------
76133 revision 1.22
76134 date: 1995/01/17 10:34:53;  author: mike;  state: Exp;
76135 prevent divide overflows.
76136 ----------------------------
76137 revision 1.21
76138 date: 1994/12/15 11:10:54;  author: john;  state: Exp;
76139 Added code that should make DOS 18.2 callbacks 
76140 a bit more accurate.
76141 ----------------------------
76142 revision 1.20
76143 date: 1994/12/10 12:47:34;  author: john;  state: Exp;
76144 Made so that timer_get_fixed seconds and get_approx seconds are always equal.
76145 ----------------------------
76146 revision 1.19
76147 date: 1994/12/10 12:27:34;  author: john;  state: Exp;
76148 Added timer_get_approx_seconds.
76149 ----------------------------
76150 revision 1.18
76151 date: 1994/12/10 12:07:14;  author: john;  state: Exp;
76152 Added tick counter variable.
76153 ----------------------------
76154 revision 1.17
76155 date: 1994/12/04 11:55:16;  author: john;  state: Exp;
76156 Made stick read at whatever rate the clock is at, not
76157 at 18.2 times/second.
76158 ----------------------------
76159 revision 1.16
76160 date: 1994/11/28 15:24:10;  author: john;  state: Exp;
76161 Cleaned up timer interrupt a bit.
76162 ----------------------------
76163 revision 1.15
76164 date: 1994/11/22 17:00:43;  author: john;  state: Exp;
76165 Made the timer handler fill in ES along with DS.
76166 The HMI drivers expect this.
76167 ----------------------------
76168 revision 1.14
76169 date: 1994/11/15 12:04:38;  author: john;  state: Exp;
76170 Cleaned up timer code a bit... took out unused functions
76171 like timer_get_milliseconds, etc.
76172 ----------------------------
76173 revision 1.13
76174 date: 1994/10/05 16:17:40;  author: john;  state: Exp;
76175 Made interrupts more stable.
76176 ----------------------------
76177 revision 1.12
76178 date: 1994/09/29 18:29:57;  author: john;  state: Exp;
76179 Enabled interrupts whil calling the user_function.
76180 ----------------------------
76181 revision 1.11
76182 date: 1994/09/23 16:00:31;  author: john;  state: Exp;
76183 MAde the timer interrupt switch to a 4K stack
76184 before calling the timer_function.
76185 ----------------------------
76186 revision 1.10
76187 date: 1994/09/22 16:09:21;  author: john;  state: Exp;
76188 Fixed some virtual memory lockdown problems with timer and
76189 joystick.
76190 ----------------------------
76191 revision 1.9
76192 date: 1994/04/29 12:13:48;  author: john;  state: Exp;
76193 Locked all memory used during interrupts so that program
76194 won't hang when using virtual memory.
76195 ----------------------------
76196 revision 1.8
76197 date: 1994/04/28 23:50:49;  author: john;  state: Exp;
76198 Changed calling for init_timer.  Made the function that the
76199 timer calls be a far function. All of this was done to make
76200 our timer system compatible with the HMI sound stuff.
76201 ----------------------------
76202 revision 1.7
76203 date: 1994/02/17 15:57:15;  author: john;  state: Exp;
76204 Changed key libary to C.
76205 ----------------------------
76206 revision 1.6
76207 date: 1994/01/18 20:19:17;  author: john;  state: Exp;
76208 Fixed minor flaws with pending interrupts,
76209 interfaced with joystick code.
76210 ----------------------------
76211 revision 1.5
76212 date: 1994/01/18 13:54:18;  author: john;  state: Exp;
76213 Fixed a few miner flaws.
76214 ----------------------------
76215 revision 1.4
76216 date: 1994/01/18 10:58:25;  author: john;  state: Exp;
76217 Added timer_get_fixed_seconds
76218 ----------------------------
76219 revision 1.3
76220 date: 1993/12/20 15:40:59;  author: john;  state: Exp;
76221 *** empty log message ***
76222 ----------------------------
76223 revision 1.2
76224 date: 1993/09/23 18:08:44;  author: john;  state: Exp;
76225 added code so that timer_init can handle multiple calls.
76226 added code so that atexit is called.
76227 ----------------------------
76228 revision 1.1
76229 date: 1993/07/10 13:10:43;  author: matt;  state: Exp;
76230 Initial revision
76231 =============================================================================
76232 RCS file: f:/miner/source/bios/joy.asm,v
76233 Working file: bios/joy.asm
76234 head: 1.16
76235 branch:
76236 description: Contains routines for joystick interface.
76237 ----------------------------
76238 revision 1.16
76239 date: 1995/03/30 11:03:30;  author: john;  state: Exp;
76240 Made -JoyBios read buttons using BIOS.
76241 ----------------------------
76242 revision 1.15
76243 date: 1995/02/14 11:39:36;  author: john;  state: Exp;
76244 Added polled/bios joystick readers..
76245 ----------------------------
76246 revision 1.14
76247 date: 1995/01/29 18:36:00;  author: john;  state: Exp;
76248 Made timer count in mode 2 instead of mode 3.
76249 ----------------------------
76250 revision 1.13
76251 date: 1994/12/28 15:32:21;  author: john;  state: Exp;
76252 Added code to read joystick axis not all at one time.
76253 ----------------------------
76254 revision 1.12
76255 date: 1994/12/27 15:44:59;  author: john;  state: Exp;
76256 Made the joystick timeout be at 1/100th of a second, 
76257 regardless of CPU speed.
76258 ----------------------------
76259 revision 1.11
76260 date: 1994/11/15 12:04:40;  author: john;  state: Exp;
76261 Cleaned up timer code a bit... took out unused functions
76262 like timer_get_milliseconds, etc.
76263 ----------------------------
76264 revision 1.10
76265 date: 1994/07/01 10:55:54;  author: john;  state: Exp;
76266 Fixed some bugs... added support for 4 axis.
76267 ----------------------------
76268 revision 1.9
76269 date: 1994/06/30 20:36:54;  author: john;  state: Exp;
76270 Revamped joystick code.
76271 ----------------------------
76272 revision 1.8
76273 date: 1994/04/22 12:52:06;  author: john;  state: Exp;
76274 =============================================================================
76275 RCS file: f:/miner/source/bios/timer.asm,v
76276 Working file: bios/timer.asm
76277 head: 1.28
76278 branch:
76279 description: Routines for setting and using system timers
76280 ----------------------------
76281 revision 1.28
76282 date: 1995/02/15 01:36:56;  author: matt;  state: Exp;
76283 Cleaned up code to avoid doing out 20,20 more than once
76284 ----------------------------
76285 revision 1.27
76286 date: 1995/02/14 11:39:37;  author: john;  state: Exp;
76287 Fixed bug with joystick handler not having enough
76288 stack space under Windows.
76289 ----------------------------
76290 revision 1.26
76291 date: 1995/02/09 21:51:39;  author: john;  state: Exp;
76292 Made so that DOS timer interrupt gets called before interrupts are
76293 enabled in timer interpt because not doing this cause conflicts with
76294 ps2 style mice and smartdrv with write caching enabled that hangs the
76295 program and trashes the FAT.
76296 ----------------------------
76297 revision 1.25
76298 date: 1995/02/04 15:39:33;  author: john;  state: Exp;
76299 More time interrupt changes.
76300 ----------------------------
76301 revision 1.24
76302 date: 1995/02/03 23:25:21;  author: john;  state: Exp;
76303 Made so that when interrupts are nested, the time interrupt still
76304 calls the DOS one.
76305 ----------------------------
76306 revision 1.23
76307 date: 1995/01/29 19:00:42;  author: john;  state: Exp;
76308 Made latching timer value more readable.
76309 ----------------------------
76310 revision 1.22
76311 date: 1995/01/17 10:34:53;  author: mike;  state: Exp;
76312 prevent divide overflows.
76313 ----------------------------
76314 revision 1.21
76315 date: 1994/12/15 11:10:54;  author: john;  state: Exp;
76316 Added code that should make DOS 18.2 callbacks 
76317 a bit more accurate.
76318 ----------------------------
76319 revision 1.20
76320 date: 1994/12/10 12:47:34;  author: john;  state: Exp;
76321 Made so that timer_get_fixed seconds and get_approx seconds are always equal.
76322 ----------------------------
76323 revision 1.19
76324 date: 1994/12/10 12:27:34;  author: john;  state: Exp;
76325 Added timer_get_approx_seconds.
76326 ----------------------------
76327 revision 1.18
76328 date: 1994/12/10 12:07:14;  author: john;  state: Exp;
76329 Added tick counter variable.
76330 ----------------------------
76331 revision 1.17
76332 date: 1994/12/04 11:55:16;  author: john;  state: Exp;
76333 Made stick read at whatever rate the clock is at, not
76334 at 18.2 times/second.
76335 ----------------------------
76336 revision 1.16
76337 date: 1994/11/28 15:24:10;  author: john;  state: Exp;
76338 Cleaned up timer interrupt a bit.
76339 ----------------------------
76340 revision 1.15
76341 date: 1994/11/22 17:00:43;  author: john;  state: Exp;
76342 Made the timer handler fill in ES along with DS.
76343 The HMI drivers expect this.
76344 ----------------------------
76345 revision 1.14
76346 date: 1994/11/15 12:04:38;  author: john;  state: Exp;
76347 Cleaned up timer code a bit... took out unused functions
76348 like timer_get_milliseconds, etc.
76349 ----------------------------
76350 revision 1.13
76351 date: 1994/10/05 16:17:40;  author: john;  state: Exp;
76352 Made interrupts more stable.
76353 ----------------------------
76354 revision 1.12
76355 date: 1994/09/29 18:29:57;  author: john;  state: Exp;
76356 Enabled interrupts whil calling the user_function.
76357 ----------------------------
76358 revision 1.11
76359 date: 1994/09/23 16:00:31;  author: john;  state: Exp;
76360 MAde the timer interrupt switch to a 4K stack
76361 before calling the timer_function.
76362 ----------------------------
76363 revision 1.10
76364 date: 1994/09/22 16:09:21;  author: john;  state: Exp;
76365 Fixed some virtual memory lockdown problems with timer and
76366 joystick.
76367 ----------------------------
76368 revision 1.9
76369 date: 1994/04/29 12:13:48;  author: john;  state: Exp;
76370 Locked all memory used during interrupts so that program
76371 won't hang when using virtual memory.
76372 ----------------------------
76373 revision 1.8
76374 date: 1994/04/28 23:50:49;  author: john;  state: Exp;
76375 Changed calling for init_timer.  Made the function that the
76376 timer calls be a far function. All of this was done to make
76377 our timer system compatible with the HMI sound stuff.
76378 ----------------------------
76379 revision 1.7
76380 date: 1994/02/17 15:57:15;  author: john;  state: Exp;
76381 Changed key libary to C.
76382 ----------------------------
76383 revision 1.6
76384 date: 1994/01/18 20:19:17;  author: john;  state: Exp;
76385 Fixed minor flaws with pending interrupts,
76386 interfaced with joystick code.
76387 ----------------------------
76388 revision 1.5
76389 date: 1994/01/18 13:54:18;  author: john;  state: Exp;
76390 Fixed a few miner flaws.
76391 ----------------------------
76392 revision 1.4
76393 date: 1994/01/18 10:58:25;  author: john;  state: Exp;
76394 Added timer_get_fixed_seconds
76395 ----------------------------
76396 revision 1.3
76397 date: 1993/12/20 15:40:59;  author: john;  state: Exp;
76398 *** empty log message ***
76399 ----------------------------
76400 revision 1.2
76401 date: 1993/09/23 18:08:44;  author: john;  state: Exp;
76402 added code so that timer_init can handle multiple calls.
76403 added code so that atexit is called.
76404 ----------------------------
76405 revision 1.1
76406 date: 1993/07/10 13:10:43;  author: matt;  state: Exp;
76407 Initial revision
76408 =============================================================================
76409 RCS file: f:/miner/source/bios/mouse.asm,v
76410 Working file: bios/mouse.asm
76411 head: 1.5
76412 branch:
76413 description: Contains routines for a mouse interface.
76414 ----------------------------
76415 revision 1.5
76416 date: 1994/04/29 12:14:12;  author: john;  state: Exp;
76417 Locked all memory used during interrupts so that program
76418 won't hang when using virtual memory.
76419 ----------------------------
76420 revision 1.4
76421 date: 1993/07/26 10:47:03;  author: john;  state: Exp;
76422 added sub mouse_set_pos
76423 ----------------------------
76424 revision 1.3
76425 date: 1993/07/22 13:57:13;  author: john;  state: Exp;
76426 aligned push/pops in mouse_set_limits
76427 ----------------------------
76428 revision 1.2
76429 date: 1993/07/22 13:14:43;  author: john;  state: Exp;
76430 added mouse set limts sub
76431 ----------------------------
76432 revision 1.1
76433 date: 1993/07/10 13:10:43;  author: matt;  state: Exp;
76434 Initial revision
76435 =============================================================================
76436 RCS file: f:/miner/source/div/div0.inc,v
76437 Working file: div/div0.inc
76438 head: 1.1
76439 branch:
76440 description: Header file for div0 library
76441 ----------------------------
76442 revision 1.1
76443 date: 1993/10/13 17:19:57;  author: matt;  state: Exp;
76444 Initial revision
76445 =============================================================================
76446 RCS file: f:/miner/source/div/div0.asm,v
76447 Working file: div/div0.asm
76448 head: 1.4
76449 branch:
76450 description: Divide by zero error handler functions
76451 ----------------------------
76452 revision 1.4
76453 date: 1995/02/07 17:55:58;  author: john;  state: Exp;
76454 Made the debug counter variables public.
76455 ----------------------------
76456 revision 1.3
76457 date: 1994/01/14 15:34:12;  author: john;  state: Exp;
76458 Added counters for number of overflows.
76459 ----------------------------
76460 revision 1.2
76461 date: 1993/10/26 17:25:45;  author: john;  state: Exp;
76462 fixed bug in init, cx was being trashed.
76463 ----------------------------
76464 revision 1.1
76465 date: 1993/09/17 12:37:51;  author: john;  state: Exp;
76466 Initial revision
76467 =============================================================================
76468 RCS file: f:/miner/source/div/div0.asm,v
76469 Working file: div/div0.asm
76470 head: 1.1
76471 branch:
76472 description: Divide by zero error handler functions
76473 ----------------------------
76474 revision 1.1
76475 date: 1993/09/17 12:37:51;  author: john;  state: Exp;
76476 Initial revision
76477 =============================================================================
76478 RCS file: f:/miner/source/fix/fix.inc,v
76479 Working file: fix/fix.inc
76480 head: 1.7
76481 branch:
76482 description: Header for fixed-point library
76483 ----------------------------
76484 revision 1.7
76485 date: 1994/01/19 23:12:00;  author: matt;  state: Exp;
76486 Made fix_atan2() left-handed, like our coordinate system
76487 ----------------------------
76488 revision 1.6
76489 date: 1993/10/20 01:08:49;  author: matt;  state: Exp;
76490 Add fix_asin(), improved fix_atan2()
76491 ----------------------------
76492 revision 1.5
76493 date: 1993/10/19 23:53:36;  author: matt;  state: Exp;
76494 Added fix_atan2()
76495 ----------------------------
76496 revision 1.4
76497 date: 1993/10/19 22:32:12;  author: matt;  state: Exp;
76498 Added fix_acos()
76499 ----------------------------
76500 revision 1.3
76501 date: 1993/09/13 12:09:42;  author: matt;  state: Exp;
76502 Added extf,extfa macros to generate externdef's of fixed-point types
76503 ----------------------------
76504 revision 1.2
76505 date: 1993/09/10 11:54:12;  author: matt;  state: Exp;
76506 Added missing 'endif' at end of file
76507 ----------------------------
76508 revision 1.1
76509 date: 1993/08/24 12:59:36;  author: matt;  state: Exp;
76510 Initial revision
76511 =============================================================================
76512 RCS file: f:/miner/source/fix/fix.asm,v
76513 Working file: fix/fix.asm
76514 head: 1.16
76515 branch:
76516 description: Fixed-point rotines
76517 ----------------------------
76518 revision 1.16
76519 date: 1994/11/30 00:59:40;  author: mike;  state: Exp;
76520 optimizations.
76521 ----------------------------
76522 revision 1.15
76523 date: 1994/11/16 18:05:01;  author: matt;  state: Exp;
76524 Added error checking to atan2
76525 ----------------------------
76526 revision 1.14
76527 date: 1994/10/21 12:14:26;  author: matt;  state: Exp;
76528 For acos & asin, saturate at 1 instead of generate error
76529 ----------------------------
76530 revision 1.13
76531 date: 1994/05/18 17:15:56;  author: matt;  state: Exp;
76532 Allow sin & cos ptrs in C sincos func to be null
76533 ----------------------------
76534 revision 1.12
76535 date: 1994/02/10 21:23:08;  author: matt;  state: Exp;
76536 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
76537 ----------------------------
76538 revision 1.11
76539 date: 1994/01/19 23:11:26;  author: matt;  state: Exp;
76540 Made fix_atan2() left-handed, like our coordinate system
76541 ----------------------------
76542 revision 1.10
76543 date: 1993/10/26 18:51:49;  author: matt;  state: Exp;
76544 Fixed register trash in fix_atan2()
76545 ----------------------------
76546 revision 1.9
76547 date: 1993/10/20 01:09:01;  author: matt;  state: Exp;
76548 Add fix_asin(), improved fix_atan2()
76549 ----------------------------
76550 revision 1.8
76551 date: 1993/10/19 23:53:48;  author: matt;  state: Exp;
76552 Added fix_atan2()
76553 ----------------------------
76554 revision 1.7
76555 date: 1993/10/19 22:22:34;  author: matt;  state: Exp;
76556 Added fix_acos()
76557 ----------------------------
76558 revision 1.6
76559 date: 1993/09/10 19:13:44;  author: matt;  state: Exp;
76560 Fixed problem with quad_sqrt() when edx==0 and high bit of eax set
76561 ----------------------------
76562 revision 1.5
76563 date: 1993/08/24 13:00:17;  author: matt;  state: Exp;
76564 Adopted new standard, and made assembly-callable routines not trash any regs
76565 ----------------------------
76566 revision 1.4
76567 date: 1993/08/12 14:43:34;  author: matt;  state: Exp;
76568 Added rcsid
76569 ----------------------------
76570 revision 1.3
76571 date: 1993/08/06 15:59:49;  author: matt;  state: Exp;
76572 Added check for high bit of low longword set in quad_sqrt
76573 Changed long_sqrt to do longword moves and save the override
76574 ----------------------------
76575 revision 1.2
76576 date: 1993/08/04 19:56:03;  author: matt;  state: Exp;
76577 Fixed mistake in quad_sqrt first quess code
76578 ----------------------------
76579 revision 1.1
76580 date: 1993/08/03 17:45:26;  author: matt;  state: Exp;
76581 Initial revision
76582 =============================================================================
76583 RCS file: f:/miner/source/includes/types.inc,v
76584 Working file: includes/types.inc
76585 head: 1.2
76586 branch:
76587 description: Common types for use in Miner
76588 ----------------------------
76589 revision 1.2
76590 date: 1993/08/24 12:59:12;  author: matt;  state: Exp;
76591 Removed some bogus typedef's
76592 ----------------------------
76593 revision 1.1
76594 date: 1993/08/24 12:50:47;  author: matt;  state: Exp;
76595 Initial revision
76596 =============================================================================
76597 RCS file: f:/miner/source/includes/psmacros.inc,v
76598 Working file: includes/psmacros.inc
76599 head: 1.12
76600 branch:
76601 description: Useful macros.  Everyone should use these.
76602 ----------------------------
76603 revision 1.12
76604 date: 1994/12/06 14:32:19;  author: matt;  state: Exp;
76605 Made mprintf turn off if NMONO set
76606 ----------------------------
76607 revision 1.11
76608 date: 1994/11/27 23:18:19;  author: matt;  state: Exp;
76609 Made mprintf go away when debugging turned off
76610 ----------------------------
76611 revision 1.10
76612 date: 1994/03/25 18:00:34;  author: matt;  state: Exp;
76613 Added imulc of 6
76614 ----------------------------
76615 revision 1.9
76616 date: 1994/02/10 18:00:58;  author: matt;  state: Exp;
76617 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
76618 ----------------------------
76619 revision 1.8
76620 date: 1993/11/22 23:47:06;  author: matt;  state: Exp;
76621 debug macros were trashing eax
76622 ----------------------------
76623 revision 1.7
76624 date: 1993/11/04 12:39:25;  author: mike;  state: Exp;
76625 Modify imulc macro to support fast multiply by 36
76626 and multiply anything using imul, but give warning.
76627 ----------------------------
76628 revision 1.6
76629 date: 1993/10/19 21:17:31;  author: matt;  state: Exp;
76630 Added abs_eax macro
76631 ----------------------------
76632 revision 1.5
76633 date: 1993/09/26 22:28:21;  author: matt;  state: Exp;
76634 Removed extra register pushes in mprintf
76635 Make DEBUG_ON all uppercase since we seem to have case sensitivity on
76636 ----------------------------
76637 revision 1.4
76638 date: 1993/09/26 19:22:30;  author: matt;  state: Exp;
76639 Added imulc macro, to multiply a register by a constant.  It does not
76640 at this time support arbitrary constants, only 0,1,3,5,9, and powers of 2
76641 ----------------------------
76642 revision 1.3
76643 date: 1993/09/13 11:50:57;  author: matt;  state: Exp;
76644 Added 'b' & 'w', aliases for 'byte ptr' and 'word ptr'
76645 ----------------------------
76646 revision 1.2
76647 date: 1993/09/03 19:00:03;  author: matt;  state: Exp;
76648 Added breakpoint macros
76649 ----------------------------
76650 revision 1.1
76651 date: 1993/08/24 12:51:52;  author: matt;  state: Exp;
76652 Initial revision
76653 =============================================================================
76654 RCS file: f:/miner/source/div/div0.inc,v
76655 Working file: div/div0.inc
76656 head: 1.1
76657 branch:
76658 description: Header file for div0 library
76659 ----------------------------
76660 revision 1.1
76661 date: 1993/10/13 17:19:57;  author: matt;  state: Exp;
76662 Initial revision
76663 =============================================================================
76664 RCS file: f:/miner/source/fix/fix.inc,v
76665 Working file: fix/fix.inc
76666 head: 1.7
76667 branch:
76668 description: Header for fixed-point library
76669 ----------------------------
76670 revision 1.7
76671 date: 1994/01/19 23:12:00;  author: matt;  state: Exp;
76672 Made fix_atan2() left-handed, like our coordinate system
76673 ----------------------------
76674 revision 1.6
76675 date: 1993/10/20 01:08:49;  author: matt;  state: Exp;
76676 Add fix_asin(), improved fix_atan2()
76677 ----------------------------
76678 revision 1.5
76679 date: 1993/10/19 23:53:36;  author: matt;  state: Exp;
76680 Added fix_atan2()
76681 ----------------------------
76682 revision 1.4
76683 date: 1993/10/19 22:32:12;  author: matt;  state: Exp;
76684 Added fix_acos()
76685 ----------------------------
76686 revision 1.3
76687 date: 1993/09/13 12:09:42;  author: matt;  state: Exp;
76688 Added extf,extfa macros to generate externdef's of fixed-point types
76689 ----------------------------
76690 revision 1.2
76691 date: 1993/09/10 11:54:12;  author: matt;  state: Exp;
76692 Added missing 'endif' at end of file
76693 ----------------------------
76694 revision 1.1
76695 date: 1993/08/24 12:59:36;  author: matt;  state: Exp;
76696 Initial revision
76697 =============================================================================
76698 RCS file: f:/miner/source/2d/gr.inc,v
76699 Working file: 2d/gr.inc
76700 head: 1.9
76701 branch:
76702 description: Header file for 2d library
76703 ----------------------------
76704 revision 1.9
76705 date: 1994/11/09 23:04:50;  author: mike;  state: Exp;
76706 Add avg_color field.
76707 ----------------------------
76708 revision 1.8
76709 date: 1994/10/26 23:55:49;  author: john;  state: Exp;
76710 Took out roller; Took out inverse table.
76711 ----------------------------
76712 revision 1.7
76713 date: 1994/10/25 12:05:29;  author: john;  state: Exp;
76714 Added gr_fade_table and gr_palette.
76715 ----------------------------
76716 revision 1.6
76717 date: 1994/03/15 22:24:31;  author: matt;  state: Exp;
76718 Added gr_setcolor_ and gr_inverse_table
76719 ----------------------------
76720 revision 1.5
76721 date: 1994/03/14 16:56:05;  author: john;  state: Exp;
76722 Changed grs_bitmap structure to include bm_flags.
76723 ----------------------------
76724 revision 1.4
76725 date: 1994/02/04 13:21:12;  author: matt;  state: Exp;
76726 Added extern for rotate_bitmap
76727 ----------------------------
76728 revision 1.3
76729 date: 1993/12/21 19:58:14;  author: john;  state: Exp;
76730 added selector stuff
76731 ----------------------------
76732 revision 1.2
76733 date: 1993/10/15 16:26:24;  author: john;  state: Exp;
76734 *** empty log message ***
76735 ----------------------------
76736 revision 1.1
76737 date: 1993/10/15 16:21:18;  author: john;  state: Exp;
76738 Initial revision
76739 =============================================================================
76740 RCS file: f:/miner/source/includes/psmacros.inc,v
76741 Working file: includes/psmacros.inc
76742 head: 1.12
76743 branch:
76744 description: Useful macros.  Everyone should use these.
76745 ----------------------------
76746 revision 1.12
76747 date: 1994/12/06 14:32:19;  author: matt;  state: Exp;
76748 Made mprintf turn off if NMONO set
76749 ----------------------------
76750 revision 1.11
76751 date: 1994/11/27 23:18:19;  author: matt;  state: Exp;
76752 Made mprintf go away when debugging turned off
76753 ----------------------------
76754 revision 1.10
76755 date: 1994/03/25 18:00:34;  author: matt;  state: Exp;
76756 Added imulc of 6
76757 ----------------------------
76758 revision 1.9
76759 date: 1994/02/10 18:00:58;  author: matt;  state: Exp;
76760 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
76761 ----------------------------
76762 revision 1.8
76763 date: 1993/11/22 23:47:06;  author: matt;  state: Exp;
76764 debug macros were trashing eax
76765 ----------------------------
76766 revision 1.7
76767 date: 1993/11/04 12:39:25;  author: mike;  state: Exp;
76768 Modify imulc macro to support fast multiply by 36
76769 and multiply anything using imul, but give warning.
76770 ----------------------------
76771 revision 1.6
76772 date: 1993/10/19 21:17:31;  author: matt;  state: Exp;
76773 Added abs_eax macro
76774 ----------------------------
76775 revision 1.5
76776 date: 1993/09/26 22:28:21;  author: matt;  state: Exp;
76777 Removed extra register pushes in mprintf
76778 Make DEBUG_ON all uppercase since we seem to have case sensitivity on
76779 ----------------------------
76780 revision 1.4
76781 date: 1993/09/26 19:22:30;  author: matt;  state: Exp;
76782 Added imulc macro, to multiply a register by a constant.  It does not
76783 at this time support arbitrary constants, only 0,1,3,5,9, and powers of 2
76784 ----------------------------
76785 revision 1.3
76786 date: 1993/09/13 11:50:57;  author: matt;  state: Exp;
76787 Added 'b' & 'w', aliases for 'byte ptr' and 'word ptr'
76788 ----------------------------
76789 revision 1.2
76790 date: 1993/09/03 19:00:03;  author: matt;  state: Exp;
76791 Added breakpoint macros
76792 ----------------------------
76793 revision 1.1
76794 date: 1993/08/24 12:51:52;  author: matt;  state: Exp;
76795 Initial revision
76796 =============================================================================
76797 RCS file: f:/miner/source/includes/types.inc,v
76798 Working file: includes/types.inc
76799 head: 1.2
76800 branch:
76801 description: Common types for use in Miner
76802 ----------------------------
76803 revision 1.2
76804 date: 1993/08/24 12:59:12;  author: matt;  state: Exp;
76805 Removed some bogus typedef's
76806 ----------------------------
76807 revision 1.1
76808 date: 1993/08/24 12:50:47;  author: matt;  state: Exp;
76809 Initial revision
76810 =============================================================================
76811 RCS file: f:/miner/source/vecmat/vecmat.inc,v
76812 Working file: vecmat/vecmat.inc
76813 head: 1.21
76814 branch:
76815 description: Header file for vector/matrix library
76816 ----------------------------
76817 revision 1.21
76818 date: 1994/12/13 14:44:21;  author: matt;  state: Exp;
76819 Added vm_vector_2_matrix_norm()
76820 ----------------------------
76821 revision 1.20
76822 date: 1994/09/11 19:23:04;  author: matt;  state: Exp;
76823 Added vm_vec_normalized_dir_quick()
76824 ----------------------------
76825 revision 1.19
76826 date: 1994/07/19 18:52:55;  author: matt;  state: Exp;
76827 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
76828 ----------------------------
76829 revision 1.18
76830 date: 1994/06/16 18:24:31;  author: matt;  state: Exp;
76831 Added vm_vec_mag_quick()
76832 ----------------------------
76833 revision 1.17
76834 date: 1994/05/19 12:07:20;  author: matt;  state: Exp;
76835 Fixed globals and macros and added a constant
76836 ----------------------------
76837 revision 1.16
76838 date: 1994/05/18 22:28:55;  author: matt;  state: Exp;
76839 Added function vm_vec_normalized_dir()
76840 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
76841 Added C global static vars vmd_zero_vector & vmd_identity_matrix
76842 ----------------------------
76843 revision 1.15
76844 date: 1994/05/18 21:45:05;  author: matt;  state: Exp;
76845 Added functions:
76846   vm_extract_angles_vector()
76847   vm_extract_angles_vector_normalized()
76848   vm_vec_copy_normalize()
76849 ----------------------------
76850 revision 1.14
76851 date: 1994/05/13 12:42:09;  author: matt;  state: Exp;
76852 Added new function, vm_vec_dist_quick(), which does an approximation.
76853 ----------------------------
76854 revision 1.13
76855 date: 1994/03/30 15:43:54;  author: matt;  state: Exp;
76856 Added two functions, vm_vec_scale_add() & vm_vec_scale_add2()
76857 ----------------------------
76858 revision 1.12
76859 date: 1994/01/31 19:45:24;  author: matt;  state: Exp;
76860 Added function vm_extract_angles_matrix()
76861 ----------------------------
76862 revision 1.11
76863 date: 1993/12/21 19:46:29;  author: matt;  state: Exp;
76864 Added function vm_dist_to_plane()
76865 ----------------------------
76866 revision 1.10
76867 date: 1993/12/13 17:26:40;  author: matt;  state: Exp;
76868 Added vm_vec_dist()
76869 ----------------------------
76870 revision 1.9
76871 date: 1993/12/02 12:44:04;  author: matt;  state: Exp;
76872 New functions: vm_vec_copy_scale(), vm_vec_scale2()
76873 ----------------------------
76874 revision 1.8
76875 date: 1993/10/29 22:39:08;  author: matt;  state: Exp;
76876 Changed matrix order, making direction vectors the rows
76877 ----------------------------
76878 revision 1.7
76879 date: 1993/10/25 11:49:58;  author: matt;  state: Exp;
76880 Made vm_vec_delta_ang() take optional forward vector to return signed delta
76881 ----------------------------
76882 revision 1.6
76883 date: 1993/10/20 01:10:04;  author: matt;  state: Exp;
76884 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
76885 ----------------------------
76886 revision 1.5
76887 date: 1993/09/28 12:16:04;  author: matt;  state: Exp;
76888 Added func vm_vector_2_matrix()
76889 ----------------------------
76890 revision 1.4
76891 date: 1993/09/24 21:19:14;  author: matt;  state: Exp;
76892 Added vm_vec_avg() and vm_vec_avg4()
76893 ----------------------------
76894 revision 1.3
76895 date: 1993/09/20 14:56:35;  author: matt;  state: Exp;
76896 Added new function, vm_vec_perp()
76897 ----------------------------
76898 revision 1.2
76899 date: 1993/09/17 11:09:57;  author: matt;  state: Exp;
76900 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
76901 ----------------------------
76902 revision 1.1
76903 date: 1993/09/16 20:19:29;  author: matt;  state: Exp;
76904 Initial revision
76905 =============================================================================
76906 RCS file: f:/miner/source/3d/3d.inc,v
76907 Working file: 3d/3d.inc
76908 head: 1.30
76909 branch:
76910 description: Header file for 3d library
76911 ----------------------------
76912 revision 1.30
76913 date: 1995/02/09 22:00:50;  author: matt;  state: Exp;
76914 Removed dependence on divide overflow handler; we now check for overflow
76915 before dividing.  This fixed problems on some TI chips.
76916 ----------------------------
76917 revision 1.29
76918 date: 1994/11/11 19:22:15;  author: matt;  state: Exp;
76919 Added new function, g3_calc_point_depth()
76920 ----------------------------
76921 revision 1.28
76922 date: 1994/09/09 14:24:13;  author: matt;  state: Exp;
76923 Added support for glowing textures, to add engine glow to Descent.
76924 ----------------------------
76925 revision 1.27
76926 date: 1994/09/01 10:42:26;  author: matt;  state: Exp;
76927 Blob routine, renamed g3_draw_bitmap(), now takes seperate 3d width & height.
76928 ----------------------------
76929 revision 1.26
76930 date: 1994/07/29 18:15:53;  author: matt;  state: Exp;
76931 Added instance by angles, and corrected parms for g3_init()
76932 ----------------------------
76933 revision 1.25
76934 date: 1994/07/25 00:00:01;  author: matt;  state: Exp;
76935 Made 3d no longer deal with point numbers, but only with pointers.
76936 ----------------------------
76937 revision 1.24
76938 date: 1994/07/22 17:57:57;  author: matt;  state: Exp;
76939 Changed the name of the rod functions, and took out some debugging code
76940 ----------------------------
76941 revision 1.23
76942 date: 1994/06/07 16:49:35;  author: matt;  state: Exp;
76943 Made interpreter take lighting value as parm, rather than in global var
76944 ----------------------------
76945 revision 1.22
76946 date: 1994/05/31 18:35:19;  author: matt;  state: Exp;
76947 Added light value to g3_draw_facing_bitmap()
76948 ----------------------------
76949 revision 1.21
76950 date: 1994/05/30 22:48:15;  author: matt;  state: Exp;
76951 Added support for morph effect
76952 ----------------------------
76953 revision 1.20
76954 date: 1994/05/30 11:36:25;  author: matt;  state: Exp;
76955 Added g3_set_special_render() to allow a user to specify functions to
76956 call for 2d draws.
76957 ----------------------------
76958 revision 1.19
76959 date: 1994/05/19 21:46:30;  author: matt;  state: Exp;
76960 Moved texture lighting out of 3d and into the game
76961 ----------------------------
76962 revision 1.18
76963 date: 1994/04/19 18:26:41;  author: matt;  state: Exp;
76964 Added g3_draw_sphere() function.
76965 ----------------------------
76966 revision 1.17
76967 date: 1994/03/25 18:22:39;  author: matt;  state: Exp;
76968 g3_draw_polygon_model() now takes ptr to list of angles
76969 ----------------------------
76970 revision 1.16
76971 date: 1994/03/15 21:23:14;  author: matt;  state: Exp;
76972 Added interpreter functions
76973 ----------------------------
76974 revision 1.15
76975 date: 1994/02/15 17:37:35;  author: matt;  state: Exp;
76976 New function, g3_draw_blob()
76977 ----------------------------
76978 revision 1.14
76979 date: 1994/02/10 18:00:10;  author: matt;  state: Exp;
76980 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
76981 ----------------------------
76982 revision 1.13
76983 date: 1994/02/09 11:47:34;  author: matt;  state: Exp;
76984 Added rod & delta point functions
76985 ----------------------------
76986 revision 1.12
76987 date: 1994/01/26 12:38:20;  author: matt;  state: Exp;
76988 Added function g3_compute_lighting_value()
76989 ----------------------------
76990 revision 1.11
76991 date: 1994/01/24 14:08:24;  author: matt;  state: Exp;
76992 Added instancing functions
76993 ----------------------------
76994 revision 1.10
76995 date: 1994/01/22 18:22:07;  author: matt;  state: Exp;
76996 New lighting stuff now done in 3d; g3_draw_tmap() takes lighting parm
76997 ----------------------------
76998 revision 1.9
76999 date: 1994/01/20 17:21:46;  author: matt;  state: Exp;
77000 New function g3_compute_sky_polygon()
77001 ----------------------------
77002 revision 1.8
77003 date: 1994/01/14 17:21:02;  author: matt;  state: Exp;
77004 Added new function g3_draw_horizon()
77005 ----------------------------
77006 revision 1.6
77007 date: 1993/12/20 20:21:43;  author: matt;  state: Exp;
77008 Added g3_point_2_vec()
77009 ----------------------------
77010 revision 1.5
77011 date: 1993/12/05 23:47:13;  author: matt;  state: Exp;
77012 Added function g3_draw_line_ptrs()
77013 ----------------------------
77014 revision 1.4
77015 date: 1993/11/21 20:08:16;  author: matt;  state: Exp;
77016 Added functions g3_rotate_point & g3_draw_object
77017 ----------------------------
77018 revision 1.3
77019 date: 1993/11/04 18:49:42;  author: matt;  state: Exp;
77020 Made g3_init() have functionality of g3_set_points(), which I killed
77021 ----------------------------
77022 revision 1.2
77023 date: 1993/11/04 12:38:29;  author: mike;  state: Exp;
77024 Add PF_LVS, flag for lighting value
77025 ----------------------------
77026 revision 1.1
77027 date: 1993/10/29 22:20:27;  author: matt;  state: Exp;
77028 Initial revision
77029 =============================================================================
77030 RCS file: f:/miner/source/main/cockpit.asm,v
77031 Working file: main/cockpit.asm
77032 head: 2.0
77033 branch:
77034 description: Routine to copy the 3d view to the screen, leaving out
77035 parts that are in the cockpit.
77036 ----------------------------
77037 revision 2.0
77038 date: 1995/02/27 11:26:51;  author: john;  state: Exp;
77039 New version 2.0, which has no anonymous unions, builds with
77040 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
77041 ----------------------------
77042 revision 1.2
77043 date: 1994/01/24 18:55:36;  author: john;  state: Exp;
77044 initial version.
77045 ----------------------------
77046 revision 1.1
77047 date: 1994/01/24 17:58:16;  author: john;  state: Exp;
77048 Initial revision
77049 =============================================================================
77050 RCS file: f:/miner/source/main/int3hand.asm,v
77051 Working file: main/int3hand.asm
77052 head: 2.0
77053 branch:
77054 description: Rountine to handle int3's when debugger not present
77055 ----------------------------
77056 revision 2.0
77057 date: 1995/02/27 11:26:43;  author: john;  state: Exp;
77058 New version 2.0, which has no anonymous unions, builds with
77059 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
77060 ----------------------------
77061 revision 1.2
77062 date: 1993/10/15 11:29:45;  author: matt;  state: Exp;
77063 Made stack bigger
77064 ----------------------------
77065 revision 1.1
77066 date: 1993/10/15 11:27:45;  author: matt;  state: Exp;
77067 Initial revision
77068 =============================================================================
77069 RCS file: f:/miner/source/main/ipx_esr.asm,v
77070 Working file: main/ipx_esr.asm
77071 head: 2.0
77072 branch:
77073 description: Ipx esr
77074 ----------------------------
77075 revision 2.0
77076 date: 1995/02/27 11:32:31;  author: john;  state: Exp;
77077 New version 2.0, which has no anonymous unions, builds with
77078 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
77079 ----------------------------
77080 revision 1.2
77081 date: 1994/08/04 19:17:25;  author: john;  state: Exp;
77082 Inbetween version of network stuff.
77083 ----------------------------
77084 revision 1.1
77085 date: 1994/08/02 11:41:09;  author: john;  state: Exp;
77086 Initial revision
77087 =============================================================================
77088 RCS file: f:/miner/source/main/soscodec.asm,v
77089 Working file: main/soscodec.asm
77090 head: 2.0
77091 branch:
77092 description: Routines for compressing digital sounds.
77093 ----------------------------
77094 revision 2.0
77095 date: 1995/02/27 11:29:36;  author: john;  state: Exp;
77096 New version 2.0, which has no anonymous unions, builds with
77097 Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
77098 ----------------------------
77099 revision 1.2
77100 date: 1994/11/30 14:08:46;  author: john;  state: Exp;
77101 First version.
77102 ----------------------------
77103 revision 1.1
77104 date: 1994/11/29 14:33:51;  author: john;  state: Exp;
77105 Initial revision
77106 =============================================================================
77107 RCS file: f:/miner/source/texmap/lightabs.asm,v
77108 Working file: texmap/lightabs.asm
77109 head: 1.3
77110 branch:
77111 description: Lighting tables for texture mapper.
77112 ----------------------------
77113 revision 1.3
77114 date: 1994/11/30 00:55:57;  author: mike;  state: Exp;
77115 *** empty log message ***
77116 ----------------------------
77117 revision 1.2
77118 date: 1994/10/26 23:22:00;  author: mike;  state: Exp;
77119 kill unused stuff.
77120 ----------------------------
77121 revision 1.1
77122 date: 1993/09/08 17:29:15;  author: mike;  state: Exp;
77123 Initial revision
77124 =============================================================================
77125 RCS file: f:/miner/source/texmap/tmap_per.asm,v
77126 Working file: texmap/tmap_per.asm
77127 head: 1.18
77128 branch:
77129 description: Perspective texture mapper inner loop.
77130 ----------------------------
77131 revision 1.18
77132 date: 1994/05/03 11:08:32;  author: mike;  state: Exp;
77133 Trap divide overflows.
77134 ----------------------------
77135 revision 1.17
77136 date: 1994/04/21 15:03:41;  author: mike;  state: Exp;
77137 make faster.
77138 ----------------------------
77139 revision 1.16
77140 date: 1994/04/08 16:46:57;  author: john;  state: Exp;
77141 Made 32 fade levels. Hacked.
77142 ----------------------------
77143 revision 1.15
77144 date: 1994/03/31 08:35:18;  author: mike;  state: Exp;
77145 Fix quantized-by-4 bug in inner loop.
77146 ----------------------------
77147 revision 1.14
77148 date: 1994/03/14 17:41:14;  author: mike;  state: Exp;
77149 Fix bug in unlighted version.
77150 ----------------------------
77151 revision 1.13
77152 date: 1994/03/14 15:45:14;  author: mike;  state: Exp;
77153 streamline code.
77154 ----------------------------
77155 revision 1.12
77156 date: 1994/01/14 14:01:58;  author: mike;  state: Exp;
77157 *** empty log message ***
77158 ----------------------------
77159 revision 1.11
77160 date: 1993/12/18 14:43:44;  author: john;  state: Exp;
77161 Messed around with doing 1/z, the u*(1/z) and v*(1/z)
77162 (Went from 23 fps to 21 fps... not good! )----------------------------
77163 revision 1.10
77164 date: 1993/12/17 16:14:17;  author: john;  state: Exp;
77165 Split lighted/nonlighted, so there is no cmp lighting
77166 in the inner loop. 
77167 ----------------------------
77168 revision 1.9
77169 date: 1993/12/17 12:34:29;  author: john;  state: Exp;
77170 Made leftover bytes use linear approx instead of correct...
77171 should save about 8 divides per scanline on average.
77172 Also, took out anti-aliasing code and rearranged to
77173 order of some instructions to help on 486 pipelining.
77174 (The anti-aliasing code did *not* look good, so I
77175 figure there was no reason to keep it in. )
77176 ----------------------------
77177 revision 1.8
77178 date: 1993/12/16 18:37:52;  author: mike;  state: Exp;
77179 Align some stuff on 4 byte boundaries.
77180 ----------------------------
77181 revision 1.7
77182 date: 1993/11/30 08:44:18;  author: john;  state: Exp;
77183 Made selector set check for < 64*64 bitmaps.
77184 ----------------------------
77185 revision 1.6
77186 date: 1993/11/23 17:25:26;  author: john;  state: Exp;
77187 Added safety "and eax, 0fffh" in lighting lookup.
77188 ----------------------------
77189 revision 1.5
77190 date: 1993/11/23 15:08:52;  author: mike;  state: Exp;
77191 Fixed lighting bug. 
77192 ----------------------------
77193 revision 1.4
77194 date: 1993/11/23 14:38:50;  author: john;  state: Exp;
77195 optimized NORMAL code by switching EBX and ESI, so BH can be used in
77196 the lighting process.
77197 ----------------------------
77198 revision 1.3
77199 date: 1993/11/23 14:30:53;  author: john;  state: Exp;
77200 Made the perspective tmapper do 1/8 divides; added lighting.
77201 ----------------------------
77202 revision 1.2
77203 date: 1993/11/22 10:24:59;  author: mike;  state: Exp;
77204 *** empty log message ***
77205 ----------------------------
77206 revision 1.1
77207 date: 1993/09/08 17:29:53;  author: mike;  state: Exp;
77208 Initial revision
77209 =============================================================================
77210 RCS file: f:/miner/source/texmap/tmapfade.asm,v
77211 Working file: texmap/tmapfade.asm
77212 head: 1.6
77213 branch:
77214 description: .
77215 ----------------------------
77216 revision 1.6
77217 date: 1995/02/20 18:23:01;  author: john;  state: Exp;
77218 Put all the externs in the assembly modules into tmap_inc.asm.
77219 Also, moved all the C versions of the inner loops into a new module, 
77220 scanline.c.
77221 ----------------------------
77222 revision 1.5
77223 date: 1995/02/20 17:09:15;  author: john;  state: Exp;
77224 Added code so that you can build the tmapper with no assembly!
77225 ----------------------------
77226 revision 1.4
77227 date: 1994/12/02 23:29:36;  author: mike;  state: Exp;
77228 change jb/ja to jl/jg.
77229 ----------------------------
77230 revision 1.3
77231 date: 1994/11/30 00:57:36;  author: mike;  state: Exp;
77232 *** empty log message ***
77233 ----------------------------
77234 revision 1.2
77235 date: 1994/10/06 18:38:49;  author: john;  state: Exp;
77236 Added the ability to fade a scanline by calling gr_upoly_tmap
77237 with Gr_scanline_darkening_level with a value < MAX_FADE_LEVELS.
77238 ----------------------------
77239 revision 1.1
77240 date: 1994/10/06 18:04:42;  author: john;  state: Exp;
77241 Initial revision
77242 =============================================================================
77243 RCS file: f:/miner/source/texmap/tmap_16.asm,v
77244 Working file: texmap/tmap_16.asm
77245 head: 1.4
77246 branch:
77247 description: 16 bits per pixel texture mapper
77248 ----------------------------
77249 revision 1.4
77250 date: 1994/11/30 00:56:32;  author: mike;  state: Exp;
77251 optimization.
77252 ----------------------------
77253 revision 1.3
77254 date: 1994/11/12 16:39:16;  author: mike;  state: Exp;
77255 jae to ja.
77256 ----------------------------
77257 revision 1.2
77258 date: 1993/11/22 10:23:49;  author: mike;  state: Exp;
77259 *** empty log message ***
77260 ----------------------------
77261 revision 1.1
77262 date: 1993/09/08 17:29:17;  author: mike;  state: Exp;
77263 Initial revision
77264 =============================================================================
77265 RCS file: f:/miner/source/texmap/tmap_16g.asm,v
77266 Working file: texmap/tmap_16g.asm
77267 head: 1.4
77268 branch:
77269 description: inner loop of rgb lighted linear texture mapper for 16 bits/pixel
77270 ----------------------------
77271 revision 1.4
77272 date: 1994/11/30 00:56:37;  author: mike;  state: Exp;
77273 optimization.
77274 ----------------------------
77275 revision 1.3
77276 date: 1994/11/12 16:39:23;  author: mike;  state: Exp;
77277 jae to ja.
77278 ----------------------------
77279 revision 1.2
77280 date: 1993/11/22 10:24:28;  author: mike;  state: Exp;
77281 *** empty log message ***
77282 ----------------------------
77283 revision 1.1
77284 date: 1993/09/08 17:29:17;  author: mike;  state: Exp;
77285 Initial revision
77286 =============================================================================
77287 RCS file: f:/miner/source/texmap/tmap_16l.asm,v
77288 Working file: texmap/tmap_16l.asm
77289 head: 1.4
77290 branch:
77291 description: inner loop of 16 bit per pixel lighted texture mapper
77292 ----------------------------
77293 revision 1.4
77294 date: 1994/11/30 00:56:39;  author: mike;  state: Exp;
77295 optimization.
77296 ----------------------------
77297 revision 1.3
77298 date: 1994/11/12 16:39:31;  author: mike;  state: Exp;
77299 jae to ja.
77300 ----------------------------
77301 revision 1.2
77302 date: 1993/11/22 10:24:32;  author: mike;  state: Exp;
77303 *** empty log message ***
77304 ----------------------------
77305 revision 1.1
77306 date: 1993/09/08 17:29:20;  author: mike;  state: Exp;
77307 Initial revision
77308 =============================================================================
77309 RCS file: f:/miner/source/texmap/tmap_16p.asm,v
77310 Working file: texmap/tmap_16p.asm
77311 head: 1.4
77312 branch:
77313 description: Perspective 16 bit per pixel texture mapper
77314 ----------------------------
77315 revision 1.4
77316 date: 1994/11/30 00:56:40;  author: mike;  state: Exp;
77317 optimization.
77318 ----------------------------
77319 revision 1.3
77320 date: 1994/11/12 16:39:32;  author: mike;  state: Exp;
77321 jae to ja.
77322 ----------------------------
77323 revision 1.2
77324 date: 1993/11/22 10:24:43;  author: mike;  state: Exp;
77325 *** empty log message ***
77326 ----------------------------
77327 revision 1.1
77328 date: 1993/09/08 17:29:21;  author: mike;  state: Exp;
77329 Initial revision
77330 =============================================================================
77331 RCS file: f:/miner/source/texmap/tmap_16r.asm,v
77332 Working file: texmap/tmap_16r.asm
77333 head: 1.4
77334 branch:
77335 description: inner loop of rgb lighted linear texture mapper for 16 bits/pixel
77336 ----------------------------
77337 revision 1.4
77338 date: 1994/11/30 00:56:41;  author: mike;  state: Exp;
77339 optimization.
77340 ----------------------------
77341 revision 1.3
77342 date: 1994/11/12 16:39:33;  author: mike;  state: Exp;
77343 jae to ja.
77344 ----------------------------
77345 revision 1.2
77346 date: 1993/11/22 10:24:47;  author: mike;  state: Exp;
77347 *** empty log message ***
77348 ----------------------------
77349 revision 1.1
77350 date: 1993/09/08 17:29:45;  author: mike;  state: Exp;
77351 Initial revision
77352 =============================================================================
77353 RCS file: f:/miner/source/texmap/tmap_per.asm,v
77354 Working file: texmap/tmap_per.asm
77355 head: 1.8
77356 branch:
77357 description: Perspective texture mapper inner loop.
77358 ----------------------------
77359 revision 1.8
77360 date: 1993/12/16 18:37:52;  author: mike;  state: Exp;
77361 Align some stuff on 4 byte boundaries.
77362 ----------------------------
77363 revision 1.7
77364 date: 1993/11/30 08:44:18;  author: john;  state: Exp;
77365 Made selector set check for < 64*64 bitmaps.
77366 ----------------------------
77367 revision 1.6
77368 date: 1993/11/23 17:25:26;  author: john;  state: Exp;
77369 Added safety "and eax, 0fffh" in lighting lookup.
77370 ----------------------------
77371 revision 1.5
77372 date: 1993/11/23 15:08:52;  author: mike;  state: Exp;
77373 Fixed lighting bug. 
77374 ----------------------------
77375 revision 1.4
77376 date: 1993/11/23 14:38:50;  author: john;  state: Exp;
77377 optimized NORMAL code by switching EBX and ESI, so BH can be used in
77378 the lighting process.
77379 ----------------------------
77380 revision 1.3
77381 date: 1993/11/23 14:30:53;  author: john;  state: Exp;
77382 Made the perspective tmapper do 1/8 divides; added lighting.
77383 ----------------------------
77384 revision 1.2
77385 date: 1993/11/22 10:24:59;  author: mike;  state: Exp;
77386 *** empty log message ***
77387 ----------------------------
77388 revision 1.1
77389 date: 1993/09/08 17:29:53;  author: mike;  state: Exp;
77390 Initial revision
77391 =============================================================================
77392 RCS file: f:/miner/source/texmap/tmap_fl1.asm,v
77393 Working file: texmap/tmap_fl1.asm
77394 head: 1.6
77395 branch:
77396 description: Pseudo-flat shader.  Renders nothing for transparent, color #1 otherwise.
77397 ----------------------------
77398 revision 1.6
77399 date: 1995/02/20 18:22:08;  author: john;  state: Exp;
77400 Put all the externs in the assembly modules into tmap_inc.asm.
77401 Also, moved all the C versions of the inner loops into a new module, 
77402 scanline.c.
77403 ----------------------------
77404 revision 1.5
77405 date: 1994/12/04 20:37:11;  author: mike;  state: Exp;
77406 fix bug caused by changed interface.
77407 ----------------------------
77408 revision 1.4
77409 date: 1994/11/12 16:39:34;  author: mike;  state: Exp;
77410 jae to ja.
77411 ----------------------------
77412 revision 1.3
77413 date: 1994/05/03 11:08:48;  author: mike;  state: Exp;
77414 who knows...
77415 ----------------------------
77416 revision 1.2
77417 date: 1994/04/21 15:04:08;  author: mike;  state: Exp;
77418 Write the whole darn thing.
77419 ----------------------------
77420 revision 1.1
77421 date: 1994/04/21 13:50:26;  author: mike;  state: Exp;
77422 Initial revision
77423 =============================================================================
77424 RCS file: f:/miner/source/texmap/tmap_flt.asm,v
77425 Working file: texmap/tmap_flt.asm
77426 head: 1.10
77427 branch:
77428 description: Flat shader derived from texture mapper (kind of slow)
77429 ----------------------------
77430 revision 1.10
77431 date: 1995/02/20 18:22:53;  author: john;  state: Exp;
77432 Put all the externs in the assembly modules into tmap_inc.asm.
77433 Also, moved all the C versions of the inner loops into a new module, 
77434 scanline.c.
77435 ----------------------------
77436 revision 1.9
77437 date: 1995/02/20 17:08:51;  author: john;  state: Exp;
77438 Added code so that you can build the tmapper with no assembly!
77439 ----------------------------
77440 revision 1.8
77441 date: 1994/12/02 23:29:21;  author: mike;  state: Exp;
77442 change jb/ja to jl/jg.
77443 ----------------------------
77444 revision 1.7
77445 date: 1994/11/12 16:39:35;  author: mike;  state: Exp;
77446 jae to ja.
77447 ----------------------------
77448 revision 1.6
77449 date: 1994/08/09 11:27:53;  author: john;  state: Exp;
77450 Added cthru mode.
77451 ----------------------------
77452 revision 1.5
77453 date: 1994/07/08 17:43:11;  author: john;  state: Exp;
77454 Added flat-shaded-zbuffered polygon.
77455 ----------------------------
77456 revision 1.4
77457 date: 1994/04/08 16:25:43;  author: mike;  state: Exp;
77458 optimize inner loop of flat shader.
77459 ----------------------------
77460 revision 1.3
77461 date: 1994/03/31 08:34:20;  author: mike;  state: Exp;
77462 Optimized (well, speeded-up) inner loop for tmap-based flat shader.
77463 ----------------------------
77464 revision 1.2
77465 date: 1993/11/22 10:24:57;  author: mike;  state: Exp;
77466 *** empty log message ***
77467 ----------------------------
77468 revision 1.1
77469 date: 1993/09/08 17:29:46;  author: mike;  state: Exp;
77470 Initial revision
77471 =============================================================================
77472 RCS file: f:/miner/source/texmap/tmap_inc.asm,v
77473 Working file: texmap/tmap_inc.asm
77474 head: 1.10
77475 branch:
77476 description: Mike's include file for the texture mapper library.
77477 ----------------------------
77478 revision 1.10
77479 date: 1995/02/20 18:22:52;  author: john;  state: Exp;
77480 Put all the externs in the assembly modules into tmap_inc.asm.
77481 Also, moved all the C versions of the inner loops into a new module, 
77482 scanline.c.
77483 ----------------------------
77484 revision 1.9
77485 date: 1994/12/02 23:29:45;  author: mike;  state: Exp;
77486 Add y_pointers.
77487 ----------------------------
77488 revision 1.8
77489 date: 1994/11/12 16:39:36;  author: mike;  state: Exp;
77490 jae to ja.
77491 ----------------------------
77492 revision 1.7
77493 date: 1994/10/26 23:27:39;  author: john;  state: Exp;
77494 Took out references to gr_inverse_table.
77495 ----------------------------
77496 revision 1.6
77497 date: 1994/10/26 23:21:55;  author: mike;  state: Exp;
77498 kill unused stuff.
77499 ----------------------------
77500 revision 1.5
77501 date: 1994/07/27 18:39:20;  author: john;  state: Exp;
77502 Took out references to blend table
77503 ----------------------------
77504 revision 1.4
77505 date: 1994/01/31 15:40:17;  author: mike;  state: Exp;
77506 Add window_height.
77507 ----------------------------
77508 revision 1.3
77509 date: 1993/12/07 12:27:48;  author: john;  state: Exp;
77510 Moved bmd_palette to gr_palette
77511 ----------------------------
77512 revision 1.2
77513 date: 1993/11/22 10:24:10;  author: mike;  state: Exp;
77514 *** empty log message ***
77515 ----------------------------
77516 revision 1.1
77517 date: 1993/09/08 17:29:47;  author: mike;  state: Exp;
77518 Initial revision
77519 =============================================================================
77520 RCS file: f:/miner/source/texmap/tmap_kl.asm,v
77521 Working file: texmap/tmap_kl.asm
77522 head: 1.3
77523 branch:
77524 description: Linear, lighted texture mapper inner loop with a constant lighting value.
77525 ----------------------------
77526 revision 1.3
77527 date: 1994/11/30 00:56:50;  author: mike;  state: Exp;
77528 optimization.
77529 ----------------------------
77530 revision 1.2
77531 date: 1994/11/12 16:39:38;  author: mike;  state: Exp;
77532 jae to ja.
77533 ----------------------------
77534 revision 1.1
77535 date: 1994/05/10 09:37:52;  author: mike;  state: Exp;
77536 Initial revision
77537 ----------------------------
77538 revision 1.1
77539 date: 1993/09/08 17:29:52;  author: mike;  state: Exp;
77540 Initial revision
77541 =============================================================================
77542 RCS file: f:/miner/source/texmap/tmap_ld.asm,v
77543 Working file: texmap/tmap_ld.asm
77544 head: 1.4
77545 branch:
77546 description: Inner loop of rgb lighted dithered linear texture mapper
77547 ----------------------------
77548 revision 1.4
77549 date: 1994/11/30 00:56:53;  author: mike;  state: Exp;
77550 optimization.
77551 ----------------------------
77552 revision 1.3
77553 date: 1994/11/12 16:39:40;  author: mike;  state: Exp;
77554 jae to ja.
77555 ----------------------------
77556 revision 1.2
77557 date: 1993/11/22 10:23:58;  author: mike;  state: Exp;
77558 *** empty log message ***
77559 ----------------------------
77560 revision 1.1
77561 date: 1993/09/08 17:29:49;  author: mike;  state: Exp;
77562 Initial revision
77563 =============================================================================
77564 RCS file: f:/miner/source/texmap/tmap_lin.asm,v
77565 Working file: texmap/tmap_lin.asm
77566 head: 1.3
77567 branch:
77568 description: Linearly interpolating texture mapper inner loop
77569 ----------------------------
77570 revision 1.3
77571 date: 1995/02/20 18:22:57;  author: john;  state: Exp;
77572 Put all the externs in the assembly modules into tmap_inc.asm.
77573 Also, moved all the C versions of the inner loops into a new module, 
77574 scanline.c.
77575 ----------------------------
77576 revision 1.2
77577 date: 1995/02/20 17:09:10;  author: john;  state: Exp;
77578 Added code so that you can build the tmapper with no assembly!
77579 ----------------------------
77580 revision 1.1
77581 date: 1994/11/30 12:24:04;  author: mike;  state: Exp;
77582 Initial revision
77583 ----------------------------
77584 revision 1.6
77585 date: 1994/11/12 16:39:40;  author: mike;  state: Exp;
77586 jae to ja.
77587 ----------------------------
77588 revision 1.5
77589 date: 1994/02/10 21:24:43;  author: matt;  state: Exp;
77590 Got rid of debug_on set
77591 ----------------------------
77592 revision 1.4
77593 date: 1994/01/31 15:39:53;  author: mike;  state: Exp;
77594 Write additional inner loop for transparency.
77595 ----------------------------
77596 revision 1.3
77597 date: 1994/01/26 11:50:04;  author: john;  state: Exp;
77598 Added transparency to linear unlighted texture mapper.
77599 ----------------------------
77600 revision 1.2
77601 date: 1993/11/22 10:24:36;  author: mike;  state: Exp;
77602 *** empty log message ***
77603 ----------------------------
77604 revision 1.1
77605 date: 1993/09/08 17:29:50;  author: mike;  state: Exp;
77606 Initial revision
77607 =============================================================================
77608 RCS file: f:/miner/source/texmap/tmap_ll.asm,v
77609 Working file: texmap/tmap_ll.asm
77610 head: 1.10
77611 branch:
77612 description: Linear, lighted texture mapper inner loop.
77613 ----------------------------
77614 revision 1.10
77615 date: 1995/02/20 18:22:54;  author: john;  state: Exp;
77616 Put all the externs in the assembly modules into tmap_inc.asm.
77617 Also, moved all the C versions of the inner loops into a new module, 
77618 scanline.c.
77619 ----------------------------
77620 revision 1.9
77621 date: 1995/02/20 17:09:06;  author: john;  state: Exp;
77622 Added code so that you can build the tmapper with no assembly!
77623 ----------------------------
77624 revision 1.8
77625 date: 1994/11/19 23:52:56;  author: mike;  state: Exp;
77626 rip out big unrolled loop to save 25K....remember when we cared more about speed?
77627 ----------------------------
77628 revision 1.7
77629 date: 1994/11/12 16:39:41;  author: mike;  state: Exp;
77630 jae to ja.
77631 ----------------------------
77632 revision 1.6
77633 date: 1994/03/14 15:45:08;  author: mike;  state: Exp;
77634 streamline code.
77635 ----------------------------
77636 revision 1.5
77637 date: 1994/01/24 13:13:12;  author: mike;  state: Exp;
77638 dithering.
77639 ----------------------------
77640 revision 1.4
77641 date: 1994/01/14 14:02:47;  author: mike;  state: Exp;
77642 *** empty log message ***
77643 ----------------------------
77644 revision 1.3
77645 date: 1993/12/17 20:00:16;  author: mike;  state: Exp;
77646 Change default setting of dither_intensity_lighting from 1 to 0
77647 ----------------------------
77648 revision 1.2
77649 date: 1993/11/22 10:24:50;  author: mike;  state: Exp;
77650 *** empty log message ***
77651 ----------------------------
77652 revision 1.1
77653 date: 1993/09/08 17:29:52;  author: mike;  state: Exp;
77654 Initial revision
77655 =============================================================================
77656 RCS file: f:/miner/source/texmap/tmap_mul.asm,v
77657 Working file: texmap/tmap_mul.asm
77658 head: 1.4
77659 branch:
77660 description: Inner loop of 2 multiplies per 8 pixels texture mapper.
77661 ----------------------------
77662 revision 1.4
77663 date: 1994/11/30 00:56:56;  author: mike;  state: Exp;
77664 optimization.
77665 ----------------------------
77666 revision 1.3
77667 date: 1994/11/12 16:41:00;  author: mike;  state: Exp;
77668 jae -> ja.
77669 ----------------------------
77670 revision 1.2
77671 date: 1994/11/02 21:33:33;  author: john;  state: Exp;
77672 Added Burger Bill's optimization, ie.. 2 muls per 8 pixels.
77673 ----------------------------
77674 revision 1.1
77675 date: 1994/11/02 20:57:36;  author: john;  state: Exp;
77676 Initial revision
77677 =============================================================================
77678 RCS file: f:/miner/source/texmap/tmap_p2.asm,v
77679 Working file: texmap/tmap_p2.asm
77680 head: 1.5
77681 branch:
77682 description: Perspective texture mapper with scan doubling inner loop.
77683 ----------------------------
77684 revision 1.5
77685 date: 1994/11/30 00:56:58;  author: mike;  state: Exp;
77686 optimization.
77687 ----------------------------
77688 revision 1.4
77689 date: 1994/11/12 16:41:07;  author: mike;  state: Exp;
77690 jae -> ja.
77691 ----------------------------
77692 revision 1.3
77693 date: 1994/03/14 15:44:42;  author: mike;  state: Exp;
77694 streamline code.
77695 ----------------------------
77696 revision 1.2
77697 date: 1994/01/14 14:02:02;  author: mike;  state: Exp;
77698 *** empty log message ***
77699 =============================================================================
77700 RCS file: f:/miner/source/texmap/tmap_per.asm,v
77701 Working file: texmap/tmap_per.asm
77702 head: 1.26
77703 branch:
77704 description: Perspective texture mapper inner loop.
77705 ----------------------------
77706 revision 1.26
77707 date: 1995/02/20 18:22:55;  author: john;  state: Exp;
77708 Put all the externs in the assembly modules into tmap_inc.asm.
77709 Also, moved all the C versions of the inner loops into a new module, 
77710 scanline.c.
77711 ----------------------------
77712 revision 1.25
77713 date: 1995/02/20 17:09:08;  author: john;  state: Exp;
77714 Added code so that you can build the tmapper with no assembly!
77715 ----------------------------
77716 revision 1.24
77717 date: 1995/01/10 09:32:07;  author: mike;  state: Exp;
77718 mostly fix garbage at end of scanline, but slow down by 1-4%.
77719 ----------------------------
77720 revision 1.23
77721 date: 1994/12/02 23:29:57;  author: mike;  state: Exp;
77722 optimizations.
77723 ----------------------------
77724 revision 1.22
77725 date: 1994/11/30 00:57:00;  author: mike;  state: Exp;
77726 optimization.
77727 ----------------------------
77728 revision 1.21
77729 date: 1994/11/21 13:57:42;  author: mike;  state: Exp;
77730 fix right side shear bug
77731 ----------------------------
77732 revision 1.20
77733 date: 1994/11/12 16:41:09;  author: mike;  state: Exp;
77734 jae -> ja.
77735 ----------------------------
77736 revision 1.19
77737 date: 1994/10/27 19:40:00;  author: john;  state: Exp;
77738 Made lighting table lookup be _gr_fade_table[eax] instead
77739 of fs:[eax], which gets rig of a segment override that 
77740 supposedly costs 1 clock on a 486.  Mainly, I wanted to verify
77741 that the only reason we need selectors is for the source texture
77742 data .
77743 ----------------------------
77744 revision 1.18
77745 date: 1994/05/03 11:08:32;  author: mike;  state: Exp;
77746 Trap divide overflows.
77747 ----------------------------
77748 revision 1.17
77749 date: 1994/04/21 15:03:41;  author: mike;  state: Exp;
77750 make faster.
77751 ----------------------------
77752 revision 1.16
77753 date: 1994/04/08 16:46:57;  author: john;  state: Exp;
77754 Made 32 fade levels. Hacked.
77755 ----------------------------
77756 revision 1.15
77757 date: 1994/03/31 08:35:18;  author: mike;  state: Exp;
77758 Fix quantized-by-4 bug in inner loop.
77759 ----------------------------
77760 revision 1.14
77761 date: 1994/03/14 17:41:14;  author: mike;  state: Exp;
77762 Fix bug in unlighted version.
77763 ----------------------------
77764 revision 1.13
77765 date: 1994/03/14 15:45:14;  author: mike;  state: Exp;
77766 streamline code.
77767 ----------------------------
77768 revision 1.12
77769 date: 1994/01/14 14:01:58;  author: mike;  state: Exp;
77770 *** empty log message ***
77771 ----------------------------
77772 revision 1.11
77773 date: 1993/12/18 14:43:44;  author: john;  state: Exp;
77774 Messed around with doing 1/z, the u*(1/z) and v*(1/z)
77775 (Went from 23 fps to 21 fps... not good! )----------------------------
77776 revision 1.10
77777 date: 1993/12/17 16:14:17;  author: john;  state: Exp;
77778 Split lighted/nonlighted, so there is no cmp lighting
77779 in the inner loop. 
77780 ----------------------------
77781 revision 1.9
77782 date: 1993/12/17 12:34:29;  author: john;  state: Exp;
77783 Made leftover bytes use linear approx instead of correct...
77784 should save about 8 divides per scanline on average.
77785 Also, took out anti-aliasing code and rearranged to
77786 order of some instructions to help on 486 pipelining.
77787 (The anti-aliasing code did *not* look good, so I
77788 figure there was no reason to keep it in. )
77789 ----------------------------
77790 revision 1.8
77791 date: 1993/12/16 18:37:52;  author: mike;  state: Exp;
77792 Align some stuff on 4 byte boundaries.
77793 ----------------------------
77794 revision 1.7
77795 date: 1993/11/30 08:44:18;  author: john;  state: Exp;
77796 Made selector set check for < 64*64 bitmaps.
77797 ----------------------------
77798 revision 1.6
77799 date: 1993/11/23 17:25:26;  author: john;  state: Exp;
77800 Added safety "and eax, 0fffh" in lighting lookup.
77801 ----------------------------
77802 revision 1.5
77803 date: 1993/11/23 15:08:52;  author: mike;  state: Exp;
77804 Fixed lighting bug. 
77805 ----------------------------
77806 revision 1.4
77807 date: 1993/11/23 14:38:50;  author: john;  state: Exp;
77808 optimized NORMAL code by switching EBX and ESI, so BH can be used in
77809 the lighting process.
77810 ----------------------------
77811 revision 1.3
77812 date: 1993/11/23 14:30:53;  author: john;  state: Exp;
77813 Made the perspective tmapper do 1/8 divides; added lighting.
77814 ----------------------------
77815 revision 1.2
77816 date: 1993/11/22 10:24:59;  author: mike;  state: Exp;
77817 *** empty log message ***
77818 ----------------------------
77819 revision 1.1
77820 date: 1993/09/08 17:29:53;  author: mike;  state: Exp;
77821 Initial revision
77822 =============================================================================
77823 RCS file: f:/miner/source/texmap/tmap_rgb.asm,v
77824 Working file: texmap/tmap_rgb.asm
77825 head: 1.4
77826 branch:
77827 description: RGB interpolating texture mapper.
77828 ----------------------------
77829 revision 1.4
77830 date: 1994/11/30 00:57:02;  author: mike;  state: Exp;
77831 optimization.
77832 ----------------------------
77833 revision 1.3
77834 date: 1994/11/12 16:41:11;  author: mike;  state: Exp;
77835 jae -> ja.
77836 ----------------------------
77837 revision 1.2
77838 date: 1993/11/22 10:25:04;  author: mike;  state: Exp;
77839 *** empty log message ***
77840 ----------------------------
77841 revision 1.1
77842 date: 1993/09/08 17:29:54;  author: mike;  state: Exp;
77843 Initial revision
77844 =============================================================================
77845 RCS file: f:/miner/source/texmap/tmap_skv.asm,v
77846 Working file: texmap/tmap_skv.asm
77847 head: 1.5
77848 branch:
77849 description: Vertical scanner for sky bitmap rendering.
77850 ----------------------------
77851 revision 1.5
77852 date: 1994/11/30 00:57:03;  author: mike;  state: Exp;
77853 optimization.
77854 ----------------------------
77855 revision 1.4
77856 date: 1994/11/12 16:41:13;  author: mike;  state: Exp;
77857 jae -> ja.
77858 ----------------------------
77859 revision 1.3
77860 date: 1994/05/24 11:03:12;  author: mike;  state: Exp;
77861 Make work for any sized (power of 2) bitmap.
77862 ----------------------------
77863 revision 1.2
77864 date: 1994/01/31 15:42:14;  author: mike;  state: Exp;
77865 Vertical scanning sky texture mapper (in inner loop).
77866 ----------------------------
77867 revision 1.1
77868 date: 1994/01/30 14:10:55;  author: mike;  state: Exp;
77869 Initial revision
77870 =============================================================================
77871 RCS file: f:/miner/source/texmap/tmap_sky.asm,v
77872 Working file: texmap/tmap_sky.asm
77873 head: 1.5
77874 branch:
77875 description: Sky texture mapper.
77876 ----------------------------
77877 revision 1.5
77878 date: 1994/11/30 00:57:04;  author: mike;  state: Exp;
77879 optimization.
77880 ----------------------------
77881 revision 1.4
77882 date: 1994/11/12 16:41:14;  author: mike;  state: Exp;
77883 jae -> ja.
77884 ----------------------------
77885 revision 1.3
77886 date: 1994/03/25 17:08:48;  author: matt;  state: Exp;
77887 Attempt to make this code work on wide windows, but I don't think
77888 it did.
77889 ----------------------------
77890 revision 1.2
77891 date: 1994/01/18 10:49:54;  author: mike;  state: Exp;
77892 Modified linear texture mapper for sky plotting.
77893 ----------------------------
77894 revision 1.1
77895 date: 1994/01/14 15:07:03;  author: mike;  state: Exp;
77896 Initial revision
77897 =============================================================================
77898 RCS file: f:/miner/source/texmap/tmap_z.asm,v
77899 Working file: texmap/tmap_z.asm
77900 head: 1.4
77901 branch:
77902 description: Assembly routines to do a flat-shaded z-buffer tmap.
77903 ----------------------------
77904 revision 1.4
77905 date: 1994/11/30 00:57:06;  author: mike;  state: Exp;
77906 optimization.
77907 ----------------------------
77908 revision 1.3
77909 date: 1994/11/12 16:41:14;  author: mike;  state: Exp;
77910 jae -> ja.
77911 ----------------------------
77912 revision 1.2
77913 date: 1994/07/08 17:43:14;  author: john;  state: Exp;
77914 Added flat-shaded-zbuffered polygon.
77915 ----------------------------
77916 revision 1.1
77917 date: 1994/07/08 10:58:18;  author: john;  state: Exp;
77918 Initial revision
77919 =============================================================================
77920 RCS file: f:/miner/source/texmap/vesa.asm,v
77921 Working file: texmap/vesa.asm
77922 head: 1.1
77923 branch:
77924 description: Routine to copy buffer to VESA memory.
77925 ----------------------------
77926 revision 1.1
77927 date: 1993/09/08 17:29:56;  author: mike;  state: Exp;
77928 Initial revision
77929 =============================================================================
77930 RCS file: f:/miner/source/2d/gr.inc,v
77931 Working file: 2d/gr.inc
77932 head: 1.9
77933 branch:
77934 description: Header file for 2d library
77935 ----------------------------
77936 revision 1.9
77937 date: 1994/11/09 23:04:50;  author: mike;  state: Exp;
77938 Add avg_color field.
77939 ----------------------------
77940 revision 1.8
77941 date: 1994/10/26 23:55:49;  author: john;  state: Exp;
77942 Took out roller; Took out inverse table.
77943 ----------------------------
77944 revision 1.7
77945 date: 1994/10/25 12:05:29;  author: john;  state: Exp;
77946 Added gr_fade_table and gr_palette.
77947 ----------------------------
77948 revision 1.6
77949 date: 1994/03/15 22:24:31;  author: matt;  state: Exp;
77950 Added gr_setcolor_ and gr_inverse_table
77951 ----------------------------
77952 revision 1.5
77953 date: 1994/03/14 16:56:05;  author: john;  state: Exp;
77954 Changed grs_bitmap structure to include bm_flags.
77955 ----------------------------
77956 revision 1.4
77957 date: 1994/02/04 13:21:12;  author: matt;  state: Exp;
77958 Added extern for rotate_bitmap
77959 ----------------------------
77960 revision 1.3
77961 date: 1993/12/21 19:58:14;  author: john;  state: Exp;
77962 added selector stuff
77963 ----------------------------
77964 revision 1.2
77965 date: 1993/10/15 16:26:24;  author: john;  state: Exp;
77966 *** empty log message ***
77967 ----------------------------
77968 revision 1.1
77969 date: 1993/10/15 16:21:18;  author: john;  state: Exp;
77970 Initial revision
77971 =============================================================================
77972 RCS file: f:/miner/source/2d/lbitblt.asm,v
77973 Working file: 2d/lbitblt.asm
77974 head: 1.7
77975 branch:
77976 description: Bitblt from linear to linear
77977 ----------------------------
77978 revision 1.7
77979 date: 1994/08/12 17:38:28;  author: mike;  state: Exp;
77980 Fix bug.
77981 ----------------------------
77982 revision 1.6
77983 date: 1994/08/11 17:59:33;  author: mike;  state: Exp;
77984 Assembler versions for 3 rotations of merge functions.
77985 ----------------------------
77986 revision 1.5
77987 date: 1994/01/22 14:35:16;  author: john;  state: Exp;
77988 Added transparency as color index 255.
77989 ----------------------------
77990 revision 1.4
77991 date: 1994/01/18 21:42:41;  author: john;  state: Exp;
77992 unrolled loops in gr_merge_textures...
77993 ----------------------------
77994 revision 1.3
77995 date: 1994/01/18 10:56:04;  author: john;  state: Exp;
77996 Added code to merge two ttextures.
77997 ----------------------------
77998 revision 1.2
77999 date: 1993/12/28 12:07:26;  author: john;  state: Exp;
78000 initial version
78001 ----------------------------
78002 revision 1.1
78003 date: 1993/12/22 11:05:46;  author: john;  state: Exp;
78004 Initial revision
78005 =============================================================================
78006 RCS file: f:/miner/source/2d/linear.asm,v
78007 Working file: 2d/linear.asm
78008 head: 1.20
78009 branch:
78010 description: Routines to access linear VGA memory
78011 ----------------------------
78012 revision 1.20
78013 date: 1994/11/28 17:08:30;  author: john;  state: Exp;
78014 Took out some unused functions in linear.asm, moved
78015 gr_linear_movsd from linear.asm to bitblt.c, made sure that
78016 the code in ibiblt.c sets the direction flags before rep movsing.
78017 ----------------------------
78018 revision 1.19
78019 date: 1994/11/27 22:57:56;  author: john;  state: Exp;
78020 Took out some code that was never called.
78021 ----------------------------
78022 revision 1.18
78023 date: 1994/09/12 14:40:16;  author: john;  state: Exp;
78024 Neatend.
78025 ----------------------------
78026 revision 1.17
78027 date: 1994/07/27 18:30:30;  author: john;  state: Exp;
78028 Took away the blending table.
78029 ----------------------------
78030 revision 1.16
78031 date: 1994/04/08 16:59:28;  author: john;  state: Exp;
78032 Add fading poly's; Made palette fade 32 instead of 16.
78033 ----------------------------
78034 revision 1.15
78035 date: 1993/12/21 20:10:03;  author: john;  state: Exp;
78036 *** empty log message ***
78037 ----------------------------
78038 revision 1.14
78039 date: 1993/12/21 19:58:31;  author: john;  state: Exp;
78040 added selector stuff
78041 ----------------------------
78042 revision 1.13
78043 date: 1993/12/21 11:40:51;  author: john;  state: Exp;
78044 *** empty log message ***
78045 ----------------------------
78046 revision 1.12
78047 date: 1993/12/09 15:01:52;  author: john;  state: Exp;
78048 Changed palette stuff majorly
78049 ----------------------------
78050 revision 1.11
78051 date: 1993/12/08 16:41:02;  author: john;  state: Exp;
78052 *** empty log message ***
78053 ----------------------------
78054 revision 1.10
78055 date: 1993/12/08 11:50:17;  author: john;  state: Exp;
78056 Fixed bug with gr_init
78057 ----------------------------
78058 revision 1.9
78059 date: 1993/12/07 12:32:12;  author: john;  state: Exp;
78060 moved bmd_palette to gr_palette
78061 ----------------------------
78062 revision 1.8
78063 date: 1993/12/03 12:11:25;  author: john;  state: Exp;
78064 *** empty log message ***
78065 ----------------------------
78066 revision 1.7
78067 date: 1993/11/16 11:29:08;  author: john;  state: Exp;
78068 *** empty log message ***
78069 ----------------------------
78070 revision 1.6
78071 date: 1993/10/15 16:22:13;  author: john;  state: Exp;
78072 *** empty log message ***
78073 ----------------------------
78074 revision 1.5
78075 date: 1993/09/29 16:15:28;  author: john;  state: Exp;
78076 added assembler linear_line
78077 ----------------------------
78078 revision 1.4
78079 date: 1993/09/26 18:59:27;  author: john;  state: Exp;
78080 fade stuff
78081 ----------------------------
78082 revision 1.3
78083 date: 1993/09/21 14:00:59;  author: john;  state: Exp;
78084 added code to save 43/50 line text modes.
78085 ----------------------------
78086 revision 1.2
78087 date: 1993/09/16 17:28:06;  author: john;  state: Exp;
78088 added code to save/restore video mode
78089 ----------------------------
78090 revision 1.1
78091 date: 1993/09/08 11:41:30;  author: john;  state: Exp;
78092 Initial revision
78093 =============================================================================
78094 RCS file: f:/miner/source/2d/modex.asm,v
78095 Working file: 2d/modex.asm
78096 head: 1.19
78097 branch:
78098 description: Routines to access ModeX VGA memory
78099 ----------------------------
78100 revision 1.19
78101 date: 1995/03/01 15:37:46;  author: john;  state: Exp;
78102 Better ModeX support.
78103 ----------------------------
78104 revision 1.18
78105 date: 1994/11/24 13:24:20;  author: john;  state: Exp;
78106 Made sure that some rep movs had the cld set first.
78107 Took some unused functions out.
78108 ----------------------------
78109 revision 1.17
78110 date: 1994/09/22 18:15:02;  author: john;  state: Exp;
78111 Made flip page wait for retrace.
78112 ----------------------------
78113 revision 1.16
78114 date: 1994/09/22 16:08:27;  author: john;  state: Exp;
78115 Fixed some palette stuff.
78116 ----------------------------
78117 revision 1.15
78118 date: 1994/07/13 12:03:05;  author: john;  state: Exp;
78119 Added assembly modex line-drawer.
78120 ----------------------------
78121 revision 1.14
78122 date: 1994/05/06 12:50:34;  author: john;  state: Exp;
78123 Added supertransparency; neatend things up; took out warnings.
78124 ----------------------------
78125 revision 1.13
78126 date: 1994/05/03 19:39:04;  author: john;  state: Exp;
78127 *** empty log message ***
78128 ----------------------------
78129 revision 1.12
78130 date: 1994/02/18 15:32:32;  author: john;  state: Exp;
78131 *** empty log message ***
78132 ----------------------------
78133 revision 1.11
78134 date: 1993/12/21 11:40:36;  author: john;  state: Exp;
78135 *** empty log message ***
78136 ----------------------------
78137 revision 1.10
78138 date: 1993/12/09 15:02:26;  author: john;  state: Exp;
78139 Changed palette stuff majorly
78140 ----------------------------
78141 revision 1.9
78142 date: 1993/12/03 12:11:32;  author: john;  state: Exp;
78143 fixed cx/ecx loop bugs.
78144 ----------------------------
78145 revision 1.8
78146 date: 1993/11/16 11:28:18;  author: john;  state: Exp;
78147 *** empty log message ***
78148 ----------------------------
78149 revision 1.7
78150 date: 1993/10/15 16:23:23;  author: john;  state: Exp;
78151 y
78152 ----------------------------
78153 revision 1.6
78154 date: 1993/09/28 19:07:19;  author: john;  state: Exp;
78155 stripped the waitforretrace out of fade to speed things up.
78156 ----------------------------
78157 revision 1.5
78158 date: 1993/09/26 18:58:58;  author: john;  state: Exp;
78159 fade stuff
78160 ----------------------------
78161 revision 1.4
78162 date: 1993/09/21 14:01:15;  author: john;  state: Exp;
78163 turned off video before mode set to reduce flicker.
78164 ----------------------------
78165 revision 1.3
78166 date: 1993/09/08 11:38:36;  author: john;  state: Exp;
78167 changed rcs stuff at beginning.
78168 =============================================================================
78169 RCS file: f:/miner/source/2d/scalea.asm,v
78170 Working file: 2d/scalea.asm
78171 head: 1.2
78172 branch:
78173 description: Asm inner loop for scaler.
78174 ----------------------------
78175 revision 1.2
78176 date: 1994/01/12 18:02:52;  author: john;  state: Exp;
78177 Asm code for the scaler... first iteration here
78178 has compiled code that works!!
78179 ----------------------------
78180 revision 1.1
78181 date: 1994/01/12 12:20:11;  author: john;  state: Exp;
78182 Initial revision
78183 =============================================================================
78184 RCS file: f:/miner/source/2d/temp.asm,v
78185 Working file: 2d/temp.asm
78186 head: 1.2
78187 branch:
78188 description: .
78189 ----------------------------
78190 revision 1.2
78191 date: 1994/01/18 10:56:48;  author: john;  state: Exp;
78192 *** empty log message ***
78193 ----------------------------
78194 revision 1.1
78195 date: 1994/01/12 14:38:08;  author: john;  state: Exp;
78196 Initial revision
78197 =============================================================================
78198 RCS file: f:/miner/source/2d/tweak.inc,v
78199 Working file: 2d/tweak.inc
78200 head: 1.3
78201 branch:
78202 description: Parameters used by modex.asm to set various modex resolutions.
78203 ----------------------------
78204 revision 1.3
78205 date: 1993/11/16 11:28:09;  author: john;  state: Exp;
78206 *** empty log message ***
78207 ----------------------------
78208 revision 1.2
78209 date: 1993/10/15 16:23:18;  author: john;  state: Exp;
78210 y
78211 ----------------------------
78212 revision 1.1
78213 date: 1993/09/08 11:41:09;  author: john;  state: Exp;
78214 Initial revision
78215 =============================================================================
78216 RCS file: f:/miner/source/2d/vesa.asm,v
78217 Working file: 2d/vesa.asm
78218 head: 1.20
78219 branch:
78220 description: Routines to access VESA VGA memory
78221 ----------------------------
78222 revision 1.20
78223 date: 1994/07/27 15:43:37;  author: john;  state: Exp;
78224 Fixed bug with allocation dos memory more than once.
78225 ----------------------------
78226 revision 1.19
78227 date: 1994/06/24 17:27:02;  author: john;  state: Exp;
78228 Made rowsizes bigger than actual screen work with SVGA.
78229 ----------------------------
78230 revision 1.18
78231 date: 1994/05/31 11:10:45;  author: john;  state: Exp;
78232 *** empty log message ***
78233 ----------------------------
78234 revision 1.17
78235 date: 1994/05/06 12:50:21;  author: john;  state: Exp;
78236 Added supertransparency; neatend things up; took out warnings.
78237 ----------------------------
78238 revision 1.16
78239 date: 1994/03/14 16:56:29;  author: john;  state: Exp;
78240 Changed grs_bitmap structure to include bm_flags.
78241 ----------------------------
78242 revision 1.15
78243 date: 1994/02/02 11:27:22;  author: john;  state: Exp;
78244 *** empty log message ***
78245 ----------------------------
78246 revision 1.14
78247 date: 1994/01/25 11:40:46;  author: john;  state: Exp;
78248 Added gr_check_mode function.
78249 ----------------------------
78250 revision 1.13
78251 date: 1994/01/13 14:41:51;  author: unknown;  state: Exp;
78252 Fixed bug with Error 7 return Error 8.
78253 ----------------------------
78254 revision 1.12
78255 date: 1993/12/21 19:58:38;  author: john;  state: Exp;
78256 made rep movsb in scanline be rep movsw
78257 ----------------------------
78258 revision 1.11
78259 date: 1993/12/09 16:05:51;  author: john;  state: Exp;
78260 Made no VESA driver detection work correctly
78261 ----------------------------
78262 revision 1.10
78263 date: 1993/12/09 15:02:41;  author: john;  state: Exp;
78264 Changed palette stuff majorly
78265 ----------------------------
78266 revision 1.9
78267 date: 1993/11/16 11:28:28;  author: john;  state: Exp;
78268 *** empty log message ***
78269 ----------------------------
78270 revision 1.8
78271 date: 1993/10/26 13:18:03;  author: john;  state: Exp;
78272 *** empty log message ***
78273 ----------------------------
78274 revision 1.7
78275 date: 1993/10/15 16:23:28;  author: john;  state: Exp;
78276 y
78277 ----------------------------
78278 revision 1.6
78279 date: 1993/09/29 17:31:10;  author: john;  state: Exp;
78280 optimized gr_vesa_pixel
78281 ----------------------------
78282 revision 1.5
78283 date: 1993/09/26 18:59:34;  author: john;  state: Exp;
78284 fade stuff
78285 ----------------------------
78286 revision 1.4
78287 date: 1993/09/20 14:47:20;  author: john;  state: Exp;
78288 *** empty log message ***
78289 ----------------------------
78290 revision 1.3
78291 date: 1993/09/13 17:54:07;  author: john;  state: Exp;
78292 Minor bug fix
78293 ----------------------------
78294 revision 1.2
78295 date: 1993/09/08 15:56:06;  author: john;  state: Exp;
78296 Started adding DPMI support for SVGA paging.
78297 ----------------------------
78298 revision 1.1
78299 date: 1993/09/08 11:41:25;  author: john;  state: Exp;
78300 Initial revision
78301 =============================================================================
78302 RCS file: f:/miner/source/2d/vgaregs.inc,v
78303 Working file: 2d/vgaregs.inc
78304 head: 1.2
78305 branch:
78306 description: Readable descriptions of VGA ports.
78307 ----------------------------
78308 revision 1.2
78309 date: 1993/10/15 16:22:45;  author: john;  state: Exp;
78310 *** empty log message ***
78311 ----------------------------
78312 revision 1.1
78313 date: 1993/09/08 11:41:00;  author: john;  state: Exp;
78314 Initial revision
78315 =============================================================================
78316 RCS file: f:/miner/source/vecmat/vecmat.inc,v
78317 Working file: vecmat/vecmat.inc
78318 head: 1.21
78319 branch:
78320 description: Header file for vector/matrix library
78321 ----------------------------
78322 revision 1.21
78323 date: 1994/12/13 14:44:21;  author: matt;  state: Exp;
78324 Added vm_vector_2_matrix_norm()
78325 ----------------------------
78326 revision 1.20
78327 date: 1994/09/11 19:23:04;  author: matt;  state: Exp;
78328 Added vm_vec_normalized_dir_quick()
78329 ----------------------------
78330 revision 1.19
78331 date: 1994/07/19 18:52:55;  author: matt;  state: Exp;
78332 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
78333 ----------------------------
78334 revision 1.18
78335 date: 1994/06/16 18:24:31;  author: matt;  state: Exp;
78336 Added vm_vec_mag_quick()
78337 ----------------------------
78338 revision 1.17
78339 date: 1994/05/19 12:07:20;  author: matt;  state: Exp;
78340 Fixed globals and macros and added a constant
78341 ----------------------------
78342 revision 1.16
78343 date: 1994/05/18 22:28:55;  author: matt;  state: Exp;
78344 Added function vm_vec_normalized_dir()
78345 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
78346 Added C global static vars vmd_zero_vector & vmd_identity_matrix
78347 ----------------------------
78348 revision 1.15
78349 date: 1994/05/18 21:45:05;  author: matt;  state: Exp;
78350 Added functions:
78351   vm_extract_angles_vector()
78352   vm_extract_angles_vector_normalized()
78353   vm_vec_copy_normalize()
78354 ----------------------------
78355 revision 1.14
78356 date: 1994/05/13 12:42:09;  author: matt;  state: Exp;
78357 Added new function, vm_vec_dist_quick(), which does an approximation.
78358 ----------------------------
78359 revision 1.13
78360 date: 1994/03/30 15:43:54;  author: matt;  state: Exp;
78361 Added two functions, vm_vec_scale_add() & vm_vec_scale_add2()
78362 ----------------------------
78363 revision 1.12
78364 date: 1994/01/31 19:45:24;  author: matt;  state: Exp;
78365 Added function vm_extract_angles_matrix()
78366 ----------------------------
78367 revision 1.11
78368 date: 1993/12/21 19:46:29;  author: matt;  state: Exp;
78369 Added function vm_dist_to_plane()
78370 ----------------------------
78371 revision 1.10
78372 date: 1993/12/13 17:26:40;  author: matt;  state: Exp;
78373 Added vm_vec_dist()
78374 ----------------------------
78375 revision 1.9
78376 date: 1993/12/02 12:44:04;  author: matt;  state: Exp;
78377 New functions: vm_vec_copy_scale(), vm_vec_scale2()
78378 ----------------------------
78379 revision 1.8
78380 date: 1993/10/29 22:39:08;  author: matt;  state: Exp;
78381 Changed matrix order, making direction vectors the rows
78382 ----------------------------
78383 revision 1.7
78384 date: 1993/10/25 11:49:58;  author: matt;  state: Exp;
78385 Made vm_vec_delta_ang() take optional forward vector to return signed delta
78386 ----------------------------
78387 revision 1.6
78388 date: 1993/10/20 01:10:04;  author: matt;  state: Exp;
78389 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
78390 ----------------------------
78391 revision 1.5
78392 date: 1993/09/28 12:16:04;  author: matt;  state: Exp;
78393 Added func vm_vector_2_matrix()
78394 ----------------------------
78395 revision 1.4
78396 date: 1993/09/24 21:19:14;  author: matt;  state: Exp;
78397 Added vm_vec_avg() and vm_vec_avg4()
78398 ----------------------------
78399 revision 1.3
78400 date: 1993/09/20 14:56:35;  author: matt;  state: Exp;
78401 Added new function, vm_vec_perp()
78402 ----------------------------
78403 revision 1.2
78404 date: 1993/09/17 11:09:57;  author: matt;  state: Exp;
78405 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
78406 ----------------------------
78407 revision 1.1
78408 date: 1993/09/16 20:19:29;  author: matt;  state: Exp;
78409 Initial revision
78410 =============================================================================
78411 RCS file: f:/miner/source/vecmat/vecmat.asm,v
78412 Working file: vecmat/vecmat.asm
78413 head: 1.54
78414 branch:
78415 description: Source for vector/matrix library
78416 ----------------------------
78417 revision 1.54
78418 date: 1995/01/31 00:14:50;  author: matt;  state: Exp;
78419 Took out int3 from dotprod overflow, since it saturates now
78420 ----------------------------
78421 revision 1.53
78422 date: 1994/12/14 18:29:33;  author: matt;  state: Exp;
78423 Made dotprod overflow check stay in, and return saturated value
78424 ----------------------------
78425 revision 1.52
78426 date: 1994/12/14 12:34:13;  author: matt;  state: Exp;
78427 Disabled now-unused vector_2_matrix_norm()
78428 ----------------------------
78429 revision 1.51
78430 date: 1994/12/13 16:55:13;  author: matt;  state: Exp;
78431 Ripped out optimization from last version, which was bogus
78432 ----------------------------
78433 revision 1.50
78434 date: 1994/12/13 14:55:18;  author: matt;  state: Exp;
78435 Use quick normalize in a couple of places where it was safe to do so
78436 ----------------------------
78437 revision 1.49
78438 date: 1994/12/13 14:44:12;  author: matt;  state: Exp;
78439 Added vm_vector_2_matrix_norm()
78440 ----------------------------
78441 revision 1.48
78442 date: 1994/12/13 13:26:49;  author: matt;  state: Exp;
78443 Fixed overflow check
78444 ----------------------------
78445 revision 1.47
78446 date: 1994/12/03 15:39:54;  author: matt;  state: Exp;
78447 Gracefully handle some vector_2_matrix problems
78448 ----------------------------
78449 revision 1.46
78450 date: 1994/11/19 17:15:05;  author: matt;  state: Exp;
78451 Assemble out some code not used in DESCENT
78452 ----------------------------
78453 revision 1.45
78454 date: 1994/11/17 11:41:05;  author: matt;  state: Exp;
78455 Put handling in extract_angles_from_matrix to deal with bad matrices
78456 ----------------------------
78457 revision 1.44
78458 date: 1994/11/16 11:48:10;  author: matt;  state: Exp;
78459 Added error checking to vm_extract_angles_matrix()
78460 ----------------------------
78461 revision 1.43
78462 date: 1994/09/19 22:00:10;  author: matt;  state: Exp;
78463 Fixed register trash
78464 ----------------------------
78465 revision 1.42
78466 date: 1994/09/11 19:23:05;  author: matt;  state: Exp;
78467 Added vm_vec_normalized_dir_quick()
78468 ----------------------------
78469 revision 1.41
78470 date: 1994/08/14 13:28:38;  author: matt;  state: Exp;
78471 Put in check for zero-length vector in extract angles
78472 ----------------------------
78473 revision 1.40
78474 date: 1994/07/19 18:52:53;  author: matt;  state: Exp;
78475 Added vm_vec_normalize_quick() and vm_vec_copy_normalize_quick()
78476 ----------------------------
78477 revision 1.39
78478 date: 1994/06/16 18:24:22;  author: matt;  state: Exp;
78479 Added vm_vec_mag_quick()
78480 ----------------------------
78481 revision 1.38
78482 date: 1994/06/10 23:18:38;  author: matt;  state: Exp;
78483 Added new code for vm_vec_ang_2_matrix() which may be better, but may
78484 not be.
78485 ----------------------------
78486 revision 1.37
78487 date: 1994/05/22 18:17:29;  author: mike;  state: Exp;
78488 Optimize vm_vec_dist_quick, using jns in place of abs_eax.
78489 ----------------------------
78490 revision 1.36
78491 date: 1994/05/19 12:07:04;  author: matt;  state: Exp;
78492 Fixed globals and macros and added a constant
78493 ----------------------------
78494 revision 1.35
78495 date: 1994/05/19 09:19:00;  author: matt;  state: Exp;
78496 Made vm_vec_normalized_dir() return mag of vector
78497 ----------------------------
78498 revision 1.34
78499 date: 1994/05/18 22:28:01;  author: matt;  state: Exp;
78500 Added function vm_vec_normalized_dir()
78501 Added C macros IS_ZERO_VEC(), vm_vec_zero(), and vm_set_identity()
78502 Added C global static vars vmd_zero_vector & vmd_identity_matrix
78503 ----------------------------
78504 revision 1.33
78505 date: 1994/05/18 21:44:16;  author: matt;  state: Exp;
78506 Added functions:
78507   vm_extract_angles_vector()
78508   vm_extract_angles_vector_normalized()
78509   vm_vec_copy_normalize()
78510 ----------------------------
78511 revision 1.32
78512 date: 1994/05/13 12:41:51;  author: matt;  state: Exp;
78513 Added new function, vm_vec_dist_quick(), which does an approximation.
78514 ----------------------------
78515 revision 1.31
78516 date: 1994/05/04 17:41:31;  author: mike;  state: Exp;
78517 Comment out debug_brk on null vector.
78518 ----------------------------
78519 revision 1.30
78520 date: 1994/04/15 21:41:31;  author: matt;  state: Exp;
78521 Check for foward vector straigt up in extract angles routine
78522 ----------------------------
78523 revision 1.29
78524 date: 1994/03/30 15:45:05;  author: matt;  state: Exp;
78525 Added two functions, vm_vec_scale_add() & vm_vec_scale_add2()
78526 ----------------------------
78527 revision 1.28
78528 date: 1994/02/26 19:23:35;  author: matt;  state: Exp;
78529 Do an int3 when we get a null vector when computing surface normal
78530 ----------------------------
78531 revision 1.27
78532 date: 1994/02/10 18:29:45;  author: matt;  state: Exp;
78533 Changed 'if DEBUG_ON' to 'ifndef NDEBUG'
78534 ----------------------------
78535 revision 1.26
78536 date: 1994/02/10 18:28:55;  author: matt;  state: Exp;
78537 Fixed bugs in extract angles function
78538 ----------------------------
78539 revision 1.25
78540 date: 1994/01/31 22:46:07;  author: matt;  state: Exp;
78541 Added vm_extract_angles_matrix() function
78542 ----------------------------
78543 revision 1.24
78544 date: 1994/01/30 19:29:55;  author: matt;  state: Exp;
78545 Put in debug_brk when vm_vec_2_matrix got zero-length vector
78546 ----------------------------
78547 revision 1.23
78548 date: 1994/01/25 15:27:59;  author: matt;  state: Exp;
78549 Added debugging check for dotprod overflow
78550 ----------------------------
78551 revision 1.22
78552 date: 1994/01/24 11:52:59;  author: matt;  state: Exp;
78553 Added checking for dest==src for several functions where this is not allowed
78554 ----------------------------
78555 revision 1.21
78556 date: 1994/01/19 23:13:02;  author: matt;  state: Exp;
78557 Fixed bug in vm_vec_ang_2_matrix()
78558 ----------------------------
78559 revision 1.20
78560 date: 1994/01/04 12:33:43;  author: mike;  state: Exp;
78561 Prevent divide overflow in vm_vec_scale2
78562 ----------------------------
78563 revision 1.19
78564 date: 1993/12/21 19:46:26;  author: matt;  state: Exp;
78565 Added function vm_dist_to_plane()
78566 ----------------------------
78567 revision 1.18
78568 date: 1993/12/13 17:26:23;  author: matt;  state: Exp;
78569 Added vm_vec_dist()
78570 ----------------------------
78571 revision 1.17
78572 date: 1993/12/02 12:43:39;  author: matt;  state: Exp;
78573 New functions: vm_vec_copy_scale(), vm_vec_scale2()
78574 ----------------------------
78575 revision 1.16
78576 date: 1993/10/29 22:39:29;  author: matt;  state: Exp;
78577 Changed matrix order, making direction vectors the rows
78578 ----------------------------
78579 revision 1.15
78580 date: 1993/10/29 18:06:01;  author: matt;  state: Exp;
78581 Fixed vm_vector_2_matrix() bug when forward vector was straight down
78582 ----------------------------
78583 revision 1.14
78584 date: 1993/10/26 18:51:26;  author: matt;  state: Exp;
78585 Fixed some register trashes in vm_vec_ang_2_matrix()
78586 ----------------------------
78587 revision 1.13
78588 date: 1993/10/25 11:49:37;  author: matt;  state: Exp;
78589 Made vm_vec_delta_ang() take optional forward vector to return signed delta
78590 ----------------------------
78591 revision 1.12
78592 date: 1993/10/20 01:09:42;  author: matt;  state: Exp;
78593 Added vm_vec_delta_ang(), vm_vec_delta_ang_norm(), and vm_vec_ang_2_matrix()
78594 ----------------------------
78595 revision 1.11
78596 date: 1993/10/17 17:03:08;  author: matt;  state: Exp;
78597 vm_vector_2_matrix() now takes optional right vector
78598 ----------------------------
78599 revision 1.10
78600 date: 1993/10/10 18:11:42;  author: matt;  state: Exp;
78601 Changed angles_2_matrix so that heading & bank rotate in the 
78602 correct directions.
78603 ----------------------------
78604 revision 1.9
78605 date: 1993/09/30 16:17:59;  author: matt;  state: Exp;
78606 Fixed bug in vector_2_matrix() by adding another normalize
78607 ----------------------------
78608 revision 1.8
78609 date: 1993/09/29 10:51:58;  author: matt;  state: Exp;
78610 Fixed bad register trashes in crossprod, perp, & normal
78611 ----------------------------
78612 revision 1.7
78613 date: 1993/09/28 12:16:46;  author: matt;  state: Exp;
78614 Fixed bugs in cross product
78615 Added func vm_vector_2_matrix()
78616 ----------------------------
78617 revision 1.6
78618 date: 1993/09/24 21:19:37;  author: matt;  state: Exp;
78619 Added vm_vec_avg() and vm_vec_avg4()
78620 ----------------------------
78621 revision 1.5
78622 date: 1993/09/20 18:15:07;  author: matt;  state: Exp;
78623 Trap zero-length vectors in vm_vec_normalize(), vm_vec_perp(), and vm_vec_normal()
78624 ----------------------------
78625 revision 1.4
78626 date: 1993/09/20 14:56:43;  author: matt;  state: Exp;
78627 Fixed bug in vm_vec_normal(), made that routine normalize the results,
78628 and added new function vm_vec_perp().
78629 ----------------------------
78630 revision 1.3
78631 date: 1993/09/20 10:12:06;  author: mike;  state: Exp;
78632 no changes
78633 ----------------------------
78634 revision 1.2
78635 date: 1993/09/17 11:10:33;  author: matt;  state: Exp;
78636 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
78637 ----------------------------
78638 revision 1.1
78639 date: 1993/09/16 20:10:24;  author: matt;  state: Exp;
78640 Initial revision
78641 =============================================================================
78642 RCS file: f:/miner/source/vecmat/vecmat.asm $ $Revision: 1.55,v
78643 Working file: vecmat/vecmat.asm
78644 head: 1.55
78645 description: Source for vector/matrix library
78646 ----------------------------
78647 revision 1.55
78648 date: 1995/08/24 12:04:11;  author: matt;  state: Exp;
78649 Fixed stack unbalance bug in vm_vec_scale2 when divisor was zero
78650 =============================================================================
78651 RCS file: f:/miner/source/bios/rbaudio.c,v
78652 Working file: bios/rbaudio.c
78653 head: 1.18
78654 description: Redbook Audio Library  
78655 ----------------------------
78656 revision 1.18
78657 date: 1996/04/15 15:27:40;  author: samir;  state: Exp;
78658 Play multiple tracks and PeekPlayStatus uses timer method!
78659 ----------------------------
78660 revision 1.17
78661 date: 1996/04/12 20:08:42;  author: samir;  state: Exp;
78662 Added debugging info and Redbook / HSG detection
78663 ----------------------------
78664 revision 1.16
78665 date: 1996/04/12 19:13:29;  author: matt;  state: Exp;
78666 Changed parameter name and added comments
78667 ----------------------------
78668 revision 1.15
78669 date: 1996/04/12 18:08:02;  author: samir;  state: Exp;
78670 We now pass a cd drive letter to RBAInit.
78671 ----------------------------
78672 revision 1.14
78673 date: 1996/02/14 13:31:29;  author: samir;  state: Exp;
78674 Fixed stupid bug that caused last track to never be played
78675 ----------------------------
78676 revision 1.13
78677 date: 1996/02/13 17:16:04;  author: samir;  state: Exp;
78678 Added Pause and Resume Caps.
78679 ----------------------------
78680 revision 1.12
78681 date: 1996/01/11 10:08:01;  author: matt;  state: Exp;
78682 RBARegisterCD wasn't checking SendRequest error code, so it was reporting
78683 CD tracks when there was no CD in the drive.
78684 ----------------------------
78685 revision 1.11
78686 date: 1996/01/10 20:15:45;  author: samir;  state: Exp;
78687 Changed behavior of RBACheckMediaChange to work
78688 correctly, as well as calling this function in critical
78689 RBA functions to take care of CD changes.
78690 ----------------------------
78691 revision 1.10
78692 date: 1996/01/10 18:30:49;  author: samir;  state: Exp;
78693 Changed property of RBCheckMediaChange which would
78694 not disable RBA if media had changed.  GetNumberOfTracks
78695 returns num. of tracks or if media changed, re-registers
78696 CD and then returns number of tracks.  If media has changed
78697 RBAPlayTrack will return an error.
78698 ----------------------------
78699 revision 1.9
78700 date: 1995/08/01 19:30:11;  author: samir;  state: Exp;
78701 Added ability to get number of tracks on CD via call.
78702 ----------------------------
78703 revision 1.8
78704 date: 1995/07/20 16:13:56;  author: samir;  state: Exp;
78705 Doesn't quit if CD isn't Redbook.
78706 ----------------------------
78707 revision 1.7
78708 date: 1995/05/10 11:37:51;  author: samir;  state: Exp;
78709 Checks whether CD-ROM in drive at start of game
78710 ----------------------------
78711 revision 1.6
78712 date: 1995/05/09 18:00:08;  author: samir;  state: Exp;
78713 Error cleaned.
78714 ----------------------------
78715 revision 1.5
78716 date: 1995/05/09 17:57:43;  author: samir;  state: Exp;
78717 No CD in Drive, then diable RBA
78718 ----------------------------
78719 revision 1.4
78720 date: 1995/05/09 17:12:24;  author: samir;  state: Exp;
78721 Added user detection of Redbook Audio.
78722 ----------------------------
78723 revision 1.3
78724 date: 1995/05/09 12:04:57;  author: samir;  state: Exp;
78725 Added ability to known when a CD is playing
78726 and when it's stopped.
78727 ----------------------------
78728 revision 1.2
78729 date: 1995/05/08 11:33:37;  author: samir;  state: Exp;
78730 Initial revision
78731 =============================================================================
78732 RCS file: f:/miner/source/texmap/ntmap.c,v
78733 Working file: texmap/ntmap.c
78734 head: 1.61
78735 description: Start of conversion to new texture mapper.
78736 ----------------------------
78737 revision 1.61
78738 date: 1996/03/12 20:15:58;  author: jay;  state: Exp;
78739 From JAY PATEL: changes for S3/Virge version
78740 ----------------------------
78741 revision 1.60
78742 date: 1996/02/21 18:18:53;  author: matt;  state: Exp;
78743 From JOHN: changes to texture mapper, supposed to be slightly better & faster
78744 ----------------------------
78745 revision 1.59
78746 date: 1996/02/12 11:11:37;  author: jay;  state: Exp;
78747 From JAY PATEL: code to add Diamond/S3 Virge support
78748 ----------------------------
78749 revision 1.58
78750 date: 1996/01/24 16:37:28;  author: champaign;  state: Exp;
78751 From JOHN: texture mapper library cleaned up & optimized
78752 ----------------------------
78753 revision 1.57
78754 date: 1995/11/28 10:40:24;  author: matt;  state: Exp;
78755 Allow screen heights up to 1024
78756 ----------------------------
78757 revision 1.56
78758 date: 1995/08/21 18:06:20;  author: matt;  state: Exp;
78759 Allow screen height up to 768
78760 ----------------------------
78761 revision 1.55
78762 date: 1995/07/17 11:04:00;  author: matt;  state: Exp;
78763 Added assert() for correct texture width
78764 ----------------------------
78765 revision 1.54
78766 date: 1995/05/26 16:08:03;  author: matt;  state: Exp;
78767 Took out evil include of Descent main directory header file
78768 ----------------------------
78769 revision 1.53
78770 date: 1995/04/18 14:36:14;  author: matt;  state: Exp;
78771 Moved window_clip vars to texmap library from Descent main source
78772 ----------------------------
78773 revision 1.52
78774 date: 1995/03/14 15:13:06;  author: john;  state: Exp;
78775 Increased MAX_Y_Pointers to 480.
78776 ----------------------------
78777 revision 1.51
78778 date: 1995/02/23 14:25:09;  author: john;  state: Exp;
78779 Added editor tmap.
78780 ----------------------------
78781 revision 1.50
78782 date: 1995/02/20 18:22:58;  author: john;  state: Exp;
78783 Put all the externs in the assembly modules into tmap_inc.asm.
78784 Also, moved all the C versions of the inner loops into a new module, 
78785 scanline.c.
78786 ----------------------------
78787 revision 1.49
78788 date: 1995/02/20 17:09:11;  author: john;  state: Exp;
78789 Added code so that you can build the tmapper with no assembly!
78790 ----------------------------
78791 revision 1.48
78792 date: 1995/01/06 11:11:30;  author: mike;  state: Exp;
78793 even when not in editor, have 400 lines in texture map scanline table.
78794 ----------------------------
78795 revision 1.47
78796 date: 1994/12/15 16:43:25;  author: matt;  state: Exp;
78797 Took out code only needed by editor
78798 ----------------------------
78799 revision 1.46
78800 date: 1994/12/09 22:35:37;  author: mike;  state: Exp;
78801 fix bug in before call to asm_tmap_scanline_per causing write of pixel onto past right border onto left.
78802 ----------------------------
78803 revision 1.45
78804 date: 1994/12/06 16:31:06;  author: mike;  state: Exp;
78805 fix bug in asm_tmap_scanline_matt interface.
78806 ----------------------------
78807 revision 1.44
78808 date: 1994/12/04 20:37:18;  author: mike;  state: Exp;
78809 *** empty log message ***
78810 ----------------------------
78811 revision 1.43
78812 date: 1994/12/02 23:30:04;  author: mike;  state: Exp;
78813 optimizations.
78814 ----------------------------
78815 revision 1.42
78816 date: 1994/11/30 00:57:43;  author: mike;  state: Exp;
78817 optimizations.
78818 ----------------------------
78819 revision 1.41
78820 date: 1994/11/28 13:34:27;  author: mike;  state: Exp;
78821 optimizations.
78822 ----------------------------
78823 revision 1.40
78824 date: 1994/11/28 01:30:01;  author: mike;  state: Exp;
78825 kill warning.
78826 ----------------------------
78827 revision 1.39
78828 date: 1994/11/28 01:28:59;  author: mike;  state: Exp;
78829 optimizations.
78830 ----------------------------
78831 revision 1.38
78832 date: 1994/11/21 14:08:07;  author: john;  state: Exp;
78833 Took out all multiple instead of divide code.
78834 ----------------------------
78835 revision 1.37
78836 date: 1994/11/19 15:21:52;  author: mike;  state: Exp;
78837 rip out unused code.
78838 ----------------------------
78839 revision 1.36
78840 date: 1994/11/14 11:42:51;  author: mike;  state: Exp;
78841 optimization.
78842 ----------------------------
78843 revision 1.35
78844 date: 1994/11/12 16:41:36;  author: mike;  state: Exp;
78845 *** empty log message ***
78846 ----------------------------
78847 revision 1.34
78848 date: 1994/11/10 21:28:41;  author: mike;  state: Exp;
78849 remove call to init_interface_vars_to_assembler.
78850 ----------------------------
78851 revision 1.33
78852 date: 1994/11/10 11:08:59;  author: mike;  state: Exp;
78853 detail level stuff.
78854 ----------------------------
78855 revision 1.32
78856 date: 1994/11/09 22:55:52;  author: matt;  state: Exp;
78857 Added variable Current_seg_depth for detail level optimization
78858 ----------------------------
78859 revision 1.31
78860 date: 1994/11/09 19:57:31;  author: john;  state: Exp;
78861 Added texture rle caching.
78862 ----------------------------
78863 revision 1.30
78864 date: 1994/11/09 19:54:48;  author: mike;  state: Exp;
78865 Call flat shader if Tmap_flat_flag set.
78866 ----------------------------
78867 revision 1.29
78868 date: 1994/11/02 21:33:31;  author: john;  state: Exp;
78869 Added Burger Bill's optimization, ie.. 2 muls per 8 pixels.
78870 ----------------------------
78871 revision 1.28
78872 date: 1994/11/02 11:32:16;  author: john;  state: Exp;
78873 Added code for c callable inner loop and code to 
78874 test dividing out z0.
78875 ----------------------------
78876 revision 1.27
78877 date: 1994/10/28 20:54:32;  author: matt;  state: Exp;
78878 Added error checking
78879 ----------------------------
78880 revision 1.26
78881 date: 1994/10/25 11:20:20;  author: mike;  state: Exp;
78882 fix bug in lighting overflow checking for one scanline tall linear texture maps.
78883 ----------------------------
78884 revision 1.25
78885 date: 1994/08/03 15:40:33;  author: mike;  state: Exp;
78886 Prevent divide overflows, decrease occurrence of precision-caused glitches.
78887 ----------------------------
78888 revision 1.24
78889 date: 1994/07/27 09:31:16;  author: mike;  state: Exp;
78890 Fix concave texture map problem, decrease occurrence of unimportant int 3.
78891 ----------------------------
78892 revision 1.23
78893 date: 1994/06/17 12:23:31;  author: mike;  state: Exp;
78894 Support non-lighted texture maps.
78895 ----------------------------
78896 revision 1.22
78897 date: 1994/06/11 08:10:24;  author: mike;  state: Exp;
78898 Fix mysterious hang bug, lighting value was out of range.
78899 ----------------------------
78900 revision 1.21
78901 date: 1994/06/09 16:10:16;  author: mike;  state: Exp;
78902 Change SC2000 from constant to variable.
78903 =============================================================================
78904 RCS file: f:/miner/source/vecmat/vecmat.h,v
78905 Working file: vecmat/vecmat.h
78906 head: 1.6
78907 description: Header file for vector/matrix library
78908 ----------------------------
78909 revision 1.6
78910 date: 1993/09/20 10:11:53;  author: mike;  state: Exp;
78911 no changes
78912 ----------------------------
78913 revision 1.5
78914 date: 1993/09/20 09:58:58;  author: mike;  state: Exp;
78915 Re-fix vm_vec_make
78916 ----------------------------
78917 revision 1.4
78918 date: 1993/09/20 09:41:21;  author: mike;  state: Exp;
78919 Correct vm_vec_make and vm_mat_make macros to return the destination
78920 as the value of the macro.
78921 ----------------------------
78922 revision 1.3
78923 date: 1993/09/17 11:23:47;  author: matt;  state: Exp;
78924 Added row access (via xrow,yrow,zrow) to vms_matrix
78925 Added macro vm_mat_make(), like vm_vec_make()
78926 ----------------------------
78927 revision 1.2
78928 date: 1993/09/17 11:10:32;  author: matt;  state: Exp;
78929 Added vm_vec_add2() and vm_vec_sub2(), which take 2 args (dest==src0)
78930 ----------------------------
78931 revision 1.1
78932 date: 1993/09/16 20:10:01;  author: matt;  state: Exp;
78933 Initial revision
78934 =============================================================================
78935 RCS file: f:/miner/source/vga/vga.c,v
78936 Working file: vga/vga.c
78937 head: 1.14
78938 description: VGA library code
78939 ----------------------------
78940 revision 1.14
78941 date: 1996/01/02 18:00:51;  author: matt;  state: Exp;
78942 New parms for gr_init_screen
78943 ----------------------------
78944 revision 1.13
78945 date: 1995/12/19 13:46:05;  author: matt;  state: Exp;
78946 Use symbolic constant for special 3dmax mode
78947 ----------------------------
78948 revision 1.12
78949 date: 1995/12/13 18:03:03;  author: matt;  state: Exp;
78950 From JOHN: added code for special 3dbios mode
78951 ----------------------------
78952 revision 1.11
78953 date: 1995/12/13 16:28:54;  author: matt;  state: Exp;
78954 Use more legal way of checking screen mode
78955 ----------------------------
78956 revision 1.10
78957 date: 1995/11/28 10:30:22;  author: matt;  state: Exp;
78958 Added support for 1280x1024
78959 ----------------------------
78960 revision 1.9
78961 date: 1995/11/22 12:52:42;  author: matt;  state: Exp;
78962 Changed numeric literals to symbolic constants
78963 ----------------------------
78964 revision 1.8
78965 date: 1995/11/16 12:00:17;  author: jed;  state: Exp;
78966 killed some prototype stuff
78967 ----------------------------
78968 revision 1.7
78969 date: 1995/11/14 18:11:07;  author: jed;  state: Exp;
78970 added code to support linear frame buffering
78971 ----------------------------
78972 revision 1.6
78973 date: 1995/08/30 21:11:26;  author: matt;  state: Exp;
78974 Added global containing current VGA mode
78975 ----------------------------
78976 revision 1.5
78977 date: 1995/06/05 12:41:37;  author: samir;  state: Exp;
78978 Moved gr_palette_clear from gr.c to vga.c
78979 ----------------------------
78980 revision 1.4
78981 date: 1995/05/31 10:54:26;  author: matt;  state: Exp;
78982 Added RCS header
78983 ----------------------------
78984 revision 1.2
78985 date: 1994/02/17 15:55:59;  author: john;  state: Exp;
78986 Initial version
78987 ----------------------------
78988 revision 1.20
78989 date: 1994/01/18 10:58:55;  author: john;  state: Exp;
78990 *** empty log message ***
78991 ----------------------------
78992 revision 1.19
78993 date: 1993/12/22 13:28:40;  author: john;  state: Exp;
78994 Added back changes Matt made in r1.14
78995 ----------------------------
78996 revision 1.18
78997 date: 1993/12/22 13:18:32;  author: john;  state: Exp;
78998 *** empty log message ***
78999 ----------------------------
79000 revision 1.17
79001 date: 1993/12/20 16:48:47;  author: john;  state: Exp;
79002 Put cli/sti around clear keybuffer in key_close
79003 ----------------------------
79004 revision 1.16
79005 date: 1993/12/20 15:39:13;  author: john;  state: Exp;
79006 Tried to neaten handler code... also, moved some cli's and sti's around
79007 trying to find bug.  Made the code call key_get_milliseconds instead
79008 of timer_get_milliseconds, because we don't want the cli and sti
79009 stuff in the interrupt handler.  
79010 ----------------------------
79011 revision 1.15
79012 date: 1993/12/02 10:54:48;  author: john;  state: Exp;
79013 Made the Ctrl,Shift,Alt keys buffer like all the other keys.
79014 ----------------------------
79015 revision 1.14
79016 date: 1993/10/29 11:25:18;  author: matt;  state: Exp;
79017 Made key_down_time() not accumulate time if shift,alt,ctrl down
79018 ----------------------------
79019 revision 1.13
79020 date: 1993/10/29 10:47:00;  author: john;  state: Exp;
79021 *** empty log message ***
79022 ----------------------------
79023 revision 1.12
79024 date: 1993/10/16 19:24:16;  author: matt;  state: Exp;
79025 Added new function key_clear_times() & key_clear_counts()
79026 ----------------------------
79027 revision 1.11
79028 date: 1993/10/15 10:16:49;  author: john;  state: Exp;
79029 bunch of stuff, mainly with detecting debugger.
79030 ----------------------------
79031 revision 1.10
79032 date: 1993/10/04 13:25:57;  author: john;  state: Exp;
79033 Changed the way extended keys are processed.
79034 ----------------------------
79035 revision 1.9
79036 date: 1993/09/28 11:35:32;  author: john;  state: Exp;
79037 added key_peekkey
79038 ----------------------------
79039 revision 1.8
79040 date: 1993/09/23 18:09:23;  author: john;  state: Exp;
79041 fixed bug checking for DBG
79042 ----------------------------
79043 revision 1.7
79044 date: 1993/09/23 17:28:01;  author: john;  state: Exp;
79045 made debug check look for DBG> instead of CONTROL
79046 ----------------------------
79047 revision 1.6
79048 date: 1993/09/20 17:08:19;  author: john;  state: Exp;
79049 Made so that keys pressed in debugger don't get passed through to
79050 the keyboard handler. I also discovered, but didn't fix a error
79051 (page fault) caused by jumping back and forth between the debugger
79052 and the program...
79053 ----------------------------
79054 revision 1.5
79055 date: 1993/09/17 09:58:12;  author: john;  state: Exp;
79056 Added checks for already installed, not installed, etc.
79057 ----------------------------
79058 revision 1.4
79059 date: 1993/09/15 17:28:00;  author: john;  state: Exp;
79060 Fixed bug in FlushBuffer that used CX before a REP instead of ECX.
79061 ----------------------------
79062 revision 1.3
79063 date: 1993/09/08 14:48:00;  author: john;  state: Exp;
79064 made getch() return an int instead of a char that has shift states, etc.
79065 ----------------------------
79066 revision 1.2
79067 date: 1993/07/22 13:12:23;  author: john;  state: Exp;
79068 fixed comment
79069 ,.
79070 ----------------------------
79071 revision 1.1
79072 date: 1993/07/10 13:10:42;  author: matt;  state: Exp;
79073 Initial revision
79074 =============================================================================
79075 RCS file: f:/miner/init/makefile.def,v
79076 Working file: init/makefile.def
79077 head: 1.98
79078 description: Common makefile targets and rules for Miner
79079 This file should be included by all Miner makefiles 
79080 ----------------------------
79081 revision 1.98
79082 date: 1996/12/04 18:29:50;  author: matt;  state: Exp;
79083 Added support for keeping 3rd-party libraries in their own directories,
79084 instead of in the normal lib directory.
79085 ----------------------------
79086 revision 1.97
79087 date: 1996/12/04 15:16:50;  author: matt;  state: Exp;
79088 Added (commented-out) flags for newer DOS4GW
79089 ----------------------------
79090 revision 1.96
79091 date: 1996/08/27 10:59:50;  author: matt;  state: Exp;
79092 Added support for causeway dos extender
79093 ----------------------------
79094 revision 1.95
79095 date: 1996/07/19 14:37:59;  author: matt;  state: Exp;
79096 Fixed a couple small things
79097 ----------------------------
79098 revision 1.94
79099 date: 1996/07/03 18:43:49;  author: matt;  state: Exp;
79100 Added support for win subdir of lib directory
79101 ----------------------------
79102 revision 1.93
79103 date: 1996/07/03 18:04:11;  author: matt;  state: Exp;
79104 Look in \miner\source\lib\win before looking in \miner\source\lib
79105 ----------------------------
79106 revision 1.92
79107 date: 1996/06/17 16:30:02;  author: samir;  state: Exp;
79108 Added DLL make capabilities for NT/95
79109 ----------------------------
79110 revision 1.91
79111 date: 1996/06/11 14:49:20;  author: samir;  state: Exp;
79112 Win95: eliminated switch that allowed compat libs with 10.0. 
79113 (otherwise can't link in new Windows 95 API funcs)
79114 ----------------------------
79115 revision 1.90
79116 date: 1996/06/07 15:26:30;  author: samir;  state: Exp;
79117 under watcom 10.6, use win95 system
79118 ----------------------------
79119 revision 1.89
79120 date: 1996/05/23 18:10:36;  author: matt;  state: Exp;
79121 Fixed no_mono target, which broke no_debug if listed after it
79122 ----------------------------
79123 revision 1.88
79124 date: 1996/05/23 18:09:01;  author: matt;  state: Exp;
79125 Added option to make bound version that doesn't force VM usage
79126 ----------------------------
79127 revision 1.87
79128 date: 1996/01/31 22:22:51;  author: matt;  state: Exp;
79129 Default Cflags always had stack check disabled, do turning on stack
79130 checking didn't do anything.
79131 ----------------------------
79132 revision 1.86
79133 date: 1996/01/29 11:37:15;  author: matt;  state: Exp;
79134 Put in support for TurboC
79135 ----------------------------
79136 revision 1.85
79137 date: 1995/12/06 15:55:59;  author: matt;  state: Exp;
79138 Added option to disable optimized builds in a makefile
79139 ----------------------------
79140 revision 1.84
79141 date: 1995/10/26 18:18:22;  author: samir;  state: Exp;
79142 Made all windows libraries and headers for Descent in 
79143 minerlocal\source\lib\win
79144 ----------------------------
79145 revision 1.83
79146 date: 1995/10/24 14:21:49;  author: samir;  state: Exp;
79147 Took out WIN32_LEAN_AND_MEAN.
79148 ----------------------------
79149 revision 1.82
79150 date: 1995/10/02 11:11:32;  author: matt;  state: Exp;
79151 Changed addpath parms to pass path relative to current drive
79152 ----------------------------
79153 revision 1.81
79154 date: 1995/09/01 11:59:28;  author: samir;  state: Exp;
79155 Added lean and mean Win32.
79156 ----------------------------
79157 revision 1.80
79158 date: 1995/08/14 17:52:13;  author: matt;  state: Exp;
79159 Allow asm includes to be upper- or lower-case
79160 ----------------------------
79161 revision 1.79
79162 date: 1995/08/14 17:22:25;  author: matt;  state: Exp;
79163 Changed some stuff for Windows
79164 ----------------------------
79165 revision 1.78
79166 date: 1995/05/24 16:47:37;  author: matt;  state: Exp;
79167 Added support for building win32 programs
79168 ----------------------------
79169 revision 1.77
79170 date: 1995/05/24 12:31:15;  author: matt;  state: Exp;
79171 Allowed DOS4GPATH to either specify path+filename, or just path
79172 ----------------------------
79173 revision 1.76
79174 date: 1995/04/19 12:09:49;  author: matt;  state: Exp;
79175 Added support for Symantec C compiler
79176 ----------------------------
79177 revision 1.75
79178 date: 1995/04/06 18:24:49;  author: matt;  state: Exp;
79179 Added option to disable 'update' target
79180 ----------------------------
79181 revision 1.74
79182 date: 1995/04/06 18:20:44;  author: matt;  state: Exp;
79183 Added stuff (several weeks ago) for building windows executable
79184 ----------------------------
79185 revision 1.73
79186 date: 1995/02/06 22:58:40;  author: matt;  state: Exp;
79187 Allow multiple 'clean:' targets
79188 ----------------------------
79189 revision 1.72
79190 date: 1995/01/18 18:02:15;  author: matt;  state: Exp;
79191 Added support for TASM (instead of MASM)
79192 ----------------------------
79193 revision 1.71
79194 date: 1994/12/09 18:49:41;  author: matt;  state: Exp;
79195 Added no_mono option
79196 ----------------------------
79197 revision 1.70
79198 date: 1994/12/06 18:36:00;  author: matt;  state: Exp;
79199 Added global_aflags
79200 ----------------------------
79201 revision 1.69
79202 date: 1994/11/27 20:12:09;  author: matt;  state: Exp;
79203 Made case of install targ extensions insignificant
79204 ----------------------------
79205 revision 1.68
79206 date: 1994/11/21 13:56:26;  author: matt;  state: Exp;
79207 Bound version now prints dos4gw banner
79208 ----------------------------
79209 revision 1.67
79210 date: 1994/11/21 13:55:57;  author: matt;  state: Exp;
79211 Let subsystems have multiple targets
79212 ----------------------------
79213 revision 1.66
79214 date: 1994/10/28 10:58:30;  author: matt;  state: Exp;
79215 Made bound version turn virtual mem on, and banner off
79216 ----------------------------
79217 revision 1.65
79218 date: 1994/10/27 19:24:49;  author: matt;  state: Exp;
79219 Changed optimization & stack options (change actually made 8-26-94)
79220 ----------------------------
79221 revision 1.64
79222 date: 1994/08/12 20:59:46;  author: matt;  state: Exp;
79223 Made 'make <prog>' work again, when <prog> is the name without an extension.
79224 Make 'install' exit with error if any target got an rcs warning.
79225 ----------------------------
79226 revision 1.63
79227 date: 1994/07/19 15:07:20;  author: mike;  state: Exp;
79228 Cause "make optimize" to optimize for Pentium with /5r option.
79229 (default is, and previous was, /4r)
79230 ----------------------------
79231 revision 1.62
79232 date: 1994/07/19 14:15:33;  author: mike;  state: Exp;
79233 Add /5r option to optimize5
79234 ----------------------------
79235 revision 1.61
79236 date: 1994/06/14 11:18:25;  author: matt;  state: Exp;
79237 Added support for cflags global to makefile
79238 ----------------------------
79239 revision 1.60
79240 date: 1994/05/02 15:49:14;  author: matt;  state: Exp;
79241 Added target 'bind' which creates *.bnd files for all exes
79242 ----------------------------
79243 revision 1.59
79244 date: 1994/04/22 13:13:42;  author: matt;  state: Exp;
79245 Added list of sources that always is built optimized
79246 Removed move of log headers
79247 ----------------------------
79248 revision 1.58
79249 date: 1994/04/01 11:42:51;  author: matt;  state: Exp;
79250 Added flags for assembly, and when NDEBUG is set, use /d
79251 =============================================================================
79252 RCS file: f:/miner/init/makefile.def,v
79253 Working file: init/makefile.def
79254 head: 1.98
79255 description: Common makefile targets and rules for Miner
79256 This file should be included by all Miner makefiles 
79257 ----------------------------
79258 revision 1.98
79259 date: 1996/12/04 18:29:50;  author: matt;  state: Exp;
79260 Added support for keeping 3rd-party libraries in their own directories,
79261 instead of in the normal lib directory.
79262 ----------------------------
79263 revision 1.97
79264 date: 1996/12/04 15:16:50;  author: matt;  state: Exp;
79265 Added (commented-out) flags for newer DOS4GW
79266 ----------------------------
79267 revision 1.96
79268 date: 1996/08/27 10:59:50;  author: matt;  state: Exp;
79269 Added support for causeway dos extender
79270 ----------------------------
79271 revision 1.95
79272 date: 1996/07/19 14:37:59;  author: matt;  state: Exp;
79273 Fixed a couple small things
79274 ----------------------------
79275 revision 1.94
79276 date: 1996/07/03 18:43:49;  author: matt;  state: Exp;
79277 Added support for win subdir of lib directory
79278 ----------------------------
79279 revision 1.93
79280 date: 1996/07/03 18:04:11;  author: matt;  state: Exp;
79281 Look in \miner\source\lib\win before looking in \miner\source\lib
79282 ----------------------------
79283 revision 1.92
79284 date: 1996/06/17 16:30:02;  author: samir;  state: Exp;
79285 Added DLL make capabilities for NT/95
79286 ----------------------------
79287 revision 1.91
79288 date: 1996/06/11 14:49:20;  author: samir;  state: Exp;
79289 Win95: eliminated switch that allowed compat libs with 10.0. 
79290 (otherwise can't link in new Windows 95 API funcs)
79291 ----------------------------
79292 revision 1.90
79293 date: 1996/06/07 15:26:30;  author: samir;  state: Exp;
79294 under watcom 10.6, use win95 system
79295 ----------------------------
79296 revision 1.89
79297 date: 1996/05/23 18:10:36;  author: matt;  state: Exp;
79298 Fixed no_mono target, which broke no_debug if listed after it
79299 ----------------------------
79300 revision 1.88
79301 date: 1996/05/23 18:09:01;  author: matt;  state: Exp;
79302 Added option to make bound version that doesn't force VM usage
79303 ----------------------------
79304 revision 1.87
79305 date: 1996/01/31 22:22:51;  author: matt;  state: Exp;
79306 Default Cflags always had stack check disabled, do turning on stack
79307 checking didn't do anything.
79308 ----------------------------
79309 revision 1.86
79310 date: 1996/01/29 11:37:15;  author: matt;  state: Exp;
79311 Put in support for TurboC
79312 ----------------------------
79313 revision 1.85
79314 date: 1995/12/06 15:55:59;  author: matt;  state: Exp;
79315 Added option to disable optimized builds in a makefile
79316 ----------------------------
79317 revision 1.84
79318 date: 1995/10/26 18:18:22;  author: samir;  state: Exp;
79319 Made all windows libraries and headers for Descent in 
79320 minerlocal\source\lib\win
79321 ----------------------------
79322 revision 1.83
79323 date: 1995/10/24 14:21:49;  author: samir;  state: Exp;
79324 Took out WIN32_LEAN_AND_MEAN.
79325 ----------------------------
79326 revision 1.82
79327 date: 1995/10/02 11:11:32;  author: matt;  state: Exp;
79328 Changed addpath parms to pass path relative to current drive
79329 ----------------------------
79330 revision 1.81
79331 date: 1995/09/01 11:59:28;  author: samir;  state: Exp;
79332 Added lean and mean Win32.
79333 ----------------------------
79334 revision 1.80
79335 date: 1995/08/14 17:52:13;  author: matt;  state: Exp;
79336 Allow asm includes to be upper- or lower-case
79337 ----------------------------
79338 revision 1.79
79339 date: 1995/08/14 17:22:25;  author: matt;  state: Exp;
79340 Changed some stuff for Windows
79341 ----------------------------
79342 revision 1.78
79343 date: 1995/05/24 16:47:37;  author: matt;  state: Exp;
79344 Added support for building win32 programs
79345 ----------------------------
79346 revision 1.77
79347 date: 1995/05/24 12:31:15;  author: matt;  state: Exp;
79348 Allowed DOS4GPATH to either specify path+filename, or just path
79349 ----------------------------
79350 revision 1.76
79351 date: 1995/04/19 12:09:49;  author: matt;  state: Exp;
79352 Added support for Symantec C compiler
79353 ----------------------------
79354 revision 1.75
79355 date: 1995/04/06 18:24:49;  author: matt;  state: Exp;
79356 Added option to disable 'update' target
79357 ----------------------------
79358 revision 1.74
79359 date: 1995/04/06 18:20:44;  author: matt;  state: Exp;
79360 Added stuff (several weeks ago) for building windows executable
79361 ----------------------------
79362 revision 1.73
79363 date: 1995/02/06 22:58:40;  author: matt;  state: Exp;
79364 Allow multiple 'clean:' targets
79365 ----------------------------
79366 revision 1.72
79367 date: 1995/01/18 18:02:15;  author: matt;  state: Exp;
79368 Added support for TASM (instead of MASM)
79369 ----------------------------
79370 revision 1.71
79371 date: 1994/12/09 18:49:41;  author: matt;  state: Exp;
79372 Added no_mono option
79373 ----------------------------
79374 revision 1.70
79375 date: 1994/12/06 18:36:00;  author: matt;  state: Exp;
79376 Added global_aflags
79377 ----------------------------
79378 revision 1.69
79379 date: 1994/11/27 20:12:09;  author: matt;  state: Exp;
79380 Made case of install targ extensions insignificant
79381 ----------------------------
79382 revision 1.68
79383 date: 1994/11/21 13:56:26;  author: matt;  state: Exp;
79384 Bound version now prints dos4gw banner
79385 ----------------------------
79386 revision 1.67
79387 date: 1994/11/21 13:55:57;  author: matt;  state: Exp;
79388 Let subsystems have multiple targets
79389 ----------------------------
79390 revision 1.66
79391 date: 1994/10/28 10:58:30;  author: matt;  state: Exp;
79392 Made bound version turn virtual mem on, and banner off
79393 ----------------------------
79394 revision 1.65
79395 date: 1994/10/27 19:24:49;  author: matt;  state: Exp;
79396 Changed optimization & stack options (change actually made 8-26-94)
79397 ----------------------------
79398 revision 1.64
79399 date: 1994/08/12 20:59:46;  author: matt;  state: Exp;
79400 Made 'make <prog>' work again, when <prog> is the name without an extension.
79401 Make 'install' exit with error if any target got an rcs warning.
79402 ----------------------------
79403 revision 1.63
79404 date: 1994/07/19 15:07:20;  author: mike;  state: Exp;
79405 Cause "make optimize" to optimize for Pentium with /5r option.
79406 (default is, and previous was, /4r)
79407 ----------------------------
79408 revision 1.62
79409 date: 1994/07/19 14:15:33;  author: mike;  state: Exp;
79410 Add /5r option to optimize5
79411 ----------------------------
79412 revision 1.61
79413 date: 1994/06/14 11:18:25;  author: matt;  state: Exp;
79414 Added support for cflags global to makefile
79415 ----------------------------
79416 revision 1.60
79417 date: 1994/05/02 15:49:14;  author: matt;  state: Exp;
79418 Added target 'bind' which creates *.bnd files for all exes
79419 ----------------------------
79420 revision 1.59
79421 date: 1994/04/22 13:13:42;  author: matt;  state: Exp;
79422 Added list of sources that always is built optimized
79423 Removed move of log headers
79424 ----------------------------
79425 revision 1.58
79426 date: 1994/04/01 11:42:51;  author: matt;  state: Exp;
79427 Added flags for assembly, and when NDEBUG is set, use /d