Changeset 883bb5d in network-game
- Timestamp:
- May 23, 2014, 1:15:18 AM (11 years ago)
- Branches:
- master
- Children:
- 34bd549
- Parents:
- a9e808e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
ra9e808e r883bb5d 260 260 al_start_timer(timer); 261 261 262 while (!doexit)262 while (!doexit) 263 263 { 264 264 ALLEGRO_EVENT ev; … … 267 267 268 268 if(wndCurrent->handleEvent(ev)) { 269 cout << "Processed gui event: " << getCurrentMillis() << endl;270 269 // do nothing 271 270 } 272 271 else if(ev.type == ALLEGRO_EVENT_TIMER) { 273 redraw = true; // seems like we should just call a draw function here instead 272 redraw = true; 273 274 // remove any other timer events in the queue 275 while (al_peek_next_event(event_queue, &ev) && ev.type == ALLEGRO_EVENT_TIMER) { 276 al_get_next_event(event_queue, &ev); 277 } 274 278 } 275 279 else if(ev.type == ALLEGRO_EVENT_DISPLAY_CLOSE) { … … 485 489 486 490 if (debugging) { 487 //debugConsole.draw(font, al_map_rgb(255,255,255));488 491 drawMessageStatus(font); 489 492 }
Note:
See TracChangeset
for help on using the changeset viewer.