|
From: Rob <geo...@us...> - 2005-09-27 22:04:03
|
Update of /cvsroot/timewarp/source/other In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1362/source/other Modified Files: planet3d.cpp Log Message: It appears that there's a possible overflow of the mask-array in case of an irregular sprite, because of use of a single default width; default width is therefore removed from the SpaceSprite, and the (artificial) separation between regular/irregular is removed. This has consequences throughout the game code. Index: planet3d.cpp =================================================================== RCS file: /cvsroot/timewarp/source/other/planet3d.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** planet3d.cpp 21 Aug 2005 13:55:29 -0000 1.23 --- planet3d.cpp 27 Sep 2005 22:03:55 -0000 1.24 *************** *** 46,53 **** attributes = new char [count]; ! w = image->w; ! h = image->h; ! bmp = create_bitmap_ex ( bpp, w, h); convert_bitmap(image, bmp, general_attributes & MASKED); --- 46,53 ---- attributes = new char [count]; ! //w = image->w; ! //h = image->h; ! bmp = create_bitmap_ex ( bpp, image->w, image->h); convert_bitmap(image, bmp, general_attributes & MASKED); |