Skip to content

Commit 1976f61

Browse files
committed
fix: Various fixes
1 parent ff1cfbf commit 1976f61

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Cheats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Variable mm_session_sys_delay_create_host;
6565
Variable hide_gun_when_holding;
6666
Variable r_flashlightbrightness;
6767

68-
int origPortal2PromoFlagsValue = 0; // By default, nothing is loaded.
68+
int origPortal2PromoFlagsValue;
6969
int *g_nPortal2PromoFlags = nullptr;
7070

7171
// TSP only

src/Modules/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ DETOUR(Server::PlayerRunCommand, CUserCmd *cmd, void *moveHelper) {
285285

286286
Cheats::AutoStrafe(slot, thisptr, cmd);
287287
Cheats::CheckFloorReportals();
288-
if (!sv_cheats.GetBool()) {
288+
if (!sv_cheats.GetBool() && origPortal2PromoFlagsValue) {
289289
*g_nPortal2PromoFlags = origPortal2PromoFlagsValue; // We only want to check this once per map load, to preserve the intended behavior.
290290
}
291291

src/SourceAutoRecord.vcxproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@
7979
<Command>call ..\genversion.bat</Command>
8080
</PreBuildEvent>
8181
<PostBuildEvent>
82-
<Command>call ..\copy.bat
83-
copy $(TargetPath) "E:\SteamLibrary\steamapps\common\Portal 2\portal2\sardev.dll"</Command>
82+
<Command>call ..\copy.bat</Command>
8483
</PostBuildEvent>
8584
</ItemDefinitionGroup>
8685
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">

0 commit comments

Comments
 (0)