Add box selection history

This commit is contained in:
Redo
2025-07-19 01:33:47 -07:00
parent bd51faa3e7
commit f88dbceb61
8 changed files with 91 additions and 51 deletions

View File

@ -2970,10 +2970,6 @@ function ND_Selection::plantBrick(%this, %i, %position, %angleID, %brickGroup, %
//Finished planting all the bricks!
function ND_Selection::finishPlant(%this)
{
//Report mirror errors
if($NS[%this.client, "MXC"] > 0 || $NS[%this.client, "MZC"] > 0)
ndMessageClient(%this.client, '', "\c6Some bricks were probably mirrored incorrectly. Say \c3/mirErrors\c6 to find out more.");
%count = %this.brickCount;
%planted = %this.plantSuccessCount;
%blocked = %this.plantBlockedFailCount;
@ -2996,6 +2992,9 @@ function ND_Selection::finishPlant(%this)
if(%missing)
%message = %message @ "\n<font:Verdana:17>\c3" @ %missing @ "\c6 missing Datablock.";
if($NS[%this.client, "MXC"] > 0 || $NS[%this.client, "MZC"] > 0)
%message = %message @ "\n<font:Verdana:17>\c6Some bricks were probably mirrored incorrectly. Say \c3/mirErrors\c6 to find out more.";
commandToClient(%this.client, 'centerPrint', %message, 4);
if($Pref::Server::ND::PlayMenuSounds && %planted && %this.brickCount > $Pref::Server::ND::ProcessPerTick * 10)
@ -4298,7 +4297,7 @@ function ND_Selection::tickLoadBricks(%this)
%db = 0;
$NS[%this, "VD", %index] = %db;
$NS[%this, "VC", %index] = mFLoor(getSubStr(%line, %pos + 2, 9999));
$NS[%this, "VC", %index] = mFloor(getSubStr(%line, %pos + 2, 9999));
//Start reading connections
case "ND_SIZE\"":