Skip to content

Commit 0ce45c0

Browse files
Merge branch 'stable' into unit-tests
2 parents 2826ae6 + fa0ec2c commit 0ce45c0

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

client/src/wi_stuff.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ static int WI_CalcWidth (const char *str)
13271327

13281328
while (*str)
13291329
{
1330-
const OLumpName charname = fmt::format("FONTB{:02u}", toupper(*str) - 32);
1330+
const OLumpName charname = fmt::format("FONTB{:02d}", toupper(*str) - 32);
13311331
int lump = W_CheckNumForName(charname);
13321332

13331333
if (lump != -1)

common/d_dehacked.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ static int PatchText(int oldSize)
20532053
}
20542054

20552055
good = ReadChars(&oldStr, oldSize);
2056-
good = good || ReadChars(&newStr, newSize);
2056+
good = ReadChars(&newStr, newSize) || good;
20572057

20582058
if (!good)
20592059
{

common/g_mapinfo.cpp

+17-17
Original file line numberDiff line numberDiff line change
@@ -878,19 +878,19 @@ void MIType_Map07Special(OScanner& os, bool newStyleMapInfo, void* data, unsigne
878878

879879
// mancubus
880880
bossactionvector.emplace_back();
881-
bossaction_t& lastaction = bossactionvector.back();
881+
bossaction_t& mancaction = bossactionvector.back();
882882

883-
lastaction.type = MT_FATSO;
884-
lastaction.special = 23;
885-
lastaction.tag = 666;
883+
mancaction.type = MT_FATSO;
884+
mancaction.special = 23;
885+
mancaction.tag = 666;
886886

887887
// arachnotron
888888
bossactionvector.emplace_back();
889-
lastaction = bossactionvector.back();
889+
bossaction_t& arachnoaction = bossactionvector.back();
890890

891-
lastaction.type = MT_BABY;
892-
lastaction.special = 30;
893-
lastaction.tag = 667;
891+
arachnoaction.type = MT_BABY;
892+
arachnoaction.special = 30;
893+
arachnoaction.tag = 667;
894894
}
895895

896896
// Sets the map to use the baron bossaction
@@ -957,9 +957,9 @@ void MIType_SpecialAction_ExitLevel(OScanner& os, bool newStyleMapInfo, void* da
957957
}
958958

959959
bossactionvector.emplace_back();
960-
bossaction_t& lastaction = bossactionvector.back();
961-
lastaction.special = 11;
962-
lastaction.tag = 0;
960+
bossaction_t& action = bossactionvector.back();
961+
action.special = 11;
962+
action.tag = 0;
963963
}
964964

965965
//
@@ -979,9 +979,9 @@ void MIType_SpecialAction_OpenDoor(OScanner& os, bool newStyleMapInfo, void* dat
979979
}
980980

981981
bossactionvector.emplace_back();
982-
bossaction_t& lastaction = bossactionvector.back();
983-
lastaction.special = 29;
984-
lastaction.tag = 666;
982+
bossaction_t& action = bossactionvector.back();
983+
action.special = 29;
984+
action.tag = 666;
985985
}
986986

987987
//
@@ -1001,9 +1001,9 @@ void MIType_SpecialAction_LowerFloor(OScanner& os, bool newStyleMapInfo, void* d
10011001
}
10021002

10031003
bossactionvector.emplace_back();
1004-
bossaction_t& lastaction = bossactionvector.back();
1005-
lastaction.special = 23;
1006-
lastaction.tag = 666;
1004+
bossaction_t& action = bossactionvector.back();
1005+
action.special = 23;
1006+
action.tag = 666;
10071007
}
10081008

10091009
//

0 commit comments

Comments
 (0)