Project

General

Profile

Revision 262

to easen implementation of uart

View differences:

proj.c
95 95

  
96 96
    text_timer_t *in_game_timer = timer_ctor(consolas);
97 97

  
98
    menu_t *main_menu = menu_ctor(consolas);
98
    #ifndef DIOGO
99
        menu_t *main_menu = menu_ctor(consolas);
100
    #endif
99 101

  
100 102
    list_t *shooter_list = list_ctor();
101 103

  
......
115 117
    ent_set_origin(gunner_get_x(shooter1)-ent_get_XLength()/2.0,
116 118
                   gunner_get_y(shooter1)-ent_get_YLength()/2.0);
117 119

  
118
    //uint32_t refresh_count_value = sys_hz() / REFRESH_RATE;
119
    double angle; // mouse angle
120
    int32_t *mouse_x = get_mouse_X(), *mouse_y = get_mouse_Y();
121
    uint8_t last_lb = 0;
122
    struct packet pp;
123
    keys_t *keys = get_key_presses();
120
    #ifndef DIOGO
121
        //uint32_t refresh_count_value = sys_hz() / REFRESH_RATE;
122
        double angle; // mouse angle
123
        int32_t *mouse_x = get_mouse_X(), *mouse_y = get_mouse_Y();
124
        uint8_t last_lb = 0;
125
        struct packet pp;
126
        keys_t *keys = get_key_presses();
127
    #endif
124 128
    /// loop stuff
125 129
    int ipc_status;
126 130
    message msg;
127
    int game_state = MENU, click = 0; (void)click;
131
    int game_state = MENU;
132
    #ifndef DIOGO
133
        int click = 0;
134
    #endif
128 135

  
129 136
    while (game_state != EXIT) {
130 137
        /* Get a request message. */

Also available in: Unified diff