Author: muggenhor
Date: Sun Feb 18 22:30:51 2007
New Revision: 779

URL: http://svn.gna.org/viewcvs/warzone?rev=779&view=rev
Log:
 * improve code readability (e.g. only keeping the `if (malloc(...) == NULL) 
handleError;` part, so as not to wrap all the rest of the code in a big 
(recursive) else block
 * remove function `static void sound_SaveTrackData` because the operation it 
performs doesn't justify a whole function (and its calling overhead)
 * some cleanup in functions sound_ReadTrackFromBuffer and 
sound_ReadTrackFromFile
  * commented operation of both functions 
  * moved the content of function sound_SaveTrackData (only one statement) to 
sound_ReadTrackFromBuffer
  * modified sound_ReadTrackFromFile to not allocate double the size of the 
needed memory for a buffer

Modified:
    trunk/lib/sound/openal_track.c
    trunk/lib/sound/track.c


_______________________________________________
Warzone-commits mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-commits

Reply via email to