Place blocks by holding LMB
This commit is contained in:
parent
776bafe1d8
commit
378d29b3d9
@ -2666,7 +2666,8 @@ namespace spades {
|
||||
// draw block cursor
|
||||
// FIXME: don't use debug line
|
||||
if(p){
|
||||
if(p->IsBlockCursorActive()){
|
||||
if(p->IsBlockCursorActive() &&
|
||||
p->IsReadyToUseTool()){
|
||||
std::vector<IntVector3> blocks;
|
||||
if(p->IsBlockCursorDragging()){
|
||||
blocks = world->CubeLine(p->GetBlockCursorDragPos(),
|
||||
|
@ -199,6 +199,9 @@ namespace spades {
|
||||
pendingPlaceBlock = true;
|
||||
pendingPlaceBlockPos = blockCursorPos;
|
||||
}
|
||||
if(!blockCursorActive) {
|
||||
newInput.primary = false;
|
||||
}
|
||||
|
||||
blockCursorDragging = false;
|
||||
blockCursorActive = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user