… | |
… | |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | */ |
23 | */ |
24 | |
24 | |
25 | #include <global.h> |
25 | #include <global.h> |
26 | #include <material.h> |
26 | #include <material.h> |
|
|
27 | |
|
|
28 | //+GPL |
27 | |
29 | |
28 | /* convert materialname to materialtype_t */ |
30 | /* convert materialname to materialtype_t */ |
29 | |
31 | |
30 | materialtype_t * |
32 | materialtype_t * |
31 | name_to_material (const shstr_cmp name) |
33 | name_to_material (const shstr_cmp name) |
… | |
… | |
167 | mt->density = 1; |
169 | mt->density = 1; |
168 | mt->next = 0; |
170 | mt->next = 0; |
169 | |
171 | |
170 | return mt; |
172 | return mt; |
171 | } |
173 | } |
|
|
174 | |
|
|
175 | //-GPL |
172 | |
176 | |
173 | void |
177 | void |
174 | load_materials (void) |
178 | load_materials (void) |
175 | { |
179 | { |
176 | char filename[MAX_BUF]; |
180 | char filename[MAX_BUF]; |