added being able to create a host on the game server now need to work on joining that game
This commit is contained in:
3
host.c
3
host.c
@@ -118,7 +118,7 @@ char *get_this_name(int i)
|
||||
{
|
||||
|
||||
if(!lobby_has_name) {
|
||||
if(i == -1){return host.lobby_name; }
|
||||
if(i == -1){ return host.lobby_name; }
|
||||
if(i == 0) { return host.lobby_name_perm; }
|
||||
}
|
||||
else{
|
||||
@@ -217,6 +217,7 @@ void render_main()
|
||||
else if(SDL_PointInRect(&mouse_pos, &host.set_name_rect)){
|
||||
over_object = SET_NAME_BUTTON;
|
||||
}
|
||||
else {over_object = NO_OBJECT; }
|
||||
|
||||
if(lobby_has_name){ render_lobby(); }
|
||||
else{ render_lobby_name(); }
|
||||
|
||||
Reference in New Issue
Block a user