<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39552 >

 This assert was failing for Mongols ruleset. Assert makes no sense,
since nothing currently prevents function calling for barbarians -
except that default ruleset has "NoDiplomacy" effect for barbarians.
 If ruleset containing barbarians without "NoDiplomacy" is deemed
illegal, it should be detected when loading the ruleset and not by
random assert.


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/advdiplomacy.c freeciv/ai/advdiplomacy.c
--- freeciv/ai/advdiplomacy.c	2007-07-04 14:04:26.000000000 +0300
+++ freeciv/ai/advdiplomacy.c	2007-08-13 00:31:29.000000000 +0300
@@ -497,8 +497,6 @@
     pplayer_get_diplstate(pplayer, aplayer)->type;
   int given_cities = 0;
 
-  assert(!is_barbarian(pplayer));
-  
   clause_list_iterate(ptreaty->clauses, pclause) {
     if (is_pact_clause(pclause->type)) {
       ds_after = pact_clause_to_diplstate_type(pclause->type);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to