File tree 1 file changed +9
-14
lines changed
1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 1
1
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2
2
/* hack.wield.c - version 1.0.3 */
3
3
4
- #include "hack.h"
5
- extern struct obj zeroobj ;
4
+ #include "hack.h"
6
5
7
- setuwep (obj ) register struct obj * obj ; {
6
+ void setuwep (struct obj * obj ) {
8
7
setworn (obj , W_WEP );
9
8
}
10
9
11
- dowield ()
12
- {
13
- register struct obj * wep ;
14
- register int res = 0 ;
10
+ int dowield (void ) {
11
+ struct obj * wep ;
12
+ int res = 0 ;
15
13
16
14
multi = 0 ;
17
15
if (!(wep = getobj ("#-)" , "wield" ))) /* nothing */ ;
@@ -44,7 +42,7 @@ dowield()
44
42
return (res );
45
43
}
46
44
47
- corrode_weapon () {
45
+ void corrode_weapon (void ) {
48
46
if (!uwep || uwep -> olet != WEAPON_SYM ) return ; /* %% */
49
47
if (uwep -> rustfree )
50
48
pline ("Your %s not affected." , aobjnam (uwep , "are" ));
@@ -54,12 +52,9 @@ corrode_weapon(){
54
52
}
55
53
}
56
54
57
- chwepon (otmp ,amount )
58
- register struct obj * otmp ;
59
- register amount ;
60
- {
61
- register char * color = (amount < 0 ) ? "black" : "green" ;
62
- register char * time ;
55
+ int chwepon (struct obj * otmp , int amount ) {
56
+ char * color = (amount < 0 ) ? "black" : "green" ;
57
+ char * time ;
63
58
if (!uwep || uwep -> olet != WEAPON_SYM ) {
64
59
strange_feeling (otmp ,
65
60
(amount > 0 ) ? "Your hands twitch."
You can’t perform that action at this time.
0 commit comments