- fixed: Morph weapons weren't destroyed because the code checked for

them in the unmorphed player class.
- fixed: With padding the largest texture to fit into a page is 254x254.


SVN r2005 (trunk)
This commit is contained in:
Christoph Oelckers 2009-11-28 07:46:30 +00:00
commit d14faa5f98
3 changed files with 9 additions and 3 deletions

View file

@ -1828,7 +1828,8 @@ D3DFB::PackedTexture *D3DFB::AllocPackedTexture(int w, int h, bool wrapping, D3D
PackedTexture *bestbox;
int area;
if (w > 256 || h > 256 || wrapping)
// check for 254 to account for padding
if (w > 254 || h > 254 || wrapping)
{ // Create a new packing texture.
bestpack = new PackingTexture(this, w, h, format);
bestpack->OneUse = true;