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
1b87c11a
Commit
1b87c11a
authored
Jul 01, 2010
by
alistert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various small changes.
parent
1383f928
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
16 deletions
+13
-16
eventframe.cpp
src/level/event/eventframe.cpp
+2
-2
gamemenu.cpp
src/menu/gamemenu.cpp
+9
-14
jj2levelplayer.cpp
src/player/jj2levelplayer.cpp
+1
-0
levelplayer.cpp
src/player/levelplayer.cpp
+1
-0
No files found.
src/level/event/eventframe.cpp
View file @
1b87c11a
...
@@ -984,8 +984,6 @@ void Event::draw (unsigned int ticks, int change) {
...
@@ -984,8 +984,6 @@ void Event::draw (unsigned int ticks, int change) {
// Decide on the frame to draw
// Decide on the frame to draw
anim
->
setFrame
(
frame
+
gridX
+
gridY
,
true
);
anim
->
setFrame
(
frame
+
gridX
+
gridY
,
true
);
if
(
ticks
<
flashTime
)
anim
->
flashPalette
(
0
);
// Correct the position without altering the animation
// Correct the position without altering the animation
if
(
noAnimOffset
)
{
if
(
noAnimOffset
)
{
...
@@ -1031,6 +1029,8 @@ void Event::draw (unsigned int ticks, int change) {
...
@@ -1031,6 +1029,8 @@ void Event::draw (unsigned int ticks, int change) {
// In case an event can be drawn normally
// In case an event can be drawn normally
if
(
ticks
<
flashTime
)
anim
->
flashPalette
(
0
);
anim
->
draw
(
changeX
,
changeY
);
anim
->
draw
(
changeX
,
changeY
);
}
}
...
...
src/menu/gamemenu.cpp
View file @
1b87c11a
...
@@ -232,9 +232,10 @@ int GameMenu::newGameDifficulty (GameModeType mode, int levelNum, int worldNum)
...
@@ -232,9 +232,10 @@ int GameMenu::newGameDifficulty (GameModeType mode, int levelNum, int worldNum)
}
}
int
GameMenu
::
newGameLevel
(
GameModeType
mode
)
{
int
GameMenu
::
loadGame
()
{
// TODO: Actual loading of saved games
/*
int
option
,
worldNum
,
levelNum
;
int
option
,
worldNum
,
levelNum
;
worldNum
=
levelNum
=
option
=
0
;
worldNum
=
levelNum
=
option
=
0
;
...
@@ -286,8 +287,7 @@ int GameMenu::newGameLevel (GameModeType mode) {
...
@@ -286,8 +287,7 @@ int GameMenu::newGameLevel (GameModeType mode) {
playSound
(
S_ORB
);
playSound
(
S_ORB
);
if (newGameDifficulty(mode, levelNum, worldNum) == E_QUIT)
if
(
newGameDifficulty
(
M_SINGLE
,
levelNum
,
worldNum
)
==
E_QUIT
)
return
E_QUIT
;
return E_QUIT;
video
.
setPalette
(
menuPalette
);
video
.
setPalette
(
menuPalette
);
...
@@ -296,7 +296,11 @@ int GameMenu::newGameLevel (GameModeType mode) {
...
@@ -296,7 +296,11 @@ int GameMenu::newGameLevel (GameModeType mode) {
}
}
return
E_NONE
;
return
E_NONE
;
*/
}
int
GameMenu
::
newGameLevel
(
GameModeType
mode
)
{
char
*
fileName
;
char
*
fileName
;
int
ret
;
int
ret
;
...
@@ -577,12 +581,3 @@ int GameMenu::newGame () {
...
@@ -577,12 +581,3 @@ int GameMenu::newGame () {
}
}
int
GameMenu
::
loadGame
()
{
// TODO: Actual loading of saved games
return
newGameLevel
(
M_SINGLE
);
}
src/player/jj2levelplayer.cpp
View file @
1b87c11a
...
@@ -130,6 +130,7 @@ void JJ2LevelPlayer::reset (unsigned char startX, unsigned char startY) {
...
@@ -130,6 +130,7 @@ void JJ2LevelPlayer::reset (unsigned char startX, unsigned char startY) {
energy
=
5
;
energy
=
5
;
floating
=
false
;
floating
=
false
;
facing
=
true
;
facing
=
true
;
animType
=
PA_RSTAND
;
reaction
=
JJ2PR_NONE
;
reaction
=
JJ2PR_NONE
;
reactionTime
=
0
;
reactionTime
=
0
;
jumpHeight
=
ITOF
(
92
);
jumpHeight
=
ITOF
(
92
);
...
...
src/player/levelplayer.cpp
View file @
1b87c11a
...
@@ -128,6 +128,7 @@ void LevelPlayer::reset (unsigned char startX, unsigned char startY) {
...
@@ -128,6 +128,7 @@ void LevelPlayer::reset (unsigned char startX, unsigned char startY) {
energy
=
4
;
energy
=
4
;
floating
=
false
;
floating
=
false
;
facing
=
true
;
facing
=
true
;
animType
=
PA_RSTAND
;
reaction
=
PR_NONE
;
reaction
=
PR_NONE
;
reactionTime
=
0
;
reactionTime
=
0
;
jumpHeight
=
ITOF
(
92
);
jumpHeight
=
ITOF
(
92
);
...
...
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