else if(Type == TILE_BOOST2)
{
if(MaxSpeed == 0)
{
TempVel += Direction * Force;
}
else
{
float TempMaxSpeed = MaxSpeed / 5.0f;
TempVel += Direction * Force;
float NextSpeed = length(TempVel);
if(NextSpeed > TempMaxSpeed)
{
TempVel *= TempMaxSpeed / NextSpeed;
}
}
m_Core.m_Vel = ClampVel(m_MoveRestrictions, TempVel);
}
Look mom, I can do basic vector maths (edited)else if(Type == TILE_BOOST2)
{
if(MaxSpeed == 0)
{
TempVel += Direction * Force;
}
else
{
float TempMaxSpeed = MaxSpeed / 5.0f;
TempVel += Direction * Force;
float NextSpeed = length(TempVel);
if(NextSpeed > TempMaxSpeed)
{
TempVel *= TempMaxSpeed / NextSpeed;
}
}
m_Core.m_Vel = ClampVel(m_MoveRestrictions, TempVel);
}
Look mom, I can do basic vector maths (edited)A feature-rich Rust keyboard firmware.
(edited)--dry-run
optional parameter to check if an image is dilated with the dilate
tool without modifying the existing file, by copying and comparing the image data in memory.
The --dry-run
parameter must be the first parameter if used. All following parameters are interpreted as filenames.
With --dry-run
enabled the tool will exit with error code 0 if all specified files are already dilated.
Use dilate
tool with the added --dry-run
parameter to check if all .png
file...