Minor changes

This commit is contained in:
Kaehvaman 2024-10-26 18:26:07 +04:00
parent 50162f5e79
commit b3b9149592
2 changed files with 16 additions and 14 deletions

View File

@ -344,7 +344,7 @@ int clip(int n, int lower, int upper) {
return max(lower, min(n, upper));
}
char count_string[30];
char count_string[50];
bool netToggle = false;
@ -404,8 +404,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
if (netToggle) drawNet(hdc);
if (selected_element == gold) sprintf(count_string, "gold = %d", inventory[gold]);
else sprintf(count_string, "wall = %d", inventory[wall]);
else if (selected_element == wall) sprintf(count_string, "wall = %d", inventory[wall]);
else sprintf(count_string, "not selected");
//SetBkColor(hdc, RGB(255, 0, 0));
//SetBkMode(hdc, TRANSPARENT);
DrawTextA(hdc, count_string, -1, &textrect, (DT_SINGLELINE | DT_TOP | DT_CENTER));

View File

@ -1,13 +1,13 @@
10 15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 3 0 0 0 0 0
0 0 0 0 0 0 0 0 0 3 0 0 0 0 0
0 0 0 3 3 3 3 0 0 0 3 3 0 0 0
0 0 0 0 0 0 3 0 0 0 3 3 0 0 0
0 0 0 0 0 0 3 3 3 0 0 0 0 0 0
0 0 0 0 0 0 0 0 3 0 2 0 0 2 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 2 2 2 2 2 2 2 2 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 18 0
1 7 3
3 0 0 0 0 0 0 0 0 0 0 0 0 2 2
3 0 0 0 0 0 0 0 0 0 0 0 0 2 2
3 0 0 0 0 0 0 0 0 0 0 0 2 2 2
3 0 0 0 0 0 0 0 0 0 0 0 2 2 2
3 0 0 0 0 0 0 0 0 0 0 0 2 2 2
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
0 0 0 0
5 4 2