e = sandbox_EditObject(); // you can only copy objects you can edit, so this works
if(e != world)
{
- if(self.object_clipboard != "") // unzone the player's clipboard if it's not empty
+ if(self.object_clipboard) // unzone the player's clipboard if it's not empty
strunzone(self.object_clipboard);
self.object_clipboard = strzone(strcat(e.model, " ", ftos(e.movetype)));
{
// spawns a new object using the properties in the player's clipboard
- if(self.object_clipboard == "") // no object in clipboard
+ if(!self.object_clipboard) // no object in clipboard
{
print_to(self, "WARNING: No object in clipboard. You must copy an object before you can paste it");
return TRUE;
MUTATOR_HOOKFUNCTION(sandbox_ClientDisconnect)
{
// unzone the player's clipboard if it's not empty
- if(self.object_clipboard != "")
+ if(self.object_clipboard)
{
strunzone(self.object_clipboard);
self.object_clipboard = string_null;