diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-08 09:29:22 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-08 09:29:22 -0400 |
commit | 01a31f374b953b9d40548f8369289a8c6dc48b77 (patch) | |
tree | 20b6d58d83738c02c15fe45db464107a0f98dea3 /main.cpp | |
parent | e1982d3eb176d73e3bad2a344be8b12107b1c876 (diff) |
fixed mouse
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -218,7 +218,7 @@ void render(){ **************************/ mx = ui::mouse.x + player->loc.x; my = ui::mouse.y; - my = 720 - my; + my = SCREEN_HEIGHT - my; mx -= (SCREEN_WIDTH/2); glColor3ub(255,255,255); glBegin(GL_TRIANGLES); @@ -243,7 +243,7 @@ void logic(){ entity[i]->near=true; if(SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(SDL_BUTTON_RIGHT)){ entity[i]->interact(); - std::cout <<"["<<i<<"] -> "<< entity[i]->name << ", " << (std::string)(entity[i]->gender == MALE ? "Male" : "Female") << std::endl; + //std::cout <<"["<<i<<"] -> "<< entity[i]->name << ", " << (std::string)(entity[i]->gender == MALE ? "Male" : "Female") << std::endl; //Mix_PlayChannel( -1, horn, 0); } }else entity[i]->near=false; |