mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-03 03:23:33 +02:00
Move getcrewman() if-else into crewmate branch
Just for readability.
This commit is contained in:
parent
9a9f5c344b
commit
7173fce493
|
@ -925,37 +925,37 @@ void scriptclass::run( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map,
|
|||
else if (words[0] == "flipgravity")
|
||||
{
|
||||
//not something I'll use a lot, I think. Doesn't need to be very robust!
|
||||
if (words[1] == "cyan")
|
||||
{
|
||||
i=obj.getcrewman(0);
|
||||
}
|
||||
else if (words[1] == "red")
|
||||
{
|
||||
i=obj.getcrewman(3);
|
||||
}
|
||||
else if (words[1] == "green")
|
||||
{
|
||||
i=obj.getcrewman(4);
|
||||
}
|
||||
else if (words[1] == "yellow")
|
||||
{
|
||||
i=obj.getcrewman(2);
|
||||
}
|
||||
else if (words[1] == "blue")
|
||||
{
|
||||
i=obj.getcrewman(5);
|
||||
}
|
||||
else if (words[1] == "purple")
|
||||
{
|
||||
i=obj.getcrewman(1);
|
||||
}
|
||||
|
||||
if (words[1] == "player")
|
||||
{
|
||||
game.gravitycontrol = !game.gravitycontrol;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (words[1] == "cyan")
|
||||
{
|
||||
i=obj.getcrewman(0);
|
||||
}
|
||||
else if (words[1] == "red")
|
||||
{
|
||||
i=obj.getcrewman(3);
|
||||
}
|
||||
else if (words[1] == "green")
|
||||
{
|
||||
i=obj.getcrewman(4);
|
||||
}
|
||||
else if (words[1] == "yellow")
|
||||
{
|
||||
i=obj.getcrewman(2);
|
||||
}
|
||||
else if (words[1] == "blue")
|
||||
{
|
||||
i=obj.getcrewman(5);
|
||||
}
|
||||
else if (words[1] == "purple")
|
||||
{
|
||||
i=obj.getcrewman(1);
|
||||
}
|
||||
|
||||
if (obj.entities[i].rule == 6)
|
||||
{
|
||||
obj.entities[i].rule = 7;
|
||||
|
|
Loading…
Reference in New Issue
Block a user