mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01:00
Remove temporary indents from the last commit
In the last commit, I removed having the flip mode conditional directly inside the sprite-drawing code for each size type, which would reduce the indentation one level. However, I opted to hold off un-indenting until this commit, otherwise it would've produced too much noise.
This commit is contained in:
parent
8536185661
commit
3f46a0a2e9
1 changed files with 138 additions and 143 deletions
|
@ -1427,7 +1427,6 @@ void Graphics::drawentities()
|
|||
if (obj.entities[i].size == 0)
|
||||
{
|
||||
// Sprites
|
||||
// FIXME: Remove temporary indent here
|
||||
tpoint.x = obj.entities[i].xp;
|
||||
tpoint.y = obj.entities[i].yp;
|
||||
setcol(obj.entities[i].colour);
|
||||
|
@ -1549,7 +1548,6 @@ void Graphics::drawentities()
|
|||
}
|
||||
else if (obj.entities[i].size == 9) // Really Big Sprite! (2x2)
|
||||
{
|
||||
// FIXME: Remove temporary indent here
|
||||
setcol(obj.entities[i].colour);
|
||||
|
||||
tpoint.x = obj.entities[i].xp;
|
||||
|
@ -1586,7 +1584,6 @@ void Graphics::drawentities()
|
|||
}
|
||||
else if (obj.entities[i].size == 10) // 2x1 Sprite
|
||||
{
|
||||
// FIXME: Remove temporary indent here
|
||||
setcol(obj.entities[i].colour);
|
||||
|
||||
tpoint.x = obj.entities[i].xp;
|
||||
|
@ -1612,7 +1609,6 @@ void Graphics::drawentities()
|
|||
}
|
||||
else if (obj.entities[i].size == 12) // Regular sprites that don't wrap
|
||||
{
|
||||
// FIXME: Remove temporary indent here
|
||||
tpoint.x = obj.entities[i].xp;
|
||||
tpoint.y = obj.entities[i].yp;
|
||||
setcol(obj.entities[i].colour);
|
||||
|
@ -1671,7 +1667,6 @@ void Graphics::drawentities()
|
|||
{
|
||||
//Special for epilogue: huge hero!
|
||||
|
||||
// FIXME: Remove temporary indent here
|
||||
tpoint.x = obj.entities[i].xp; tpoint.y = obj.entities[i].yp;
|
||||
setcol(obj.entities[i].colour);
|
||||
SDL_Rect drawRect = {Sint16(obj.entities[i].xp ), Sint16(obj.entities[i].yp), Sint16(sprites_rect.x * 6), Sint16(sprites_rect.y * 6 ) };
|
||||
|
|
Loading…
Reference in a new issue