Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RogueReborn
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
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
Mikhail Andrenkov
RogueReborn
Commits
4900cde3
Commit
4900cde3
authored
8 years ago
by
Ian Prins
Browse files
Options
Downloads
Patches
Plain Diff
remove undefined behavior/uninitialized variables
parent
7c1f8418
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/playerchar.h
+3
-6
3 additions, 6 deletions
src/include/playerchar.h
src/mob.cpp
+2
-2
2 additions, 2 deletions
src/mob.cpp
with
5 additions
and
8 deletions
src/include/playerchar.h
+
3
−
6
View file @
4900cde3
...
...
@@ -55,12 +55,9 @@ class PlayerChar : public Mob {
Ring
*
itemRingRight
;
Weapon
*
itemWeapon
;
int
maxStr
;
const
int
START_ARMOR
=
1
;
const
int
START_EXP
=
0
;
const
int
START_GOLD
=
0
;
const
int
START_HP
=
12
;
const
int
START_LEVEL
=
1
;
const
int
START_STR
=
16
;
static
const
int
START_ARMOR
=
1
,
START_EXP
=
0
,
START_GOLD
=
0
,
START_HP
=
12
,
START_LEVEL
=
1
,
START_STR
=
16
;
bool
removeItem
(
Item
*
);
};
This diff is collapsed.
Click to expand it.
src/mob.cpp
+
2
−
2
View file @
4900cde3
...
...
@@ -4,8 +4,8 @@
#include
"include/mob.h"
Mob
::
Mob
(
char
symbol
,
Coord
location
)
:
location
(
location
),
symbol
(
symbol
)
{}
:
Mob
(
symbol
,
location
,
name
,
5
,
0
,
10
,
1
)
{}
Mob
::
Mob
(
char
symbol
,
Coord
location
,
std
::
string
name
,
int
armor
,
int
exp
,
int
mobHP
,
int
level
)
:
armor
(
armor
),
...
...
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