-
Notifications
You must be signed in to change notification settings - Fork 117
[GEN][ZH] Cleans up inconsistencies #654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will pause reviewing this change.
The whitespace changes were incorrectly applied to Zero Hour source files. It looks like double spaces have been mass replaced with tabs. This is wrong, because it will affect inline spaces as well. This kind of refactor would need to be done with a script that only looks at leading whitespace and corrects them.
| // Because of changes in wind, pressure, etc. | ||
| // Those changes are added here, then the | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 blank lines here in ZH :P
| CString loopCountText; | ||
| loopCountText.Format( "%d", audioEventInfo->m_loopCount ); | ||
| loopCountEdit->SetWindowText( loopCountText ); | ||
| } | ||
|
|
||
| /// Move data from object to dialog controls | ||
| void MapObjectProps::dictToEnabled() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The github diff in this function looks suspiciously broken, which indicates that something is not right.
| if ( flagSpikes ) | ||
| { | ||
| if ( Debug_Statistics::Get_Draw_Calls()>2000 ) | ||
| fprintf( m_fp, " DRAWS OUT OF TOLERANCE(2000)\n" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these fprintf's meant to use tabs in this file!? It seems odd.
| DEBUG_LOG((remark)); | ||
| drawGraph( "@", graphScale, timeNoPart ); | ||
|
|
||
| sprintf(remark, "Without Spawn %f \n", timeNoSpawn ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 spaces changed to tab
| // Real muzzleHeight = attachTransform.Get_Z_Translation(); | ||
| // DEBUG_ASSERTCRASH( muzzleHeight > 0.001f, ("YOUR TURRET HAS A VERY LOW PROJECTILE LAUNCH POSITION, BUT FOUND A VALID BONE. DID YOU PICK THE WRONG ONE? %s", launcher->getTemplate()->getName().str())); | ||
| // Real muzzleHeight = attachTransform.Get_Z_Translation(); | ||
| // DEBUG_ASSERTCRASH( muzzleHeight > 0.001f, ("YOUR TURRET HAS A VERY LOW PROJECTILE LAUNCH POSITION, BUT FOUND A VALID BONE. DID YOU PICK THE WRONG ONE? %s", launcher->getTemplate()->getName().str())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be tabs.
Reverting unification of these files to avoid conflicts with: - PR TheSuperHackers#654 (tomsons26): Cleans up inconsistencies - PR TheSuperHackers#670 (zzambers): Replacements for rest of asm code - PR TheSuperHackers#688 (tomsons26): Backports various things from ZH - PR TheSuperHackers#1066 (xezon): Prevent AMD/ATI driver crash - PR TheSuperHackers#1703 (Stubbjax): Add replay archive feature - PR TheSuperHackers#1741 (Skyaero42): Remove redundant include guards Files reverted: - BitFlagsIO.h, DataChunk.h, GameType.h, List.h - Money.h, Radar.h, Recorder.h, SpecialPowerMaskType.h, StackDump.h - NameKeyGenerator.cpp, GameCommon.cpp, StackDump.cpp
Reverting unification to avoid conflicts with: - PR TheSuperHackers#654 (tomsons26): Cleans up inconsistencies - PR TheSuperHackers#688 (tomsons26): Backports various things from ZH Files reverted: Color.h, Mouse.h, Color.cpp
Reverting to avoid conflict with PR TheSuperHackers#654 (tomsons26)
Reverting unification to avoid conflicts with: - PR TheSuperHackers#654 (tomsons26): Cleans up inconsistencies - PR TheSuperHackers#688 (tomsons26): Backports various things from ZH Files reverted: Color.h, Mouse.h, Color.cpp
Reverting unification of these files to avoid conflicts with: - PR TheSuperHackers#654 (tomsons26): Cleans up inconsistencies - PR TheSuperHackers#670 (zzambers): Replacements for rest of asm code - PR TheSuperHackers#688 (tomsons26): Backports various things from ZH - PR TheSuperHackers#1066 (xezon): Prevent AMD/ATI driver crash - PR TheSuperHackers#1703 (Stubbjax): Add replay archive feature - PR TheSuperHackers#1741 (Skyaero42): Remove redundant include guards Files reverted: - BitFlagsIO.h, DataChunk.h, GameType.h, List.h - Money.h, Radar.h, Recorder.h, SpecialPowerMaskType.h, StackDump.h - NameKeyGenerator.cpp, GameCommon.cpp, StackDump.cpp
Reverting unification to avoid conflicts with: - PR TheSuperHackers#654 (tomsons26): Cleans up inconsistencies - PR TheSuperHackers#688 (tomsons26): Backports various things from ZH Files reverted: Color.h, Mouse.h, Color.cpp
|
Is this something that could be automated with clang-tidy? #1807 |
Cleans up whitespace issues
Fixes inconsistent comments
Makes include order consistent with ZH