LLAgentCamera transition (1/2)

This commit is contained in:
Shyotl
2011-06-07 21:35:10 -05:00
parent 278cfbdb67
commit a07e399801
89 changed files with 616 additions and 572 deletions

View File

@@ -37,6 +37,7 @@
#include "llchatbar.h"
#include "llagent.h"
#include "llagentcamera.h"
#include "stdtypes.h"
#include "llviewerregion.h"
#include "llworld.h"
@@ -245,7 +246,7 @@ bool cmd_line_chat(std::string revised_text, EChatType type)
if(i >> drawDist)
{
gSavedSettings.setF32("RenderFarClip", drawDist);
gAgent.mDrawDistance=drawDist;
gAgentCamera.mDrawDistance=drawDist;
char buffer[DB_IM_MSG_BUF_SIZE * 2]; /* Flawfinder: ignore */
snprintf(buffer,sizeof(buffer),"Draw distance set to: %dm",drawDist);
cmdline_printchat(std::string(buffer));
@@ -254,7 +255,7 @@ bool cmd_line_chat(std::string revised_text, EChatType type)
}
else if(command == utf8str_tolower(gSavedSettings.getString("AscentCmdTeleportToCam")))
{
gAgent.teleportViaLocation(gAgent.getCameraPositionGlobal());
gAgent.teleportViaLocation(gAgentCamera.getCameraPositionGlobal());
return false;
}
else if(command == utf8str_tolower(gSavedSettings.getString("AscentCmdLineKeyToName")))