Mercurial > hg > early-roguelike
comparison rogue4/passages.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | 1b73a8641b37 |
children | 3900f3cfe07d |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
134 */ | 134 */ |
135 void | 135 void |
136 conn(int r1, int r2) | 136 conn(int r1, int r2) |
137 { | 137 { |
138 register struct room *rpf, *rpt = NULL; | 138 register struct room *rpf, *rpt = NULL; |
139 register char rmt; | 139 unsigned char rmt; |
140 register int distance = 0, turn_spot = 0, turn_distance = 0, index; | 140 register int distance = 0, turn_spot = 0, turn_distance = 0, index; |
141 register int rm; | 141 register int rm; |
142 register char direc; | 142 register char direc; |
143 coord del = {0,0}, curr, turn_delta = {0,0}, spos = {0,0}, epos = {0,0}; | 143 coord del = {0,0}, curr, turn_delta = {0,0}, spos = {0,0}, epos = {0,0}; |
144 | 144 |