mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01:00
Add kludge to fix rendering of gravity lines in a gotoroom
Due to #464, standing inside a gravity line during a gotoroom that occurs every frame will end up with the gravity line being gray instead of being white. To temporarily fix this (until #464 is properly fixed), I decided to add some kludge that colors it white if its onentity is 1. I tested this patch with gravity lines in both constant-gotoroom and normal environments, and it seems to be fine for both.
This commit is contained in:
parent
d1fd910bdb
commit
1a3577e196
1 changed files with 1 additions and 1 deletions
|
@ -1430,7 +1430,7 @@ bool Graphics::Hitest(SDL_Surface* surface1, point p1, SDL_Surface* surface2, po
|
|||
|
||||
void Graphics::drawgravityline( int t )
|
||||
{
|
||||
if (obj.entities[t].life == 0)
|
||||
if (obj.entities[t].life == 0 || obj.entities[t].onentity == 1) // FIXME: Remove 'onentity == 1' when game loop order is fixed!
|
||||
{
|
||||
switch(linestate)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue