Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] How to make client code 22 lines shorter.
Home

[Freeciv-Dev] How to make client code 22 lines shorter.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv development list <freeciv-dev@xxxxxxxxxxx>
Cc: Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Freeciv-Dev] How to make client code 22 lines shorter.
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Thu, 24 Jan 2002 11:14:35 +0000 (GMT)

There is triplicated code in create_goto_map in client/goto.c
The lines 370-380, 404-414 and 429-439 are identical and can be therefore
put outside the switch statement.

Jason, you did exactly the same thing in gotohand.c once (only there it
was a bit more complicated), do you want to do it here too?

Best,
G.

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] How to make client code 22 lines shorter., Gregory Berkolaiko <=