]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Sprites.cpp
Added GPL license and headers.
[lugaru.git] / Source / Sprites.cpp
index aba6f8d73139c41c83a2042ecef7440fa8e5edf8..c80d5e7185e7f82dcb6788d05ea42a182539b1eb 100644 (file)
@@ -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,15 +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 );
 }
+