Rev 11 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11 | Rev 18 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #include "spark.h" |
36 | #include "spark.h" |
37 | #include "trig.h" |
37 | #include "trig.h" |
38 | #include "utility.h" |
38 | #include "utility.h" |
39 | #include "world.h" |
39 | #include "world.h" |
40 | 40 | ||
41 | #include " |
41 | #include "brender.h" |
42 | 42 | ||
43 | int gGame_initialized; |
43 | int gGame_initialized; |
44 | int gBr_initialized; |
44 | int gBr_initialized; |
45 | int gBrZb_initialized; |
45 | int gBrZb_initialized; |
46 | int gInitialisation_finished; |
46 | int gInitialisation_finished; |
Line 236... | Line 236... | ||
236 | NOT_IMPLEMENTED(); |
236 | NOT_IMPLEMENTED(); |
237 | } |
237 | } |
238 | 238 | ||
239 | // IDA: void __cdecl AllocateStandardLamp() |
239 | // IDA: void __cdecl AllocateStandardLamp() |
240 | void AllocateStandardLamp(void) { |
240 | void AllocateStandardLamp(void) { |
- | 241 | br_actor* lamp; |
|
- | 242 | int i; |
|
- | 243 | ||
- | 244 | for (i = 0; i < gNumber_of_lights; i++) { |
|
241 |
|
245 | BrActorAdd(gUniverse_actor, gLight_array[i]); |
- | 246 | lamp = gLight_array[i]->children; |
|
- | 247 | if (lamp) { |
|
- | 248 | BrActorRemove(lamp); |
|
242 |
|
249 | gLight_array[i]->children = NULL; |
- | 250 | BrActorFree(lamp); |
|
243 |
|
251 | } |
- | 252 | BrLightEnable(gLight_array[i]); |
|
- | 253 | } |
|
244 | } |
254 | } |
245 | 255 | ||
246 | // IDA: void __cdecl InitializeBRenderEnvironment() |
256 | // IDA: void __cdecl InitializeBRenderEnvironment() |
247 | void InitializeBRenderEnvironment(void) { |
257 | void InitializeBRenderEnvironment(void) { |
248 | br_model* arrow_model; |
258 | br_model* arrow_model; |