This commit is contained in:
Charles 2001-07-05 22:52:06 +00:00
parent 33f70e9634
commit d73a635fdd

View File

@ -133,16 +133,16 @@ void CNpcSeaSnakeEnemy::postInit()
if ( segCount < initLength ) if ( segCount < initLength )
{ {
u16 sum = ONE; u16 sum = ONE << 1;
u16 start = ONE >> 1; u16 start = ONE;
u16 end = sum - start; u16 end = sum - start;
segScale = start + ( ( end * segCount ) / initLength ); segScale = start + ( ( end * segCount ) / initLength );
} }
else else
{ {
u16 sum = ONE; u16 sum = ONE << 1;
u16 start = ONE >> 3; u16 start = ONE >> 1;
u16 end = sum - start; u16 end = sum - start;
segScale = start + ( ( end * ( NPC_SEA_SNAKE_LENGTH - segCount ) ) / remLength ); segScale = start + ( ( end * ( NPC_SEA_SNAKE_LENGTH - segCount ) ) / remLength );