Changeset 0065962 in network-game for client/Client
- Timestamp:
- Jan 11, 2019, 6:58:52 PM (6 years ago)
- Branches:
- master
- Children:
- 7f9b01c
- Parents:
- ea3a3a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
rea3a3a9 r0065962 149 149 string alertMessage; 150 150 151 int main(int argc, char **argv) 152 { 151 int main(int argc, char **argv) { 153 152 ALLEGRO_DISPLAY *display = NULL; 154 153 ALLEGRO_EVENT_QUEUE *event_queue = NULL; … … 207 206 } 208 207 209 if (!al_install_keyboard()) {208 if (!al_install_keyboard()) { 210 209 fprintf(stderr, "failed to initialize the keyboard!\n"); 211 210 return -1; 212 211 } 213 212 214 if (!al_install_mouse()) {213 if (!al_install_mouse()) { 215 214 fprintf(stderr, "failed to initialize the mouse!\n"); 216 215 return -1; … … 218 217 219 218 timer = al_create_timer(1.0 / FPS); 220 if (!timer) {219 if (!timer) { 221 220 fprintf(stderr, "failed to create timer!\n"); 222 221 return -1; … … 230 229 } 231 230 display = al_create_display(SCREEN_W, SCREEN_H); 232 if (!display) {231 if (!display) { 233 232 fprintf(stderr, "failed to create display!\n"); 234 233 al_destroy_timer(timer); … … 244 243 245 244 event_queue = al_create_event_queue(); 246 if (!event_queue) {245 if (!event_queue) { 247 246 fprintf(stderr, "failed to create event_queue!\n"); 248 247 al_destroy_display(display);
Note:
See TracChangeset
for help on using the changeset viewer.