misc_cmd.c
changeset 1962 51ee4f459268
parent 1891 92a3b0aa0946
child 2150 010d923a81a9
--- a/misc_cmd.c	Tue Jun 21 14:50:08 2005 +0000
+++ b/misc_cmd.c	Tue Jun 21 16:28:17 2005 +0000
@@ -137,7 +137,7 @@
 	if (str == 0) return CMD_ERROR;
 
 	if (flags & DC_EXEC) {
-		p = DEREF_PLAYER(_current_player);
+		p = GetPlayer(_current_player);
 		DeleteName(p->name_1);
 		p->name_1 = str;
 		MarkWholeScreenDirty();
@@ -163,7 +163,7 @@
 	if (str == 0) return CMD_ERROR;
 
 	if (flags & DC_EXEC) {
-		p = DEREF_PLAYER(_current_player);
+		p = GetPlayer(_current_player);
 		DeleteName(p->president_name_1);
 		p->president_name_1 = str;
 
@@ -226,7 +226,7 @@
  */
 int32 CmdGiveMoney(int x, int y, uint32 flags, uint32 p1, uint32 p2)
 {
-	const Player *p = DEREF_PLAYER(_current_player);
+	const Player *p = GetPlayer(_current_player);
 	int32 amount = min((int32)p1, 20000000);
 
 	SET_EXPENSES_TYPE(EXPENSES_OTHER);