add newline at end of file where it's lacking

.editorconfig already enforces it but it's getting changed piecemeal in
every commit. just get it done with.

the script:
```

find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do
	isFile=$(file -0 "$file" | cut -d $'\0' -f2)
	case "$isFile" in
		(*text*)
			echo "$file is text"
			if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then
				echo "" >> "$file"
			fi
			;;
		(*)
			echo "file isn't text"
			;;
	esac
done
```
This commit is contained in:
Marco Antonio J. Costa
2024-12-14 19:05:48 -03:00
committed by majcosta
parent 1d58bda82d
commit 86ad401186
228 changed files with 228 additions and 228 deletions
+1 -1
View File
@@ -592,4 +592,4 @@ UINT8 CalcSoldierNeedForSleep( SOLDIERTYPE *pSoldier );
// Flugente: administration assignment
FLOAT GetAdministrationPercentage( INT16 sX, INT16 sY );
#endif
#endif
+1 -1
View File
@@ -60,4 +60,4 @@ void AutoResolveMilitiaDropAndPromote();
BOOLEAN IndividualMilitiaInUse_AutoResolve( UINT32 aMilitiaId );
#endif
#endif
+1 -1
View File
@@ -6,4 +6,4 @@ extern void InitNewCampaign();
extern void BuildUndergroundSectorInfoList();
extern void TrashUndergroundSectorInfo();
#endif
#endif
+1 -1
View File
@@ -656,4 +656,4 @@ enum CreateMusic
CM_ALWAYS,
};
#endif
#endif
+1 -1
View File
@@ -2422,4 +2422,4 @@ void ResetCreatureAttackVariables()
gubAdultFemalesAttackingTown = 0;
gubCreatureBattleCode = CREATURE_BATTLE_CODE_NONE;
gubSectorIDOfCreatureAttack = 0;
}
}
+1 -1
View File
@@ -114,4 +114,4 @@ extern CREATURECOMPOSITION gCreatureComposition[ MAX_NUMBER_OF_CREATURE_COMPOSIT
// Flugente: reset code for creature attacks
void ResetCreatureAttackVariables();
#endif
#endif
+1 -1
View File
@@ -80,4 +80,4 @@ INT32 GetTotalFacilityHourlyCosts( BOOLEAN fPositive );
void InitFacilities();
#endif
#endif
+1 -1
View File
@@ -18,4 +18,4 @@ void InitBloodCatSectors();
void InitVIPSectors();
#endif
#endif
+1 -1
View File
@@ -333,4 +333,4 @@ extern void SetNumberOfJa25BloodCatsInSector( INT32 iSectorID, INT8 bNumBloodCat
#endif
#endif
#endif
+1 -1
View File
@@ -742,4 +742,4 @@ void IniGlobalGameSetting(lua_State *L)
lua_pushinteger(L, MORRIS_INSTRUCTION_NOTE);
lua_setglobal(L, "UB_itemMORRIS_INSTRUCTION_NOTE");
#endif
}
}
+1 -1
View File
@@ -310,4 +310,4 @@ BOOLEAN SoldierAboardAirborneHeli( SOLDIERTYPE *pSoldier );
UINT8 MoveAllInHelicopterToFootMovementGroup( INT8 bNewSquad = 0 );
#endif
#endif
+1 -1
View File
@@ -107,4 +107,4 @@ void InitMapBorderButtonCoordinates();
void DisableMapBorderButtons(void);
void EnableMapBorderButtons(void);
#endif
#endif
+1 -1
View File
@@ -76,4 +76,4 @@ void MoveToEndOfMapScreenMessageList( void );
// HEADROCK HAM 3.6: Reset coordinates for slider bar and message window
void InitMapScreenInterfaceBottomCoords( void );
#endif
#endif
@@ -12,4 +12,4 @@ void DisplayTownInfo( INT16 sMapX, INT16 sMapY, INT8 bMapZ );
void CreateDestroyTownInfoBox( void );
#endif
#endif
+1 -1
View File
@@ -745,4 +745,4 @@ extern BOOLEAN CanCharacterMoveInStrategic( SOLDIERTYPE *pSoldier, INT8 *pbError
extern BOOLEAN MapscreenCanPassItemToCharNum( INT32 iNewCharSlot );
#endif
#endif
+1 -1
View File
@@ -195,4 +195,4 @@ UINT32 GetDailyUpkeep_IndividualMilitia( UINT32& arNumGreen, UINT32& arNumRegula
void PickIndividualMilitia( UINT8 aSector, UINT8 ubType, UINT16 aNumber );
void DropIndividualMilitia( UINT8 aSector, UINT8 ubType, UINT16 aNumber );
#endif
#endif
+1 -1
View File
@@ -50,4 +50,4 @@ void DissolveAllMilitiaGroupsInSector( INT16 sMapX, INT16 sMapY );
BOOLEAN MilitiaGroupEntersCurrentSector( UINT8 usGroupId, INT16 sMapX, INT16 sMapY );
#endif
#endif
+1 -1
View File
@@ -30,4 +30,4 @@ void MakePlayerPerceptionOfSectorControlCorrect( INT16 sMapX, INT16 sMapY, INT8
void ReplaceSoldierProfileInPlayerGroup( UINT8 ubGroupID, UINT8 ubOldProfile, UINT8 ubNewProfile );
#endif
#endif
+1 -1
View File
@@ -13,4 +13,4 @@ void NpcRecordLoggingInit( UINT8 ubNpcID, UINT8 ubMercID, UINT8 ubQuoteNum, UINT
void NpcRecordLogging( UINT8 ubApproach, STR pStringA, ...);
#endif
#endif
+1 -1
View File
@@ -14,4 +14,4 @@ UINT8 DoReinforcementAsPendingNonPlayer( INT16 sMapX, INT16 sMapY, UINT8 usTeam
void AddPossiblePendingMilitiaToBattle();
GROUP* GetNonPlayerGroupInSectorForReinforcement( INT16 sMapX, INT16 sMapY, UINT8 usTeam );
#endif
#endif
+1 -1
View File
@@ -181,4 +181,4 @@ typedef struct GARRISON_GROUP
#define REGULAR_MILITIA_POINTS_MODIFIER 2
#define ELITE_MILITIA_POINTS_MODIFIER 3
#endif
#endif
+1 -1
View File
@@ -27,4 +27,4 @@ void MakeCivGroupHostileOnNextSectorEntrance( UINT8 ubCivGroup );
void RemoveAssassin( UINT8 ubProfile );
#endif
#endif
+1 -1
View File
@@ -218,4 +218,4 @@ BOOLEAN AreThereMinersInsideThisMine( UINT8 ubMineIndex );
// use this to determine whether or not the player has spoken to a head miner
BOOLEAN SpokenToHeadMiner( UINT8 ubMineIndex );
#endif
#endif
+1 -1
View File
@@ -2221,4 +2221,4 @@ PathStPtr GetLastNodeOfPath(PathStPtr pNode)
}
return pNode;
}
}
+1 -1
View File
@@ -167,4 +167,4 @@ UINT8 RankIndexToSoldierClass( UINT8 ubRankIndex );
void UpdateLastDayOfPlayerActivity( UINT16 usDay );
#endif
#endif
+1 -1
View File
@@ -224,4 +224,4 @@ void MaximizeLoyaltyForDeidrannaKilled( void );
// HEADROCK HAM 3.6: Loyalty hit for owing too much money on facility work
void HandleFacilityDebtLoyaltyHit( void );
#endif
#endif
+1 -1
View File
@@ -8,4 +8,4 @@ void HandleStrategicTurn( );
void SyncStrategicTurnTimes( );
void HandleStrategicTurnImplicationsOfExitingCombatMode( void );
#endif
#endif
+1 -1
View File
@@ -135,4 +135,4 @@ FLOAT GetIntel();
void AddRaidPersonnel( INT32 aBloodcats, INT32 aZombie, INT32 aBandits );
void GetRaidPersonnel( INT32& arBloodcats, INT32& arZombie, INT32& arBandits );
#endif
#endif
+1 -1
View File
@@ -648,4 +648,4 @@ BOOLEAN ReadInCreaturePlacements(STR fileName)
XML_ParserFree(parser);
return TRUE;
}
}
+1 -1
View File
@@ -160,4 +160,4 @@ BOOLEAN ReadInSquadNamesStats(STR fileName)
BOOLEAN WriteSquadNamesStats()
{
return( TRUE );
}
}
+1 -1
View File
@@ -228,4 +228,4 @@ void RetreatBandageCallback( UINT8 ubResult );
bool isWidescreenUI(void);
#endif
#endif
+1 -1
View File
@@ -33,4 +33,4 @@ void HandleSpreadOfTownsOpinionForCurrentMercs( void );
void HandleSpreadOfTownOpinionForMercForSoldier( SOLDIERTYPE *pSoldier );
*/
#endif
#endif
+1 -1
View File
@@ -65,4 +65,4 @@ void HandleSoldierDeadComments( SOLDIERTYPE *pSoldier );
BOOLEAN HandleStrategicDeath( SOLDIERTYPE *pSoldier );
#endif
#endif