Permalink
Browse files

identation

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@5683 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information...
Markus Pristovsek
Markus Pristovsek committed Apr 30, 2012
1 parent 7fd03b9 commit 245fe58bb94677fea57629ce203ec118508f2bc4
Showing with 4 additions and 5 deletions.
  1. +2 −4 dings/wayobj.cc
  2. +2 −1 gui/schedule_list.cc
View
@@ -244,9 +244,7 @@ ribi_t::ribi wayobj_t::find_next_ribi(const grund_t *start, const koord dir, con
}
-
-void
-wayobj_t::calc_bild()
+void wayobj_t::calc_bild()
{
grund_t *gr = welt->lookup(get_pos());
diagonal = false;
@@ -357,7 +355,7 @@ void wayobj_t::extend_wayobj_t(karte_t *welt, koord3d pos, spieler_t *besitzer,
if(gr) {
wayobj_t *existing_wayobj = gr->get_wayobj( besch->get_wtyp() );
if( existing_wayobj ) {
- if(existing_wayobj->get_besch()->get_topspeed()<besch->get_topspeed() && spieler_t::check_owner(besitzer, existing_wayobj->get_besitzer())) {
+ if( existing_wayobj->get_besch()->get_topspeed() < besch->get_topspeed() && spieler_t::check_owner(besitzer, existing_wayobj->get_besitzer()) ) {
// replace slower by faster
dir = dir | existing_wayobj->get_dir();
gr->set_flag(grund_t::dirty);
View
@@ -309,7 +309,8 @@ schedule_list_gui_t::schedule_list_gui_t(spieler_t *sp_) :
tabs.set_active_tab_index(index);
if (index>0) {
bt_new_line.enable();
- } else {
+ }
+ else {
bt_new_line.disable();
}
update_lineinfo( line );

0 comments on commit 245fe58

Please sign in to comment.