Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjazz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
openjazz
Commits
8c131b49
Commit
8c131b49
authored
Jul 04, 2010
by
alistert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes.
parent
0d00bb30
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
jj2levelload.cpp
src/jj2level/jj2levelload.cpp
+2
-0
main.cpp
src/main.cpp
+1
-1
jj2levelplayer.cpp
src/player/jj2levelplayer.cpp
+1
-1
jj2levelplayerframe.cpp
src/player/jj2levelplayerframe.cpp
+1
-1
No files found.
src/jj2level/jj2levelload.cpp
View file @
8c131b49
...
@@ -527,6 +527,8 @@ int JJ2Level::load (char *fileName, unsigned char diff, bool checkpoint) {
...
@@ -527,6 +527,8 @@ int JJ2Level::load (char *fileName, unsigned char diff, bool checkpoint) {
pitch
=
createInt
(
aBuffer
+
8403
+
80
+
(
count
<<
2
));
pitch
=
createInt
(
aBuffer
+
8403
+
80
+
(
count
<<
2
));
height
=
createInt
(
aBuffer
+
8403
+
112
+
(
count
<<
2
));
height
=
createInt
(
aBuffer
+
8403
+
112
+
(
count
<<
2
));
if
(
pitch
&
3
)
pitch
+=
4
;
if
(
aBuffer
[
8403
+
40
+
count
])
{
if
(
aBuffer
[
8403
+
40
+
count
])
{
layers
[
count
]
=
new
JJ2Layer
(
width
,
height
,
flags
);
layers
[
count
]
=
new
JJ2Layer
(
width
,
height
,
flags
);
...
...
src/main.cpp
View file @
8c131b49
...
@@ -68,7 +68,7 @@ int loadMain (int argc, char *argv[]) {
...
@@ -68,7 +68,7 @@ int loadMain (int argc, char *argv[]) {
File
*
file
;
File
*
file
;
unsigned
char
*
pixels
;
unsigned
char
*
pixels
;
int
count
,
x
,
y
;
int
count
;
int
screenW
,
screenH
;
int
screenW
,
screenH
;
int
scaleFactor
;
int
scaleFactor
;
#ifndef FULLSCREEN_ONLY
#ifndef FULLSCREEN_ONLY
...
...
src/player/jj2levelplayer.cpp
View file @
8c131b49
...
@@ -473,7 +473,7 @@ bool JJ2LevelPlayer::touchEvent (JJ2Event* touched, unsigned int ticks, int msps
...
@@ -473,7 +473,7 @@ bool JJ2LevelPlayer::touchEvent (JJ2Event* touched, unsigned int ticks, int msps
case
85
:
// Red spring
case
85
:
// Red spring
throwY
=
y
-
TTOF
(
7
);
throwY
=
y
-
TTOF
(
8
);
dx
=
0
;
dx
=
0
;
event
=
LPE_SPRING
;
event
=
LPE_SPRING
;
...
...
src/player/jj2levelplayerframe.cpp
View file @
8c131b49
...
@@ -405,7 +405,7 @@ void JJ2LevelPlayer::control (unsigned int ticks, int msps) {
...
@@ -405,7 +405,7 @@ void JJ2LevelPlayer::control (unsigned int ticks, int msps) {
// If there is an obstacle above and the player is not floating up, stop
// If there is an obstacle above and the player is not floating up, stop
// rising
// rising
if
(
jj2Level
->
checkMaskUp
(
x
+
PXO_MID
,
y
+
PYO_TOP
-
F
4
)
&&
(
throwY
<
y
)
&&
(
event
!=
LPE_FLOAT
))
{
if
(
jj2Level
->
checkMaskUp
(
x
+
PXO_MID
,
y
+
PYO_TOP
-
F
1
)
&&
(
throwY
<
y
)
&&
(
event
!=
LPE_FLOAT
))
{
throwY
=
TTOF
(
256
);
throwY
=
TTOF
(
256
);
if
(
dy
<
0
)
dy
=
0
;
if
(
dy
<
0
)
dy
=
0
;
...
...
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