Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 8ae7560

Browse files
committed
Merge branch 'pre4-testing' into 4zk-content-source
2 parents 039ce0e + 401dfaf commit 8ae7560

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+241
-342
lines changed

Activities/ActorEditor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class GUIComboBox;
4242
// Parent(s): EditorActivity.
4343
// Class history: 10/08/2007 ActorEditor Created.
4444

45-
class ActorEditor:
46-
public EditorActivity
47-
{
45+
class ActorEditor : public EditorActivity {
4846

4947
//////////////////////////////////////////////////////////////////////////////////////////
5048
// Public member variable, method and friend function declarations

Activities/AreaEditor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ class GUIComboBox;
4040
// Parent(s): EditorActivity.
4141
// Class history: 7/21/2008 AreaEditor created, based off SceneEditor
4242

43-
class AreaEditor:
44-
public EditorActivity
45-
{
43+
class AreaEditor : public EditorActivity {
4644

4745
//////////////////////////////////////////////////////////////////////////////////////////
4846
// Public member variable, method and friend function declarations

Activities/AssemblyEditor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class GUIComboBox;
4242
// Class history: 8/30/2007 AssemblyEditor created, inheriting directly from Activity.
4343
// 9/17/2007 Spliced out and made to derive from EditorActivty
4444

45-
class AssemblyEditor:
46-
public EditorActivity
47-
{
45+
class AssemblyEditor : public EditorActivity {
4846

4947
//////////////////////////////////////////////////////////////////////////////////////////
5048
// Public member variable, method and friend function declarations

Activities/BaseEditor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ class GUIComboBox;
4141
// Parent(s): Activity.
4242
// Class history: 04/30/2010 Created BaseEditor for the campaign base blueprint editing.
4343

44-
class BaseEditor:
45-
public Activity
46-
{
44+
class BaseEditor : public Activity {
4745

4846
//////////////////////////////////////////////////////////////////////////////////////////
4947
// Public member variable, method and friend function declarations

Activities/EditorActivity.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class GUIComboBox;
4242
// Parent(s): Activity.
4343
// Class history: 9/17/2007 EditorActivity created.
4444

45-
class EditorActivity:
46-
public Activity
47-
{
45+
class EditorActivity : public Activity {
4846

4947
//////////////////////////////////////////////////////////////////////////////////////////
5048
// Public member variable, method and friend function declarations

Activities/GAScripted.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ class Actor;
3131
// Parent(s): GameActivity.
3232
// Class history: 07/03/2008 GAScripted created.
3333

34-
class GAScripted:
35-
public GameActivity
36-
{
34+
class GAScripted : public GameActivity {
3735

3836
friend class LuaMan;
3937
friend class ActivityMan;

Activities/GATutorial.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ class Actor;
3030
// Parent(s): GameActivity.
3131
// Class history: 10/13/2007 GATutorial created.
3232

33-
class GATutorial:
34-
public GameActivity
35-
{
33+
class GATutorial : public GameActivity {
3634

3735

3836
//////////////////////////////////////////////////////////////////////////////////////////

Activities/GameActivity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ void GameActivity::Update()
14591459
m_PlayerController[player].RelativeCursorMovement(m_ActorCursor[player]);
14601460

14611461
// Find the actor closest to the cursor, if any within the radius
1462-
float markedDistance = -1;
1462+
Vector markedDistance;
14631463
Actor *pMarkedActor = g_MovableMan.GetClosestTeamActor(team, player, m_ActorCursor[player], g_SceneMan.GetSceneWidth(), markedDistance);
14641464
// Actor *pMarkedActor = g_MovableMan.GetClosestTeamActor(team, player, m_ActorCursor[player], g_FrameMan.GetPlayerScreenWidth() / 4);
14651465

@@ -1509,7 +1509,7 @@ void GameActivity::Update()
15091509
// Show the pie menu switching animation over the highlighted Actor
15101510
m_pPieMenu[player]->SetPos(pMarkedActor->GetPos());
15111511

1512-
if (markedDistance > g_FrameMan.GetPlayerFrameBufferWidth(player) / 4)
1512+
if (markedDistance.GetMagnitude() > g_FrameMan.GetPlayerFrameBufferWidth(player) / 4)
15131513
m_pPieMenu[player]->Wobble();
15141514
else
15151515
m_pPieMenu[player]->FreezeAtRadius(30);

Activities/GameActivity.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ class Loadout;
4343
// Parent(s): Activity.
4444
// Class history: 8/7/2007 GameActivity created.
4545

46-
class GameActivity:
47-
public Activity
48-
{
46+
class GameActivity : public Activity {
4947

5048
friend struct ActivityLuaBindings;
5149

Activities/GibEditor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ class GUIComboBox;
4141
// Parent(s): EditorActivity.
4242
// Class history: 9/17/2007 GibEditor Created.
4343

44-
class GibEditor:
45-
public EditorActivity
46-
{
44+
class GibEditor : public EditorActivity {
4745

4846
//////////////////////////////////////////////////////////////////////////////////////////
4947
// Public member variable, method and friend function declarations

0 commit comments

Comments
 (0)