summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
44c566e)
SCCS-vsn: games/sail/dr_2.c 2.6
SCCS-vsn: games/sail/dr_3.c 2.6
-static char *sccsid = "@(#)dr_2.c 2.5 84/01/19";
+static char *sccsid = "@(#)dr_2.c 2.6 84/04/28";
#endif
#include "driver.h"
#endif
#include "driver.h"
- if (!windspeed)
- *drift = 1;
+ if (windspeed != 0 && ++*drift > 2) {
if (ship->specs->class >= 3 && !snagged(ship)
|| (turn & 1) == 0) {
*row -= dr[winddir];
if (ship->specs->class >= 3 && !snagged(ship)
|| (turn & 1) == 0) {
*row -= dr[winddir];
-static char *sccsid = "@(#)dr_3.c 2.5 84/01/19";
+static char *sccsid = "@(#)dr_3.c 2.6 84/04/28";
#endif
#include "driver.h"
#endif
#include "driver.h"
break;
case 'd':
if (!*moved) {
break;
case 'd':
if (!*moved) {
- if (++sp->file->drift > 2 &&
+ if (windspeed != 0 && ++sp->file->drift > 2 &&
(sp->specs->class >= 3 && !snagged(sp)
|| (turn & 1) == 0)) {
sp->file->row -= dr[winddir];
(sp->specs->class >= 3 && !snagged(sp)
|| (turn & 1) == 0)) {
sp->file->row -= dr[winddir];