X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSprites.cpp;h=c80d5e7185e7f82dcb6788d05ea42a182539b1eb;hb=decb00e82a2e65e25dbcdd8f16fff5a6a07d31d6;hp=adf7c70a2addf6d1085855aae9b03e29e5c1a001;hpb=36cc3af3e5074215817ddee16defde754e2ad67f;p=lugaru.git diff --git a/Source/Sprites.cpp b/Source/Sprites.cpp index adf7c70..c80d5e7 100644 --- a/Source/Sprites.cpp +++ b/Source/Sprites.cpp @@ -1,3 +1,24 @@ +/* +Copyright (C) 2003, 2010 - Wolfire Games + +This file is part of Lugaru. + +Lugaru is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + #include "Sprites.h" #include "Person.h" extern XYZ viewer; @@ -429,16 +450,16 @@ Sprites::Sprites() } Sprites::~Sprites() { - if (toothtexture) glDeleteTextures( 1, (const unsigned long *)&toothtexture ); - if (cloudtexture) glDeleteTextures( 1, (const unsigned long *)&cloudtexture ); - if (cloudimpacttexture) glDeleteTextures( 1, (const unsigned long *)&cloudimpacttexture ); - if (bloodtexture) glDeleteTextures( 1, (const unsigned long *)&bloodtexture ); - if (flametexture) glDeleteTextures( 1, (const unsigned long *)&flametexture ); - if (bloodflametexture) glDeleteTextures( 1, (const unsigned long *)&bloodflametexture ); - if (smoketexture) glDeleteTextures( 1, (const unsigned long *)&smoketexture ); - if (snowflaketexture) glDeleteTextures( 1, (const unsigned long *)&snowflaketexture ); - if (shinetexture) glDeleteTextures( 1, (const unsigned long *)&shinetexture ); - if (splintertexture) glDeleteTextures( 1, (const unsigned long *)&splintertexture ); - if (leaftexture) glDeleteTextures( 1, (const unsigned long *)&leaftexture ); + if (toothtexture) glDeleteTextures( 1, &toothtexture ); + if (cloudtexture) glDeleteTextures( 1, &cloudtexture ); + if (cloudimpacttexture) glDeleteTextures( 1, &cloudimpacttexture ); + if (bloodtexture) glDeleteTextures( 1, &bloodtexture ); + if (flametexture) glDeleteTextures( 1, &flametexture ); + if (bloodflametexture) glDeleteTextures( 1, &bloodflametexture ); + if (smoketexture) glDeleteTextures( 1, &smoketexture ); + if (snowflaketexture) glDeleteTextures( 1, &snowflaketexture ); + if (shinetexture) glDeleteTextures( 1, &shinetexture ); + if (splintertexture) glDeleteTextures( 1, &splintertexture ); + if (leaftexture) glDeleteTextures( 1, &leaftexture ); }