mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Dynamically add shinytrinkets instead of using indices
That is, instead of doing shinytrinkets[t] = ..., do shinytrinkets.push_back(...).
This commit is contained in:
parent
d63ba761d5
commit
d43daa5fae
1 changed files with 4 additions and 3 deletions
|
@ -57,7 +57,6 @@ mapclass::mapclass()
|
||||||
for (int i = 0; i < 30; i++)
|
for (int i = 0; i < 30; i++)
|
||||||
{
|
{
|
||||||
vmult.push_back(int(i * 40));
|
vmult.push_back(int(i * 40));
|
||||||
shinytrinkets.push_back(point());
|
|
||||||
}
|
}
|
||||||
//We create a blank map
|
//We create a blank map
|
||||||
for (int j = 0; j < 30; j++)
|
for (int j = 0; j < 30; j++)
|
||||||
|
@ -133,8 +132,10 @@ void mapclass::setteleporter(int x, int y)
|
||||||
|
|
||||||
void mapclass::settrinket(int t, int x, int y)
|
void mapclass::settrinket(int t, int x, int y)
|
||||||
{
|
{
|
||||||
shinytrinkets[t].x = x;
|
point temp;
|
||||||
shinytrinkets[t].y = y;
|
temp.x = x;
|
||||||
|
temp.y = y;
|
||||||
|
shinytrinkets.push_back(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mapclass::resetmap()
|
void mapclass::resetmap()
|
||||||
|
|
Loading…
Reference in a new issue