… | |
… | |
36 | #include <funcpoint.h> |
36 | #include <funcpoint.h> |
37 | #include <material.h> |
37 | #include <material.h> |
38 | |
38 | |
39 | #include <glib.h> |
39 | #include <glib.h> |
40 | |
40 | |
|
|
41 | refcnt_base::refcnt_t refcnt_dummy; |
|
|
42 | |
41 | rand_gen rndm; |
43 | rand_gen rndm; |
42 | |
44 | |
43 | void |
45 | void |
44 | tausworthe_random_generator::seed (uint32_t seed) |
46 | tausworthe_random_generator::seed (uint32_t seed) |
45 | { |
47 | { |
… | |
… | |
212 | { |
214 | { |
213 | for (materialtype_t *mt = materialt; mt && mt->next; mt = mt->next) |
215 | for (materialtype_t *mt = materialt; mt && mt->next; mt = mt->next) |
214 | if (name == mt->name) |
216 | if (name == mt->name) |
215 | return mt; |
217 | return mt; |
216 | |
218 | |
217 | return materialt; |
219 | return 0; |
218 | } |
220 | } |
219 | |
221 | |
220 | /* when doing transmutation of objects, we have to recheck the resistances, |
222 | /* when doing transmutation of objects, we have to recheck the resistances, |
221 | * as some that did not apply previously, may apply now. |
223 | * as some that did not apply previously, may apply now. |
222 | */ |
224 | */ |
… | |
… | |
628 | 0xcdd70693UL, 0x54de5729UL, 0x23d967bfUL, 0xb3667a2eUL, 0xc4614ab8UL, |
630 | 0xcdd70693UL, 0x54de5729UL, 0x23d967bfUL, 0xb3667a2eUL, 0xc4614ab8UL, |
629 | 0x5d681b02UL, 0x2a6f2b94UL, 0xb40bbe37UL, 0xc30c8ea1UL, 0x5a05df1bUL, |
631 | 0x5d681b02UL, 0x2a6f2b94UL, 0xb40bbe37UL, 0xc30c8ea1UL, 0x5a05df1bUL, |
630 | 0x2d02ef8dL |
632 | 0x2d02ef8dL |
631 | }; |
633 | }; |
632 | |
634 | |
|
|
635 | #if 0 |
|
|
636 | void xyzzy (object_ptr &a, object_ptr &o) |
|
|
637 | { |
|
|
638 | asm volatile ("int3"); |
|
|
639 | a = o; |
|
|
640 | asm volatile ("int3"); |
|
|
641 | } |
|
|
642 | #endif |
633 | |
643 | |