From 1651fcd9807f1033a5fc76e60cb17922e687a7b1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 28 Aug 2012 21:59:49 +0000 Subject: Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore. git-svn-id: http://mc-server.googlecode.com/svn/trunk@800 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/cPlayer.cpp') diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 2a52d7da8..b7c05b402 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -769,16 +769,16 @@ AString cPlayer::GetColor(void) const void cPlayer::TossItem( bool a_bDraggingItem, - int a_Amount /* = 1 */, - int a_CreateType /* = 0 */, - int a_CreateHealth /* = 0 */ + char a_Amount /* = 1 */, + short a_CreateType /* = 0 */, + short a_CreateHealth /* = 0 */ ) { cItems Drops; if (a_CreateType) { // Just create item without touching the inventory (used in creative mode) - Drops.push_back(cItem((ENUM_ITEM_ID)a_CreateType, (char)a_Amount, a_CreateHealth)); + Drops.push_back(cItem(a_CreateType, a_Amount, a_CreateHealth)); } else { -- cgit v1.2.3