TheRealKaup / KTech

C++ 2D terminal game engine library for GNU/Linux
GNU General Public License v3.0
1 stars 1 forks source link

Adding a world structure to the same place twice should result in moving it to the end of the vector #96

Open TheRealKaup opened 1 month ago

TheRealKaup commented 1 month ago

Currently, adder functions will return false if a world structure is already stored in the vector, and do nothing else.

Instead, they should also move it from its current position to the end of the vector, since it's likely the intuitive intention of users who accidentally added a world structure twice to the same place (whether they forgot they added it the first time or not).