Merge pull request #775 from InfoTeddy/general-bug-fixes-5

Interpolate gravitron square indicators
This commit is contained in:
Terry Cavanagh
2021-06-12 22:35:07 +10:30
committed by GitHub

View File

@@ -2033,7 +2033,7 @@ void Graphics::drawentity(const int i, const int yoff)
{
if (obj.entities[i].xp < -100)
{
tpoint.x = -5 + (int(( -obj.entities[i].xp) / 10));
tpoint.x = -5 + (int(( -xp) / 10));
}
else
{
@@ -2056,7 +2056,7 @@ void Graphics::drawentity(const int i, const int yoff)
{
if (obj.entities[i].xp > 420)
{
tpoint.x = 320 - (int(( obj.entities[i].xp-320) / 10));
tpoint.x = 320 - (int(( xp-320) / 10));
}
else
{