Skip to content

Commit

Permalink
Fixed login window not closing
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-oliviero committed Mar 4, 2021
1 parent c487f78 commit e40d9f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ void join_window() { // drawing the initial window
Rectangle nickBox = {MeasureText("Nickname:", 20) + 15, 5, 200, 30};
Rectangle ipBox = {MeasureText("IP:", 20) + 15, 40, 267, 30};
int letterCountUser = 0, letterCountIP = 0;
while (!IsKeyDown(KEY_ENTER) || !WindowShouldClose()) {
while (!WindowShouldClose()) {
if (IsKeyDown(KEY_ENTER)) break;
if (CheckCollisionPointRec(GetMousePosition(), nickBox)) {
SetMouseCursor(MOUSE_CURSOR_IBEAM);
int key = GetCharPressed();
Expand Down

0 comments on commit e40d9f1

Please sign in to comment.