Permalink
Browse files

breakable liquids should behave the same even when can't place/delete…

… the block (thanks tornato)
  • Loading branch information...
UnknownShadow200 committed Feb 9, 2019
1 parent bea0405 commit 9419d55de4661bea78d10d4063f1d5a7a8d2b805
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/Game.c
@@ -219,9 +219,7 @@ void Game_ChangeBlock(int x, int y, int z, BlockID block) {
bool Game_CanPick(BlockID block) {
if (Blocks.Draw[block] == DRAW_GAS) return false;
if (Blocks.Draw[block] == DRAW_SPRITE) return true;

if (Blocks.Collide[block] != COLLIDE_LIQUID) return true;
return Game_BreakableLiquids && Blocks.CanPlace[block] && Blocks.CanDelete[block];
return Blocks.Collide[block] != COLLIDE_LIQUID || Game_BreakableLiquids;
}

bool Game_UpdateTexture(GfxResourceID* texId, struct Stream* src, const String* file, uint8_t* skinType) {

0 comments on commit 9419d55

Please sign in to comment.