Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
470 stars 75 forks source link

Overlay tabs in AI Debug Window are not displaying relevant information #1650

Closed desofity closed 4 months ago

desofity commented 4 months ago

Hello!

According to the code in the OnDraw method else if(overlay < 13) font.Draw(curPos, helpers::toString(ai->GetResMapValue(pt, AIResource(overlay - 4))), FontStyle{}, COLOR_YELLOW); order of overlay tabs should be the same as AIResource enum order. In actual code branch, for example, "Wood" tab shows info about gold mine deposits.

Flamefire commented 4 months ago

Good catch. This got lost in the refactoring of 5664b1496435d02bec36cfbfeb323c017372d000c5184ce61e509d9e4795f34b