diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Console/LocalConsole.cs | 11 | ||||
-rw-r--r-- | OpenSim/Framework/Util.cs | 8 |
2 files changed, 16 insertions, 3 deletions
diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index 5f2f404..eda41b8 100644 --- a/OpenSim/Framework/Console/LocalConsole.cs +++ b/OpenSim/Framework/Console/LocalConsole.cs | |||
@@ -473,9 +473,11 @@ namespace OpenSim.Framework.Console | |||
473 | y = -1; | 473 | y = -1; |
474 | } | 474 | } |
475 | 475 | ||
476 | string commandLine = cmdline.ToString(); | ||
477 | |||
476 | if (isCommand) | 478 | if (isCommand) |
477 | { | 479 | { |
478 | string[] cmd = Commands.Resolve(Parser.Parse(cmdline.ToString())); | 480 | string[] cmd = Commands.Resolve(Parser.Parse(commandLine)); |
479 | 481 | ||
480 | if (cmd.Length != 0) | 482 | if (cmd.Length != 0) |
481 | { | 483 | { |
@@ -491,8 +493,11 @@ namespace OpenSim.Framework.Console | |||
491 | } | 493 | } |
492 | } | 494 | } |
493 | 495 | ||
494 | //AddToHistory(cmdline.ToString()); | 496 | // If we're not echoing to screen (e.g. a password) then we probably don't want it in history |
495 | return cmdline.ToString(); | 497 | if (echo && commandLine != "") |
498 | AddToHistory(commandLine); | ||
499 | |||
500 | return commandLine; | ||
496 | default: | 501 | default: |
497 | break; | 502 | break; |
498 | } | 503 | } |
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index f1d622e..6bee4be 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -451,6 +451,14 @@ namespace OpenSim.Framework | |||
451 | return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); | 451 | return (x + y - (min >> 1) - (min >> 2) + (min >> 4)); |
452 | } | 452 | } |
453 | 453 | ||
454 | /// <summary> | ||
455 | /// Are the co-ordinates of the new region visible from the old region? | ||
456 | /// </summary> | ||
457 | /// <param name="oldx">Old region x-coord</param> | ||
458 | /// <param name="newx">New region x-coord</param> | ||
459 | /// <param name="oldy">Old region y-coord</param> | ||
460 | /// <param name="newy">New region y-coord</param> | ||
461 | /// <returns></returns> | ||
454 | public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy) | 462 | public static bool IsOutsideView(uint oldx, uint newx, uint oldy, uint newy) |
455 | { | 463 | { |
456 | // Eventually this will be a function of the draw distance / camera position too. | 464 | // Eventually this will be a function of the draw distance / camera position too. |