From 69b1485a22dc2b8a2cfe0bd10edcbaad0da0cf6e Mon Sep 17 00:00:00 2001 From: strangerke Date: Thu, 12 May 2011 01:13:57 +0200 Subject: GIT: Clean up: Suppress SVN tags, now useless --- engines/scumm/script.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'engines/scumm/script.h') diff --git a/engines/scumm/script.h b/engines/scumm/script.h index 39d5d802b4..e576c9b09b 100644 --- a/engines/scumm/script.h +++ b/engines/scumm/script.h @@ -18,9 +18,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * $URL$ - * $Id$ - * */ #ifndef SCUMM_SCRIPT_H -- cgit v1.2.3 From d0209228467f548e748146e1c72e72ac9cccc89f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 17 May 2011 15:50:11 +0200 Subject: SCUMM: Make REDUCE_MEMORY_USAGE slightly more effecive (saving ~1kb ram) --- engines/scumm/script.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/scumm/script.h') diff --git a/engines/scumm/script.h b/engines/scumm/script.h index e576c9b09b..7b2c625144 100644 --- a/engines/scumm/script.h +++ b/engines/scumm/script.h @@ -27,14 +27,19 @@ namespace Scumm { - typedef Common::Functor0 Opcode; struct OpcodeEntry : Common::NonCopyable { Opcode *proc; +#ifndef REDUCE_MEMORY_USAGE const char *desc; +#endif +#ifndef REDUCE_MEMORY_USAGE OpcodeEntry() : proc(0), desc(0) {} +#else + OpcodeEntry() : proc(0) {} +#endif ~OpcodeEntry() { setProc(0, 0); } @@ -44,7 +49,9 @@ struct OpcodeEntry : Common::NonCopyable { delete proc; proc = p; } +#ifndef REDUCE_MEMORY_USAGE desc = d; +#endif } }; -- cgit v1.2.3