(svn r2043) -Fix: committed too many files in the last commit
authortruelight
Thu, 24 Mar 2005 14:33:05 +0000
changeset 1539 3d5b40209884
parent 1538 c67f0386df1d
child 1540 29422ac71fca
(svn r2043) -Fix: committed too many files in the last commit
dedicated.c
economy.c
engine.c
functions.h
--- a/dedicated.c	Thu Mar 24 14:31:27 2005 +0000
+++ b/dedicated.c	Thu Mar 24 14:33:05 2005 +0000
@@ -302,7 +302,7 @@
 #endif
 
 		if (cur_ticks >= next_tick) {
-//			next_tick += 30;
+			next_tick += 30;
 
 			GameLoop();
 			_screen.dst_ptr = _dedicated_video_mem;
--- a/economy.c	Thu Mar 24 14:31:27 2005 +0000
+++ b/economy.c	Thu Mar 24 14:33:05 2005 +0000
@@ -1346,6 +1346,9 @@
 	assert(v->current_order.type == OT_LOADING);
 
 	v->cur_speed = 0;
+	old_player = _current_player;
+	_current_player = v->owner;
+
 	st = GetStation(last_visited = v->last_station_visited);
 
 	for (; v != NULL; v = v->next) {
@@ -1452,9 +1455,6 @@
 		TriggerVehicle(v, VEHICLE_TRIGGER_EMPTY);
 	}
 
-	old_player = _current_player;
-	_current_player = v->owner;
-
 	if (result != 0) {
 		InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
 
--- a/engine.c	Thu Mar 24 14:31:27 2005 +0000
+++ b/engine.c	Thu Mar 24 14:33:05 2005 +0000
@@ -567,8 +567,6 @@
 	RealSpriteGroup *rsg;
 	byte new_random_bits;
 
-	assert(_current_player >= MAX_PLAYERS);
-
 	_vsg_random_triggers = trigger;
 	_vsg_bits_to_reseed = 0;
 	rsg = TriggerVehicleSpriteGroup(GetVehicleSpriteGroup(veh->engine_type, veh), veh,
--- a/functions.h	Thu Mar 24 14:31:27 2005 +0000
+++ b/functions.h	Thu Mar 24 14:33:05 2005 +0000
@@ -92,7 +92,7 @@
 // * Warning: DO NOT enable this unless you understand what it does
 // **************
 
-#define RANDOM_DEBUG
+//#define RANDOM_DEBUG
 
 #ifdef RANDOM_DEBUG
 	#define Random() DoRandom(__LINE__, __FILE__)