mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove map.numshinytrinkets
This removes map.numshinytrinkets in favor of using map.shinytrinkets.size(). Having automatic length tracking is much less error-prone and less tedious.
This commit is contained in:
@@ -2026,7 +2026,7 @@ void maprender()
|
||||
|
||||
if (map.showtrinkets)
|
||||
{
|
||||
for (int i = 0; i < map.numshinytrinkets; i++)
|
||||
for (size_t i = 0; i < map.shinytrinkets.size(); i++)
|
||||
{
|
||||
if (!obj.collect[i])
|
||||
{
|
||||
@@ -2837,7 +2837,7 @@ void teleporterrender()
|
||||
|
||||
if (map.showtrinkets)
|
||||
{
|
||||
for (int i = 0; i < map.numshinytrinkets; i++)
|
||||
for (size_t i = 0; i < map.shinytrinkets.size(); i++)
|
||||
{
|
||||
if (!obj.collect[i])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user