https://git.openclonk.org/openclonk.git/commit/a0f95c0e93e396e5dfc306052b5ffb787518b839
Cool stuff. What about replacing it with a generic
Cool stuff. What about replacing it with a generic
GetPlayers(int player_type, int team)
though? It's 2015 and we still have to go through the hassle of GetPlayerCount & GetPlayerByIndex ten times in every scenario.for (var player in GetPlayers())
! (or for (var player in GetPlayers(nil, team)
then for you)
I can add that function as well, or do you prefer it to be an engine function?
We also might need (I do) a function to go from player id to player number, opposite of GetPlayerID.
Anyone an idea for an implementation?
Anyone an idea for an implementation?
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill