This commit is contained in:
parent
33f70e9634
commit
d73a635fdd
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user