mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
git: Various style fixes everywhere, removing whitespaces (#321)
* repo-wide: trim trailing spaces Note: This doesn't touch the .tbl files in encodings/ since they include meaningful trailing spaces (`20= `) * patterns: clean up duplicate semicolons * ELF: add header magic check * glTF: use type::Magic for magic value * glTF: check that the file size in the header matches * xgstexture: fix generics syntax for magic value * JPEG: define hex enum with 0x00 instead of 0X00 * CI: update deprecated actions --------- Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
@@ -288,7 +288,7 @@ struct UnitValues
|
||||
struct Complex
|
||||
{
|
||||
u16 object_index;
|
||||
|
||||
|
||||
if(CheckObjectId(object_index, true) == true)
|
||||
{
|
||||
u16 class_type;
|
||||
@@ -461,11 +461,11 @@ struct PathStep
|
||||
struct Path
|
||||
{
|
||||
u16 object_index;
|
||||
|
||||
|
||||
if(CheckObjectId(object_index, true) == true)
|
||||
{
|
||||
u16 class_type;
|
||||
|
||||
|
||||
// Air path
|
||||
if (class_type == 1)
|
||||
{
|
||||
@@ -513,12 +513,12 @@ struct UnitInfo
|
||||
{
|
||||
u16 class_type;
|
||||
UnitType unit_type;
|
||||
|
||||
|
||||
if (unit_type == UnitType::UNIT_TYPE_DEAD_WALDO)
|
||||
{
|
||||
std::print("Found Waldo!");
|
||||
}
|
||||
|
||||
|
||||
u16 hash_id;
|
||||
UnitFlags flags;
|
||||
Point pixel_position;
|
||||
@@ -678,19 +678,19 @@ struct AiPlayer
|
||||
TeamIndex16 target_team;
|
||||
AiMapList map_list;
|
||||
u16 has_info_map;
|
||||
|
||||
|
||||
if (has_info_map)
|
||||
{
|
||||
u8 info_map[12544];
|
||||
}
|
||||
|
||||
|
||||
u16 has_mine_map;
|
||||
|
||||
|
||||
if (has_mine_map)
|
||||
{
|
||||
u8 mine_map[12544];
|
||||
}
|
||||
|
||||
|
||||
Point target_location;
|
||||
};
|
||||
|
||||
@@ -722,7 +722,7 @@ fn CheckObjectId(u16 index, bool caller)
|
||||
last_object_index = index;
|
||||
result = true;
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
@@ -803,7 +803,7 @@ struct SaveFile
|
||||
MessageLogList message_log_green;
|
||||
MessageLogList message_log_blue;
|
||||
MessageLogList message_log_gray;
|
||||
|
||||
|
||||
if (team_type_red == TeamType::Computer)
|
||||
{
|
||||
AiPlayer ai_player_red;
|
||||
|
||||
Reference in New Issue
Block a user