-
Notifications
You must be signed in to change notification settings - Fork 64
[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
base: main
Are you sure you want to change the base?
Conversation
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.
Cleans up whitespace issues
Fixes inconsistent comments
Makes include order consistent with ZH