mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Set customwarpmode when createentitying warp lines
This fixes a bug where warp lines created through createentity wouldn't work without there already being a warp line present in the room as an edentity.
This commit is contained in:
parent
4be6d58b82
commit
98ac1fdb53
1 changed files with 4 additions and 0 deletions
|
@ -2621,6 +2621,7 @@ void entityclass::createentity( Game& game, float xp, float yp, int t, float vx
|
|||
//entities[k].colour = 0;
|
||||
entities[k].onentity = 1;
|
||||
entities[k].invis=true;
|
||||
if (map.custommode) customwarpmode = true;
|
||||
break;
|
||||
case 52: //Vertical Warp Line
|
||||
entities[k].rule = 5;
|
||||
|
@ -2634,6 +2635,7 @@ void entityclass::createentity( Game& game, float xp, float yp, int t, float vx
|
|||
//entities[k].colour = 0;
|
||||
entities[k].onentity = 1;
|
||||
entities[k].invis=true;
|
||||
if (map.custommode) customwarpmode = true;
|
||||
break;
|
||||
case 53: //Horizontal Warp Line
|
||||
entities[k].rule = 7;
|
||||
|
@ -2646,6 +2648,7 @@ void entityclass::createentity( Game& game, float xp, float yp, int t, float vx
|
|||
entities[k].h = 1;
|
||||
entities[k].onentity = 1;
|
||||
entities[k].invis=true;
|
||||
if (map.custommode) customwarpmode = true;
|
||||
break;
|
||||
case 54: //Horizontal Warp Line
|
||||
entities[k].rule = 7;
|
||||
|
@ -2658,6 +2661,7 @@ void entityclass::createentity( Game& game, float xp, float yp, int t, float vx
|
|||
entities[k].h = 1;
|
||||
entities[k].onentity = 1;
|
||||
entities[k].invis=true;
|
||||
if (map.custommode) customwarpmode = true;
|
||||
break;
|
||||
case 55: // Crew Member (custom, collectable)
|
||||
//1 - position in array
|
||||
|
|
Loading…
Reference in a new issue