/*
   Copyright (C) 2004 by James Gregory
   Part of the GalaxyHack project
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.
 
   See the COPYING file for more details.
*/

#include "TerrainTile.h"
#include "Globals.h"

void TerrainTile::DrawSelf() {
	static SDL_Rect USRect;

	USRect.x = rect.x - viewx;
	USRect.y = rect.y - viewy;
	USRect.w = rect.w;
	USRect.h = rect.h;

	//no point in clipping when blitting is automatically clipped to the screen anyhow
	JSDL.Blt(pic, USRect);
}

