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
2d6338a0
Commit
2d6338a0
authored
May 23, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro
parents
49fe097c
be988d54
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
29 deletions
+32
-29
gframe/CMakeLists.txt
gframe/CMakeLists.txt
+1
-2
gframe/drawing.cpp
gframe/drawing.cpp
+22
-20
gframe/duelclient.cpp
gframe/duelclient.cpp
+9
-7
No files found.
gframe/CMakeLists.txt
View file @
2d6338a0
...
...
@@ -28,7 +28,7 @@ endif ()
target_link_libraries
(
ygopro ocgcore clzma
)
if
(
MSVC
)
target_link_libraries
(
ygopro irrlicht freetype sqlite3 event
lua
)
target_link_libraries
(
ygopro irrlicht freetype sqlite3 event
)
include_directories
(
"../irrlicht/include"
"../freetype/include"
"../event/include"
"../sqlite3"
)
else
()
target_link_libraries
(
ygopro
...
...
@@ -36,7 +36,6 @@ else ()
${
FREETYPE_LIBRARIES
}
${
SQLITE_LIBRARIES
}
${
LIBEVENT_LIBRARIES
}
${
LUA_LIBRARIES
}
${
OPENGL_gl_LIBRARY
}
)
include_directories
(
...
...
gframe/drawing.cpp
View file @
2d6338a0
...
...
@@ -496,6 +496,7 @@ void Game::DrawMisc() {
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
im
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vActivate
,
4
,
matManager
.
iRectangle
,
2
);
}
if
(
dField
.
chains
.
size
()
>
1
)
{
for
(
size_t
i
=
0
;
i
<
dField
.
chains
.
size
();
++
i
)
{
if
(
dField
.
chains
[
i
].
solved
)
break
;
...
...
@@ -517,6 +518,7 @@ void Game::DrawMisc() {
driver
->
setTransform
(
irr
::
video
::
ETS_WORLD
,
it
);
driver
->
drawVertexPrimitiveList
(
matManager
.
vChainNum
,
4
,
matManager
.
iRectangle
,
2
);
}
}
//finish button
if
(
btnCancelOrFinish
->
isVisible
()
&&
dField
.
select_ready
)
DrawSelectionLine
(
btnCancelOrFinish
,
2
,
0xffffff00
);
...
...
gframe/duelclient.cpp
View file @
2d6338a0
...
...
@@ -3143,7 +3143,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
WaitFrameSignal
(
11
);
}
}
if
(
mainGame
->
dField
.
last_chain
)
if
(
mainGame
->
dField
.
chains
.
size
()
>
1
)
{
if
(
mainGame
->
dField
.
last_chain
)
mainGame
->
WaitFrameSignal
(
11
);
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
mainGame
->
dField
.
chains
[
ct
-
1
].
solved
=
false
;
...
...
@@ -3151,6 +3152,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame
->
dField
.
chains
[
ct
-
1
].
solved
=
true
;
mainGame
->
WaitFrameSignal
(
3
);
}
}
mainGame
->
dField
.
last_chain
=
false
;
return
true
;
}
...
...
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