Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2863 in orxonox.OLD for orxonox/trunk/importer/array.cc


Ignore:
Timestamp:
Nov 16, 2004, 1:19:54 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: now imports more than 3 different objects, but there is an error with the groupname, this will be resolved. also added toDo (do not inject into trunksvn add toDo )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/array.cc

    r2848 r2863  
    6969    printf ("Finalizing array.\n"); 
    7070  if ((array = (GLfloat*)malloc( entryCount* sizeof(GLfloat))) == NULL)
     71  //  if ((array = new GLfloat [entryCount]) == NULL)
    7172    printf ("could not allocate %i data Blocks\n", entryCount);
    7273  Entry* walker = firstEntry;
     
    7778    }
    7879  finalized = true;
     80
    7981  return;
    8082}
     
    9193        printf ("adding new Entry to Array: %f\n", entry);
    9294     
    93       entryCount++;
    9495      currentEntry->value = entry;
    9596      currentEntry->next = new Entry;
    9697      currentEntry = currentEntry->next;
    9798      currentEntry->next = NULL;
     99      ++entryCount;
    98100    }
    99101  else
Note: See TracChangeset for help on using the changeset viewer.