Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
The Story of Subsequent Tutorials and Dance Dance Revolutions Remastered Rocking the 4th
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
StarManiaKG
The Story of Subsequent Tutorials and Dance Dance Revolutions Remastered Rocking the 4th
Commits
7a9e781b
Commit
7a9e781b
authored
4 years ago
by
Sal
Browse files
Options
Downloads
Patches
Plain Diff
Little fixes
parent
632df264
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian-template/source/options
+0
-3
0 additions, 3 deletions
debian-template/source/options
src/discord.c
+20
-17
20 additions, 17 deletions
src/discord.c
src/k_kart.h
+1
-0
1 addition, 0 deletions
src/k_kart.h
with
21 additions
and
20 deletions
debian-template/source/options
+
0
−
3
View file @
7a9e781b
...
...
@@ -2,10 +2,7 @@ tar-ignore = "assets/*.srb"
tar-ignore = "assets/*.pk3"
tar-ignore = "assets/*.dta"
tar-ignore = "assets/*.wad"
<<<<<<< HEAD:debian-template/source/options
tar-ignore = "assets/*.kart"
=======
>>>>>>> e251f9c230beda984cdcdea7e903d765f1c68f6f:debian-template/source/options
tar-ignore = "assets/debian/${PACKAGE_NAME}-data/*"
tar-ignore = "assets/debian/tmp/*"
tar-ignore = "*.obj"
...
...
This diff is collapsed.
Click to expand it.
src/discord.c
+
20
−
17
View file @
7a9e781b
// SONIC ROBO BLAST 2
// SONIC ROBO BLAST 2
KART
//-----------------------------------------------------------------------------
// Copyright (C) 201
2
-20
18
by Sally "TehRealSalt" Cochenour.
// Copyright (C) 201
2
-20
16
by
Sonic Team Junior
.
// Copyright (C) 201
8
-20
20
by Sally "TehRealSalt" Cochenour.
// Copyright (C) 201
8
-20
20
by
Kart Krew
.
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
...
...
@@ -25,7 +25,7 @@
#include
"discord.h"
#include
"doomdef.h"
#define DISCORD_APPID "503531144395096085" // Feel free to
provid
e your own, if you care.
#define DISCORD_APPID "503531144395096085" // Feel free to
us
e your own, if you care.
//
// DRPC_Handle's
...
...
@@ -42,7 +42,7 @@ static inline void DRPC_HandleDisconnect(int err, const char *msg)
static
inline
void
DRPC_HandleError
(
int
err
,
const
char
*
msg
)
{
CONS_
Printf
(
"Discord: error (%d, %s)
\n
"
,
err
,
msg
);
CONS_
Alert
(
CONS_WARNING
,
"Discord: error (%d, %s)
\n
"
,
err
,
msg
);
}
static
inline
void
DRPC_HandleJoin
(
const
char
*
secret
)
...
...
@@ -91,25 +91,28 @@ void DRPC_UpdatePresence(void)
case
-
1
:
discordPresence
.
state
=
"Private"
;
break
;
// Private server
case
33
:
discordPresence
.
state
=
"Standard"
;
break
;
case
28
:
discordPresence
.
state
=
"Casual"
;
break
;
default:
discordPresence
.
state
=
"???"
;
break
;
// H
ow?
default:
discordPresence
.
state
=
"???"
;
break
;
// H
OW
}
discordPresence
.
partyId
=
server_context
;
// Thanks, whoever gave us Mumble support, for implementing the EXACT thing Discord wanted for this field!
// Grab the host's IP for joining.
if
(
I_GetNodeAddress
&&
(
address
=
I_GetNodeAddress
(
servernode
))
!=
NULL
)
if
(
ms_RoomId
!=
-
1
)
{
discordPresence
.
joinSecret
=
address
;
CONS_Printf
(
"%s
\n
"
,
address
);
}
discordPresence
.
partyId
=
server_context
;
// Thanks, whoever gave us Mumble support, for implementing the EXACT thing Discord wanted for this field!
discordPresence
.
partySize
=
D_NumPlayers
();
// Players in server
discordPresence
.
partyMax
=
cv_maxplayers
.
value
;
// Max players (turned into a netvar for this, FOR NOW!)
// Grab the host's IP for joining.
if
(
I_GetNodeAddress
&&
(
address
=
I_GetNodeAddress
(
servernode
))
!=
NULL
)
{
discordPresence
.
joinSecret
=
address
;
CONS_Printf
(
"%s
\n
"
,
address
);
}
discordPresence
.
partySize
=
D_NumPlayers
();
// Players in server
discordPresence
.
partyMax
=
cv_maxplayers
.
value
;
// Max players (turned into a netvar for this, FOR NOW!)
}
}
else
if
(
Playing
())
discordPresence
.
state
=
"Offline"
;
else
if
(
demoplayback
)
discordPresence
.
state
=
"Watching
Demo
"
;
else
if
(
demo
.
playback
)
discordPresence
.
state
=
"Watching
Replay
"
;
else
discordPresence
.
state
=
"Menu"
;
...
...
This diff is collapsed.
Click to expand it.
src/k_kart.h
+
1
−
0
View file @
7a9e781b
...
...
@@ -56,6 +56,7 @@ INT32 K_GetKartDriftSparkValue(player_t *player);
void
K_KartUpdatePosition
(
player_t
*
player
);
void
K_DropItems
(
player_t
*
player
);
void
K_DropRocketSneaker
(
player_t
*
player
);
void
K_DropKitchenSink
(
player_t
*
player
);
void
K_StripItems
(
player_t
*
player
);
void
K_StripOther
(
player_t
*
player
);
void
K_MomentumToFacing
(
player_t
*
player
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment