Skip to content

Commit 436be0d

Browse files
committed
add extinfo_mod_id.patch
closes #48
1 parent db762a4 commit 436be0d

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ apply-patches:
6262
$(PATCH) < patches/server_demo_name.patch
6363
$(PATCH) < patches/spec_teleports.patch
6464
$(PATCH) < patches/demo_info_message.patch
65+
$(PATCH) < patches/extinfo_mod_id.patch
6566
unix2dos src/vcpp/sauerbraten.nsi
6667
unix2dos src/vcpp/sauerbraten.vcxproj
6768
cd src && make depend

patches/extinfo_mod_id.patch

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git src/fpsgame/extinfo.h src/fpsgame/extinfo.h
2+
index 0e747e7..a2073d8 100644
3+
--- src/fpsgame/extinfo.h
4+
+++ src/fpsgame/extinfo.h
5+
@@ -96,6 +96,7 @@
6+
case EXT_UPTIME:
7+
{
8+
putint(p, totalsecs); //in seconds
9+
+ if(req.remaining() && req.get()) putint(p, -9); // -9 = p1xbraten server mod ID
10+
break;
11+
}
12+

src/fpsgame/extinfo.h

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
case EXT_UPTIME:
9797
{
9898
putint(p, totalsecs); //in seconds
99+
if(req.remaining() && req.get()) putint(p, -9); // -9 = p1xbraten server mod ID
99100
break;
100101
}
101102

0 commit comments

Comments
 (0)