const idVec3 *idSplineList::getPosition( long t ) {
static idVec3 interpolatedPos;
- static long lastTime = -1;
int count = splineTime.Num();
if ( count == 0 ) {
void idCameraDef::buildCamera() {
int i;
- int lastSwitch = 0;
idList<float> waits;
idList<int> targets;
// we have a base time layout for the path and the target path
// now we need to layer on any wait or speed changes
for ( i = 0; i < events.Num(); i++ ) {
- idCameraEvent *ev = events[i];
events[i]->setTriggered( false );
switch ( events[i]->getType() ) {
case idCameraEvent::EVENT_TARGET: {
bool idCameraDef::load( const char *filename ) {
char *buf;
const char *buf_p;
- int length = FS_ReadFile( filename, (void **)&buf );
+
+ FS_ReadFile( filename, (void **)&buf );
if ( !buf ) {
return false;
}
}
void idCameraDef::addTarget( const char *name, idCameraPosition::positionType type ) {
- const char *text = ( name == NULL ) ? va( "target0%d", numTargets() + 1 ) : name;
idCameraPosition *pos = newFromType( type );
if ( pos ) {
pos->setName( name );
i = a.length(); // i == 0
i = c.length(); // i == 4
- const char *s1 = a.c_str(); // s1 == "\0"
- const char *s2 = c.c_str(); // s2 == "test\0"
-
t = new idStr(); // t->len == 0, t->data == "\0"
delete t; // t == ?
dspriteframetype_t *pframetype;
int version;
int numframes;
- int size;
- spriteframetype_t frametype;
dspriteframe_t *spriteframe;
*pic = NULL;
*pic = bmpRGBA;
#ifdef DEBUG
- frametype = spriteframetype_t( LittleLong( pframetype->type ) );
+ spriteframetype_t frametype = spriteframetype_t( LittleLong( pframetype->type ) );
if ( frametype == SPR_SINGLE ) {
Sys_Printf( "Single Frame\n" );
}
void IsFaceConflicting(){
texdef_t* tmp_texdef;
texdef_to_face_t* temp_texdef_face_list;
- char buf[12];
char texture_name[128];
if ( texdef_face_list_empty() ) {
texdef_to_face_t* temp_texdef_face_list;
char blank[1];
GList *items = NULL;
- GList *tmp_item;
int num_of_list_items = 0;
blank[0] = 0;
g_texdef_face_vector.resize( count );
if ( !texdef_face_list_empty() ) {
- texdef_to_face_t* p = get_texdef_face_list();
GetSelFacesTexdef( get_texdef_face_list() );
}
// Axial Button
static void on_axial_button_clicked( GtkButton *button, gpointer user_data ){
texdef_t* tmp_texdef;
- texdef_t* tmp_orig_texdef;
texdef_to_face_t* temp_texdef_face_list;
if ( !texdef_face_list_empty() && g_bListenChanged ) {
void IsFaceConflicting(){
texdef_t* tmp_texdef;
texdef_to_face_t* temp_texdef_face_list;
- char buf[12];
char texture_name[128];
if ( texdef_face_list_empty() ) {
texdef_to_face_t* temp_texdef_face_list;
char blank[1];
GList *items = NULL;
- GList *tmp_item;
int num_of_list_items = 0;
blank[0] = 0;
g_texdef_face_vector.resize( count );
if ( !texdef_face_list_empty() ) {
- texdef_to_face_t* p = get_texdef_face_list();
GetSelFacesTexdef( get_texdef_face_list() );
}
// Axial Button
static void on_axial_button_clicked( GtkButton *button, gpointer user_data ){
texdef_t* tmp_texdef;
- texdef_t* tmp_orig_texdef;
texdef_to_face_t* temp_texdef_face_list;
if ( !texdef_face_list_empty() && g_bListenChanged ) {
int i, x, y, z, x1, y1, z1;
light_t *light, *light2, **owner;
bspLeaf_t *leaf;
- vec3_t origin, dir, mins, maxs, nullVector = { 0, 0, 0 };
+ vec3_t origin, dir, mins, maxs;
float radius, intensity;
light_t *buckets[ 256 ];