Original Source for 1.13 Mod High Resolution version from 12/06/05

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-04-19 11:32:51 +00:00
commit e54aeb96aa
790 changed files with 741287 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#ifdef PRECOMPILEDHEADERS
#include "TileEngine All.h"
#else
#include "types.h"
#include "Fog Of War.h"
#include "Isometric Utils.h"
#include "worldman.h"
#include "Simple Render Utils.h"
#include "Renderworld.h"
#include "lighting.h"
#endif
//When line of sight reaches a gridno, and there is a light there, it turns it on.
//This is only done in the cave levels.
void RemoveFogFromGridNo( UINT32 uiGridNo )
{
INT32 i;
INT32 x, y;
UINT32 uiAdjacentGridNo = 0;
x = uiGridNo % WORLD_COLS;
y = uiGridNo / WORLD_COLS;
for( i = 0; i < MAX_LIGHT_SPRITES; i++ )
{
if( LightSprites[ i ].iX == x && LightSprites[ i ].iY == y )
{
if( !(LightSprites[ i ].uiFlags & LIGHT_SPR_ON) )
{
LightSpritePower( i, TRUE );
LightDraw( LightSprites[i].uiLightType, LightSprites[i].iTemplate, LightSprites[i].iX, LightSprites[i].iY, i );
MarkWorldDirty();
return;
}
}
}
}