Skip to content

Commit

Permalink
Merge remote-tracking branch 'eduke32/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendricks266 committed May 15, 2024
2 parents e811bb9 + 4929213 commit 71fc98c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions platform/Windows/mimalloc.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@
<ClCompile Include="..\..\source\mimalloc\src\alloc.c" />
<ClCompile Include="..\..\source\mimalloc\src\arena.c" />
<ClCompile Include="..\..\source\mimalloc\src\bitmap.c" />
<ClCompile Include="..\..\source\mimalloc\src\free.c">
<ExcludedFromBuild>true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\source\mimalloc\src\heap.c" />
<ClCompile Include="..\..\source\mimalloc\src\init.c" />
<ClCompile Include="..\..\source\mimalloc\src\libc.c" />
<ClCompile Include="..\..\source\mimalloc\src\options.c" />
<ClCompile Include="..\..\source\mimalloc\src\os.c" />
<ClCompile Include="..\..\source\mimalloc\src\page-queue.c">
Expand Down
6 changes: 6 additions & 0 deletions platform/Windows/mimalloc.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,18 @@
<ClCompile Include="..\..\source\mimalloc\src\bitmap.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\mimalloc\src\free.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\mimalloc\src\heap.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\mimalloc\src\init.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\mimalloc\src\libc.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\mimalloc\src\options.c">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
14 changes: 10 additions & 4 deletions source/duke3d/src/sbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,16 @@ static void G_DrawWeapAmounts(const DukePlayer_t *p, int32_t x, int32_t y, int32
{
if (u != -1) G_PatchStatusBar(158, 190, 162+29, 190+6); //original code: (166,190,166+8,190+6);

G_DrawWeapNum(-1, x+70, y+12,
p->ammo_amount[FREEZE_WEAPON], p->max_ammo_amount[FREEZE_WEAPON],
(((p->gotweapon & (1<<FREEZE_WEAPON)) == 0)*9)+12-18*
(cw == FREEZE_WEAPON));
if (p->subweapon&(1<<FLAMETHROWER_WEAPON))
G_DrawWeapNum(-1, x+70, y+12,
p->ammo_amount[FLAMETHROWER_WEAPON], p->max_ammo_amount[FLAMETHROWER_WEAPON],
(((p->gotweapon & (1<<FLAMETHROWER_WEAPON)) == 0)*9)+12-18*
(cw == FLAMETHROWER_WEAPON));
else
G_DrawWeapNum(-1, x+70, y+12,
p->ammo_amount[FREEZE_WEAPON], p->max_ammo_amount[FREEZE_WEAPON],
(((p->gotweapon & (1<<FREEZE_WEAPON)) == 0)*9)+12-18*
(cw == FREEZE_WEAPON));
}
}

Expand Down

0 comments on commit 71fc98c

Please sign in to comment.