Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Main
Synchronet
Commits
a91274f8
Commit
a91274f8
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix intentation.
parent
7ac44055
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doors/dgnlance/dgnlnce.c
+15
-17
15 additions, 17 deletions
src/doors/dgnlance/dgnlnce.c
with
15 additions
and
17 deletions
src/doors/dgnlance/dgnlnce.c
+
15
−
17
View file @
a91274f8
...
...
@@ -89,7 +89,6 @@ struct playertype {
* player is feeling. Is set at start and not modified */
double
vary
;
};
/* player[0] is the current enemy */
#define opp player[0]
...
...
@@ -110,7 +109,6 @@ DWORD number_of_players;
BOOL
doga
;
/* The current fight is a Battle
* between players */
struct
playertype
player
[
31
];
/**********************************************************/
/* These variables are used for the stat adjustment stuff */
/**********************************************************/
...
...
@@ -494,7 +492,7 @@ amode(void)
{
double
roll
;
/* Used for To Hit and damage rolls */
int
okea
;
int
tint
;
int
tint
;
roll
=
playerattack
();
if
(
roll
<
1
.
5
)
{
tint
=
xp_random
(
3
)
+
1
;
...
...
@@ -562,7 +560,7 @@ bmode(void)
double
roll
;
/* Used for To Hit and damage rolls */
FILE
*
outfile
;
int
okea
;
int
tint
;
int
tint
;
if
((
opp
.
hps
>
opp
.
damage
)
&&
player
[
player_num
].
damage
<
player
[
player_num
].
hps
)
{
roll
=
opponentattack
();
if
(
roll
<
1
.
5
)
{
...
...
@@ -1074,7 +1072,7 @@ battle(void)
od_set_color
(
D_GREEN
,
D_BLACK
);
od_disp_str
(
"You Ride away on a Silver Dragon.
\r\n
"
);
doga
=
FALSE
;
return
;
return
;
}
break
;
}
...
...
@@ -1393,16 +1391,16 @@ void
afight
(
int
lev
)
{
char
fname
[
32
];
if
(
player
[
player_num
].
fights
==
0
)
{
nl
();
od_set_color
(
D_MAGENTA
,
D_BLACK
);
od_disp_str
(
"It's Getting Dark Out!
\r\n
"
);
od_disp_str
(
"Return to the Nearest Inn!
\r\n
"
);
}
else
{
od_clr_scr
();
sprintf
(
fname
,
"data/junkm%d.lan"
,
lev
);
fight
(
fname
);
}
if
(
player
[
player_num
].
fights
==
0
)
{
nl
();
od_set_color
(
D_MAGENTA
,
D_BLACK
);
od_disp_str
(
"It's Getting Dark Out!
\r\n
"
);
od_disp_str
(
"Return to the Nearest Inn!
\r\n
"
);
}
else
{
od_clr_scr
();
sprintf
(
fname
,
"data/junkm%d.lan"
,
lev
);
fight
(
fname
);
}
}
void
...
...
@@ -1667,7 +1665,7 @@ main(int argc, char **argv)
od_set_color
(
L_YELLOW
,
D_BLACK
);
player
[
player_num
].
status
=
ALIVE
;
statshow
();
while
(
player
[
player_num
].
damage
<
player
[
player_num
].
hps
)
{
while
(
player
[
player_num
].
damage
<
player
[
player_num
].
hps
)
{
levelupdate
();
if
(((
player
[
player_num
].
wins
+
1
)
*
4
)
<
(
player
[
player_num
].
loses
))
{
nl
();
...
...
@@ -1692,7 +1690,7 @@ main(int argc, char **argv)
od_disp_str
(
"LEAVE KRYNN? Are you sure? "
);
if
(
od_get_answer
(
"YN"
)
==
'Y'
)
{
od_disp_str
(
"Yes
\r\n
"
);
return
(
0
);
return
(
0
);
}
else
od_disp_str
(
"No
\r\n
"
);
break
;
...
...
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