diff src/economy.cpp @ 6620:5506bb5ca1b1 draft

(svn r9840) -Fix (r9838): MSVC is complaining about signedness again (Belugas).
author rubidium <rubidium@openttd.org>
date Tue, 15 May 2007 06:20:16 +0000 (2007-05-15)
parents a0ebb1506656
children c751437b3bac
line wrap: on
line diff
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1449,7 +1449,7 @@
 	int unloading_time = 0;
 	Vehicle *u = v;
 	int result = 0;
-	uint cap;
+	int cap;
 
 	bool completely_empty  = true;
 	bool anything_unloaded = false;
@@ -1473,7 +1473,7 @@
 		}
 
 		GoodsEntry *ge = &st->goods[v->cargo_type];
-		uint count = GB(ge->waiting_acceptance, 0, 12);
+		int count = GB(ge->waiting_acceptance, 0, 12);
 
 		if (HASBIT(v->vehicle_flags, VF_CARGO_UNLOADING)) {
 			uint16 amount_unloaded = _patches.gradual_loading ? min(v->cargo_count, load_amount) : v->cargo_count;