Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YGOPRO-520DIY
ygopro
Commits
c4a1335c
Commit
c4a1335c
authored
May 06, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
parent
b02d2bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
gframe/game.cpp
gframe/game.cpp
+3
-11
No files found.
gframe/game.cpp
View file @
c4a1335c
...
@@ -1779,17 +1779,9 @@ int Game::LocalPlayer(int player) const {
...
@@ -1779,17 +1779,9 @@ int Game::LocalPlayer(int player) const {
return
dInfo
.
isFirst
?
pid
:
1
-
pid
;
return
dInfo
.
isFirst
?
pid
:
1
-
pid
;
}
}
int
Game
::
OppositePlayer
(
int
player
)
{
int
Game
::
OppositePlayer
(
int
player
)
{
if
(
dInfo
.
isTag
)
{
if
(
dInfo
.
isTag
)
if
(
player
==
0
)
return
(
player
&
0x2
)
|
(
1
-
(
player
&
0x1
));
return
2
;
else
if
(
player
==
1
)
return
3
;
if
(
player
==
2
)
return
0
;
if
(
player
==
3
)
return
1
;
return
player
;
}
else
return
1
-
player
;
return
1
-
player
;
}
}
int
Game
::
ChatLocalPlayer
(
int
player
)
{
int
Game
::
ChatLocalPlayer
(
int
player
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment