diff options
author | majortom6 <tombarrett@siu.edu> | 2017-02-18 09:28:58 -0600 |
---|---|---|
committer | majortom6 <tombarrett@siu.edu> | 2017-02-18 09:28:58 -0600 |
commit | 03885192b9ff7d3c5e2dcfd98aefd21e9b62f603 (patch) | |
tree | c8bf20df1b634d2988e98de85c4439ca16620ca1 /src/main.cpp | |
parent | 600ce4ae4179ddcb9849c6bb7646f8fc1e79c459 (diff) |
general refractoring
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 82f0067..5170bf3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,12 +11,9 @@ int main() int speed = 60;
bool pause = false;
- while(e.gRun())
- {
+ while(e.gRun()){
fps.Start();
-
- while(e.Poll())
- {
+ while(e.Poll()){
if(e.gEventType() == SDL_QUIT)
e.off();
else if(e.gEventType() == SDL_KEYDOWN)
|