Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 20
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 "brender.h"
41
#include "brender/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++) {
-
 
245
        BrActorAdd(gUniverse_actor, gLight_array[i]);
241
    //br_actor* lamp; // Pierre-Marie Baty -- unused variable
246
        lamp = gLight_array[i]->children;
-
 
247
        if (lamp) {
-
 
248
            BrActorRemove(lamp);
-
 
249
            gLight_array[i]->children = NULL;
242
    //int i; // Pierre-Marie Baty -- unused variable
250
            BrActorFree(lamp);
-
 
251
        }
243
    STUB();
252
        BrLightEnable(gLight_array[i]);
-
 
253
    }
-
 
254
}
244
}
255
 
245
 
256
// IDA: void __cdecl InitializeBRenderEnvironment()
246
// IDA: void __cdecl InitializeBRenderEnvironment()
257
void InitializeBRenderEnvironment(void) {
247
void InitializeBRenderEnvironment(void) {
258
    br_model* arrow_model;
248
    br_model* arrow_model;