From 4d5a197bc8c4d782e374364286ce91fd2e118758 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 27 May 2008 10:01:26 +0000 Subject: Yet another session of comment/whitespace cleanups. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5291 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/traps.cc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'crawl-ref/source/traps.cc') diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 3891154632..05a9301273 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -66,7 +66,7 @@ int get_trapping_net(int x, int y, bool trapped) } // if there are more than one net on this square -// split off one of them for checking/setting values +// split off one of them for checking/setting values. static void maybe_split_nets(item_def &item, int x, int y) { if (item.quantity == 1) @@ -78,12 +78,12 @@ static void maybe_split_nets(item_def &item, int x, int y) item_def it; it.base_type = item.base_type; - it.sub_type = item.sub_type; - it.plus = item.plus; - it.plus2 = item.plus2; - it.flags = item.flags; - it.special = item.special; - it.quantity = --item.quantity; + it.sub_type = item.sub_type; + it.plus = item.plus; + it.plus2 = item.plus2; + it.flags = item.flags; + it.special = item.special; + it.quantity = --item.quantity; item_colour(it); item.quantity = 1; @@ -846,14 +846,14 @@ void clear_trapping_net() bool trap_item(object_class_type base_type, char sub_type, char beam_x, char beam_y) { - item_def item; + item_def item; item.base_type = base_type; - item.sub_type = sub_type; - item.plus = 0; - item.plus2 = 0; - item.flags = 0; - item.special = 0; - item.quantity = 1; + item.sub_type = sub_type; + item.plus = 0; + item.plus2 = 0; + item.flags = 0; + item.special = 0; + item.quantity = 1; if (base_type == OBJ_MISSILES) { -- cgit v1.2.3-54-g00ecf