Skip to content

Commit

Permalink
physics tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
timgarbos committed Apr 29, 2012
1 parent 5db1075 commit fa7f524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/GameCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void GameCharacter::update(float deltatime)

GameBlock* currentBlock = game->GetBlock(position.x,position.y);
GameBlock* topBlock = game->GetBlock(position.x,position.y-height/2+1);
GameBlock* leftBlock = game->GetBlock(position.x-width/2,position.y+3);
GameBlock* rightBlock = game->GetBlock(position.x+width/2,position.y-3);
GameBlock* leftBlock = game->GetBlock(position.x-width/2+1,position.y);
GameBlock* rightBlock = game->GetBlock(position.x+width/2-1,position.y);
GameBlock* bottomBlock = game->GetBlock(position.x,position.y+height/2-1);
if(state==C_Trapped)
{
Expand Down

0 comments on commit fa7f524

Please sign in to comment.