Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Krabi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Victor
Krabi
Commits
190aa9bd
Commit
190aa9bd
authored
14 years ago
by
LIYue
Browse files
Options
Downloads
Patches
Plain Diff
quelques modifications pour resourdre les problemes de version de Linux
parent
cb016c0b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stm32/src/simul/robot.cpp
+6
-2
6 additions, 2 deletions
stm32/src/simul/robot.cpp
with
6 additions
and
2 deletions
stm32/src/simul/robot.cpp
+
6
−
2
View file @
190aa9bd
...
...
@@ -88,8 +88,8 @@ Robot::Robot(b2World & world) : world(world), olds(10000)
body
->
CreateFixture
(
&
fixture
);
#ifdef BOX2D_2_0_1
b2Vec2
&
v
=
box
.
m_
vertices
;
box
.
m_
vertexCount
=
4
;
b2Vec2
*
v
=
box
.
vertices
;
box
.
vertexCount
=
4
;
#else
b2Vec2
v
[
4
];
#endif
...
...
@@ -220,6 +220,10 @@ void Robot::keyPressEvent(QKeyEvent* evt, bool press)
if
(
evt
&&
press
&&
evt
->
text
()
==
"u"
&&
!
evt
->
isAutoRepeat
()
&&
elem
)
{
level
=
(
level
!=
100
)
?
100
:
0
;
#ifdef BOX2D_2_0_1
#define b2Filter b2FilterData
#define GetFixtureList GetShapeList
#endif
b2Filter
filter
;
if
(
level
==
100
)
{
...
...
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