Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
9eeaef2e
Commit
9eeaef2e
authored
4 years ago
by
Claire Ellis
Browse files
Options
Downloads
Patches
Plain Diff
Exception made in R_SkinUsable() for player bot types
parent
5e8313e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1383
Multiplayer Bot Features (aka AddPlayer)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_skins.c
+1
-4
1 addition, 4 deletions
src/r_skins.c
with
1 addition
and
4 deletions
src/r_skins.c
+
1
−
4
View file @
9eeaef2e
...
@@ -198,6 +198,7 @@ boolean R_SkinUsable(INT32 playernum, INT32 skinnum)
...
@@ -198,6 +198,7 @@ boolean R_SkinUsable(INT32 playernum, INT32 skinnum)
||
(
Playing
()
&&
(
R_SkinAvailable
(
mapheaderinfo
[
gamemap
-
1
]
->
forcecharacter
)
==
skinnum
))
// Force 1.
||
(
Playing
()
&&
(
R_SkinAvailable
(
mapheaderinfo
[
gamemap
-
1
]
->
forcecharacter
)
==
skinnum
))
// Force 1.
||
(
netgame
&&
(
cv_forceskin
.
value
==
skinnum
))
// Force 2.
||
(
netgame
&&
(
cv_forceskin
.
value
==
skinnum
))
// Force 2.
||
(
metalrecording
&&
skinnum
==
5
)
// Force 3.
||
(
metalrecording
&&
skinnum
==
5
)
// Force 3.
||
players
[
playernum
].
bot
//Force (player is a bot)
);
);
}
}
...
@@ -511,10 +512,6 @@ static boolean R_ProcessPatchableFields(skin_t *skin, char *stoken, char *value)
...
@@ -511,10 +512,6 @@ static boolean R_ProcessPatchableFields(skin_t *skin, char *stoken, char *value)
GETFLAG
(
MULTIABILITY
)
GETFLAG
(
MULTIABILITY
)
GETFLAG
(
NONIGHTSROTATION
)
GETFLAG
(
NONIGHTSROTATION
)
GETFLAG
(
NONIGHTSSUPER
)
GETFLAG
(
NONIGHTSSUPER
)
GETFLAG
(
NOSUPERSPRITES
)
GETFLAG
(
NOSUPERJUMPBOOST
)
GETFLAG
(
CANBUSTWALLS
)
GETFLAG
(
NOSHIELDABILITY
)
#undef GETFLAG
#undef GETFLAG
else
// let's check if it's a sound, otherwise error out
else
// let's check if it's a sound, otherwise error out
...
...
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