*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@472 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-05 17:41:27 +00:00
parent 7d429be232
commit 1802cace77
35 changed files with 960 additions and 620 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ void lightray(float bx, float by, persistent_entity &light) // done in realt
int l = light.attr2<<PRECBITS;
int stepx = (int)(dx/(float)steps*PRECF);
int stepy = (int)(dy/(float)steps*PRECF);
int stepl = fast_f2nat(l/(float)steps); // incorrect: light will fade quicker if near edge of the world
int stepl = (int)(l/(float)steps); // incorrect: light will fade quicker if near edge of the world
if(hasoverbright)
{
@@ -39,9 +39,9 @@ void lightray(float bx, float by, persistent_entity &light) // done in realt
if(OUTBORD(x>>PRECBITS, y>>PRECBITS)) return;
int g = light.attr3<<PRECBITS;
int stepg = fast_f2nat(g/(float)steps);
int stepg = (int)(g/(float)steps);
int b = light.attr4<<PRECBITS;
int stepb = fast_f2nat(b/(float)steps);
int stepb = (int)(b/(float)steps);
g /= lightscale;
stepg /= lightscale;
b /= lightscale;