summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-18 16:40:06 +0000
committerdarkvater <darkvater@openttd.org>2004-09-18 16:40:06 +0000
commit089a2a7847a640d2993abb44cd378058154c2df3 (patch)
tree7558ce89cdaf670c4b23ff44b696b439336ac667 /train_cmd.c
parentb7fd924806401b266ac1fb4c5c2c69e4f7e14c7b (diff)
downloadopenttd-089a2a7847a640d2993abb44cd378058154c2df3.tar.xz
(svn r294) -Fix: autorail always builds rail, instead of occasional rail removal (on pressing hotkey after pressing 'bulldozer')
-Fix: network fixes (Tron) -Some textfile changes, mainly URL's
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 2efd3e03d..998c782e3 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -2253,8 +2253,8 @@ static void ChangeTrainDirRandomly(Vehicle *v)
do {
//I need to buffer the train direction
- if (!v->u.rail.track & 0x40)
- v->direction = (v->direction + _random_dir_change[Random()&3]) & 7;
+ if (!(v->u.rail.track & 0x40))
+ v->direction = (v->direction + _random_dir_change[InteractiveRandom()&3]) & 7;
if (!(v->vehstatus & VS_HIDDEN)) {
BeginVehicleMove(v);
UpdateTrainDeltaXY(v, v->direction);
@@ -2274,13 +2274,13 @@ static void HandleCrashedTrain(Vehicle *v)
CreateEffectVehicleRel(v, 4, 4, 8, EV_CRASHED_SMOKE);
}
- if (state <= 200 && (uint16)(r=Random()) <= 0x2492) {
+ if (state <= 200 && (uint16)(r=InteractiveRandom()) <= 0x2492) {
index = (r * 10 >> 16);
u = v;
do {
if (--index < 0) {
- r = Random();
+ r = InteractiveRandom();
CreateEffectVehicleRel(u,
2 + ((r>>8)&7),