Project

General

Profile

Revision 299

added extra option in menu

View differences:

proj/src/proj.c
96 96
    }
97 97

  
98 98
    menu_t *main_menu = menu_ctor(consolas);
99
    menu_add_item(main_menu, "Play");
99
    menu_add_item(main_menu, "Single player");
100
    menu_add_item(main_menu, "Multiplayer");
100 101
    menu_add_item(main_menu, "Chat");
101 102
    menu_add_item(main_menu, "Exit");
102 103

  
......
132 133
                                switch(menu_update_state(main_menu, click)){
133 134
                                    case -1: break;
134 135
                                    case  0: game(); break;
135
                                    case  1: chat(); break;
136
                                    case  2: good = false; break;
136
                                    case  1: break;
137
                                    case  2: chat(); break;
138
                                    case  3: good = false; break;
137 139
                                }
138 140
                                menu_draw(main_menu);
139 141

  

Also available in: Unified diff