aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-01-07 08:47:59 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-01-07 08:47:59 -0500
commita85accc62dab6d3edc4fb4ffb991ce4c537394f6 (patch)
treed37eb193a7210ef88af7da5776acc881377c04bf /main.cpp
parente043a2432c4dacce56a308948188482fb230ff33 (diff)
Player has a light
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 1725ccf..d5b9f78 100644
--- a/main.cpp
+++ b/main.cpp
@@ -624,7 +624,7 @@ void render(){
if(ui::mouse.x > player->loc.x && ui::mouse.y < player->loc.y+player->height/2 && handAngle <= 0) handAngle = 360+handAngle;
//if(ui::mouse.x < player->loc.x + (player->width/2)){player->left = true;player->right=false;}
//if(ui::mouse.x >= player->loc.x + (player->width/2)){player->right = true;player->left=false;}
- if(player->light){
+ /*if(player->light){
vec2 light;
int lightStr = 150;
vec2 curCoord;
@@ -655,12 +655,12 @@ void render(){
}
}
}
- /*if(curCoord.x > player->loc.x && curCoord.x < player->loc.x + player->width){
+ if(curCoord.x > player->loc.x && curCoord.x < player->loc.x + player->width){
if(curCoord.y > player->loc.y && curCoord .y < player->loc.y + player->height){
r.end = curCoord;
l=lightStr;
}
- }*/if(l==lightStr)r.end = curCoord;
+ }if(l==lightStr)r.end = curCoord;
}//end length
glBegin(GL_LINES);
glVertex2f(r.start.x,r.start.y);
@@ -683,7 +683,7 @@ void render(){
glEnd();
}
glUseProgramObjectARB(0);
- }
+ }*/
player->inv->draw();