kestasjk/webDiplomacy — comment on commit aa8ebdfad2291d506d2ae13c32037ec49a7a4e4f
File: map/drawMap.php line 830
By Sleepcap:

That's not exactly true.
It first tries to allocate the color within the palette (with the imagecolorexact-funktion)
If that fails it tries here to generate a new palette entry.