mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user