File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#define RESET_FLAGI flaga = false
7
7
8
- HBITMAP bitmap;
9
-
10
8
int main ()
11
9
{
12
10
#pragma region Zmienne
@@ -87,7 +85,7 @@ int main()
87
85
PrzygotowanieHasla (haslo1, ustawHasloReturn, haslo);
88
86
89
87
// wylsanie ustawionego hasla z wykrzyknikiem
90
- if (networking::sock.is_open () && networking::sock2.is_open () && networking::sock3.is_open () && networking::sock4.is_open ())
88
+ if (networking::sock.is_open () || networking::sock2.is_open () || networking::sock3.is_open () || networking::sock4.is_open ())
91
89
{
92
90
for (int i = 0 ; i < iloscGraczy; i++)
93
91
{
@@ -116,7 +114,7 @@ int main()
116
114
// main loop gry klienta
117
115
while (znalezioneLitery < dlugoscHasla && hp > 0 )
118
116
{
119
- if (iterator == 4 )
117
+ if (iterator == iloscGraczy )
120
118
{
121
119
iterator = 0 ;
122
120
}
@@ -138,7 +136,7 @@ int main()
138
136
sockety_p[iterator]->read_some (asio::buffer (&l, 1 ));
139
137
140
138
// wyslij te literke do reszty graczy
141
- for (int i = 0 ; iloscGraczy < 4 ; i++)
139
+ for (int i = 0 ; i < iloscGraczy ; i++)
142
140
{
143
141
// pomiñ wysy³adnie do gracza od ktorego wlasnie dostales literke
144
142
if (i == iterator)
You can’t perform that action at this time.
0 commit comments